Version script Update

1.  Revise version number to 4.0.1
2.  Remove obsolete version scripts
3.  Change from echo to printf for compatability
4.  Update Makefile.in to remove obsolete svn and git variants
5.  Update Makefile.in to remove obsolete updateguide
This commit is contained in:
MrDave
2016-10-24 21:39:54 -06:00
parent c01389dbc0
commit 940c879bc8
4 changed files with 7 additions and 57 deletions

View File

@@ -135,51 +135,17 @@ dep depend fastdep: $(DEPEND_FILE)
################################################################################
dev: distclean autotools all
################################################################################
# DEV-GIT, BUILD with developer flags #
################################################################################
dev-git: distclean autotools-git all
################################################################################
# GIT, BUILD with developer flags #
################################################################################
build-commit-git: distclean set-version-git all
################################################################################
# CURRENT, BUILD current svn trunk. #
################################################################################
current: distclean svn autotools all
svn:
svn update
autotools:
@sed -e 's/.\/commit-version.sh/.\/version.sh/g' configure.ac > configure.ac.tmp && mv -f configure.ac.tmp configure.ac
@sed -e 's/.\/version.sh/.\/version.sh/g' configure.ac > configure.ac.tmp && mv -f configure.ac.tmp configure.ac
autoconf
./configure --with-developer-flags
autotools-git:
@sed -e 's/.\/git-commit-version.sh/.\/version.sh/g' configure.ac > configure.ac.tmp && mv -f configure.ac.tmp configure.ac
autoconf
./configure --with-developer-flags
build-commit: distclean svn set-version all
set-version:
@sed -e 's/.\/version.sh/.\/commit-version.sh/g' configure.ac > configure.ac.tmp && mv -f configure.ac.tmp configure.ac
@sed -e 's/.\/version.sh/.\/version.sh/g' configure.ac > configure.ac.tmp && mv -f configure.ac.tmp configure.ac
autoconf
@sed -e 's/.\/commit-version.sh/.\/version.sh/g' configure.ac > configure.ac.tmp && mv -f configure.ac.tmp configure.ac
@sed -e 's/.\/version.sh/.\/version.sh/g' configure.ac > configure.ac.tmp && mv -f configure.ac.tmp configure.ac
./configure --with-developer-flags
set-version-git:
@sed -e 's/.\/version.sh/.\/git-commit-version.sh/g' configure.ac > configure.ac.tmp && mv -f configure.ac.tmp configure.ac
autoconf
@sed -e 's/.\/git-commit-version.sh/.\/version.sh/g' configure.ac > configure.ac.tmp && mv -f configure.ac.tmp configure.ac
./configure --with-developer-flags
help:
@echo "--------------------------------------------------------------------------------"
@echo "make Build motion from local copy in your computer"
@@ -265,7 +231,7 @@ clean: pre-build-info
################################################################################
# DIST restores the directory to distribution state. #
################################################################################
dist: distclean updateguide
dist: distclean
@chmod -R 644 *
@chmod 755 configure
@chmod 755 version.sh

View File

@@ -1,8 +0,0 @@
#!/bin/sh
BASE_VERSION="4.0"
if [ -d .git ]; then
GIT_COMMIT=`git show -s --format=%h`
echo -n "$BASE_VERSION+git$GIT_COMMIT"
else
echo -n "$BASE_VERSION"
fi

View File

@@ -1,8 +0,0 @@
#!/bin/sh
BASE_VERSION="4.0"
if [ -d .git ]; then
GIT_COMMIT=`git show -s --format=%h`
echo -n "$BASE_VERSION+git$GIT_COMMIT"
else
echo -n "$BASE_VERSION"
fi

View File

@@ -1,8 +1,8 @@
#!/bin/sh
BASE_VERSION="4.0"
BASE_VERSION="4.0.1"
if [ -d .git ]; then
GIT_COMMIT=`git show -s --format=%h`
echo -n "$BASE_VERSION+git$GIT_COMMIT"
printf "$BASE_VERSION+git$GIT_COMMIT"
else
echo -n "$BASE_VERSION"
printf "$BASE_VERSION+gitUNKNOWN"
fi