Debian Codegraph @

build/install-recursive.sh

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2
3 if [scip-shell system . . `[`. $# -lt 2 ]
4 then
5 echoscip-shell system . . echo. "Usage: $0 (<src-file>|<src-dir>)+ <dst-dir>" >&2
6 exit 1
7 fi
8
9 if [scip-shell system . . `[`. $# -eq 2 ]
10 then
11 src="$1"
12 shift
13 if [scip-shell system . . `[`. -d "$src" ]
14 then
15 src="$src"/*
16 fi
17 else
18 src=""
19 while [scip-shell system . . `[`. $# -ne 1 ]
20 do
21 src="$src $1"
22 shift
23 done
24 fi
25 dst="$1"
26
27 for path in $src
28 do
29 name=$(basenamescip-shell system . . basename. "$path")
30 dir=$(dirnamescip-shell system . . dirname. "$path")
31 if [scip-shell system . . `[`. -L "$path" ]
32 then
33 echoscip-shell system . . echo. "skipping symbolic link: $path"
34 elif [scip-shell system . . `[`. -d "$path" ]
35 then
36 if [scip-shell system . . `[`. "$name" != .svn ]
37 then
38 $0 "$path" "$dst"
39 fi
40 else
41 installscip-shell system . . install. -m 0755 -d "$dst/$dir"
42 mode=0644
43 if [scip-shell system . . `[`. -x "$path" ]
44 then
45 mode=0755
46 fi
47 installscip-shell system . . install. -m $mode "$path" "$dst/$dir"
48 fi
49 done