ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/App-Staticperl/build
Revision: 1.2
Committed: Tue Dec 7 09:27:54 2010 UTC (15 years, 9 months ago) by root
Branch: MAIN
CVS Tags: rel-0_91, rel-0_1, rel-0_2, rel-0_9, rel-0_911
Changes since 1.1: +5 -1 lines
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 root 1.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 root 1.2 if cmp -s bin/staticperl~ bin/staticperl; then
21     rm bin/staticperl~
22     else
23     mv bin/staticperl~ bin/staticperl
24     fi
25 root 1.1 fi