]> err.no Git - util-linux/commitdiff
build-sys: let configure instantiate the misc-utils/*.pl scripts
authorStepan Kasal <skasal@redhat.com>
Tue, 15 May 2007 18:46:25 +0000 (20:46 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 16 May 2007 09:43:30 +0000 (11:43 +0200)
The substitution of @PERL@ is most done with AC_CONFIG_FILES.

Signed-off-by: Stepan Kasal <skasal@redhat.com>
configure.ac
misc-utils/.gitignore [new file with mode: 0644]
misc-utils/Makefile.am

index b9e5a90d02e0195bd81bc6658c9bfac16cd0e90e..32fa8ab6f330db41e3632ff661bdcaac78057680 100644 (file)
@@ -466,6 +466,8 @@ text-utils/Makefile
 tests/Makefile
 tests/helpers/Makefile
 tests/commands.sh
+misc-utils/chkdupexe:misc-utils/chkdupexe.pl
+misc-utils/scriptreplay:misc-utils/scriptreplay.pl
 ])
 
 AC_OUTPUT
diff --git a/misc-utils/.gitignore b/misc-utils/.gitignore
new file mode 100644 (file)
index 0000000..ac89c1f
--- /dev/null
@@ -0,0 +1,2 @@
+chkdupexe
+scriptreplay
index c2b5a0f2be7797b76be38ae816eb27b74c55d581..6b8b95c043c0d7c2aa36d0033735e7fc24af6793 100644 (file)
@@ -1,8 +1,6 @@
 include $(top_srcdir)/config/include-Makefile.am
 
 EXTRA_DIST =   README.* \
-               chkdupexe.pl \
-               scriptreplay.pl \
                reset \
                reset.033c
 
@@ -15,12 +13,6 @@ mcookie_SOURCES = mcookie.c ../lib/md5.c
 
 usrbinexec_SCRIPTS = chkdupexe scriptreplay
 
-chkdupexe: chkdupexe.pl
-       sed -e 's,[@]PERL[@],$(PERL),g' < chkdupexe.pl > chkdupexe
-
-scriptreplay: scriptreplay.pl
-       sed -e 's,[@]PERL[@],$(PERL),g' < scriptreplay.pl > scriptreplay
-
 CLEANFILES = chkdupexe scriptreplay
 
 man_MANS = cal.1 chkdupexe.1 ddate.1 logger.1 look.1 mcookie.1 \