Command readlink indeed does not exist on the Mac (or its options are different from Linux's readlink; sorry, don't remember). We'll fix this bug in the next release.

Thank you for taking the time to report this bug.



On 08/12/2013 08:10 PM, Johannes Damsgaard-Bruhn wrote:
Hi,

I have used whc for some time and it is really a nice tool :-)

But today I tried to update the language and the script made a mess. I
am running whc on a mac and these lines in init_template.sh throws an
error:
#!/bin/sh

scriptsDir=`dirname $0`

srcDir=`readlink -f "$scriptsDir/../templatesrc"`

dstDir=`readlink -f "$scriptsDir/../whc_template"`

### ---

The variables are not set and the result is the script tries to delete
anything in my Application folder! I had to reinstall several apps but I
did not loose any data it seems.

Here is a short example of log from my terminal when I ran the script:
rm: /Applications/Image
Capture.app/Contents/Resources/pl.lproj/InfoPlist.strings: Permission
denied
rm: /Applications/Image
Capture.app/Contents/Resources/pl.lproj/Localizable.strings: Permission
denied
rm: /Applications/Image
Capture.app/Contents/Resources/pl.lproj/MainMenu.nib: Permission denied
rm: /Applications/Image
Capture.app/Contents/Resources/pl.lproj/ScannerButtons.nib: Permission
denied
rm: /Applications/Image
Capture.app/Contents/Resources/pl.lproj/TakePicture.nib: Permission denied
rm: /Applications/Image Capture.app/Contents/Resources/pl.lproj:
Permission denied

The command dirname is not recognized. Neither is read link.

If I set the variables manually the script works as expected.



--
XMLmind DITA Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/ditac-support

Reply via email to