[SCM] jackd2/master: Update helper script to replace waf by waf-light

adiknoth-guest at users.alioth.debian.org adiknoth-guest at users.alioth.debian.org
Tue May 29 20:31:28 UTC 2012


The following commit has been merged in the master branch:
commit ddba60f939fa664c1c1aeeb8eec135321977bea9
Author: Adrian Knoth <adi at drcomp.erfurt.thur.de>
Date:   Tue May 29 21:56:14 2012 +0200

    Update helper script to replace waf by waf-light
    
    Also automate tarball generation

diff --git a/debian/make_tarball.sh b/debian/make_tarball.sh
index 9173b97..c311ee4 100644
--- a/debian/make_tarball.sh
+++ b/debian/make_tarball.sh
@@ -26,6 +26,22 @@ git archive master | tar -C "${TARGET_DIR}" -xf -
 echo "Cleaning git files from export directory"
 find "${TARGET_DIR}" -name ".git*" -delete
 
+# replace waf by waf-light
+echo "Replacying waf by waf-light"
+( cd "${TARGET_DIR}" && \
+    ./waf ; \
+    mv .waf*/waflib waflib && \
+    rm waf ; \
+    find ./waflib -iname "*.pyc" -delete ; \
+    wget http://waf.googlecode.com/git-history/waf-1.6.11/waf-light ; \
+    ln -s waf-light waf && chmod +x waf-light
+)
+
 # make it DFSG clean
 echo "Making it DFSG clean"
 rm -rf "${TARGET_DIR}/windows" "${TARGET_DIR}/macosx"
+
+# create final tarball
+echo "Creating tarball"
+tar -C "${TARGET_DIR}/../" -cvzf "${TARGET_DIR}".tar.gz \
+    "`basename "${TARGET_DIR}"`" && echo "All done. Enjoy."

-- 
jackd2 packaging



More information about the pkg-multimedia-commits mailing list