1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
AUTOMAKE_OPTIONS = gnu 1.4
SUFFIXES = .pl .sh
shscripts = cvsco cvsdiscard cvspurge cvstrim
shscripts_src = cvsco.sh cvsdiscard.sh cvspurge.sh cvstrim.sh
plscripts = cvsu cvsdo cvschroot
plscripts_src = cvsu.pl cvsdo.pl cvschroot.pl
bin_SCRIPTS = $(shscripts) $(plscripts)
dist_man_MANS = cvsutils.1
CLEANFILES = $(bin_SCRIPTS)
EXTRA_DIST = $(shscripts_src) $(plscripts_src)
noinst_DATA = cvsutils.spec
# The idea of the scripts below in taken from Autoconf
editsh = sed \
-e '1s,/bin/sh,$(SHELL),g' \
-e 's,@''VERSION''@,$(VERSION),g'
editpl = sed \
-e '1s,/usr/bin/perl,$(PERL),g' \
-e 's,-VERSION-,$(VERSION),g'
.sh:
rm -f $@ $@.tmp
$(editsh) $< >$@.tmp
chmod +x $@.tmp
mv $@.tmp $@
.pl:
rm -f $@ $@.tmp
$(editpl) $< >$@.tmp
chmod +x $@.tmp
mv $@.tmp $@
dist-hook:
cp cvsutils.spec $(distdir)
|