# 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 \
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" \