]> git.ozlabs.org Git - next-scripts/blobdiff - do_clean
do_build: consolidate failure action
[next-scripts] / do_clean
index 99b732f2baf6400f3916037e1598d9f4bb8d1b35..4d11166a7ca57fe5586571c68da525c5f170d7d5 100755 (executable)
--- a/do_clean
+++ b/do_clean
@@ -1,11 +1,11 @@
 #!/bin/bash
 
 #!/bin/bash
 
-RM_FILES="last_msg.bak merge.debug merge.log quilt-import.log"
-OTHER_RM_FILES="mails/* akpm-import.log"
+RM_FILES="last_msg.bak merge.debug merge.log"
+OTHER_RM_FILES="mails/*"
 MV_FILES="summ"
 
 # check for files that should exist before we delete anything
 MV_FILES="summ"
 
 # check for files that should exist before we delete anything
-for i in ${FILES} ${MV_FILES}; do
+for i in ${RM_FILES} ${MV_FILES}; do
        [ -e "$i" ] || {
                printf '%s: no "%s" file\n' "$0" "$i" 1>&2
                exit 1
        [ -e "$i" ] || {
                printf '%s: no "%s" file\n' "$0" "$i" 1>&2
                exit 1