From: Sebastian Harl Date: Thu, 17 Feb 2011 08:04:13 +0000 (+0100) Subject: version-gen.sh: Do not use 'echo -n' on AIX and SunOS. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=88fb185675702eb2ad562cb70ffbc856f031732a;p=template.git version-gen.sh: Do not use 'echo -n' on AIX and SunOS. These systems don't support that. --- diff --git a/version-gen.sh b/version-gen.sh index b9d8c96..841c084 100755 --- a/version-gen.sh +++ b/version-gen.sh @@ -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