Redirect log messages to /dev/null to make get-orig-source target work.
authorAlessio Treglia <alessio@debian.org>
Fri, 10 Feb 2012 21:40:50 +0000 (22:40 +0100)
committerAlessio Treglia <alessio@debian.org>
Fri, 10 Feb 2012 21:40:50 +0000 (22:40 +0100)
Fallback to current svn revision if GPAC_SVN_REVISION is unset.

debian/gpac-get-orig-source

index 1ce3ddc5c75921ace9d67fd92453a05206e58e6d..44c568406a1c013cba099fb3307887a2293716d9 100755 (executable)
@@ -3,15 +3,15 @@
 # Script used to generate the orig source tarball for gpac.
 
 GPAC_SVN_URL="http://gpac.svn.sourceforge.net/svnroot/gpac/trunk/gpac"
-GPAC_SVN_REVISION="3450"
+if test -z ${GPAC_SVN_REVISION}; then GPAC_SVN_REVISION="3450"; fi
 GPAC_VERSION="0.4.5+svn${GPAC_SVN_REVISION}"
 
-svn export -r "$GPAC_SVN_REVISION" "$GPAC_SVN_URL" "gpac-${GPAC_VERSION}"
+svn export -r "$GPAC_SVN_REVISION" "$GPAC_SVN_URL" "gpac-${GPAC_VERSION}" 1>/dev/null 2>&1
 
 # Remove temp files and other cruft from source tarball
 # The find command snippet here was taken from debhelper's dh_clean command
 # with some modification to delete more unneeded files.
-echo "Removing temp files and other cruft from source tarball"
+echo "Removing temp files and other cruft from source tarball" 1>/dev/null 2>&1
 find gpac-${GPAC_VERSION} \
   \( \
     \( -type f -a \
@@ -32,7 +32,7 @@ find gpac-${GPAC_VERSION} \
 chmod 755 gpac-${GPAC_VERSION}/configure
 
 # Remove empty directories
-echo "Removing empty directories"
+echo "Removing empty directories" 1>/dev/null 2>&1
 find gpac-${GPAC_VERSION} -type d -empty -delete
 
 BZIP2=-9f tar --exclude-vcs -cjf "gpac_${GPAC_VERSION}.orig.tar.bz2" \