# HG changeset patch # User Pierre-Jean Fichet # Date 1224792875 0 # Node ID 473dba2a800feca66f2e02fffa331698d0f69070 # Parent b19e50dd80d8150bb7dcacf35a43c7454351e763 get-texlive add perl to DEPEND, ask user to confirm installation diff -r b19e50dd80d8 -r 473dba2a800f get-texlive/receipt --- a/get-texlive/receipt Thu Oct 23 20:07:24 2008 +0000 +++ b/get-texlive/receipt Thu Oct 23 20:14:35 2008 +0000 @@ -3,6 +3,7 @@ PACKAGE="get-texlive" VERSION="2008" CATEGORY="office" +DEPENDS="wget perl" WEB_SITE="http://www.tug.org/texlive/" SHORT_DESC="get texlive distribution for tex, latex..." MAINTAINER="sygne@ombres.eu" diff -r b19e50dd80d8 -r 473dba2a800f get-texlive/stuff/get-texlive --- a/get-texlive/stuff/get-texlive Thu Oct 23 20:07:24 2008 +0000 +++ b/get-texlive/stuff/get-texlive Thu Oct 23 20:14:35 2008 +0000 @@ -6,7 +6,7 @@ CATEGORY="office" SHORT_DESC="latex text processor" MAINTAINER="sygne@ombres.eu" -DEPENDS="wget" +DEPENDS="wget perl" SOURCE="install-tl" TARBALL="$SOURCE-unx.tar.gz" WEB_SITE="http://www.tug.org/$PACKAGE/" @@ -98,21 +98,25 @@ post_install() { # add texlive dir to PATH. - cp /etc/profile /etc/profile.old - sed "/^PATH=\"/ aPATH=\"/usr/local/\$PACKAGE/\$VERSION/bin/i386-linux/:\\\$PATH\"" \ - /etc/profile >> profile - mv profile /etc/profile + if ! grep -q "/usr/local/\$PACKAGE/\$VERSION/bin/i386-linux/" /etc/profile + then + echo "adding /usr/local/\$PACKAGE/\$VERSION/bin/i386-linux/ to PATH" + cp /etc/profile /etc/profile.old + sed "/^PATH=\"/ aPATH=\"/usr/local/\$PACKAGE/\$VERSION/bin/i386-linux/:\\\$PATH\"" \ +/etc/profile >> profile + mv profile /etc/profile + fi echo -e " -\033[1;33m - A texlive minimal scheme is now installed - \033[0;m +\033[1;33m - A texlive minimal scheme is now installed - \033[0m Verify that \033[1mPATH\033[0m is well formatted in /etc/profile, and contain \033[1m/usr/local/\$PACKAGE/\$VERSION/bin/i386-linux/\033[0m To improve texlive, run \033[1mtlmgr\033[0m as root. If you prefer graphicals interfaces, install perl-tk, -and run\033[1mtlmgr gui\033[0m. +and run\033[1m tlmgr gui\033[0m. The tlmgr man page can be found here: http://tug.org/texlive/doc/tlmgr.html @@ -123,8 +127,15 @@ # Pack tazpkg pack $PACKAGE-$VERSION -# Install pseudo package -tazpkg install $PACKAGE-$VERSION.tazpkg + + +echo -n "\nPlease confirm installation of $PACKAGE-$VERSION (y/N): " +read CONFIRM +if [ $CONFIRM = "y" ] + then + # Install pseudo package + tazpkg install $PACKAGE-$VERSION.tazpkg +fi # Clean cd $TOP