cookutils rev 501

cook: Add --pack option. This is so when i just change genpkg_rules i can just repack package if WOK/pkg/taz folder exists without compiling the package again.
author Christopher Rogers <slaxemulator@gmail.com>
date Wed Jun 20 22:17:53 2012 +0000 (2012-06-20)
parents 0d853e0032ef
children 4b1f207c4058 82da6052a792
files cook
line diff
     1.1 --- a/cook	Wed Jun 20 02:46:06 2012 +0000
     1.2 +++ b/cook	Wed Jun 20 22:17:53 2012 +0000
     1.3 @@ -1311,7 +1311,16 @@
     1.4  				gettext "Unblocking:"; echo -n " $pkg"
     1.5  				sed -i "/^${pkg}$/"d $blocked
     1.6  				status && newline && exit 0 ;;
     1.7 -
     1.8 +			--pack)
     1.9 +				if [ -d $WOK/$pkg/taz ]; then
    1.10 +					rm -rf $WOK/$pkg/taz
    1.11 +					[ -f $LOGS/$pkg-pack.log ] && rm -rf $LOGS/$pkg-pack.log
    1.12 +					packit 2>&1 | tee -a $LOGS/$pkg-pack.log
    1.13 +					clean_log
    1.14 +				else
    1.15 +					gettext "Need to build $pkg." && exit 0
    1.16 +				fi
    1.17 +				exit 0 ;;
    1.18  		esac
    1.19  
    1.20  		# Check if wanted is built now so we have separate log files.