[SCM] gpac/master: Supply a script to generate SVN revision of tarball.
ceros-guest at users.alioth.debian.org
ceros-guest at users.alioth.debian.org
Fri Oct 29 19:19:06 UTC 2010
The following commit has been merged in the master branch:
commit 1606d0a0d5197d3b9debf130c887f1650aeae992
Author: Andres Mejia <mcitadel at gmail.com>
Date: Fri Oct 29 15:18:01 2010 -0400
Supply a script to generate SVN revision of tarball.
diff --git a/debian/gpac-get-orig-source b/debian/gpac-get-orig-source
new file mode 100755
index 0000000..f75f5dc
--- /dev/null
+++ b/debian/gpac-get-orig-source
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# 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="2210"
+GPAC_VERSION="0.4.5+svn${GPAC_SVN_REVISION}"
+
+svn export -r "$GPAC_SVN_REVISION" "$GPAC_SVN_URL" "gpac-${GPAC_VERSION}"
+
+# Remove upstream debian directory
+rm -rf gpac-${GPAC_VERSION}/debian
+
+# 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"
+find gpac-${GPAC_VERSION} \
+ \( \
+ \( -type f -a \
+ \( -name '#*#' -o -name '.*~' -o -name '*~' -o -name DEADJOE \
+ -o -name '*.orig' -o -name '*.rej' -o -name '*.bak' \
+ -o -name '.*.orig' -o -name .*.rej -o -name '.SUMS' \
+ -o -name TAGS -o \( -path '*/.deps/*' -a -name '*.P' \) \
+ -o -name config.status -o -name config.cache -o -name config.log \
+ \) -exec rm -f "{}" \; \
+ \) -o \
+ \( -type d -a \
+ \( -name autom4te.cache -o -name .svn \
+ \) -prune -exec rm -rf "{}" \; \
+ \) \
+ \)
+
+# Remove empty directories
+echo "Removing empty directories"
+find gpac-${GPAC_VERSION} -type d -empty -delete
+
+tar --exclude-vcs -czf "gpac_${GPAC_VERSION}.orig.tar.gz" \
+ "gpac-${GPAC_VERSION}/"
diff --git a/debian/rules b/debian/rules
index 9382707..d3108be 100755
--- a/debian/rules
+++ b/debian/rules
@@ -17,3 +17,7 @@ override_dh_auto_install:
override_dh_clean:
dh_clean config.h bin/gcc/libgpac*
find $(CURDIR) -name *.opic -delete
+
+get-orig-source:
+# Use external script
+ $(dir $_)gpac-$@
--
gpac packaging
More information about the pkg-multimedia-commits
mailing list