# HG changeset patch # User Christophe Lincoln # Date 1253391395 -7200 # Node ID d5010a514900484dee5e0065d5b683da2aa74208 # Parent 3763840ba49c1ae384e47e2f4e55e5bccd45954d tazbb: add 'cook' command and update diff -r 3763840ba49c -r d5010a514900 tazbb/receipt --- a/tazbb/receipt Sat Sep 19 21:04:29 2009 +0200 +++ b/tazbb/receipt Sat Sep 19 22:16:35 2009 +0200 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="tazbb" -VERSION="1.1" +VERSION="1.2" CATEGORY="development" SHORT_DESC="SliTaz Build Bot." MAINTAINER="pankso@slitaz.org" diff -r 3763840ba49c -r d5010a514900 tazbb/stuff/tazbb --- a/tazbb/stuff/tazbb Sat Sep 19 21:04:29 2009 +0200 +++ b/tazbb/stuff/tazbb Sat Sep 19 22:16:35 2009 +0200 @@ -44,6 +44,7 @@ usage Print this short usage and command list. list-pkgs List last cooked packages with date. report Run in report mode and dont cook anything [--verbose]. + cook Cook, install and log a single package build. cook-all Cook all missing, modified or unbuilt packages. cook-commit Cook all packages affected by a commit in the last update. test-pkgs Execute a test suite on all packages [--verbose]. @@ -419,6 +420,27 @@ check_wok $@ test_packages $@ show_report ;; + cook) + # Cook, install and log a single package build. + if [ -z $2 ]; then + echo "Please specify a package on the command line." + rm -f $LOCK_FILE && exit 0 + fi + pkg=$2 + echo "Starting to cook and install: $pkg" + echo "(cooking $pkg)" > $DB_DIR/running + tazwok clean $pkg + script -c "echo 'install' | tazwok cook $pkg" $LOG_DIR/$pkg.log + if [ -f $BUILD_WOK/$pkg/taz/*/receipt ]; then + . $BUILD_WOK/$pkg/taz/*/receipt + echo "(installing $PACKAGE-${VERSION}$EXTRAVERSION.tazpkg)" \ + > $DB_DIR/running + yes | tazpkg install \ + $PACKAGES_REPOSITORY/$PACKAGE-${VERSION}$EXTRAVERSION.tazpkg \ + --forced + else + echo "Unable to install: $pkg" + fi ;; cook-all) # Update wok, gen report (with cooklist), cook all packages, test, # clean, gen new report and lists.