[arch-commits] Commit in texlive-core/trunk (texlive.install)

François Charette francois at archlinux.org
Thu Nov 6 18:24:06 UTC 2008


    Date: Thursday, November 6, 2008 @ 13:24:06
  Author: francois
Revision: 18508

simplified install scriptlet

Modified:
  texlive-core/trunk/texlive.install

-----------------+
 texlive.install |   59 +++++++++++++++---------------------------------------
 1 file changed, 17 insertions(+), 42 deletions(-)

Modified: texlive.install
===================================================================
--- texlive.install	2008-11-06 16:59:52 UTC (rev 18507)
+++ texlive.install	2008-11-06 18:24:06 UTC (rev 18508)
@@ -43,28 +43,23 @@
 }
 
 post_install() {
-	echo    " texlive: updating the filename database..."
-	texconfig-sys rehash
-	echo    " texlive: creating the fontmap files with updmap..."
+	echo -n   "updating the filename database..."
+	mktexlsr --quiet
+	echo      " done"
+	echo -n   "creating the fontmap files with updmap..."
 	updmap-sys --quiet --nohash
-	echo    " done." 
-	echo    "    (see /usr/share/texmf-var/web2c/updmap.log)"
-	echo    " texlive: creating all formats ..."
+	echo      " done" 
+	echo -n   "creating all formats..."
 	fmtutil-sys --all 1>/dev/null
-	echo " done." 
-	echo "  (logs are under /usr/share/texmf-var/web2c/<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 " ------------------------------------------------------------------"
+	echo      " done." 
+	echo      " (logs are under /usr/share/texmf-var/web2c/<engine>/<formatname>.log)"
+	echo "------------------------------------------------------------------"
+	echo "  PLEASE read the TeXLive 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 $updmapfile !"
@@ -74,38 +69,18 @@
 		totalmaps=$(($noofmaps+$noofmixedmaps))
 		if [[ $totalmaps == 0 ]] ; then
 			pre_install 
-		else
-			echo " NB: The file $updmapfile has not been changed"
 		fi
 	fi
 }
 
 post_upgrade() {
-	echo    " texlive: updating the filename database..."
-	texconfig-sys rehash
+	echo -n "updating the filename database..."
+	mktexlsr --quiet
+	echo    " done"
 	if [[ $totalmaps == 0 ]] ; then
-		echo    " texlive: updating the fontmap files with updmap..."
+		echo -n   "updating the fontmap files with updmap..."
 		updmap-sys --quiet --nohash
-		echo    " done." 
-		echo    "    (see /usr/share/texmf-var/web2c/updmap.log)"
+		echo    " done"
 	fi
-	nooffmt=`find /usr/share/texmf-var/web2c/ -name '*.fmt' | wc -w`
-	if [[ $nooffmt == 0 ]]; then
-		echo    " 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 " ------------------------------------------------------------------"
 }
 




More information about the arch-commits mailing list