Changeset ba545b02dd3de977f1a4125386b55b74cc869924

Show
Ignore:
Timestamp:
03/10/07 04:40:31 (7 years ago)
Author:
Eric Sproul <esproul@omniti.com>
git-committer:
Eric Sproul <esproul@omniti.com> 1173501631 +0000
git-parent:

[b831da5303b0eb5866af21c2294b23bab10f9bbb]

git-author:
Eric Sproul <esproul@omniti.com> 1173501631 +0000
Message:

Use .in files as the source, keeping things safe and making cleaning simpler.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Makefile

    rb831da5 rba545b0  
    1313all: 
    1414        sed -e "s#/usr/bin/perl#$(perl)#;" -e "s#__PREFIX__#$(prefix)#;" \ 
    15         < zetaback > zetaback.new 
    16         if [ ! -f zetaback ]; then mv -f zetaback.new zetaback; \ 
    17         elif cmp -s zetaback.new zetaback; then true; \ 
    18         else mv -f zetaback.new zetaback; \ 
    19         fi 
    20         rm -f zetaback.new 
     15        < zetaback.in > zetaback 
    2116        sed -e "s#/usr/bin/perl#$(perl)#;" -e "s#__PREFIX__#$(prefix)#;" \ 
    22         < zetaback_agent > zetaback_agent.new 
    23         if [ ! -f zetaback_agent ]; then mv -f zetaback_agent.new zetaback_agent; \ 
    24         elif cmp -s zetaback_agent.new zetaback_agent; then true; \ 
    25         else mv -f zetaback_agent.new zetaback_agent; \ 
    26         fi 
    27         rm -f zetaback_agent.new 
     17        < zetaback_agent.in > zetaback_agent 
    2818 
    2919install: all 
     
    4232 
    4333clean: 
    44         rm -f zetaback.1 zetaback_agent.1 
    45         @echo "Resetting perl and prefix paths to defaults" 
    46         @echo "#!/usr/bin/perl" > zetaback.clean 
    47         @grep -v '^#!' zetaback | \ 
    48         sed -e 's#$PREFIX = q^.*^;#$PREFIX = q^__PREFIX__^;#;' >> zetaback.clean 
    49         @mv zetaback.clean zetaback 
    50         @echo "#!/usr/bin/perl" > zetaback_agent.clean 
    51         @grep -v '^#!' zetaback_agent | \ 
    52         sed -e 's#$PREFIX = q^.*^;#$PREFIX = q^__PREFIX__^;#;' >> zetaback_agent.clean 
    53         @mv zetaback_agent.clean zetaback_agent 
    54  
     34        rm -f zetaback zetaback_agent zetaback.1 zetaback_agent.1