[subversion-commit] SVN tetex commit + diffs: r126 - tex-common/trunk/teTeX-build

Frank Küster frank at costa.debian.org
Tue Aug 16 11:30:23 UTC 2005


Author: frank
Date: 2005-08-16 11:30:23 +0000 (Tue, 16 Aug 2005)
New Revision: 126

Removed:
   tex-common/trunk/teTeX-build/common.functions.in
   tex-common/trunk/teTeX-build/common.variables
Log:
these files are copies of the same in debian/, which should be used instead. 

Deleted: tex-common/trunk/teTeX-build/common.functions.in
===================================================================
--- tex-common/trunk/teTeX-build/common.functions.in	2005-08-16 10:13:25 UTC (rev 125)
+++ tex-common/trunk/teTeX-build/common.functions.in	2005-08-16 11:30:23 UTC (rev 126)
@@ -1,203 +0,0 @@
-#include common.variables
-#################################################################
-## Function definitions - included from file common.functions
-#################################################################
-# Copyright (C) 2004 by Frank Küster <frank at debian.org>.
-# $Id: common.functions.in,v 1.1.1.1 2005/06/13 17:21:58 frank Exp $
-
-# internal variables for common.functions
-MKTMPDIR=/tmp
-SYMLINK_MOVE_EXT=<:=$SYMLINK_MOVE_EXT:>
-
-savemove(){
-  source="$1"
-  dest="$2"
-  chown --reference=$dest $source
-  chmod --reference=$dest $source
-  mv $source $dest
-} 
-
-rename_catinfo(){
-  oldfile=$1
-  newfile=$oldfile.$MOVE_EXT
-  echo $INFO_TEXT > $newfile
-  cat $oldfile >> $newfile
-  chmod --reference=$oldfile $newfile
-  chown --reference=$oldfile $newfile
-  rm -f $oldfile
-}
-
-create_tetex_formats(){
-  options="$@"
-  tempfile=`mktemp -p $MKTMPDIR tetex.postinst.XXXXXXXX`
-  echo "Running fmtutil-sys. This may take some time. ..."
-  if fmtutil-sys $options > $tempfile; then
-    rm -f $tempfile
-  else
-    echo
-    echo "fmtutil failed. Output has been stored in"
-    echo "$tempfile"
-    echo "Please include this file if you report a bug."
-    exit 1
-  fi
-}
-
-create_fontmaps(){
-    tempfile=`mktemp -p $MKTMPDIR tetex.updmap.XXXXXXXX`
-    echo -n "Running updmap-sys. This may take some time. ..."
-    if updmap-sys 2> $tempfile; then
-      rm -f $tempfile
-      echo " done."
-    else
-      echo
-      echo "updmap failed. Output has been stored in"
-      echo "$tempfile"
-      echo "Please include this file if you report a bug."
-      exit 1
-    fi
-    echo
-}
-
-handle_stateof_configfile(){
-  # call this function with the correct action (see below) as first
-  # argument, the configuration file to handle as second, and the 
-  # package it belongs to as third argument.
-  #
-  # If you want to understand the function, start reading the --remove
-  # action. The function cannot do all for you! What you have to do
-  # additionally in preinst is outlined in the preinst action.
-
-  CONFIG_FILE="$2"
-  PACKAGE=$3
-
-  # static variables
-  CONFSTATEDIR=<:=$confstatedir:>
-  NO_CONFIG_PREFIX=<:=$no_config_prefix:>
-  PCONFSTATEDIR=$CONFSTATEDIR/$PACKAGE
-  SAVED_CONFIG_FILE=$PCONFSTATEDIR/`basename $CONFIG_FILE`
-  NO_CONFIG_FILE=$PCONFSTATEDIR/$NO_CONFIG_PREFIX.`basename $CONFIG_FILE`
-  TEMP_CONFIG_FILE="$PCONFSTATEDIR/`basename $CONFIG_FILE`.tmp"
-
-  case $1 in
-    --preinst)
-      if [ ! -d "$PCONFSTATEDIR" ]; then
-	mkdir --mode=755 "$PCONFSTATEDIR"
-      fi
- 
-# here comes what you need to do in _your_ preinst script
-
-#     # if an old version is in state rc, we get "$old_version" as second arg
-#     # if an other version is installed, we will be called with upgrade.
-#     # Therefore we know that we install on a clean system if we've got 
-#     # only one argument and first argument is "install"
-#      case $1 in
-#	install)
-#	  if [ $# = 1 ] && [ ! -f $CONFIG_FILE ]; then
-#	    cat > "$TEMP_CONFIG_FILE" <<EOF
-#Put the filecontents here
-#EOF
-#	    mv "$TEMP_CONFIG_FILE" "$CONFIG_FILE"
-#
-#	  fi
-#	  ;;
-#      esac
-      ;;
-    --postinst)
-      if [ ! -f "$CONFIG_FILE" ]; then
-      # the config file does not exist (might also be deleted by the admin)
-	if [ -f "$SAVED_CONFIG_FILE" ]; then
-	# an old version was in state rc, and the admin wants the file
-	  if [ ! -f "$NO_CONFIG_FILE" ]; then
-	    mv "$SAVED_CONFIG_FILE" "$CONFIG_FILE"
-	  else
-	    echo >&2 <<EOF
-Error: 
-$SAVED_CONFIG_FILE and $NO_CONFIG_FILE
-should not be present at the same time on the system. If you did not fiddle 
-with one of these files yourself, please note carefully the last operations
-you did with $PACKAGE (installations, removals, purges, etc.) 
-and file a bug.
-EOF
-	  fi
-	fi
-      fi
-      rm -f $NO_CONFIG_FILE
-
-      ;;
-    --remove)
-      # updon remove, save away the config file (with possible local changes)
-      # or note that the local admin has deleted it.
-      if [ -f $CONFIG_FILE ]; then
-	mv $CONFIG_FILE $SAVED_CONFIG_FILE
-      elif [ ! -f $SAVED_CONFIG_FILE ]; then
-	: > $NO_CONFIG_FILE
-      fi
-      ;;
-    --purge)
-      rm -f "$CONFIG_FILE" "$SAVED_CONFIG_FILE" "$NO_CONFIG_FILE" "$TEMP_CONFIG_FILE"
-      rmdir $PCONFSTATEDIR
-      ;;
-  esac
-}
-
-preinst_move_symlink(){
-  existing_symlink="$1"
-  if [ -e $existing_symlink ] && [ -L $existing_symlink ]; then
-    echo "Removing obsolete symlink $existing_symlink."
-      mv  $existing_symlink  $existing_symlink.$SYMLINK_MOVE_EXT
-
-  fi
-}
-
-preinst_move_dir(){
-  existing_dir="$1"
-  if [ -d $existing_dir ] && [ ! -L $existing_dir ]; then
-    echo "Removing obsolete directory $existing_dir."
-      mv  $existing_dir  $existing_dir.$SYMLINK_MOVE_EXT
-
-  fi
-}
-
-# for abort-upgrade
-preinst_restore_symlink(){
-  stored_symlink="$1"
-  if [ -e $stored_symlink.$SYMLINK_MOVE_EXT ] && [ ! -e $stored_symlink ]; then
-    mv  $stored_symlink.$SYMLINK_MOVE_EXT  $stored_symlink
-  fi
-}
-
-preinst_restore_dir(){
-  stored_dir="$1"
-  if [ -e $stored_dir.$SYMLINK_MOVE_EXT ] && [ ! -e $stored_dir ]; then
-    mv  $stored_dir.$SYMLINK_MOVE_EXT  $stored_dir
-  fi
-}
-
-postinst_remove_saveddir(){
-  saveddir="$1"
-  if [ -e $saveddir.$SYMLINK_MOVE_EXT ] && \
-    [ -L $saveddir ] && \
-    [ -e $saveddir ]; # true if target exists
-    then
-    rm -r $saveddir.$SYMLINK_MOVE_EXT
-  fi
-}
-
-postinst_remove_savedlink(){
-  savedlink="$1"
-  if [ -e $savedlink.$SYMLINK_MOVE_EXT ] && \
-    [ ! -L $savedlink ] && \
-    [ -d $savedlink ];
-    then
-    rm -r $savedlink.$SYMLINK_MOVE_EXT
-  fi
-}
-
-#################################################################
-##  End of function definitions from file common.functions
-#################################################################
-
-# local variables:
-# mode: shell-script
-# skeleton-pair: t
-# end:

