[Cdd-commits] r235 - cdd/trunk/cdd

Andreas Tille debian-custom@lists.debian.org
Sun, 11 Jul 2004 01:10:55 -0600


Author: tille
Date: Sun Jul 11 01:10:55 2004
New Revision: 235

Added:
   cdd/trunk/cdd/cdd-clean-helper   (contents, props changed)
   cdd/trunk/cdd/cdd-clean-helper.1
Log:
Reverts the changes of cdd-install-helper consistently, should be used in debian/rules files of meta package building scripts


Added: cdd/trunk/cdd/cdd-clean-helper
==============================================================================
--- (empty file)
+++ cdd/trunk/cdd/cdd-clean-helper	Sun Jul 11 01:10:55 2004
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+rm -rf tmp
+rm -f tasks/*~
+[ -d menu ] && rm -f debian/$(cdd)-*.post{inst,rm}
+
+# Move back special postinst files provided by the meta package maintainer
+for postinst in `ls debian/*.postinst.stub 2>/dev/null` ; do
+    mv "$postinst" debian/`basename "$postinst" .stub`
+done
+rm -f debian/$(cdd)-common.{templates,config,install} debian/90$(cdd)-common
+rm -rf debian/po
+
+# Move back special po files provided by the meta package maintainer
+[ -d debian/po.stub ] && mv debian/po.stub debian.po
+

Added: cdd/trunk/cdd/cdd-clean-helper.1
==============================================================================
--- (empty file)
+++ cdd/trunk/cdd/cdd-clean-helper.1	Sun Jul 11 01:10:55 2004
@@ -0,0 +1,25 @@
+.TH cdd-clean-helper 1 "July 10, 2004" "CDD - Development"
+.SH NAME
+.B cdd-clean-helper
+\- cleans up debian directory in a meta package building tree
+
+.SH SYNOPSIS
+.B cdd-clean-helper
+
+.SH DESCRIPTION
+This script should be used in debian/rules file to revert the changes
+which were done by 
+.I cdd-install-helper(1)
+to get a clean packaging tree.  Using this helper ensures that the
+.I debian/rules
+file does not needed to be changed if there are changes in the
+.B cdd-dev
+package.
+
+.SH EXAMPLES
+For the usage of this tool just have a look at the 
+.B debian-med
+source package.
+
+.SH AUTHOR
+Andreas Tille <tille@debian.org>.