[DRE-commits] [ruby-passenger] 05/17: Stop repacking the upstream tarball as it doesn't contain any minified javascript files anymore.

Felix Geyer fgeyer at alioth.debian.org
Mon Aug 5 19:12:08 UTC 2013


This is an automated email from the git hooks/post-receive script.

fgeyer pushed a commit to branch master
in repository ruby-passenger.

commit 7912ec4a61c3068151be77ca40c58fc0358020b9
Author: Felix Geyer <fgeyer at debian.org>
Date:   Mon Aug 5 20:35:52 2013 +0200

    Stop repacking the upstream tarball as it doesn't contain any minified javascript files anymore.
---
 debian/changelog |    2 ++
 debian/repack.sh |   47 -----------------------------------------------
 2 files changed, 2 insertions(+), 47 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 3bd4fe0..b16258c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,8 @@
 ruby-passenger (4.0.10-1) UNRELEASED; urgency=low
 
   * New upstream release.
+  * Stop repacking the upstream tarball as it doesn't contain any minified
+    javascript files anymore.
   * Add myself as Uploader.
 
  -- Felix Geyer <fgeyer at debian.org>  Mon, 05 Aug 2013 20:31:08 +0200
diff --git a/debian/repack.sh b/debian/repack.sh
deleted file mode 100755
index c9e11bc..0000000
--- a/debian/repack.sh
+++ /dev/null
@@ -1,47 +0,0 @@
-#!/bin/sh
-# Repackage upstream source to exclude non-distributable files
-# should be called as "repack.sh --upstream-source <ver> <downloaded file>
-# (for example, via uscan)
-
-set -e
-set -u
-
-VER="$2debian"
-FILE="$3"
-PKG=`dpkg-parsechangelog|grep ^Source:|sed 's/^Source: //'`
-
-REPACK_DIR="$PKG-$VER.orig" # DevRef § 6.7.8.2
-
-echo -e "\nRepackaging $FILE\n"
-
-DIR=`mktemp -d ./tmpRepackXXXXXX`
-trap "rm -rf \"$DIR\"" QUIT INT EXIT
-
-# Create an extra directory to cope with rootless tarballs
-UP_BASE="$DIR/unpack"
-mkdir "$UP_BASE"
-tar xzf "$FILE" -C "$UP_BASE"
-
-if [ `ls -1 "$UP_BASE" | wc -l` -eq 1 ]; then
-	# Tarball does contain a root directory
-	UP_BASE="$UP_BASE/`ls -1 "$UP_BASE"`"
-fi
-
-## Remove stuff
-rm -vfr $UP_BASE/test/support/valgrind.h
-rm -vfr $UP_BASE/debian
-
-# remove embedded prototype.js (#555273)
-rm -vfr $UP_BASE/test/stub/rails_apps/2.3/mycook/public/javascripts/*
-ln -s /usr/share/javascript/scriptaculous/* $UP_BASE/test/stub/rails_apps/2.3/mycook/public/javascripts
-## End
-
-mv "$UP_BASE" "$DIR/$REPACK_DIR"
-
-# Using a pipe hides tar errors!
-tar cfC "$DIR/repacked.tar" "$DIR" "$REPACK_DIR"
-gzip -9 < "$DIR/repacked.tar" > "$DIR/repacked.tar.gz"
-FILE="../${PKG}_${VER}.orig.tar.gz"
-mv "$DIR/repacked.tar.gz" "$FILE"
-
-echo "*** $FILE repackaged"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-passenger.git



More information about the Pkg-ruby-extras-commits mailing list