wok-6.x rev 18863

get-texlive: fix creating package texlive
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Jan 28 22:27:33 2016 +0200 (2016-01-28)
parents 91b74be21e59
children 4976349ba35b
files get-texlive/stuff/get-texlive
line diff
     1.1 --- a/get-texlive/stuff/get-texlive	Thu Jan 28 17:55:47 2016 +0200
     1.2 +++ b/get-texlive/stuff/get-texlive	Thu Jan 28 22:27:33 2016 +0200
     1.3 @@ -51,7 +51,7 @@
     1.4  fi
     1.5  
     1.6  tar -xzf $TARBALL
     1.7 -VERSION="$(ls -d $SOURCE*/ | sed 's|/*$||')"
     1.8 +VERSION="$(ls -d $SOURCE*/ | sed 's|/*$||' | tr -cd '0-9')"
     1.9  
    1.10  # extracted pkg can be removed: Save RAM before packing
    1.11  rm -rf $TARBALL
    1.12 @@ -85,6 +85,7 @@
    1.13  # 	-location ftp://ftp.inria.fr/pub/TeX/CTAN/systems/texlive/tlnet/2008/
    1.14  ./install-tl -profile slitaz.profile
    1.15  
    1.16 +cd "$TMP/$SOURCE"
    1.17  
    1.18  # Creat receipt
    1.19  cat > $PACKAGE-$VERSION/receipt <<EOT
    1.20 @@ -109,6 +110,8 @@
    1.21  		mv profile /etc/profile
    1.22  	fi
    1.23  
    1.24 +	. /etc/profile
    1.25 +
    1.26  	echo -e "
    1.27  
    1.28  \033[1;33m - A texlive minimal scheme is now installed - \033[0m