Build improvements
[sxemacs] / autogen.sh
index 01bf4cd..3876839 100755 (executable)
@@ -26,15 +26,22 @@ emacs_is_beta=t
 if test -n "$GIT" -a -n "$($GIT symbolic-ref HEAD 2>/dev/null)"; then
        TREE_VERSION="$($GIT tag|tail -n1|tr -d v)"
        GIT_VERSION="$($GIT describe)"
-else
-       TREE_VERSION="22.1.13"
-       GIT_VERSION="no_git_version"
+       IN_GIT="1"
+fi
+if test -z "$TREE_VERSION"; then
+       TREE_VERSION="22.1.14"
+        if test -n "$IN_GIT"; then
+           echo "If you cloned this branch into your own you should issue: git tag -s v${TREE_VERSION}.<your branch_name>"
+       fi
+fi
+if test -z "$GIT_VERSION"; then
+       GIT_VERSION="${TREE_VERSION}-no_git_version"
 fi
 
 emacs_major_version="$(echo $TREE_VERSION|cut -d. -f1)"
 emacs_minor_version="$(echo $TREE_VERSION|cut -d. -f2)"
 emacs_beta_version="$(echo $TREE_VERSION|cut -d. -f3)"
-sxemacs_codename="Ford"
+sxemacs_codename="Geo"
 sxemacs_git_version="$GIT_VERSION"
 
 autoconf_ver=$(autoconf --version 2>/dev/null | head -n1)