Tuesday, March 28, 2006

Getting jalopy to work (1 of 2) ....

Jalopy downloaded as 'jalopy-console-0.1-1.5rc3' ships with scripts that are saved in "dos" mode - the CR LF stuff. On *NIX (At least on Linux - and I have seen similar errors on solaris before), the scripts report weird errors such as :
: command not foundls/java/jalopy/jalopy.sh: line 2:
: command not foundls/java/jalopy/jalopy.sh: line 4:
: command not foundls/java/jalopy/jalopy.sh: line 5:
xxxxxxxxxx/tools/java/jalopy/jalopy.sh: line 6: syntax error near unexpected to'en `in
xxxxxxxxxx/tools/java/jalopy/jalopy.sh: line 6: `case "`uname`" in

A quick fix is to load the shell scripts (preferences.sh and jalopy.sh) in vi and execute the following commands:
:set ff=unix
:wq!

After that the scripts execute fine.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home