File: make_clean

package info (click to toggle)
espresso 6.7-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 311,068 kB
  • sloc: f90: 447,429; ansic: 52,566; sh: 40,631; xml: 37,561; tcl: 20,077; lisp: 5,923; makefile: 4,503; python: 4,379; perl: 1,219; cpp: 761; fortran: 618; java: 568; awk: 128
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"