[Pkg-doc-linux-devel] r249 - trunk/doc-linux/debian

djpig at alioth.debian.org djpig at alioth.debian.org
Sun Sep 16 15:45:24 UTC 2007


Author: djpig
Date: 2007-09-16 15:45:24 +0000 (Sun, 16 Sep 2007)
New Revision: 249

Added:
   trunk/doc-linux/debian/prune-copyrights
Modified:
   trunk/doc-linux/debian/prepare-builddir
Log:
prune-copyrights: Allow stripping out license texts of HOWTOs

Strip out license texts of HOWTOs not included in the package to build.
This way we don't ship unneccesary license texts in main which are themself
not free either. We also don't confuse the HP license police :)


Modified: trunk/doc-linux/debian/prepare-builddir
===================================================================
--- trunk/doc-linux/debian/prepare-builddir	2007-09-16 14:22:45 UTC (rev 248)
+++ trunk/doc-linux/debian/prepare-builddir	2007-09-16 15:45:24 UTC (rev 249)
@@ -132,8 +132,9 @@
 	    cp -a ../doc-linux/FAQ .
 	    cp -a ../doc-linux/HOWTO/extra HOWTO/
 	fi
+
+	echo -n "HOWTOs "
 # the following two should be just symlinks
-	echo -n "HOWTOs "
 	cp -a ../doc-linux/HOWTO/Linux-HOWTOs.tar.bz2 HOWTO/
 	cp -a ../doc-linux/HOWTO/Linux-html-HOWTOs.tar.bz2 HOWTO/
 	cp -a ../doc-linux/HOWTO/$free-Linux-HOWTOs-$tarballversion.tar.bz2 HOWTO/Linux-HOWTOs-$tarballversion.tar.bz2
@@ -145,6 +146,7 @@
     echo -n "copy control files (2nd time)..."
     debian/make-links $pkg
     debian/make-copyright $free debian/$pkg.copyright.head > debian/copyright
+    debian/prune-copyright $free debian/copyrights
     echo done
 
     if test "$isnewupstream" = yes; then

Added: trunk/doc-linux/debian/prune-copyrights
===================================================================
--- trunk/doc-linux/debian/prune-copyrights	                        (rev 0)
+++ trunk/doc-linux/debian/prune-copyrights	2007-09-16 15:45:24 UTC (rev 249)
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+status=$1
+target=$2
+
+if [ -d "$target/.svn" ]; then
+   echo "ERROR: You shouldn't run this in the SVN checkout!"
+   exit 1
+fi
+
+for dir in $(find "$target" -maxdepth 1 -type d -not name $status); do
+
+    find "$dir" -type f -print0 | xargs -0 cat | grep ^HOWTO: |\
+       sort | uniq > "$dir/_ALL_"
+    cat <<EOF >> "$dir/_ALL_"
+
+The license terms of these HOWTOs not included in this version
+of doc-linux can be found in the SVN repository at
+svn://svn.debian.org/svn/pkg-doc-linux/trunk/doc-linux/
+EOF
+    find "$dir" -type f -not -name _ALL_ -exec rm -v {} \;
+
+done


Property changes on: trunk/doc-linux/debian/prune-copyrights
___________________________________________________________________
Name: svn:executable
   + *




More information about the Pkg-doc-linux-devel mailing list