Debian Codegraph @

icmake/remove

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2
3 g_echo=$2
4
5 rm_fscip-shell shell flexc++ 2.19.00-1 rm_f().()
6 {
7 [scip-shell system . . `[`. $g_echo -ne 0 ] && echoscip-shell system . . echo. rm $1
8 rmscip-shell system . . rm. -f $1
9 }
10
11 rm_dirscip-shell shell flexc++ 2.19.00-1 rm_dir().()
12 {
13 [scip-shell system . . `[`. $g_echo -ne 0 ] && echoscip-shell system . . echo. rmdir $1
14 rmdirscip-shell system . . rmdir. --ignore-fail-on-non-empty -p $1
15 }
16
17
18 IFS="
19 "
20
21 for line in `catscip-shell system . . cat. $1`
22 do
23 field1=`echoscip-shell system . . echo. $line | awkscip-shell system . . awk. '{printf $1}'`
24 field2=`echoscip-shell system . . echo. $line | awkscip-shell system . . awk. '{printf $2}'`
25
26 if [scip-shell system . . `[`. $field1 == "link" ] ; then
27 rm_fscip-shell shell flexc++ 2.19.00-1 rm_f(). $field2
28 elif [scip-shell system . . `[`. $field1 == "dir" ] ; then
29 rm_dirscip-shell shell flexc++ 2.19.00-1 rm_dir(). $field2
30 elif [scip-shell system . . `[`. -e "$field2" ] ; then
31 if [scip-shell system . . `[`. "$field1" != "`md5sumscip-shell system . . md5sum. $field2 | awkscip-shell system . . awk. '{printf $1}'`" ] ; then
32 echoscip-shell system . . echo. $field2 changed, not removed
33 else
34 rm_fscip-shell shell flexc++ 2.19.00-1 rm_f(). $field2
35 fi
36 fi
37 done
38
39 rm_fscip-shell shell flexc++ 2.19.00-1 rm_f(). $1
40