Revision: | 1.3 |
Committed: | Wed Dec 15 00:17:47 2010 UTC (13 years, 9 months ago) by root |
Branch: | MAIN |
CVS Tags: | rel-0_92, rel-1_11, rel-1_31, rel-1_1, rel-1_0, rel-1_3, rel-1_2, rel-1_4, rel-0_912, rel-1_21, rel-1_22, rel-1_46, rel-1_44, rel-1_45, rel-1_42, rel-1_43, rel-1_41, HEAD |
Changes since 1.2: | +2 -0 lines |
Log Message: | *** empty log message *** |
# | Content |
---|---|
1 | #!/bin/sh |
2 | |
3 | # this script builds bin/staticperl |
4 | # this is not done at install time normally, to allow people to install the script |
5 | # without a working perl. |
6 | |
7 | if |
8 | ( |
9 | IFS= |
10 | while read -r line; do |
11 | if [ "${line###CAT }" != "$line" ]; then |
12 | cat "${line###CAT }" |
13 | else |
14 | printf -- "%s\n" "$line" |
15 | fi |
16 | done |
17 | ) <staticperl.sh >bin/staticperl~ |
18 | then |
19 | chmod 755 bin/staticperl~ |
20 | if cmp -s bin/staticperl~ bin/staticperl; then |
21 | rm bin/staticperl~ |
22 | echo unchanged |
23 | else |
24 | mv bin/staticperl~ bin/staticperl |
25 | echo changed |
26 | fi |
27 | fi |