Your experiment fails in a number of places because of M$'s use of
backslashes instead of slashes for directory level separators.

For those of you running Mac OSX, you can use this little script
I wrote for my HD installations.  You just run it in the right
directory and it makes long names that include backslashes (which
in Unix are just another character; in fact, the only 'special'
characters of the 256 in Unix are '/' and NULL).  I called it
'fixlinks'.  After you run it the stuff all just works.

-- Jim

#!/bin/sh

# Because the Flash garbage on the Mac butchers pathnames
# (uses backslashes instead of slashes in URL's) we can patch
# around this by making hard links to messed-up names for all
# the files that are properly found in subdirectories.

TMP=/tmp/$$
cd program || { echo "Required directory 'program' not found in '.'"; exit 1; }
find . -name \*.pdf -print | sed -e [EMAIL PROTECTED]/@@ >$TMP
<$TMP perl \
    -e "while (<>) {" \
        -e "chomp;" \
        -e "\$from = \$_;" \
        -e "\$to = \$_;" \
        -e "\$to =~ s@/@[EMAIL PROTECTED];" \
        -e "link \$from, \$to;" \
    -e "}"

rm $TMP


Reply via email to