cookutils diff cook @ rev 39
cook: Add option --getsrc (Thanks Christopher)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat May 07 01:44:24 2011 +0200 (2011-05-07) |
parents | abfe01fcd176 |
children | 49f9b134c2a9 |
line diff
1.1 --- a/cook Fri May 06 19:12:33 2011 +0200 1.2 +++ b/cook Sat May 07 01:44:24 2011 +0200 1.3 @@ -37,7 +37,8 @@ 1.4 1.5 $(echo -e "\033[1m$(gettext "Options:")\033[0m") 1.6 --clean|-c Cook : $(gettext "clean the package in the wok.") 1.7 - --install|-i Cook : $(gettext "and install the package.") 1.8 + --install|-i Cook : $(gettext "cook and install the package.") 1.9 + --getsrc|-gs Cook : $(gettext "get the package source tarball.") 1.10 --wok|-w Setup: $(gettext "create also a wok from Hg repo.") 1.11 1.12 EOT 1.13 @@ -651,6 +652,11 @@ 1.14 status && echo "" && exit 0 ;; 1.15 --install|-i) 1.16 inst='yes' ;; 1.17 + --getsrc) 1.18 + echo "Getting source for: $pkg" 1.19 + separator 1.20 + . $WOK/$pkg/receipt && get_source 1.21 + echo -e "Tarball: $SRC/$TARBALL\n" && exit 0 ;; 1.22 esac 1.23 1.24 # Check if wanted is build now so we have separate log files.