# HG changeset patch # User Christophe Lincoln # Date 1271626087 -7200 # Node ID 05bf754a184d52646d9f744ec10804e3d6fee827 # Parent 184ca30503fe9f0bc9dd2261330e908cb9be8e4e realy clean all file in pkg tree diff -r 184ca30503fe -r 05bf754a184d tazwok --- a/tazwok Tue Feb 02 15:21:14 2010 +0100 +++ b/tazwok Sun Apr 18 23:28:07 2010 +0200 @@ -1163,39 +1163,21 @@ if grep -q ^clean_wok $RECEIPT; then clean_wok fi - # Remove taz/ and source tree if exists. - if [ -d "taz" ]; then - echo -n "Removing taz files..." - rm -rf taz - status - fi - for i in $PACKAGE-$VERSION $SOURCE-$VERSION ; do - [ -e "$i" ] || continue - echo -n "Removing source files..." - if [ -L $i ]; then - target=$(readlink $i) - [ -d "$target" ] && case "$target" in - /*|.|./*|..|../*);; - *) rm -rf $target;; + # Clean shoul only have a receipt, stuff and optionnal desc. + for f in `ls .` + do + case $f in + receipt|stuff|description.txt) + continue ;; + *) + echo "Removing: $f" + rm -rf $f ;; esac - fi - rm -rf $i - status done - # Remove an eventual $PACKAGE-build directory. - if [ -d "$PACKAGE-build" ]; then - echo -n "Removing build tree..." - rm -rf $PACKAGE-build && status - fi - # Remove process log file. - if [ -f "process.log" ]; then - echo -n "Removing process log file..." - rm process.log && status echo "================================================================================" fi echo "$PACKAGE is clean. You can cook it again..." - echo "" - ;; + echo "" ;; gen-clean-wok) # Generate a clean wok from the current wok by copying all receipts # and stuff directory.