[SCM] ladish/master: Add unpack_waf.sh shell script to get rid of the 'waf' blob file.

alessio at users.alioth.debian.org alessio at users.alioth.debian.org
Mon Jan 9 18:16:05 UTC 2012


The following commit has been merged in the master branch:
commit fafac17bae750991837e987d6093a14f5572b523
Author: Alessio Treglia <alessio at debian.org>
Date:   Mon Jan 9 19:15:39 2012 +0100

    Add unpack_waf.sh shell script to get rid of the 'waf' blob file.

diff --git a/debian/unpack_waf.sh b/debian/unpack_waf.sh
new file mode 100755
index 0000000..257fab4
--- /dev/null
+++ b/debian/unpack_waf.sh
@@ -0,0 +1,33 @@
+#!/bin/bash
+
+#    unpack_waf - generate an unpacked instance of the waf all-in-one blob
+#    Copyright (C) 2012 Alessio Treglia <alessio at debian.org>
+#    Based on: http://wiki.debian.org/UnpackWaf
+#
+#    This program is free software; you can redistribute it and/or modify
+#    it under the terms of the GNU General Public License as published by
+#    the Free Software Foundation; either version 2 of the License, or
+#    (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU General Public License for more details.
+#
+#    You should have received a copy of the GNU General Public License along
+#    with this program; if not, write to the Free Software Foundation, Inc.,
+#    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+set -e
+
+echo -n "Unpacking waf... "
+./waf --help &>/dev/null
+WAFDIR=`ls .waf-*/`
+mv .waf-*/${WAFDIR} ${WAFDIR}
+sed -i '/^#==>$/,$d' waf
+rmdir .waf-*
+echo "OK."
+
+echo -n "Purging .pyc files... "
+find ${WAFDIR} -name "*.pyc" -delete
+echo "OK."

-- 
ladish packaging



More information about the pkg-multimedia-commits mailing list