|
@@ -32,16 +32,24 @@ list_of_shrs() {
|
32
|
32
|
echo include
|
33
|
33
|
}
|
34
|
34
|
|
35
|
|
-build() {
|
|
35
|
+build1() {
|
36
|
36
|
local srcpath dstpath
|
|
37
|
+ srcpath=$1
|
|
38
|
+ dstpath=${srcpath%.in}
|
|
39
|
+ perl -pe "
|
|
40
|
+ s|__FFOO_DIR__|$shrdir|;
|
|
41
|
+ s|__VERSION__|$(get_version)|;
|
|
42
|
+ " < $srcpath > $dstpath
|
|
43
|
+ echo $dstpath >> built.list
|
|
44
|
+}
|
|
45
|
+
|
|
46
|
+build() {
|
|
47
|
+ local srcpath
|
37
|
48
|
find -type f -name '*.in' \
|
38
|
|
- | while read srcpath;
|
39
|
|
- do
|
40
|
|
- dstpath=${srcpath%.in}
|
41
|
|
- perl -pe "s|__FFOO_DIR__|$shrdir|;
|
42
|
|
- s|__VERSION__|$(get_version)|;" < $srcpath > $dstpath
|
43
|
|
- echo $dstpath >> built.list
|
44
|
|
- done
|
|
49
|
+ | while read srcpath;
|
|
50
|
+ do
|
|
51
|
+ build1 "$srcpath"
|
|
52
|
+ done
|
45
|
53
|
}
|
46
|
54
|
|
47
|
55
|
clean() {
|