[gweled] 53/72: Add repack.sh script to remove autom4te.cache/ directory
Stephen Kitt
skitt at moszumanska.debian.org
Thu May 26 16:55:49 UTC 2016
This is an automated email from the git hooks/post-receive script.
skitt pushed a commit to branch debian-sid
in repository gweled.
commit 0ef7e537244d4d5a816407835a277c7e8d75d5fb
Author: Ondřej Surý <ondrej at sury.org>
Date: Mon Jan 24 14:08:28 2011 +0100
Add repack.sh script to remove autom4te.cache/ directory
---
debian/repack.sh | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/debian/repack.sh b/debian/repack.sh
new file mode 100755
index 0000000..71ab830
--- /dev/null
+++ b/debian/repack.sh
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+set -e
+
+if [ ! -f "$3" ] && [ ! -f "$1" ]; then
+ echo "This script must be run via uscan or by manually specifying the tarball" >&2
+ exit 1
+fi
+
+tarball=
+
+[ -f "$3" ] && tarball="$3"
+[ -z "$tarball" -a -f "$1" ] && tarball="$1"
+
+fname="$(basename "$tarball")"
+tarball="$(readlink -f "$tarball")"
+
+tdir="$(mktemp -d)"
+trap '[ ! -d "$tdir" ] || rm -r "$tdir"' EXIT
+
+zcat "$tarball" | tar --wildcards --delete '*/autom4te.cache/*' --delete '*/autom4te.cache/' > "$tdir/${fname/.gz}"
+#touch -m -r "$tarball" "$tdir/${fname/.gz}"
+gzip -9 "$tdir/${fname/.gz}"
+
+mv "$tarball" "$tarball.bkp"
+mv "$tdir/$fname" "$tarball"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/gweled.git
More information about the Pkg-games-commits
mailing list