[izpack-users] Unix and absolute path question
Benoitx
benoitx at yahoo.com
Wed Jan 30 16:18:51 CET 2008
Hi,
First of all many thanks for this great tool.
We have been using version 3.10.2 for a while under Windows and we’re now
trying to use it under Unix.
We have 2 very basic questions (sorry!), we did look at the FAQ and
documentation and could not find an answer.
1/ we build the install jar under Windows
2/ as part of the installation, we do run some ‘.bat’ files and for Unix
we’d like to run some “.sh”. We use this:
<file os="unix" src="copy-localised-config.sh" targetdir="$INSTALL_PATH" />
<parsable os="unix" targetfile="$INSTALL_PATH/copy-localised-config.sh" />
<executable os="unix" targetfile="$INSTALL_PATH/copy-localised-config.sh"
targetdir="$INSTALL_PATH" stage="postinstall" keep="true" failure="abort" />
Question 1:
- The sh files seems to be in windows format (each line ends with ^M) and
this stops the script from running:
#!/bin/sh^M
echo Hello^M
….
The script fails dues to the ^M at the end of this line “#!/bin/sh^M“
How does one go around this issue? Is there a way to say to IZPack to do a
dos2unix command?
Question 2:
How could we specify an absolute path for the installation? We have used the
‘sub-path’ as it always seems to pre-prend the installation path with either
“Program Files” or “/usr/local”
<appsubpath>../../opt/atrium</appsubpath>
Is there a way to specify “/opt/atrium” ?
Many thanks in advance
Benoit.
--
View this message in context: http://www.nabble.com/Unix-and-absolute-path-question-tp15183429p15183429.html
Sent from the izpack users mailing list archive at Nabble.com.
More information about the izpack-users
mailing list