Remove some bashsims in git-gen-version.sh and nc.
Change the #! in showerr.sh to bash.
Signed-off-by: Jean Privat <jean@pryen.org>
# The version number is stored in a dedicated Nit module.
gen_version() {
# The version number is stored in a dedicated Nit module.
gen_version() {
- if ! grep "$*" nit_version.nit >/dev/null 2>&1; then
+ if grep "$*" nit_version.nit >/dev/null 2>&1; then
+ :
+ else
cat > nit_version.nit<<END
# This file was generated by git-gen-version.sh
package nit_version
cat > nit_version.nit<<END
# This file was generated by git-gen-version.sh
package nit_version
-VN=$(git describe --always HEAD 2>/dev/null)
+VN=`git describe --always HEAD 2>/dev/null`
if [ "$?" != "0" ]; then
if [ -r ../VERSION ]; then
VN="$(cat ../VERSION)"
if [ "$?" != "0" ]; then
if [ -r ../VERSION ]; then
VN="$(cat ../VERSION)"
NITC="../c_src/nitc"
NITCOPTS="-v -W"
NITC="../c_src/nitc"
NITCOPTS="-v -W"
-CSRC=$( (cd ../c_src; pwd) )
+CSRC=$` (cd ../c_src; pwd) `
- test -n $sub_command && kill $sub_command
- test -e $pipe && rm -f $pipe
+ test -n "$sub_command" && kill $sub_command
+ test -e "$pipe" && rm -f $pipe
trap trap_action INT TERM
echo ${NITC} ${NITCOPTS} ${opts} "$@"
trap trap_action INT TERM
echo ${NITC} ${NITCOPTS} ${opts} "$@"
-pipe=$(mktemp nc.stderr.XXXXX)
-rm "$pipe"
+pipe=$`mktemp nc.stderr.XXXXX`
+rm "$pipe" 2>/dev/null
mkfifo "$pipe"
./showerr.sh <"$pipe" &
sub_command=$!
mkfifo "$pipe"
./showerr.sh <"$pipe" &
sub_command=$!
# This file is part of NIT ( http://www.nitlanguage.org ).
#
# Copyright 2008 Jean Privat <jean@pryen.org>
# This file is part of NIT ( http://www.nitlanguage.org ).
#
# Copyright 2008 Jean Privat <jean@pryen.org>