[Blends-commit] r3439 - /blends/trunk/team_analysis_tools/fake_control

tille at users.alioth.debian.org tille at users.alioth.debian.org
Sat Jun 23 13:28:09 UTC 2012


Author: tille
Date: Sat Jun 23 13:28:08 2012
New Revision: 3439

URL: http://svn.debian.org/wsvn/blends/?sc=1&rev=3439
Log:
Add small helper script which helps recreating old control file information

Added:
    blends/trunk/team_analysis_tools/fake_control   (with props)

Added: blends/trunk/team_analysis_tools/fake_control
URL: http://svn.debian.org/wsvn/blends/blends/trunk/team_analysis_tools/fake_control?rev=3439&op=file
==============================================================================
--- blends/trunk/team_analysis_tools/fake_control (added)
+++ blends/trunk/team_analysis_tools/fake_control Sat Jun 23 13:28:08 2012
@@ -1,0 +1,29 @@
+#!/bin/sh
+
+# until version 8.3 of Debian Med metapackages the debian/control file was not
+# part of the source tarball but was rather generated at package build time
+# This turned out to be a mistake for several reasons.
+# To enable reasonable investigation of the packages which were included in the
+# past the control file is recreated using this script from binary files which
+# can be downloaded from snapshots.debian.org
+
+extract_info () {
+	grep -v -e "^Installed-Size: " \
+	        -e "^Maintainer: " \
+	        -e "^Source: debian-med" \
+	        -e "^Version: " \
+                -e "^Section: " \
+                -e "^Priority: " \
+	        $1 >> control
+	echo "" >> control
+}
+
+grep -v -e "^Package: " -e "Architecture: " control.000 > control
+
+extract_info control.common
+
+for c in `ls control.[a-z]* | sort` ; do
+    if [ "$c" != "control.common" ] ; then
+	extract_info $c
+    fi
+done

Propchange: blends/trunk/team_analysis_tools/fake_control
------------------------------------------------------------------------------
    svn:executable = *




More information about the Blends-commit mailing list