[FreeNX-kNX] nxserver patch: fixes "egrep -q" and "ls --time-style"
Rongsheng Fang
unixlifebox at gmail.com
Fri Mar 31 15:25:21 UTC 2006
Hi,
Enclosed is the patch for `nxserver' against the svn rev 204. It fixes
the following command options:
1) "egrep -q": option `-q' is not supported on Solaris.
2) "ls --time-style": not supported by `ls' on solaris.
3) "echo -e": replaced with `printf' to make the output aligned with the
header better.
The patch was generated by "$ svn diff -r 204 nxserver".
`mktemp' command isn't supported (natively) on Solaris until Solaris 10.
I am thinking if we can use the following code to make it more portable?
Open for discussion.
====================================================================
if which mktemp >/dev/null 2>&1;
then
tmp_file=$(mktemp "/tmp/.nxtmp_file.XXXXXXXXX")
else
tmp_file="/tmp/.nxtmp_file.$(($RANDOM*$RANDOM))"
touch $tmp_file && chmod 600 $tmp_file
fi
====================================================================
Rongsheng
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: freenx-nxserver-against-SVN-rev204.diff
URL: <http://mail.kde.org/pipermail/freenx-knx/attachments/20060331/267762de/attachment.ksh>
More information about the FreeNX-kNX
mailing list