preinst is in tex-common 2.10.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 | #!/bin/sh -e
#
# preinst maintainer script for the Debian tex-common package.
# $Id: preinst.in 4540 2010-01-18 16:59:06Z preining $
# don't try to understand this generated script as installed with the package.
# instead, look at the source files in the source package
# Copyright (C) 2004 by Frank K�ster <frank@kuesterei.ch>.
#
# The eperl code is taken from the auctex package, Copyright (C) 1999,
# 2000, 01, 02, 03, 04 by Davide Giovanni Maria Salvetti.
#
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.
#
# This file is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to: The Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
#
# On Debian GNU/Linux System you can find a copy of the GNU General Public
# License in "/usr/share/common-licenses/GPL".
## Variables needed for upgrading
FIRST_VERSION_WITH_UPGRADE_PATH=0.3
#################################################################
# Functions
#################################################################
###############################################################################
# cfgval(variable)
# read variable ($1) from config file, first match wins
# this is a copy of a function in postinst.functions
###############################################################################
# from tetex-bin's updmap
cfgval()
{
cnfFile="$1"
opt="$2"
cat "$cnfFile" | sed -n 's/^'"$opt"'[ =][ =]*//p' | sed q
}
###############################################################################
# updmap_extract ()
# we extract the settings from an existing 00updmap.cfg that belonged to
# tetex-base. If the settings are unchanged from tetex-base's defaults
# (2.0.2), ucf will know the md5sum and make the changes 2.0.2->3.0
###############################################################################
updmap_extract(){
#
# The file itself is stored, so that tetex-base can also extract its settings.
conffile=/etc/texmf/updmap.d/00updmap.cfg
dfltfile=/usr/share/tex-common/00updmap.cfg
keepfile=/etc/texmf/updmap.d/10tetex-base.cfg.postinst-old
tetex_base_file=/etc/texmf/updmap.d/10tetex-base.cfg
oldmd5sum="82884281d955998e22141cf67b45209d"
options="dvipsPreferOutline pdftexDownloadBase14 dvipdfmDownloadBase14 dvipsDownloadBase35 LW35"
# is no old version installed?
test ! -f "$conffile" && return 0 || true
# is it changed?
if [ ! "$oldmd5sum" = "`md5sum $conffile | cut -d ' ' -f 1`" ]; then
# changed.
# stow away a copy for tetex-base
if [ ! -f $keepfile ]; then
cat > $keepfile <<EOF
This file contains the parts of what was called 00updmap.cfg in
teTeX-2.0.2 that now are handled by tetex-base in 10tetex-base.cfg,
or tetex-extra in 20tetex-extra.cfg.
If you have local changes, please transfer them manually. Changes
in the items that are still in 00updmap.cfg have been transferred.
EOF
sed -e '0,/^# Map files should be marked by/ d; 1,/^$/ d' \
$conffile >> $keepfile
fi
# get the new defaults
# for option in $options; do
# eval dflt_$option=`cfgval $dfltfile $option`
# done
# set the settings we had in tetex-base 2.0.2
dflt_dvipsPreferOutline=true
dflt_LW35=URWkb
dflt_pdftexDownloadBase14=false
dflt_dvipdfmDownloadBase14=false
dflt_dvipsDownloadBase35=false
# compare with current settings, and create a new file
SETTING_CHANGED=false
tempdir=`mktemp -d`
tempfile1=`mktemp -p $tempdir`
trap 'cleanup' HUP INT QUIT BUS PIPE TERM
cp -p $dfltfile $tempfile1
for option in $options; do
eval $option=`cfgval $conffile $option`
if eval [ ! "\$$option" = "\$dflt_$option" ]; then
SETTING_CHANGED=true
tempfile2=`mktemp -p $tempdir`
optname=$option
eval optvalue=\$$option
eval optoldvalue=\$dflt_$option
sed -e "s@^[[:space:]]*$optname[[:space:]]*$optoldvalue@$optname $optvalue@" $tempfile1 > $tempfile2
mv $tempfile2 $tempfile1
fi
done
if [ "$SETTING_CHANGED" = "true" ]; then
# this mv command will give a "conffile changed by you or a script" message next time
# we change it - but that is exactly what has happened: The user has changed options,
# and the script has just transferred them to a new file.
mv $tempfile1 $conffile
chmod a+r $conffile
else
# this part is unchanged, just remove and ucf-purge the file, it will be
# reinstalled by postinst (a copy is already saved).
rm -f $tempfile1 $conffile
ucf --purge $conffile
if test -x "`which ucfr`" ; then
ucfr --purge tex-common $conffileA
fi
fi
rm -rf "$tempdir"
else
# unchanged, just remove and ucf-purge the file, it will be
# reinstalled by postinst
rm -f $conffile
ucf --purge $conffile
if test -x "`which ucfr`" ; then
ucfr --purge tex-common $conffile
fi
fi
}
# # #################################################################
## Function definitions - included from file common.functions
#################################################################
# Copyright (C) 2004, 05, 06 by Frank Küster <frank@debian.org>.
# Copyright (C) 2006 by Julian Gilbey <jdg@debian.org>.
# $Id: common.functions.in 4549 2010-01-27 00:10:36Z preining $
# internal variables for common.functions
SYMLINK_MOVE_EXT=moved-by-preinst
TEXMFSYSVARDIR=/var/lib/texmf
debug(){
true "$*"
}
# debug(){
# echo -en "$*"
# }
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="$@"
printf "Running fmtutil-sys. This may take some time... "
# for jadetex safety (see #352391 and friends), remove old latex formats
if [ "$options" = "--all" ];
then for file in latex.fmt latex.efmt latex.log pdflatex.fmt pdflatex.efmt pdflatex.log; do
rm -f $TEXMFSYSVARDIR/web2c/$file
done
fi
# Working in a temporary directory avoids bad suprises caused by TeX first
# looking for input files in the current directory (see bug #377581).
tempdir=$(mktemp -d -t tetex.format_creation.XXXXXXXX) || exit 1
curdir="$PWD"; cd "$tempdir"
if fmtutil-sys $options >fmtutil-sys.log; then
cd "$curdir"
rm -r "$tempdir"
echo "done."
else
echo
echo "fmtutil-sys failed. Output has been stored in:"
echo " $tempdir/fmtutil-sys.log"
echo "Please include this file if you report a bug."
exit 1
fi
}
create_fontmaps(){
tempfile=$(mktemp -t tetex.updmap.XXXXXXXX)
printf "Running updmap-sys. This may take some time... "
if updmap-sys 2> $tempfile; then
rm -f $tempfile
echo "done."
else
echo
echo "updmap-sys 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=
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
}
select_lsrfile() {
case $1 in
main) LSR=$TEXMFSYSVARDIR/ls-R-TEXMFMAIN ;;
var) LSR=$TEXMFSYSVARDIR/ls-R ;;
cache) LSR=/var/cache/fonts/ls-R ;;
*) echo "select_lsr: don't know how to set this: $1" >&2 ;;
esac
echo $LSR
}
clean_texenvironment(){
envvars="AFMFONTS BIBINPUTS BSTINPUTS CMAPFONTS CWEBINPUTS ENCFONTS GFFONTS \
GLYPHFONTS INDEXSTYLE LIGFONTS MAILCAPLIBDIR MFBASES MFINPUTS MFPOOL MFTINPUTS \
MIMELIBDIR MISCFONTS MISSFONT_LOG MPINPUTS MPMEMS MPPOOL MPSUPPORT MPXCOMMAND \
OCPINPUTS OFMFONTS OPENTYPEFONTS OPLFONTS OTPINPUTS OVFFONTS OVPFONTS PDFTEXCONFIG \
PKFONTS PSHEADERS SFDFONTS SYSTEXMF T1FONTS T42FONTS T4HTINPUTS TEX4HTFONTSET \
TEX4HTINPUTS TEXCONFIG TEXDOCEXT TEXDOCHTML TEXDOCS TEXDOCSCOMPRESS TEXDOCSSUFFIX \
TEXFONTMAPS TEXFORMATS TEX_HUSH TEXINPUTS TEXMF TEXMFCNF TEXMFCONFIG TEXMFDBS \
TEXMFDIST TEXMFHOME TEXMFLOCAL TEXMFMAIN TEXMFSCRIPTS TEXMFSYSCONFIG TEXMFSYSVAR \
TEXMFVAR TEXPICTS TEXPOOL TEXPSHEADERS TEXSOURCES TFMFONTS TRFONTS TTFONTS \
VARTEXFONTS VFFONTS WEB2C WEBINPUTS"
for var in $envvars; do
unset $var || true
done
}
get_newfilename(){
file="$1" # without leading /etc/texmf
basedir=${file%%/*}
restname=$(echo ${file#*/})
case $basedir in
$file)
case $file in
modes.mf)
echo metafont/misc/modes.mf
;;
mktex.cnf)
echo web2c/mktex.cnf
esac
;;
map)
echo fonts/$file
;;
dvips)
echo $basedir/config/$restname
;;
*)
echo tex/$basedir/config/$restname
;;
esac
}
dpkg_md5sum(){
file=$1
package=$2
md5sum=$(dpkg-query -W -f='${Conffiles}' $package | grep "$file[[:space:]]" | cut -f 3 -d ' ')
if [ -z "$md5sum" ]; then
get_sarge_md5sum_from_list $file
fi
echo $md5sum
}
ucf_md5sum(){
file=$1
md5sum=$(grep "$file$" /var/lib/ucf/hashfile | cut -f 1 -d ' ')
if [ -z "$md5sum" ]; then
get_sarge_md5sum_from_list $file
fi
echo $md5sum
}
sarge_md5sum_list="
/etc/texmf/mktex.cnf 6491db33ef75bbe4f38a6dcbdcab7db8
/etc/texmf/modes.mf 17886f0a39f023a1830538073a743047
/etc/texmf/context/cont-cz.ini 984f5ed1242258775b9c6e5e8b219a26
/etc/texmf/context/cont-de.ini c2c75aaddf59e7cd1d14ef3661578eef
/etc/texmf/context/cont-en.ini 5d7064e3adc9acdaf94e37e9bc5c1a29
/etc/texmf/context/cont-it.ini 96366065e347eab53a30e72d9a6e4ca0
/etc/texmf/context/cont-nl.ini 25cbcc11164d749693de4eea197a9c65
/etc/texmf/context/cont-ro.ini a94fd43e68156f57e6bf3ac4a901af14
/etc/texmf/context/cont-uk.ini ee6f13cd52623786f7a13c151900ec50
/etc/texmf/context/cont-usr.tex 15b671e578d517dc54df1db022c3f412
/etc/texmf/context/texexec.ini 1497213cfcfded9d1ae2e5546cf55fc4
/etc/texmf/cslatex/fonttext.cfg 1129c41c24cf37f4d2cad6deca949fb1
/etc/texmf/cslatex/hyphen.cfg 987e934d95d372902b0e1a81d3dc3802
/etc/texmf/cyrplain/cyramstx.ini 15d4ba30419b36376851a124619e20ba
/etc/texmf/cyrplain/cyrtex.cfg 843bd70324caf63d72269dd3afdd8eb1
/etc/texmf/cyrplain/cyrtex.ini 40ae6def8399827a80f3736e5fb1cdf5
/etc/texmf/cyrplain/cyrtxinf.ini 797f2dae2d06396a4b40b1454609f025
/etc/texmf/dvipdfm/config 8713d15e9e574109c61474a3990b677f
/etc/texmf/dvipdfm/README.config 2731fe134e122f315d91cae400a6b13e
/etc/texmf/dvips/config.builtin35 5775e9a2ec5e89c44f03c49a84133c76
/etc/texmf/dvips/config.dfaxhigh 1c7ef7c0bcc006af534241df17d1e085
/etc/texmf/dvips/config.dfaxlo 25b7f9a41d13d188b75fb6ec63e8fa09
/etc/texmf/dvips/config.download35 39bb1088ea568d10973f48293c205a8e
/etc/texmf/dvips/config.gsftopk e02bc7dd315e819e349c52191837975a
/etc/texmf/dvips/config.ps 7402075ae27071bff26ddeb1143ace07
/etc/texmf/dvips/config.outline e671960560b7cb570aef7f19af14519a
/etc/texmf/dvips/config.pdf d05ab1e98fcf0d2a4eccd4bb7ad9b0e4
/etc/texmf/dvips/config.pk 44348634a3771beda74b4133a8614fa5
/etc/texmf/dvips/config.www ba6b447883942b5f0d653d878072321b
/etc/texmf/dvips/context.map 0c886351c178a140f3e2b6e39656ee44
/etc/texmf/etex/etex.ini eb7eeca34d4f7c338480ae2f1e95dae6
/etc/texmf/etex/language.def e28ea8119d0edaea53f2a55bd5a13bf5
/etc/texmf/latex/color.cfg d77957eef96e7e9a4bdc3d1d24a49df3
/etc/texmf/latex/graphics.cfg 3f384c52d267b7f0a50fb71fab57d60f
/etc/texmf/latex/latex.ini 09e4f410ade0befce1e0bacf8e272789
/etc/texmf/latex/latex209.cfg c9af399f9747715e21b6e64daa4e5916
/etc/texmf/latex/ltxdoc.cfg 50cf6ee9115a007246d2d79e350a8592
/etc/texmf/latex/ltxguide.cfg cc8dbfee5a57b4ae20bb77cc6aeb0e1f
/etc/texmf/latex/texsys.cfg 055c0b3967730e2dd75dee66ccde2687
/etc/texmf/latex/fontmath.cfg ee0a90dac1a81d3aee68f1abdbbd5839
/etc/texmf/latex/fonttext.cfg 6be6de7b54df7d13a8831138e7f1297b
/etc/texmf/latex/preload.cfg a2df76edd8245ce697c998dd4cbf060f
/etc/texmf/map/dvips/context/il2-ams-cmr.map cc471142a76445139def6ad5b5202ad4
/etc/texmf/map/dvips/context/pl0-ams-cmr.map 0bf5e38fde2a67bb4df7cdb11e499175
/etc/texmf/pdftex/context/il2-ams-cmr.map cc471142a76445139def6ad5b5202ad4
/etc/texmf/pdftex/context/original-adobe-euro.map ee2826182cf6f1b95890e8b7d0fc9633
/etc/texmf/pdftex/context/original-ams-cmr.map 5912f95748bc1917f14632e48cc223ac
/etc/texmf/pdftex/context/original-ams-euler.map 878c01a7de86554eb41ff74a0b752f5f
/etc/texmf/pdftex/context/original-context-symbol.map 7090f11f5bee8f5e9b46841f286d1df9
/etc/texmf/pdftex/context/original-vogel-symbol.map e4f07d28e80b93ad2513a3e812541f32
/etc/texmf/pdftex/context/original-youngryu-px.map b17cc8cb081cb34cbff9e197c1e97512
/etc/texmf/pdftex/context/original-youngryu-tx.map 229dbd1882f3378c4dd21e353489f03a
/etc/texmf/pdftex/context/pl0-ams-cmr.map 0bf5e38fde2a67bb4df7cdb11e499175
/etc/texmf/pdftex/context/pl0-ams-cmr.map 0bf5e38fde2a67bb4df7cdb11e499175
/etc/texmf/pdftex/cmttf.map 6b87723795683cdcfd846c2d8d60cb3e
/etc/texmf/pdftex/pdftex.cfg 8d08d2723661c86cd45e4a1408a5f923
/etc/texmf/platex/hyphen.cfg 1199fd3dbe752e8eedaca7a5a6df9258
/etc/texmf/platex/language.dat 8e3525fe40ae72bb08f673b30eca1236
/etc/texmf/platex/platex.ini c865212575be3a09cbadb694a803ca55
/etc/texmf/dvips/config.ams df69e80e8157afde30550f21317bbd6d
/etc/texmf/dvips/config.cm 363c5ef43576af28b14330ae78ed5de8
/etc/texmf/dvips/config.amz 0ef9213edceaaba3185a79e5946c8411
/etc/texmf/dvips/config.cmz 949213a1865415e6f5199188ee57419e
/etc/texmf/latex/SIunits.cfg e1c35ec7ca1a5a17ac67ecbdabb6990b
/etc/texmf/latex/draftcopy.cfg 339604ed6e259f766281201bc26a3ebf
/etc/texmf/latex/geometry.cfg 10ea5acebcdd8c1f6e50c6059a86fc4b
/etc/texmf/latex/hyperref.cfg 6865c020b50d426d7d3893193933f852
/etc/texmf/latex/lettrine.cfg 980963bc52386638361f704f2316092b
/etc/texmf/latex/seminar.con e72fce0eed20a2c0ffe505578a517937
/etc/texmf/latex/listings.cfg cda21886f370b2a08959be5b7c522bd0
/etc/texmf/latex/jblong.cfg 1ff923049f25d755e3c598f1f9bd7321
/etc/texmf/latex/jurabib.cfg d4655b3681c0a8be21267ee31a200164
/etc/texmf/latex/efxmpl.cfg 8e5a8e1829832aefb9e6190365201470
/etc/texmf/latex/adrplaner.cfg 26a0aedd3f777b141037b8bf0b992c92
/etc/texmf/latex/adrdir.cfg fafff964038150fa8cf034d92a56ee77
/etc/texmf/latex/adrsmall.cfg 6fdd42917d54ebb2389c6f4e4a13ae6c
/etc/texmf/latex/htex4ht.cfg 9f3b36f33fd350aa315a4a3a40c87ef9
/etc/texmf/lambda/language.dat b7b70636a817d3f75f28a107c240d2cf
/etc/texmf/dvips/config.qbk ba3f00776ea78362953c9211a09c09d7
/etc/texmf/dvips/config.qcr 13822cff599bb1dc574a038f0d86a362
/etc/texmf/dvips/config.qhv 7c77d2e5f9ca96fbfda5f3f6c68d8287
/etc/texmf/dvips/config.qpl b36d7997a69aec7389a9580513750755
/etc/texmf/dvips/config.qtm 8cc586156ba303881e41671f7d5d8227
/etc/texmf/dvips/config.qzc ba705b343b90b615012fa41d5a7016d5
"
woody_md5sum_list="
/etc/texmf/dvips/antp.cfg 5fdea5dec2977f321c1d39b90f161858
/etc/texmf/dvips/antp.map 629cf954491b5092f56c79ba12761eb7
/etc/texmf/dvips/antt.cfg eb9863fe55c45357f3e93cc0f796df7d
/etc/texmf/dvips/antt.map 015d3ea75dda8f11ac4d3d376fc3f4f9
/etc/texmf/dvips/ar-ext-adobe-bi.map 7587ed88b27b0e85585bc2300d1c2a9a
/etc/texmf/dvips/ar-ext-adobe-kb.map b3e9ba6adac40cb9499d8f7c5bb7e6c3
/etc/texmf/dvips/ar-ext-urw-kb.map 1e18d58b346a184b2c009e8a2611cf6c
/etc/texmf/dvips/ar-ext-urw-urw.map 4613ccfaa28c351167239a049149076f
/etc/texmf/dvips/ar-std-adobe-bi.map b8729c41827597f2a5d9dc293a6257a3
/etc/texmf/dvips/ar-std-adobe-kb.map 4d5a5faacb6bb60ba44a040df0485c8f
/etc/texmf/dvips/ar-std-urw-kb.map 7c95efc06585ece0cad0c73f9bbe92bb
/etc/texmf/dvips/ar-std-urw-urw.map 512269272f1ec556035c8d4b38db4175
/etc/texmf/dvips/bakoma-extra.map 2deed84112de63c43d532bbd1dd51afa
/etc/texmf/dvips/bsr-interpolated.map b1810467ac2e91f76745f0eaed3eddc6
/etc/texmf/dvips/bsr.map dd57d8b9b4cc4fee6c4869ccb637f7d3
/etc/texmf/dvips/charter.map bcbe669e6587e1c0b9fbf5d3ac69a716
/etc/texmf/dvips/cmcyr.map 1fa90ba90a5ac959be73acbbf993aaa6
/etc/texmf/dvips/config.ams 32c36b063268c5e45819fe8114ce3cf0
/etc/texmf/dvips/config.amz b9c14f2d2e3923372e9067e2e1ee47b5
/etc/texmf/dvips/config.antp 5fdea5dec2977f321c1d39b90f161858
/etc/texmf/dvips/config.antt eb9863fe55c45357f3e93cc0f796df7d
/etc/texmf/dvips/config.cm 68d23ead2901dddbc1779c905806b783
/etc/texmf/dvips/config.cmz 830f16e1e39c67b1c665a8b09824a7b4
/etc/texmf/dvips/config.mirr 0e8b7634e3aeace8b57e240cb93408f6
/etc/texmf/dvips/config.pl a516410ffe6bcea727b688cdbff15c45
/etc/texmf/dvips/config.qf d8faeac49b163e20f2d5f7664fd4d312
/etc/texmf/dvips/cs.map b9727dbb85c735942232d9e77c548892
/etc/texmf/dvips/hoekwater.map bc6bdcc34147938cac35dd9cbfcf5461
/etc/texmf/dvips/lucidabr.map 75651df30093b42f15a137f4e8abb2d0
/etc/texmf/dvips/lw35extra-adobe-bi.map 11264229d954278095d041a7d406a1de
/etc/texmf/dvips/lw35extra-adobe-kb.map b599fd43351ddf92787bc4d45b210b33
/etc/texmf/dvips/lw35extra-urw-kb.map 22fad0272384ba9040e095cb23f5b751
/etc/texmf/dvips/lw35extra-urw-urw.map 947b2971882ac3defc4e1539e08d7755
/etc/texmf/dvips/marvosym.map b62e3abdcb114dbc2a09cf34f7d8d1d3
/etc/texmf/dvips/mathpi.map b583f43ff524840a455391c507a91630
/etc/texmf/dvips/mathpple-ext.map 34ae5407fab3660f7121fcad21016a70
/etc/texmf/dvips/mt-belleek.map 347a0440cf51e36f53fe76e205c71280
/etc/texmf/dvips/mt-plus.map 1a905e8e34fab38aa54af13dc1479864
/etc/texmf/dvips/mt-yy.map 6b31a726154f4542f030d1f73186683d
/etc/texmf/dvips/mtsupp-ext-adobe-bi.map 81bcdf8701d93786913a0139a7c37592
/etc/texmf/dvips/mtsupp-ext-adobe-kb.map bd64720edf9c35db323305d801b11be5
/etc/texmf/dvips/mtsupp-ext-urw-kb.map 74d836235b7c35e3af5fcef8404d6f86
/etc/texmf/dvips/mtsupp-ext-urw-urw.map 88297fe4c49421bb283d4b70cc6edf83
/etc/texmf/dvips/mtsupp-std-adobe-bi.map 8bb11a1c60587515f5d77170167f7f57
/etc/texmf/dvips/mtsupp-std-adobe-kb.map 95fca79f2bb903589501b60623cf2a70
/etc/texmf/dvips/mtsupp-std-urw-kb.map 464234ad0a8c06b5411e6bb69c69407f
/etc/texmf/dvips/mtsupp-std-urw-urw.map 500150762c74095610b6d57250f94b3b
/etc/texmf/dvips/omega.map 3d6c7dd276926b59b23ffdf03fb0572f
/etc/texmf/dvips/pazo.map d3595db441a758df87659e4818b38690
/etc/texmf/dvips/pdftex.map 3d0e6e8f2d699c2f34d07d49e4de040d
/etc/texmf/dvips/pl.cfg a516410ffe6bcea727b688cdbff15c45
/etc/texmf/dvips/pl.map b4c7ab7e7f366132ade80179181529b5
/etc/texmf/dvips/ps2pk.map a5252a3d87db54b810b75296cceca7e6
/etc/texmf/dvips/psfonts.map 30c95da0f4ba9c7fca1558212a245058
/etc/texmf/dvips/psnfss.map f00b2d47c09074b3f7c138adac928731
/etc/texmf/dvips/qpl.map f80cdfb21c7d47450d922bcdf2f0d741
/etc/texmf/dvips/qtm.map 8597ab2c2c1f30a5eb338200c752bcc4
/etc/texmf/dvips/raw-ar-ext-adobe-bi.map f625673c720a566fefc3adb2a330b0c6
/etc/texmf/dvips/raw-ar-ext-adobe-kb.map 99fa23110abc0b6322b168cd942abb00
/etc/texmf/dvips/raw-ar-ext-urw-kb.map a15eccb4c519784b0382e98b35462584
/etc/texmf/dvips/raw-ar-ext-urw-urw.map 4e4c658e639ed63d6b089e970d5b8790
/etc/texmf/dvips/raw-ar-std-adobe-bi.map 8f075586c668dd49d6659a47f80ca222
/etc/texmf/dvips/raw-ar-std-adobe-kb.map 420803cd71d69a67d30e01414a4b0b7c
/etc/texmf/dvips/raw-ar-std-urw-kb.map d9761c9236ba5f72a6a1db0add78e4c0
/etc/texmf/dvips/raw-ar-std-urw-urw.map a46a2fd9dc6c2b8d1520e9c5b8947293
/etc/texmf/dvips/raw-lw35extra-adobe-bi.map b8f9a068495e84954575da333dbff52b
/etc/texmf/dvips/raw-lw35extra-adobe-kb.map 90090d802aa0591abd0897c836119e43
/etc/texmf/dvips/raw-lw35extra-urw-kb.map e2ab5453857be7683779788218ea9e78
/etc/texmf/dvips/raw-lw35extra-urw-urw.map de4b3fc35de1dc73202d1ea31a018bc7
/etc/texmf/dvips/updmap ae1883f5a9a065d8b290943783ae5699
/etc/texmf/dvips/utopia.map 1486b1d114c9b279cdfebaffa7a6d47f
/etc/texmf/dvips/xypic.map 76252f9400b09fd41094c59d3ec887ae
/etc/texmf/varfontdirs.debian 7a37da968bb865bde339fb44818ba44a
"
teTeX3_md5sumlist="
/etc/texmf/latex/microtype.cfg 649944bb5f193e75dba7604b9515317f
/etc/texmf/map/dvips/ams/psfonts.ams 4b9748dab405dfea8ed231f49c6d41be
/etc/texmf/map/dvips/ams/psfonts.amz b50e059ec6e8100fe2117c6369f481be
/etc/texmf/map/dvips/ams/psfonts.cm 32e4fd405f16fba1efa4b30b3eb6fbb2
/etc/texmf/map/dvips/ams/psfonts.cmz 5e4704775fe8b7a50da60d0c89bddbb6
/etc/texmf/map/dvips/misc/eurosym.map d166c4724e8ba420f96a1f09a520a571
/etc/texmf/map/dvips/omega/omega.map 4e8b9ee7c3eeaf1f29acfb4e8498a300
/etc/texmf/map/dvips/tetex/bsr-interpolated.map ff9ed6a46c278b41fe8fbbb6a2dff340
/etc/texmf/map/dvips/tetex/bsr.map 0b0b15d8614b7b0fea0e39c4e0aac0d5
/etc/texmf/map/dvips/xypic/xypic.map 76252f9400b09fd41094c59d3ec887ae
/etc/texmf/latex/mt-bch.cfg 614a80d4ecd37228b91cc2218bf2318e
/etc/texmf/latex/mt-cmr.cfg 0628cdefd394aa8cf76e81b25b202939
/etc/texmf/latex/mt-pad.cfg b8eb5e92c7fc74cfc76981cd2060efb1
/etc/texmf/latex/mt-pmn.cfg 9590d6f8df10679a1bb1b3688debdc60
/etc/texmf/latex/mt-ppl.cfg fd4be8fc50f24b2f71af4437aecd1b45
/etc/texmf/latex/mt-ptm.cfg d45476b9dc1ccafdbe47ab3421ed6487
/etc/texmf/latex/pict2e.cfg b16b3616fed72f01eb96e9db61b4c6b2
/etc/texmf/latex/subfig.cfg 6576eee12179b8e6e74a61803dccd4e8
/etc/texmf/latex/subfigure.cfg 42ba738bf6f1cec796106a69840777a4
/etc/texmf/map/dvips/tetex/ttcmex.map 30b444ca3bdddc7385674a264a88fc71
/etc/texmf/map/dvips/tetex/txfonts.map 1517cdcd00753f4cf479e1cd902e5565
/etc/texmf/map/dvips/urwvn/urwvn.map 3957d2189b90cf29432d11f3940f07a9
/etc/texmf/map/dvips/vntex/vnr.map e24ba6c5dba7177b97b1f09674b2efdd
/etc/texmf/map/dvips/context/8r-base.map 79cfc6242d56d94a474f82cf68b9b4f7
/etc/texmf/map/dvips/context/context-base.map 47f25cd8bbd06782c0c37e3a59fd2ad5
/etc/texmf/map/dvips/context/cork-public-lm.map 52c874fe89509d5c5680f7bf065021a8
/etc/texmf/map/dvips/context/cork-var-exclusive-public-lm.map d390da268671bfe0534a0e2f6f755ebe
/etc/texmf/map/dvips/context/cork-var-public-lm.map a9736f8a7e667b6e25a5d73743779424
/etc/texmf/map/dvips/context/ec-base.map dac422cda2e42ebc444a9c0a5270118d
/etc/texmf/map/dvips/context/ec-public-lm.map 52c874fe89509d5c5680f7bf065021a8
/etc/texmf/map/dvips/context/ec-var-exclusive-public-lm.map 8d8b3e2d03a46945abe9166ae8717980
/etc/texmf/map/dvips/context/ec-var-public-lm.map 5bba1aec7dc180ab5c7a14a8c7f37307
/etc/texmf/map/dvips/context/original-adobe-euro.map ee2826182cf6f1b95890e8b7d0fc9633
/etc/texmf/map/dvips/context/original-base.map d2769316abae0730b0ba7302f8445bad
/etc/texmf/map/dvips/context/original-context-symbol.map 7090f11f5bee8f5e9b46841f286d1df9
/etc/texmf/map/dvips/context/original-dummy.map c73e4c248c1b10fb4c2dba637e2ab5ac
/etc/texmf/map/dvips/context/original-empty.map c62254f50983f6bd7a9ba0b9c8a454e1
/etc/texmf/map/dvips/context/original-micropress-informal.map b1193c3602a01d34e7325a154d7d0752
/etc/texmf/map/dvips/context/original-public-csr.map 1b65adecb4e19df833eb7e74a0ba81f1
/etc/texmf/map/dvips/context/original-public-lm.map 0e1d5937d6b78e933e6e9c82ef9aef60
/etc/texmf/map/dvips/context/original-public-plr.map bb5e9c65080da1f780d52ca6d665c53b
/etc/texmf/map/dvips/context/original-vogel-symbol.map e4f07d28e80b93ad2513a3e812541f32
/etc/texmf/map/dvips/context/psclean.map 3827b27c947b8ccf50010649d7deebd0
/etc/texmf/map/dvips/context/qx-base.map 114614226629844c7e2895907254747b
/etc/texmf/map/dvips/context/qx-public-lm.map 6f4469307efb3d5219f8a59eb90439a0
/etc/texmf/map/dvips/context/texnansi-base.map 4b4834091ada92c2bea9d04d64f367cc
/etc/texmf/map/dvips/context/texnansi-public-lm.map 19dd099ceadcc329c4b6a46e8c1f8837
/etc/texmf/map/dvips/context/texnansi-var-exclusive-public-lm.map f06fac31ec825d35a478551652c28764
/etc/texmf/map/dvips/context/texnansi-var-public-lm.map 9114ed6275fb2d9e17bb5fb7de8d76a6
/etc/texmf/map/dvips/context/original-public-vnr.map f83114a5d4489dea4223d3d54dbaed2a
/etc/texmf/map/dvips/context/t5-base.map edfab2c556e71e69081803d366c32f36
/etc/texmf/map/dvips/context/t5-public-lm.map ba63279e67979c19cadcd2115b1a9b8d
/etc/texmf/map/dvipdfm/tetex/cm-dvipdfm-fix.map 6df4e61f14013914f4c232465f38b096
/etc/texmf/map/pdftex/cmttf/cmttf.map 6b87723795683cdcfd846c2d8d60cb3e
/etc/texmf/map/dvips/tetex/contnav.map 841fb6fa662cdee17994748492e8493c
/etc/texmf/generic/pdftexconfig.tex edd42bc8e0c2768a6e84c3bd5f41eb4a
/etc/texmf/generic/fontmath.cfg bf78874db3d6425f6f98d7dc6fd3ad74
/etc/texmf/generic/fonttext.cfg 1871c2f77ee3c2ea6bad3c786d4b6b4f
/etc/texmf/generic/preload.cfg 63a7532825e1f8f5742fa392577e9101
/etc/texmf/map/dvips/context/original-ams-euler.map baef813cea1c95eaf5782cd5c4db593d
/etc/texmf/map/dvips/context/original-ams-cmr.map 9f6c7359622ba2fe1cbbe36c8b40c07f
/etc/texmf/map/dvips/context/original-youngryu-tx.map efd89c4c9790b92c19dd9c94307c2497
/etc/texmf/pdftex/context/original-youngryu-px.map aac975fbf317cb2c3af057ae011f0356
/etc/texmf/map/dvips/qfonts/qbk.map a880a86dc59af79fa21176109426e002
/etc/texmf/map/dvips/qfonts/qcr.map 0dde05fe1edf9d22c1c33abb308337b5
/etc/texmf/map/dvips/qfonts/qhv.map 1b7d8cecc9b2037b4e14be6aec821425
/etc/texmf/map/dvips/qfonts/qpl.map 7d59433ee7e9ba0bab61973797280d01
/etc/texmf/map/dvips/qfonts/qtm.map 440385da4f2f40e53440d9e0e7782a6b
/etc/texmf/map/dvips/qfonts/qzc.map 59e87840844241fe3eede78368c13ff6
/etc/texmf/map/dvips/tetex/dvipdfm35.map ed194cf7240a45cb458c5ec174045cc6
/etc/texmf/map/dvips/tetex/dvips35.map ca61c59bcecd9f75c90f8b03416533f9
/etc/texmf/map/dvips/tetex/hoekwater.map bc6bdcc34147938cac35dd9cbfcf5461
/etc/texmf/map/dvips/tetex/lucidabr-o.map d8125ebea10915ba2e5ab2d5168f1a4e
/etc/texmf/map/dvips/tetex/lumath-o.map 374a42867948c28911301aa8ae4b9f73
/etc/texmf/map/dvips/tetex/mathpple.map bc2531931c6ab748e6a507803cc06f28
/etc/texmf/map/dvips/tetex/mt-belleek.map 347a0440cf51e36f53fe76e205c71280
/etc/texmf/map/dvips/tetex/mt-plus.map 4895bcb036ff481e067daec1a196b25a
/etc/texmf/map/dvips/tetex/mt-yy.map 7fb24232a249e9e899c97eaf33f6a7af
/etc/texmf/map/dvips/tetex/pdftex35.map 29f11fe462735f27af57ca893e37362d
/etc/texmf/map/dvips/tetex/ps2pk35.map f0d12d8dd8472e7fee1019c46b8718b6
/etc/texmf/map/dvips/tetex/pxfonts.map d92a7aba5febb36b3179de747bd7c099
/etc/texmf/map/dvips/antp/antp.map 50e9ff27840e0c2225fe2ab10658b5d3
/etc/texmf/map/dvips/antt/cork-antt.map b6d42f790e3bff20f56735ff6b612f57
/etc/texmf/map/dvips/antt/cs-antt.map 19e8e4a13d77ca47e0a0c1acb254ad0d
/etc/texmf/map/dvips/antt/exp-antt.map 08919cd0c39577f860f8b4c7a64c2b3d
/etc/texmf/map/dvips/antt/greek-antt.map 67f6c7038c5963663bd5516c10acba4e
/etc/texmf/map/dvips/antt/qx-antt.map 669ebfc8198223b41e4008ef3d74f508
/etc/texmf/map/dvips/antt/t2a-antt.map 1c9bd0a971ecf0cfa0e9ee9c57bbb100
/etc/texmf/map/dvips/antt/t2b-antt.map 0f3018935e9047a6965941dc1899fdfa
/etc/texmf/map/dvips/antt/t2c-antt.map 1d57e45d10a6d9015e393cf7160be328
/etc/texmf/map/dvips/antt/texnansi-antt.map 4baf42d2478c8a7e7d7e19b7dff03256
/etc/texmf/map/dvips/antt/wncy-antt.map 60aeb6f763540cb9eae371bf6977c84f
/etc/texmf/map/dvips/antt/t5-antt.map afbb27d29fbebd8976f22623811a940e
/etc/texmf/map/dvips/cc-pl/ccpl.map f2b809a52174b30918426e94ef56b86b
/etc/texmf/map/dvips/lucida/lucidabr-k.map 30174ed3e1f4cba2731c22dd9571f1b1
/etc/texmf/map/dvips/lucida/lucidabr.map c3b6c5489b772e235158b3c22117a95a
/etc/texmf/map/dvips/lucida/lumath-k.map ef1b8f1edbab74b19e450d732c8befa4
/etc/texmf/map/dvips/lucida/lumath.map fed199fec8770f09c201208602978e04
/etc/texmf/map/dvips/misc/cmcyr.map 1fa90ba90a5ac959be73acbbf993aaa6
/etc/texmf/map/dvips/misc/cs.map b9727dbb85c735942232d9e77c548892
/etc/texmf/map/dvips/misc/marvosym.map b62e3abdcb114dbc2a09cf34f7d8d1d3
/etc/texmf/map/dvips/misc/pcrr8rn.map 798d4ca99e50961a24f8eaea20978ceb
/etc/texmf/map/dvips/misc/dstroke.map 48c4f60d6a6326675a9c377c8d835e6a
/etc/texmf/map/dvips/pl/pl.map facfcd8e0cfd0be291ea542fb6c10148
/etc/texmf/map/dvips/psnfss/charter.map 993695ecc0d071d7fc3377129338cba1
/etc/texmf/map/dvips/psnfss/pazo.map d3595db441a758df87659e4818b38690
/etc/texmf/map/dvips/psnfss/psnfss.map 9bc5893a55f916e90839073715bbc390
/etc/texmf/map/dvips/psnfss/fpls.map 277c296a5fed1dab839c3b50169b22cf
/etc/texmf/map/dvips/psnfssx/pcr8y.map d50bbaffee15c71b4f37a3e57ef8ae92
/etc/texmf/map/dvips/psnfssx/phv8y.map 1a5eb8c9a441bf0f828212b0b3be535e
/etc/texmf/map/dvips/psnfssx/ptm8y.map 2f3991312960f9f9fd00156b34c0b4de
/etc/texmf/plain/language.def e28ea8119d0edaea53f2a55bd5a13bf5
/etc/texmf/map/dvips/psnfssx/README.mapfiles de70bcb7f559055385f0b450fce51d03
/etc/texmf/dvips/omega.cfg 20f3291d20f52a0af681cea63d491f22
/etc/texmf/dvips/config.omega 20f3291d20f52a0af681cea63d491f22
/etc/texmf/context/texexec.rme aca8d2729ceb83bc24852c0876cf884b
/etc/texmf/language.d/00tetex.cnf e057f645b860c3b4ac92a9b5a127c43e
"
get_sarge_md5sum_from_list(){
file=$1
set $sarge_md5sum_list $woody_md5sum_list $teTeX3_md5sumlist
while [ $# -gt 0 ]; do
if [ $file = $1 ]; then
echo $2
return 0
else
shift 2
fi
done
echo "$file: md5sum not known. Exiting" >&2
exit 1
}
preinst_remove_or_move(){
file=/etc/texmf/$1
newname=$(get_newfilename $1)
debug $file
test -f "$file" || return 0
debug "handled\n"
oldmd5sum=$(dpkg_md5sum $file)
currmd5sum=$(md5sum $file | cut -d ' ' -f 1)
if [ "$oldmd5sum" != "$currmd5sum" ]; then
mv $file $oldstuff_dir/$(basename $file).$PREINST_MOVE_EXT
else
rm $file
fi
}
preinst_remove_or_move_ucf(){
file=/etc/texmf/$1
newname=$(get_newfilename $1)
debug $file
test -f "$file" || return 0
debug "handled\n"
oldmd5sum=$(ucf_md5sum $file)
currmd5sum=$(md5sum $file | cut -d ' ' -f 1)
if [ "$oldmd5sum" != "$currmd5sum" ]; then
mv $file $oldstuff_dir/$(basename $file).$PREINST_MOVE_EXT
else
rm $file
if [ -x /usr/bin/ucf ]; then ucf --purge $file; fi
fi
}
#################################################################
## End of function definitions from file common.functions
#################################################################
#################################################################
# Here starts the real action
#################################################################
case "$1" in
# install is also used if the old package is in state rc
upgrade|install)
## upgrade from 2.0.2 in sarge
configured_version=$2
# we must keep changes to the option part of 00updmap.cfg, if it is
# installed (from an older tetex-base package)
dpkg --compare-versions \
$FIRST_VERSION_WITH_UPGRADE_PATH gt "$configured_version" && \
updmap_extract || true
;;
failed-upgrade|abort-upgrade)
:
;;
esac
# Local Variables:
# mode: shell-script
# skeleton-pair: t
# End:
|