[arch-commits] Commit in (3 files)

François Charette francois at archlinux.org
Wed Sep 10 18:44:10 UTC 2008


    Date: Wednesday, September 10, 2008 @ 14:44:10
  Author: francois
Revision: 12134

texlive: pre-release fixes

Modified:
  texlive-core/trunk/texlive.install
  texlive-fontsextra/trunk/PKGBUILD
  texlive-langcyrillic/trunk/PKGBUILD

-------------------------------------+
 texlive-core/trunk/texlive.install  |   79 +++++++++++++++-------------------
 texlive-fontsextra/trunk/PKGBUILD   |   12 ++---
 texlive-langcyrillic/trunk/PKGBUILD |    4 -
 3 files changed, 45 insertions(+), 50 deletions(-)

Modified: texlive-core/trunk/texlive.install
===================================================================
--- texlive-core/trunk/texlive.install	2008-09-10 18:41:53 UTC (rev 12133)
+++ texlive-core/trunk/texlive.install	2008-09-10 18:44:10 UTC (rev 12134)
@@ -51,52 +51,31 @@
 	chmod -R 775 /usr/local/share/texmf
 	/usr/sbin/groupadd tex 2>/dev/null || true
   	chown -R root:tex /usr/local/share/texmf
-	echo    ">>> texlive: updating the filename database..."
+	echo    " texlive: updating the filename database..."
 	texconfig-sys rehash
-	echo -n ">>> texlive: creating the fontmap files with updmap..."
+	echo -n " texlive: creating the fontmap files with updmap..."
 	updmap-sys --quiet --nohash
 	echo    " done." 
 	echo    "    (see /usr/share/texmf-var/web2c/updmap.log)"
-	echo -n ">>> texlive: creating all formats ..."
+	echo -n " texlive: creating all formats ..."
 	fmtutil-sys --all 1>/dev/null
-	echo    " done." 
-	echo    "    (logs are under /usr/share/texmf-var/<engine>/<formatname>.log)"
-	echo ">>> ------------------------------------------------------------------ <<<"
-	echo ">>>                   Welcome to TeXLive 2008!                         <<<"
-	echo ">>> ------------------------------------------------------------------ <<<"
-	echo ">>>"
-	echo ">>> * The installation now goes to /usr instead of /opt/texlive."
-	echo ">>>"
-	echo ">>> * For help and information about TeXLive see:"
-	echo ">>>   http://tug.org/texlive/doc/texlive-en/live.html"
-	echo ">>>   and http://wiki.archlinux.org/index.php/TeXLive"
-	echo ">>>"
-	echo ">>> * Some tools and utilities included in TeX Live rely on"
-	echo ">>>   ghostscript, perl and/or ruby." 
-	echo ">>>"
-	echo ">>> * To consult the documentation with texdoc or texdoctk"
-	echo ">>>   you need to install 'texlive-core-doc' (>> 100MB!)."
-	echo ">>>   NB: texdoctk requires perl-tk."
-	echo ">>>   You can also access the whole documentation online via" 
-	echo ">>>   http://tug.org/texlive/Contents/live/doc.html or on CTAN."
-	echo ">>>"
-	echo ">>> * System-wide configuration files are under /usr/share/texmf-config."
-	echo ">>>   User-spefic ones should be put under ~/.texlive/texmf-config."
-	echo ">>>   \$TEXMFHOME is ~/texmf and \$TEXMFVAR is ~/.texlive/texmf-var."
-	echo ">>>"
-	echo ">>> * A skeleton of a local texmf tree is at /usr/local/share/texmf:"
-	echo ">>>   this directory is writable for members of the group tex."
-	echo ">>>   Users of TeXLive 2007 should move /opt/texlive/texmf-local"
-	echo ">>>   accordingly or change TEXMFLOCAL in texmf.cnf"
-	echo ">>>"
-	echo ">>> ------------------------------------------------------------------ <<<"
+	echo " done." 
+	echo "  (logs are under /usr/share/texmf-var/<engine>/<formatname>.log)"
+	echo "  ------------------------------------------------------------------"
+	echo "                   Welcome to TeXLive 2008!                        "
+	echo ""
+	echo " * The installation now goes to /usr instead of /opt/texlive."
+	echo ""
+	echo " * PLEASE read the documentation at"
+	echo "   http://wiki.archlinux.org/index.php/TeXLive"
+	echo " ------------------------------------------------------------------"
 }
 
 pre_upgrade() {
 	# TODO 
 	updmapfile="/usr/share/texmf-config/web2c/updmap.cfg"
 	if [[ ! -f $updmapfile ]]; then
-		echo ">>> WARNING: Can't find /usr/share/texmf-config/web2c/updmap.cfg !"
+		echo " WARNING: Can't find /usr/share/texmf-config/web2c/updmap.cfg !"
 	else
 		noofmaps=`grep -c -e ^Map $updmapfile`
 		noofmixedmaps=`grep -c -e ^MixedMap $updmapfile`
@@ -104,25 +83,41 @@
 		if [[ $totalmaps == 0 ]] ; then
 			pre_install 
 		else
-			echo ">>> NB: The file $updmap has not been changed"
+			echo " NB: The file $updmap has not been changed"
 		fi
 	fi
 }
 
 post_upgrade() {
-	echo    ">>> texlive: updating the filename database..."
+	echo    " texlive: updating the filename database..."
 	texconfig-sys rehash
-	echo -n ">>> texlive: updating the fontmap files with updmap..."
+	echo -n " texlive: updating the fontmap files with updmap..."
 	updmap-sys --quiet --nohash
 	echo    " done." 
 	echo    "    (see /usr/share/texmf-var/web2c/updmap.log)"
-	echo ">>> If you encounter a problem with one of the tex binaries,"
-	echo ">>> try to rebuild its format file with 'sudo fmtutil-sys --byfmt <formatname>'"
+	nooffmt=`find /usr/share/texmf-var/web2c/ -name '*.fmt' | wc -w`
+	if [[ $nooffmt == 0 ]]; then
+		echo -n " texlive: creating all formats ..."
+		fmtutil-sys --all 1>/dev/null
+		echo " done." 
+		echo "  (logs are under /usr/share/texmf-var/<engine>/<formatname>.log)"
+	else
+		echo    " If you encounter a problem with one of the tex binaries, try to rebuild"
+		echo    " its format file with 'sudo fmtutil-sys --byfmt <formatname>'"
+	fi
+	echo "  ------------------------------------------------------------------"
+	echo "                   Welcome to TeXLive 2008!                        "
+	echo ""
+	echo " * The installation now goes to /usr instead of /opt/texlive."
+	echo ""
+	echo " * PLEASE read the documentation at"
+	echo "   http://wiki.archlinux.org/index.php/TeXLive"
+	echo " ------------------------------------------------------------------"
 }
 
 post_remove() {
-	echo ">>> In case you had kept the /usr/local/share/texmf setup,"
-	echo ">>> it has not been removed, nor has the group tex been deleted."
+	echo " In case you had kept the /usr/local/share/texmf setup,"
+	echo " it has not been removed, nor has the group tex been deleted."
 }
 
 op=$1

