[scripts] 01/01: get $MAJOR_RELEASE from $VERSION

Guo Yixuan yixuan-guest at moszumanska.debian.org
Sat Apr 5 16:49:41 UTC 2014


This is an automated email from the git hooks/post-receive script.

yixuan-guest pushed a commit to branch master
in repository scripts.

commit 8bd19f23a6ba42ee5d63a80ee014ff40c2842299
Author: Guo Yixuan <culu.gyx at gmail.com>
Date:   Sat Apr 5 12:48:47 2014 -0400

    get $MAJOR_RELEASE from $VERSION
---
 export-boinc | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/export-boinc b/export-boinc
index f895cdd..f7c8b4f 100755
--- a/export-boinc
+++ b/export-boinc
@@ -197,7 +197,9 @@ EOATTRIBUTES
 # number from configure.ac and rename the $ORIG_DIR
 # accordingly.
 #
-MAJOR_RELEASE=7.4
+#MAJOR_RELEASE=7.4
+# remove the third component in $VERSION to get the major version
+MAJOR_RELEASE=$(echo $VERSION|cut -d . -f 1-2)
 TAG=client_release/$MAJOR_RELEASE/$VERSION
 if [ $VERSION = "HEAD" ]; then
     CFG_AC="configure.ac"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-boinc/scripts.git



More information about the pkg-boinc-commits mailing list