From 1419d9dbc3189a84f72cf716eee07544fe638efc Mon Sep 17 00:00:00 2001 From: hjp Date: Fri, 7 Oct 2011 07:51:23 +0000 Subject: [PATCH] converted GNUmakerules.sh to a perl script to avoid shell incompatibilities. --- pathtools/GNUmakefile | 4 ++-- pathtools/GNUmakerules.pl | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 pathtools/GNUmakerules.pl diff --git a/pathtools/GNUmakefile b/pathtools/GNUmakefile index 3d5c976..2337386 100644 --- a/pathtools/GNUmakefile +++ b/pathtools/GNUmakefile @@ -48,8 +48,8 @@ endif GNUmakevars: GNUmakevars.sh sh ./$^ > $@ -GNUmakerules: GNUmakerules.sh - sh ./$^ > $@ +GNUmakerules: GNUmakerules.pl + perl ./$^ > $@ include GNUmakerules diff --git a/pathtools/GNUmakerules.pl b/pathtools/GNUmakerules.pl new file mode 100644 index 0000000..8f30daa --- /dev/null +++ b/pathtools/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";