Modified: texlive-fontsextra/trunk/PKGBUILD
===================================================================
--- texlive-fontsextra/trunk/PKGBUILD	2008-09-10 18:41:53 UTC (rev 12133)
+++ texlive-fontsextra/trunk/PKGBUILD	2008-09-10 18:44:10 UTC (rev 12134)
@@ -1,4 +1,4 @@
-# Contributor: Firmicus <firmicus āt gmx dōt net>
+# Maintainer: Firmicus <firmicus āt gmx dōt net>
 
 pkgname=texlive-fontsextra
 pkgver=2008.10427
@@ -21,11 +21,11 @@
 	   lzma --force -dc $p | tar xf - || return 1
    done
    install -m755 -d $startdir/pkg/usr/share || return 1
-   find texmf* -type d -exec install -d -m755 $startdir/pkg/usr/share/'{}' \; || exit 1
-   find texmf* -type f -exec install -m644 '{}' $startdir/pkg/usr/share/'{}' \; || exit 1
+   find texmf* -type d -exec install -d -m755 $startdir/pkg/usr/share/'{}' \; || return 1
+   find texmf* -type f -exec install -m644 '{}' $startdir/pkg/usr/share/'{}' \; || return 1
    
    # remove stuff depending on omega
-   rm -rf $startdir/usr/share/texmf-dist/omega
-   find $startdir -wholename '*ocherokee*' -delete
-   find $startdir -wholename '*oinuit*' -delete
+   rm -rf $startdir/pkg/usr/share/texmf-dist/omega
+   find $startdir/pkg/ -wholename '*ocherokee*' -delete
+   find $startdir/pkg/ -wholename '*oinuit*' -delete
 }

Modified: texlive-langcyrillic/trunk/PKGBUILD
===================================================================
--- texlive-langcyrillic/trunk/PKGBUILD	2008-09-10 18:41:53 UTC (rev 12133)
+++ texlive-langcyrillic/trunk/PKGBUILD	2008-09-10 18:44:10 UTC (rev 12134)
@@ -1,4 +1,4 @@
-# Contributor: Firmicus <firmicus āt gmx dōt net>
+# Maintainer: Firmicus <firmicus āt gmx dōt net>
 
 pkgname=texlive-langcyrillic
 pkgver=2008
@@ -12,7 +12,7 @@
 url='http://tug.org/texlive/'
 source=("ftp://ftp.archlinux.org/other/texlive/$pkgname-src.zip")
 install=texlive.install
-md5sums=('3e2be1b7873bf044ae2beb96da8fcdea')
+md5sums=('c7843d01a243f14ae13c241fcfc13ec0')
 
 build() {
    cd $startdir/src




More information about the arch-commits mailing list