[Debian-tex-commits] SVN tex-common commit + diffs: r4232 - in tex-common/branches/for-tl2008: debian scripts

Norbert Preining preining at alioth.debian.org
Sat Oct 3 15:26:16 UTC 2009


Author: preining
Date: 2009-10-03 15:26:15 +0000 (Sat, 03 Oct 2009)
New Revision: 4232

Modified:
   tex-common/branches/for-tl2008/debian/triggers
   tex-common/branches/for-tl2008/scripts/dh_installtex
   tex-common/branches/for-tl2008/scripts/update-texmf-config
Log:
add a trigger texmf-lsrfull which updates also texmf-texlive
add dh_installtex flavor lsr:full to trigger that


Modified: tex-common/branches/for-tl2008/debian/triggers
===================================================================
--- tex-common/branches/for-tl2008/debian/triggers	2009-10-03 14:59:58 UTC (rev 4231)
+++ tex-common/branches/for-tl2008/debian/triggers	2009-10-03 15:26:15 UTC (rev 4232)
@@ -1,3 +1,4 @@
 interest texmf-hyphen
 interest texmf-map
 interest texmf-lsr
+interest texmf-lsrfull

Modified: tex-common/branches/for-tl2008/scripts/dh_installtex
===================================================================
--- tex-common/branches/for-tl2008/scripts/dh_installtex	2009-10-03 14:59:58 UTC (rev 4231)
+++ tex-common/branches/for-tl2008/scripts/dh_installtex	2009-10-03 15:26:15 UTC (rev 4232)
@@ -161,7 +161,8 @@
 specify a list from flavors to be selected.
 At the moment you can select from the following list of flavors:
 B<map:config_for_active_maps>, B<map:config_for_all_maps>, 
-B<format:build_all>, and B<format:add_one:I<formatname>>.
+B<format:build_all>, B<format:add_one:I<formatname>>, and
+B<lsr:full>.
 
 B<map:config_for_active_maps> will create a file I<config.bar> for each active
 (i.e. uncommented) map in each of the cfg file generated by one of the
@@ -195,6 +196,9 @@
 exists, dh_installtex will skip this format with an informational
 message, even if this option is not given.
 
+B<lsr:full>: Recreate the lsr database not only for the standard trees,
+but also the distribution tree C</usr/share/texmf-texlive>.
+
 =back
 
 =head1 NOTES
@@ -219,8 +223,9 @@
 # GLOBAL VARIABLES
 #
 my $flavor;		
-my $mapdoconfig =  0;	# doconfig depending map/subflavor
-my $doallformats = 0;	# depending on flavor format:build_all
+my $mapdoconfig =  0;	  # doconfig depending map/subflavor
+my $doallformats = 0;	  # depending on flavor format:build_all
+my $dofulllsr = 0;        # do include texmf-texlive in lsr making
 my @addbuildformats = (); # additional formats to be build
 my $priority=20;	# priority with which files are installed
 my $doformatlinks = 1;
@@ -411,6 +416,8 @@
 			push @addbuildformats , $1;
 		} elsif ($fl eq "format:no_links") {
 			$doformatlinks = 0;
+		} elsif ($fl eq "lsr:full") {
+			$dofulllsr = 1;
 		} else {
 			error("Specified flavor $fl not supported.\nPlease see man page for supported flavors!\n");
 		}
@@ -424,7 +431,6 @@
 	# as they vary with package
 	my $tmp=tmpdir($package);
 	my %pkgprovidedfilecontents;
-	my $dothefullstuff = 0;
 	my %data;
 	my @whattodo = ();
 	my @fmtconffiles;
@@ -471,7 +477,6 @@
 		# we got something, either a cmd line are for one of the
 		# config files, or a package (e.g., debian/pkg.maps) file 
 		# do the full maintainer stuff!
-		$dothefullstuff = 1;
 		push @whattodo, $type;
 		if ($pkgfileoncmdline && ($pkgprovidedfile || ($#cmdlinearguments >= 0))) {
 			error("This call would create multiple copies of $priority$package.$configfileext{$_}.\nPlease read the man page on how this should be fixed!\n");
@@ -625,14 +630,12 @@
 		}
 		@whattodo = @newwhat;
 		# also include the full code
-		$dothefullstuff = 1;
 	}
 	if (! $dh{NOSCRIPTS}) {
-		if ($dothefullstuff) {
-			autoscript($package, "postinst", "postinst-tex", "s|#FORMATSFILES#|@fmtconffiles|; s|#WHATTODO#|@whattodo|");
-			# map entries have already been filtered out
-			autoscript($package, "postrm",   "postrm-tex", "s|#FORMATS#|@postrmfmtdata|; s|#WHATTODO#|@whattodo|");
-		}
+		push @whattodo, ($dofulllsr ? "lsrfull" : "lsr");
+		autoscript($package, "postinst", "postinst-tex", "s|#FORMATSFILES#|@fmtconffiles|; s|#WHATTODO#|@whattodo|");
+		# map entries have already been filtered out
+		autoscript($package, "postrm",   "postrm-tex", "s|#FORMATS#|@postrmfmtdata|; s|#WHATTODO#|@whattodo|");
 	}
 
 	# for trigger support

Modified: tex-common/branches/for-tl2008/scripts/update-texmf-config
===================================================================
--- tex-common/branches/for-tl2008/scripts/update-texmf-config	2009-10-03 14:59:58 UTC (rev 4231)
+++ tex-common/branches/for-tl2008/scripts/update-texmf-config	2009-10-03 15:26:15 UTC (rev 4232)
@@ -22,6 +22,7 @@
 # Boston, MA  02110-1301 USA.
 
 DOLSR=off
+DOLSRFULL=off
 DOHYPHEN=off
 DOUPDMAP=off
 
@@ -36,6 +37,10 @@
     lsr)
       DOLSR=on
       shift;;
+    lsrfull)
+      DOLSR=off
+      DOLSRFULL=on
+      shift;;
     *)
       echo "unknown option: $1"
       exit 1
@@ -46,6 +51,9 @@
 if [ $DOLSR = on ] ; then
   dpkg-trigger texmf-lsr
 fi
+if [ $DOLSRFULL = on ] ; then
+  dpkg-trigger texmf-lsrfull
+fi
 if [ $DOHYPHEN = on ] ; then
   dpkg-trigger texmf-hyphen
 fi




More information about the Debian-tex-commits mailing list