[Pkg-virtualbox-commits] [virtualbox-guest-additions-iso] 01/04: Rename variables

Gianfranco Costamagna locutusofborg-guest at moszumanska.debian.org
Fri Feb 13 11:03:05 UTC 2015


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

locutusofborg-guest pushed a commit to branch master
in repository virtualbox-guest-additions-iso.

commit 6b041cb6bcd71e313f2821c92830341ab316b357
Author: Gianfranco Costamagna <costamagnagianfranco at yahoo.it>
Date:   Fri Feb 13 12:00:38 2015 +0100

    Rename variables
---
 debian/get-orig-source.sh | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/debian/get-orig-source.sh b/debian/get-orig-source.sh
index 9ec84e1..a5a0062 100755
--- a/debian/get-orig-source.sh
+++ b/debian/get-orig-source.sh
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-set -e
+set -ex
 
 if [ $# -ne 3 ]; then
   echo "Error: 3 parameters are required."
@@ -12,13 +12,13 @@ if [ "$1" != "--upstream-version" ]; then
   exit 1
 fi
 
-VERSION=$2
-ISOFILE=$3
+UPSTREAM_VERSION=$2
+ORIG_TARBALL=$3
 
 ORGDIR=`pwd`
 
-cd `dirname $ISOFILE`
-if ! wget -O - http://download.virtualbox.org/virtualbox/$VERSION/SHA256SUMS | grep iso | sha256sum -c --strict -; then
+cd `dirname $ORIG_TARBALL`
+if ! wget -O - http://download.virtualbox.org/virtualbox/$UPSTREAM_VERSION/SHA256SUMS | grep iso | sha256sum -c --strict -; then
   echo "Error: checksum doesn't match."
   exit 1
 fi
@@ -40,11 +40,11 @@ fi
 
 trap 'rm -r $TMP' EXIT
 
-mkdir $TMP/${PACKAGE_NAME}-$VERSION
-mv $ISOFILE $TMP/${PACKAGE_NAME}-$VERSION/
+mkdir $TMP/${PACKAGE_NAME}-$UPSTREAM_VERSION
+mv $ORIG_TARBALL $TMP/${PACKAGE_NAME}-$UPSTREAM_VERSION/
 cd $TMP
-tar czf ${PACKAGE_NAME}_$VERSION.orig.tar.gz ${PACKAGE_NAME}-$VERSION
-mv ${PACKAGE_NAME}_$VERSION.orig.tar.gz $ORGDIR/../
+tar czf ${PACKAGE_NAME}_$UPSTREAM_VERSION.orig.tar.gz ${PACKAGE_NAME}-$UPSTREAM_VERSION
+mv ${PACKAGE_NAME}_$UPSTREAM_VERSION.orig.tar.gz $ORGDIR/../
 cd $ORGDIR
-echo "Done, now you can run git-import-orig ../${PACKAGE_NAME}_$VERSION.orig.tar.gz"
+echo "Done, now you can run git-import-orig ../${PACKAGE_NAME}_$UPSTREAM_VERSION.orig.tar.gz"
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-virtualbox/virtualbox-guest-additions-iso.git



More information about the Pkg-virtualbox-commits mailing list