From 0d6d25b8995bba91d697c47205b59d7f1e0c9c38 Mon Sep 17 00:00:00 2001 From: hjp Date: Sun, 30 Jan 2011 19:41:15 +0000 Subject: [PATCH] Replaced GNUmakerules.sh with GNUmakerules.pl because Debian now uses a /bin/sh which doesn't understand echo -e. --- errno/GNUmakefile | 10 +++++++--- errno/GNUmakerules.pl | 8 ++++++++ errno/GNUmakerules.sh | 5 ----- 3 files changed, 15 insertions(+), 8 deletions(-) create mode 100755 errno/GNUmakerules.pl delete mode 100755 errno/GNUmakerules.sh diff --git a/errno/GNUmakefile b/errno/GNUmakefile index 1879318..ab96a28 100644 --- a/errno/GNUmakefile +++ b/errno/GNUmakefile @@ -1,5 +1,9 @@ -# $Id: GNUmakefile,v 1.6 2011-01-30 19:33:28 hjp Exp $ +# $Id: GNUmakefile,v 1.7 2011-01-30 19:41:15 hjp Exp $ # $Log: GNUmakefile,v $ +# Revision 1.7 2011-01-30 19:41:15 hjp +# Replaced GNUmakerules.sh with GNUmakerules.pl because Debian now uses a +# /bin/sh which doesn't understand echo -e. +# # Revision 1.6 2011-01-30 19:33:28 hjp # removed duplicate rules # @@ -31,8 +35,8 @@ install: $(BINDIR)/errno GNUmakevars: GNUmakevars.sh sh ./$^ > $@ -GNUmakerules: GNUmakerules.sh - sh ./$^ > $@ +GNUmakerules: GNUmakerules.pl + perl ./$^ > $@ include GNUmakerules -include *.d diff --git a/errno/GNUmakerules.pl b/errno/GNUmakerules.pl new file mode 100755 index 0000000..8f30daa --- /dev/null +++ b/errno/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"; diff --git a/errno/GNUmakerules.sh b/errno/GNUmakerules.sh deleted file mode 100755 index 952629f..0000000 --- a/errno/GNUmakerules.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh -echo "\$(BINDIR)/%: %" -echo -e "\tcp \$^ \$@" -echo "\$(MAN1DIR)/%: %" -echo -e "\tcp \$^ \$@"