Code

configure.ac: Use AC_MSG_RESULT() to display summary.
[template.git] / version-gen.sh
index 57300717c1ca9597259683368b458f8e3be92d2d..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
@@ -27,6 +31,7 @@ if test "$OLD_VERSION" != "$VERSION"; then
        VERSION_MINOR=$( echo $VERSION | cut -d'.' -f2 )
        VERSION_PATCH=$( echo $VERSION | cut -d'.' -f3 )
        VERSION_EXTRA="\"$( echo $VERSION | cut -d'.' -f4- )\""
+       test -z "$VERSION_EXTRA" || VERSION_EXTRA=".$VERSION_EXTRA"
        (
         echo "VERSION=\"$VERSION\""
         echo "VERSION_MAJOR=$VERSION_MAJOR"