Code

version-gen.sh: Do not use 'echo -n' on AIX and SunOS.
authorSebastian Harl <sh@tokkee.org>
Thu, 17 Feb 2011 08:04:13 +0000 (09:04 +0100)
committerSebastian Harl <sh@tokkee.org>
Thu, 17 Feb 2011 08:04:13 +0000 (09:04 +0100)
These systems don't support that.

version-gen.sh

index b9d8c967048522484bd9a062daf3dbf89fd0b662..841c084617ef273f32826cc3fc534097d1596cbe 100755 (executable)
@@ -15,7 +15,11 @@ else
 fi
 
 VERSION="$( echo "$VERSION" | sed -e 's/-/./g' )"
-echo -n "$VERSION"
+if test "x`uname -s`" = "xAIX" || test "x`uname -s`" = "xSunOS" ; then
+       echo "$VERSION\c"
+else
+       echo -n "$VERSION"
+fi
 
 OLD_VERSION=""
 if test -e version; then