[subversion-commit] SVN tetex commit + diffs: r227 -
make-texfontpkg/trunk/scripts
Ralf Stubner
stubner-guest at costa.debian.org
Sat Oct 15 17:47:09 UTC 2005
Author: stubner-guest
Date: 2005-10-15 17:47:08 +0000 (Sat, 15 Oct 2005)
New Revision: 227
Modified:
make-texfontpkg/trunk/scripts/mk-tex-fontpack
Log:
* created packages depend no longer on tetex|texlive packages
* update created postrm/postinst accordingly
Modified: make-texfontpkg/trunk/scripts/mk-tex-fontpack
===================================================================
--- make-texfontpkg/trunk/scripts/mk-tex-fontpack 2005-10-14 14:29:15 UTC (rev 226)
+++ make-texfontpkg/trunk/scripts/mk-tex-fontpack 2005-10-15 17:47:08 UTC (rev 227)
@@ -210,7 +210,7 @@
Package: $packname
Architecture: all
-Depends: tex-common, tetex-bin | texlive-basicbin , tetex-base | texlive-basic, defoma (>= 0.7.0), xutils (>= 4.0.3)
+Depends: tex-common, defoma (>= 0.7.0), xutils (>= 4.0.3)
Description: Font Pack $2
This package provides the fonts from font pack $2.
EOF
@@ -222,10 +222,12 @@
update_fontmaps()
{
update-updmap --quiet
- mktexlsr /usr/share/texmf
- echo -n "Running updmap... "
- updmap-sys --quiet
- echo "done."
+ if which mktexlsr >/dev/null; then mktexlsr; fi
+ if which updmap-sys >/dev/null; then
+ printf "Running updmap... "
+ updmap-sys --quiet
+ echo "done."
+ fi
return 0
}
@@ -233,12 +235,12 @@
case "\$1" in
configure|abort-upgrade|abort-remove|abort-deconfigure)
update_fontmaps
- ;;
+ ;;
*)
echo "postinst called with unknown argument '\$1'" >&2
exit 1
- ;;
+ ;;
esac
#DEBHELPER#
@@ -252,8 +254,8 @@
try_to_update_fontmaps()
{
update-updmap --quiet || true
- mktexlsr /usr/share/texmf || true
- echo -n "Running updmap... "
+ mktexlsr || true
+ printf "Running updmap... "
updmap-sys --quiet || true
echo "done."
@@ -263,23 +265,20 @@
case "\$1" in
remove|disappear)
try_to_update_fontmaps
- ;;
+ ;;
purge)
- # Supposing updmap.cfg & Co are clean (which I think is a reasonable
- # assumption), we don't need to call try_to_update_fontmaps().
- # Calling it on remove _and_ on purge just for hypothetical users
- # who would break their config before purging this package seems to
- # be more annoying than useful (it takes a lot of time).
- ;;
+ # No need to call try_to_update_fontmaps, since 'remove' is called
+ # before 'purge'.
+ ;;
upgrade|failed-upgrade|abort-upgrade|abort-install)
- ;;
+ ;;
*)
echo "postrm called with unknown argument '\$1'" >&2
exit 1
- ;;
+ ;;
esac
#DEBHELPER#
More information about the Pkg-tetex-commits
mailing list