From e80dfbc808fba02577bb3aee74dc9d63d140c481 Mon Sep 17 00:00:00 2001 From: hjp Date: Wed, 24 Oct 2012 14:34:13 +0000 Subject: [PATCH] GNUmakerules.sh -> GNUmakerules.pl to avoid bashism --- setperm/GNUmakefile | 8 ++++++-- setperm/GNUmakerules.pl | 8 ++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 setperm/GNUmakerules.pl diff --git a/setperm/GNUmakefile b/setperm/GNUmakefile index d474ae1..0d2a21a 100644 --- a/setperm/GNUmakefile +++ b/setperm/GNUmakefile @@ -1,12 +1,16 @@ include GNUmakevars + +all: setperm + setperm: + clean: rm setperm install: $(BINDIR)/setperm GNUmakevars: GNUmakevars.sh sh ./$^ > $@ -GNUmakerules: GNUmakerules.sh - sh ./$^ > $@ +GNUmakerules: GNUmakerules.pl + perl ./$^ > $@ include GNUmakerules diff --git a/setperm/GNUmakerules.pl b/setperm/GNUmakerules.pl new file mode 100644 index 0000000..8f30daa --- /dev/null +++ b/setperm/GNUmakerules.pl @@ -0,0 +1,8 @@ +#!/usr/bin/perl +use warnings; +use strict; + +print "\$(BINDIR)/%: %\n"; +print "\tcp \$^ \$@\n"; +print "\$(MAN1DIR)/%: %\n"; +print "\tcp \$^ \$@\n";