#3125 closed defect (fixed)
guile-1.8.7 instructions for copying documentation files gave error
Reported by: | Dominic Jones | Owned by: | Randy McMurchy |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | BOOK | Version: | SVN |
Severity: | normal | Keywords: | |
Cc: |
Description ¶
The shell commands for copying the text documentation for guile-1.8.7 did not work when I attempted them. Per the instructions, I tried:
find examples -name "Makefile*" -exec rm {} \; && install -v -m755 -d /usr/share/doc/guile-1.8.7 && cp -v -R examples /usr/share/doc/guile-1.8.7 &&
for DIRNAME in goops r5rs ref tutorial do
install -v -m755 -d /usr/share/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}/$DIRNAME && install -v -m644 doc/$DIRNAME/*.txt \
/usr/share/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}/$DIRNAME &&
done && unset DIRNAME
The for command failed with an error message regarding an unexpected token done. I was manually entering the commands; a second, retyped attempt failed with the same error message.
Entering the install commands separately with manual variable substitutions worked.
I did not create the optional alternative documentation.
Change History (5)
comment:1 by , 15 years ago
comment:3 by , 14 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
This is a product of my script being somewhat different than the book, and then me cut and pasting instructions from my script without making the appropriate changes. Easy fix. Thanks for noticing!
comment:4 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Updated the documentation build and installation instructions. It should work as designed now.
Thanks for reporting the issue!
The error is due to an extraneous && at the end of the loop. This has been fixed in r8447. Thanks for the report.