wok diff get-eclipse-pdt/stuff/get-eclipse-pdt @ rev 2821
Add lcms (Light color management)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Apr 29 21:19:45 2009 +0200 (2009-04-29) |
parents | 9ae047db7ddd |
children | 32959e7975fc |
line diff
1.1 --- a/get-eclipse-pdt/stuff/get-eclipse-pdt Thu Nov 13 00:04:59 2008 +0100 1.2 +++ b/get-eclipse-pdt/stuff/get-eclipse-pdt Wed Apr 29 21:19:45 2009 +0200 1.3 @@ -13,6 +13,7 @@ 1.4 TEMP_DIR="/home/slitaz/build/$PACKAGE.$$" 1.5 SOURCE_DIR="/home/slitaz/src" 1.6 LOG="/tmp/$(basename $0 .sh).log" 1.7 +ROOT="$1" 1.8 1.9 # Status function with color (supported by Ash). 1.10 status() 1.11 @@ -41,7 +42,7 @@ 1.12 check_if_installed() 1.13 { 1.14 # Avoid reinstall 1.15 - if [ -d /var/lib/tazpkg/installed/$PACKAGE ];then 1.16 + if [ -d $ROOT/var/lib/tazpkg/installed/$PACKAGE ];then 1.17 return 1 1.18 else 1.19 return 0 1.20 @@ -54,6 +55,7 @@ 1.21 #check if package already installed 1.22 if (check_if_installed $PACKAGE); then 1.23 echo "$PACKAGE is already installed." 1.24 + [ -n "$ROOT" ] && exit 0 1.25 echo -n "Would you like to remove and reinstall this package [y/n]? " 1.26 read answer 1.27 case "$answer" in 1.28 @@ -129,7 +131,7 @@ 1.29 tazpkg pack $PACKAGE-$VERSION 1.30 1.31 # Install pseudo package 1.32 -tazpkg install $PACKAGE-$VERSION.tazpkg 1.33 +tazpkg install $PACKAGE-$VERSION.tazpkg --root=$ROOT 1.34 1.35 # Clean 1.36 rm -rf $TEMP_DIR