[subversion-commit] SVN tex-common commit + diffs: r1139 - tex-common/trunk/debian

Julian Gilbey jdg at costa.debian.org
Wed Mar 29 14:40:29 UTC 2006


Author: jdg
Date: 2006-03-29 14:40:27 +0000 (Wed, 29 Mar 2006)
New Revision: 1139

Modified:
   tex-common/trunk/debian/changelog
   tex-common/trunk/debian/common.functions.in
   tex-common/trunk/debian/common.variables
   tex-common/trunk/debian/rules
   tex-common/trunk/debian/variables
Log:
* Improve readability of eperl scripts in debian/ as in tetex-bin [jdg]

Modified: tex-common/trunk/debian/changelog
===================================================================
--- tex-common/trunk/debian/changelog	2006-03-29 14:16:48 UTC (rev 1138)
+++ tex-common/trunk/debian/changelog	2006-03-29 14:40:27 UTC (rev 1139)
@@ -1,3 +1,9 @@
+tex-common (0.21) UNRELEASED; urgency=low
+
+  * Improve readability of eperl scripts in debian/ as in tetex-bin [jdg]
+
+ -- Julian Gilbey <jdg at debian.org>  Wed, 29 Mar 2006 15:40:07 +0100
+
 tex-common (0.20) unstable; urgency=medium
 
   * This version fixes a RC bug (#357983) - the version in testing was not

Modified: tex-common/trunk/debian/common.functions.in
===================================================================
--- tex-common/trunk/debian/common.functions.in	2006-03-29 14:16:48 UTC (rev 1138)
+++ tex-common/trunk/debian/common.functions.in	2006-03-29 14:40:27 UTC (rev 1139)
@@ -2,12 +2,11 @@
 #################################################################
 ## Function definitions - included from file common.functions
 #################################################################
-# Copyright (C) 2004 by Frank Küster <frank at debian.org>.
+# Copyright (C) 2004, 05, 06 by Frank Küster <frank at debian.org>.
+# Copyright (C) 2006 by Julian Gilbey <jdg at debian.org>.
 # $Id$
 
 # internal variables for common.functions
-: ${MKTMPDIR:=$TMPDIR} # mktemp will create its files there
-: ${MKTMPDIR:=<:=$MKTMPDIR:>}
 SYMLINK_MOVE_EXT=<:=$SYMLINK_MOVE_EXT:>
 TEXMFSYSVARDIR=<:=$TEXMFSYSVARDIR:>
 
@@ -38,7 +37,7 @@
 
 create_tetex_formats(){
   options="$@"
-  tempfile=`mktemp -p $MKTMPDIR tetex.postinst.XXXXXXXX`
+  tempfile=`mktemp -t tetex.postinst.XXXXXXXX`
   echo "Running fmtutil-sys. This may take some time. ..."
   # for jadetex safety (see #352391 and friends), remove old latex formats
   if [ "$options" = "--all" ];
@@ -58,7 +57,7 @@
 }
 
 create_fontmaps(){
-    tempfile=`mktemp -p $MKTMPDIR tetex.updmap.XXXXXXXX`
+    tempfile=`mktemp -t tetex.updmap.XXXXXXXX`
     echo -n "Running updmap-sys. This may take some time. ..."
     if updmap-sys 2> $tempfile; then
       rm -f $tempfile

Modified: tex-common/trunk/debian/common.variables
===================================================================
--- tex-common/trunk/debian/common.variables	2006-03-29 14:16:48 UTC (rev 1138)
+++ tex-common/trunk/debian/common.variables	2006-03-29 14:40:27 UTC (rev 1139)
@@ -1,68 +1,76 @@
-<:# Copyright (C) 1999, 2000, 01, 02 by Davide Giovanni Maria Salvetti <salve at debian.org>.:>//
-<:# Copyright (C) 2004, 05 by Frank Küster <frank at debian.org>.:>//
-<:# $Id$:>//
-<:# this list is from dpkg-1.10.9/include/dpkg.h.in:  :>//
-<:$DPKG_EXTENSIONS="'~' '%' .bak .dpkg-tmp .dpkg-new .dpkg-old .dpkg-dist":>//
-<:$PREINST_MOVE_EXT="preinst-bak":>//
-<:$POSTINST_MOVE_EXT="postinst-bak":>//
-<:$PURGE_EXTENSIONS="$DPKG_EXTENSIONS $PREINST_MOVE_EXT $POSTINST_MOVE_EXT":>//
-<:# package specific:>//
-<:$ETC="/etc/":>//
-<:$etc="/etc/texmf/":>//
-<:$doc="/usr/share/doc/$PACKAGE/":>//
-<:$TEXMFSYSVARDIR="/var/lib/texmf":>//
-<:$MKTMPDIR="/tmp":>//
-<:$FONTMAP_MEMORY_DIR="/var/lib/tex-common/fontmap-cfg":>//
-<:$LANGUAGE_MEMORY_DIR="/var/lib/tex-common/language-cnf":>//
-<:$LANGUAGE_DIR="$etc/language.d":>//
-<:$LDAT_PATTERNS="inhyph.tex bahyph.tex cahyph.tex hrhyph.tex czhyph.tex \\
-    dehypht.tex dehyphn.tex dkhyphen.tex nehyph.tex fi8hyph.tex frhyph.tex \\
-    gahyph.tex grhyph.tex icehyph.tex ithyph.tex lahyph.tex huhyph.tex nohyph.tex \\
-    nohyphb.tex nohyphbc.tex plhyph.tex pt8hyph.tex rohyphen.tex ruhyphen.tex \\
-    sehyph.tex skhyph.tex sihyph23.tex sphyph.tex trhyph.tex ukrhyph.tex \\
-    ukrhyph.t2a ukrhyph.lcy ukrhyph.ot2":>//
-<:$TEXMF_CNF="/etc/texmf/texmf.cnf":>//
-<:$TEXMF_PARTS="05TeXMF 15Plain 45TeXinputs 55Fonts 65BibTeX 75DviPS 85Misc 90TeXDoc 95NonPath":>//
-<:for (@TEXMF_PARTS_FULLNAME=split(/ /,$TEXMF_PARTS)){s{(.*)}{texmf.d/$1.cnf}}:>//
-<:$TEX_COMMON_UCF_FILES="@TEXMF_PARTS_FULLNAME updmap.d/00updmap.cfg":>//
-<:#$confstatedir="/var/lib/tetex":>//
-<:#$no_config_prefix="admin-wants-no":>//
-<:$LSRS="/var/lib/texmf/ls-R /var/lib/texmf/ls-R-TEXMFMAIN /var/lib/texmf/ls-R-LOCAL /var/cache/fonts/ls-R":>//
-<:# get the package version - must be usable in subdirectories, too:>//)
-<:if(-f "changelog"){open(CHANGELOG,"changelog")} else {open(CHANGELOG, "../changelog")};
+<:
+# Copyright (C) 1999, 2000, 01, 02 by Davide Giovanni Maria Salvetti <salve at debian.org>.
+# Copyright (C) 2004, 05, 06 by Frank Küster <frank at debian.org>.
+# Copyright (C) 2006 by Julian Gilbey <jdg at debian.org>.
+# $Id$
+# this list is from dpkg-1.10.9/include/dpkg.h.in:
+$DPKG_EXTENSIONS="'~' '%' .bak .dpkg-tmp .dpkg-new .dpkg-old .dpkg-dist";
+$PREINST_MOVE_EXT="preinst-bak";
+$POSTINST_MOVE_EXT="postinst-bak";
+$PURGE_EXTENSIONS="$DPKG_EXTENSIONS $PREINST_MOVE_EXT $POSTINST_MOVE_EXT";
+# package specific
+$ETC="/etc/";
+$etc="/etc/texmf/";
+$doc="/usr/share/doc/$PACKAGE/";
+$TEXMFSYSVARDIR="/var/lib/texmf";
+$FONTMAP_MEMORY_DIR="/var/lib/tex-common/fontmap-cfg";
+$LANGUAGE_MEMORY_DIR="/var/lib/tex-common/language-cnf";
+$LANGUAGE_DIR="$etc/language.d";
+$LDAT_PATTERNS=<<EOL;
+  inhyph.tex bahyph.tex cahyph.tex hrhyph.tex czhyph.tex \\
+  dehypht.tex dehyphn.tex dkhyphen.tex nehyph.tex fi8hyph.tex frhyph.tex \\
+  gahyph.tex grhyph.tex icehyph.tex ithyph.tex lahyph.tex huhyph.tex \\
+  nohyph.tex nohyphb.tex nohyphbc.tex plhyph.tex pt8hyph.tex rohyphen.tex \\
+  ruhyphen.tex sehyph.tex skhyph.tex sihyph23.tex sphyph.tex trhyph.tex \\
+  ukrhyph.tex ukrhyph.t2a ukrhyph.lcy ukrhyph.ot2
+EOL
+$TEXMF_CNF="/etc/texmf/texmf.cnf";
+ at TEXMF_PARTS=qw(05TeXMF 15Plain 45TeXinputs 55Fonts 65BibTeX 75DviPS
+		85Misc 90TeXDoc 95NonPath);
+ at TEXMF_PARTS_FULLNAME = map { "texmf.d/$_.cnf"; } @TEXMF_PARTS;
+$TEX_COMMON_UCF_FILES="@TEXMF_PARTS_FULLNAME updmap.d/00updmap.cfg";
+#$confstatedir="/var/lib/tetex";
+#$no_config_prefix="admin-wants-no";
+$LSRS="/var/lib/texmf/ls-R /var/lib/texmf/ls-R-TEXMFMAIN /var/lib/texmf/ls-R-LOCAL /var/cache/fonts/ls-R";
+# get the package version - must be usable in subdirectories, too)
+open CHANGELOG, "debian/changelog" or die "Can't open debian/changelog: $!\n";
 # get the version even if the first line is blank
-while($VERSION=<CHANGELOG>){last if('' ne $VERSION=~s/$PACKAGE \((.*)\).*\n/$1/)}:>//
-<:# compute the corresponding version for a sarge backport:>//
-<:if ( ($rev=$VERSION)=~ s/.*-([[:digit:]]*).*/$1/, $rev == 0)
+while ($VERSION=<CHANGELOG>) {
+    last if $VERSION=~s/^$PACKAGE \((.*)\).*\n$/$1/;
+}
+# compute the corresponding version for a sarge backport
+($rev=$VERSION) =~ s/^.*-(\d+)[^\-]*$/$1/;
+if ($rev == 0) {
   # if the debian revision is 0 or 0.x, don't make a backport
-  {$SARGEVERSION = ''}
-else {
-  $sarge_rev=$rev-1;
-  ($SARGEVERSION=$VERSION)=~s/(.*-)$rev(.*)/$1${sarge_rev}bpo1/;
+    $SARGEVERSION = '';
+} else {
+    $sarge_rev = $rev-1;
+    ($SARGEVERSION=$VERSION) =~ s/^(.*-)$rev([^\-]*)$/$1${sarge_rev}${2}bpo1/;
 #   ($SARGEVERSION=$VERSION)=~s/(.*-)$rev(.*)/$1$rev.0.sarge1/;
-}:>//
-<:$FIRST_BASE_VERSION_WITH_COMMON="3.0-4":>//
-<:$README_sarge=''; $README_sarge='debian/sarge/README.sarge' if -e 'sarge-stamp':>//
-<:# upgrading stuff:>//
-<:$SYMLINK_MOVE_EXT="moved-by-preinst":>//
-<:# debconf:>//
-<:$CONFMODULE="/usr/share/debconf/confmodule":>//
-<:# docbase:>//
-<:$DINSTALL="test -x /usr/sbin/install-docs && install-docs --install":>//
-<:$DREMOVE="test -x /usr/sbin/install-docs && install-docs --remove":>//
-<:$docbase="/usr/share/doc-base/":>//
-<:# info:>//
-<:$IINSTALL="install-info --section \"$INFOSEC\" \"$INFOSEC\""
-	  . " --menuentry=\"$INFOMENU\""
-	  . " --description=\"$INFODESC\""
-	  . " --quiet":>//
-<:$IREMOVE="install-info --quiet --remove":>//
-<:$info="/usr/share/info/":>//
-<:# misc:>//
-<:$GPL="/usr/share/common-licenses/GPL":>//
-<:open(COPYRIGHT,'COPYRIGHT.scripts');@COPYRIGHT=<COPYRIGHT>;close(COPYRIGHT):>//
-<:
+}
+$FIRST_BASE_VERSION_WITH_COMMON="3.0-4";
+$README_sarge = (-e 'sarge-stamp') ? 'debian/sarge/README.sarge' : '';
+# upgrading stuff
+$SYMLINK_MOVE_EXT="moved-by-preinst";
+# debconf
+$CONFMODULE="/usr/share/debconf/confmodule";
+# docbase
+$DINSTALL="test -x /usr/sbin/install-docs && install-docs --install";
+$DREMOVE="test -x /usr/sbin/install-docs && install-docs --remove";
+$docbase="/usr/share/doc-base/";
+# info
+$IINSTALL=qq[install-info --section "$INFOSEC" "$INFOSEC"] .
+	    qq[ --menuentry="$INFOMENU" --description="$INFODESC" --quiet];
+$IREMOVE="install-info --quiet --remove";
+$info="/usr/share/info/";
+# misc
+$GPL="/usr/share/common-licenses/GPL";
+open COPYRIGHT, 'debian/COPYRIGHT.scripts'
+    or die "Couldn't open debian/COPYRIGHT.scripts: $!\n";
+ at COPYRIGHT=<COPYRIGHT>;
+close(COPYRIGHT);
+
 # local variables:
-# mode: shell-script
+# mode: perl
 # end:
 :>//

Modified: tex-common/trunk/debian/rules
===================================================================
--- tex-common/trunk/debian/rules	2006-03-29 14:16:48 UTC (rev 1138)
+++ tex-common/trunk/debian/rules	2006-03-29 14:40:27 UTC (rev 1139)
@@ -21,13 +21,13 @@
 
 # Eperl is simply great: thanks, Davide!
 % :: %.in $(eperl_sourcefiles) 
-	eperl -P -o $@ $<
+	eperl -k -P -o $@ $<
 
 # Override the general rule for eperl-generated files in order to avoid a
 # circular dependency (debian/common.functions is listed in
 # $(eperl_sourcefiles)).
 debian/common.functions: debian/common.functions.in debian/common.variables
-	eperl -P -o $@ $<
+	eperl -k -P -o $@ $<
 
 foo:
 	echo foo

Modified: tex-common/trunk/debian/variables
===================================================================
--- tex-common/trunk/debian/variables	2006-03-29 14:16:48 UTC (rev 1138)
+++ tex-common/trunk/debian/variables	2006-03-29 14:40:27 UTC (rev 1139)
@@ -1,11 +1,16 @@
-<:# Copyright (C) 2004 by Frank Küster <frank at kuesterei.ch>.:>//
-<:# $Id$:>//
-<:use File::Basename:>//
-<:$PACKAGE="tex-common":>//
-<:$FONTCACHE_PERMS="3775":>//
+<:
+# Copyright (C) 2004 by Frank Küster <frank at kuesterei.ch>.
+# $Id$
+
+use File::Basename;
+
+$PACKAGE="tex-common";
+
+$FONTCACHE_PERMS="3775";
+:>//
 #include "common.variables"
 <:
 # Local variables:
-# mode: shell-script
+# mode: perl
 # end:
 :>//




More information about the Pkg-tetex-commits mailing list