File: make_clean

package info (click to toggle)
espresso 5.1%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 146,004 kB
  • ctags: 17,245
  • sloc: f90: 253,041; sh: 51,271; ansic: 27,494; tcl: 15,570; xml: 14,508; makefile: 2,958; perl: 2,035; fortran: 1,924; python: 337; cpp: 200; awk: 57
file content (34 lines) | stat: -rwxr-xr-x 665 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/sh

# run from directory where this script is
cd `echo $0 | sed 's/\(.*\)\/.*/\1/'` # extract pathname

# check whether echo has the -e option
if test "`echo -e`" = "-e" ; then ECHO=echo ; else ECHO="echo -e" ; fi

# clean all example directories
for dir in all-electron paw-gen-test pseudo-gen pseudo-test vdw-in-tfvw
do
    if test -d $dir/results
    then
        cd $dir
        $ECHO "cleaning `pwd`...\c"
        clean.sh
        $ECHO " done"
        cd ..
    fi
done


if test -d $dir/paw-examples
   then
   cd $dir
   $ECHO "cleaning `pwd`...\c"
   ./clean
   $ECHO " done"
   cd ..
fi


rm -f INPUT_*.html INPUT_*.txt
$ECHO "cleaning all : done"