]> git.ozlabs.org Git - next-scripts/blob - do_clean
update to_build_host a bit
[next-scripts] / do_clean
1 #!/bin/bash
2
3 RM_FILES="last_msg.bak merge.debug merge.log"
4 OTHER_RM_FILES="mails/* akpm-import.log"
5 MV_FILES="summ"
6
7 # check for files that should exist before we delete anything
8 for i in ${RM_FILES} ${MV_FILES}; do
9         [ -e "$i" ] || {
10                 printf '%s: no "%s" file\n' "$0" "$i" 1>&2
11                 exit 1
12         }
13 done
14
15 echo rm ${RM_FILES} ${OTHER_RM_FILES}
16 rm ${RM_FILES} ${OTHER_RM_FILES}
17
18 for i in ${MV_FILES}; do
19         echo mv ${i}{,.old}
20         mv ${i}{,.old}
21 done