Deleted: tex-common/trunk/teTeX-build/common.variables
===================================================================
--- tex-common/trunk/teTeX-build/common.variables	2005-08-16 10:13:25 UTC (rev 125)
+++ tex-common/trunk/teTeX-build/common.variables	2005-08-16 11:30:23 UTC (rev 126)
@@ -1,53 +0,0 @@
-<:# 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: common.variables,v 1.1.1.1 2005/06/13 17:21:58 frank Exp $:>//
-<:# package specific:>//
-<:$ETC="/etc/":>//
-<:$etc="/etc/texmf/":>//
-<:$doc="/usr/share/doc/$PACKAGE/":>//
-<:$MKTMPDIR="/tmp":>//
-<:$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":>//
-<:$confstatedir="/var/lib/tetex":>//
-<:$no_config_prefix="admin-wants-no":>//
-<:# get the package version:>//
-<:open(CHANGELOG,"changelog");
-# 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 vor a sarge backport:>//
-<:if ( ($rev=$VERSION)=~ s/.*-([[:digit:]]*).*/$1/, $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.sarge$2/;
-}:>//
-<:$README_sarge=''; $README_sarge='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):>//
-<:
-# local variables:
-# mode: shell-script
-# end:
-:>//




More information about the Pkg-tetex-commits mailing list