Skip to content
Snippets Groups Projects
Commit def3b2dc authored by Joe Garcia's avatar Joe Garcia
Browse files

src_dist using git version

parent 75f2cf6c
No related branches found
No related tags found
No related merge requests found
...@@ -2002,7 +2002,11 @@ test_graphics() { ...@@ -2002,7 +2002,11 @@ test_graphics() {
} }
src_dist() { src_dist() {
if [ -d ../.git ] ; then
git rev-parse --verify HEAD >VERSION.txt
else
svnversion >VERSION.txt svnversion >VERSION.txt
fi
pushd .. pushd ..
set -x set -x
zip -r -9 ShellB3-${REVDATE}-r${REVNUM}.zip ShellB3/shallbethree.sh ShellB3/README.txt ShellB3/VERSION.txt ShellB3/src ShellB3/sbin/* -x '*.svn*' || echo "source packaging failure" zip -r -9 ShellB3-${REVDATE}-r${REVNUM}.zip ShellB3/shallbethree.sh ShellB3/README.txt ShellB3/VERSION.txt ShellB3/src ShellB3/sbin/* -x '*.svn*' || echo "source packaging failure"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment