projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed broken swit numbering (there are more files to fix)
[mmh]
/
config
/
version.sh
diff --git
a/config/version.sh
b/config/version.sh
index
6257186
..
61d9637
100755
(executable)
--- a/
config/version.sh
+++ b/
config/version.sh
@@
-4,12
+4,10
@@
#
# You need to pass the script the version number to use.
#
#
# You need to pass the script the version number to use.
#
-# $Id$
-#
if [ -z "$1" ]; then
if [ -z "$1" ]; then
- echo "usage: version.sh VERSION" 1>&2
- exit 1
+ echo "usage: version.sh VERSION" 1>&2
+ exit 1
fi
VERSION=$1
fi
VERSION=$1
@@
-20,22
+18,24
@@
HOSTNAME=unknown
# Find out the name of the host we are compiling on
for prog in uname hostname
do
# Find out the name of the host we are compiling on
for prog in uname hostname
do
- for dir in $PATH
- do
- if [ ! -f $dir/$prog ]; then
- continue
+ for dir in $PATH
+ do
+ if [ ! -f $dir/$prog ]; then
+ continue
+ fi
+ case $prog in
+ uname)
+ HOSTNAME=`$prog -n`
+ ;;
+ hostname)
+ HOSTNAME=`$prog`
+ ;;
+ esac
+ break
+ done
+ if [ X"$HOSTNAME" != X -a X"$HOSTNAME" != Xunknown ]; then
+ break
fi
fi
- case $prog in
- uname) HOSTNAME=`$prog -n`
- ;;
- hostname) HOSTNAME=`$prog`
- ;;
- esac
- break
- done
- if [ X"$HOSTNAME" != X -a X"$HOSTNAME" != Xunknown ]; then
- break
- fi
done
IFS=" "
done
IFS=" "