From 8f5e5726134ce5b4bd436b16f367796d851df553 Mon Sep 17 00:00:00 2001 From: Manoj Srivastava Date: Sun, 27 Apr 2014 17:54:01 -0700 Subject: Imported Upstream version 3.5-36 --- bin/Jmakefile | 5 +++-- bin/Makefile.SH | 20 +++++++++++++++----- bin/manilist.SH | 4 ++-- bin/packinit.SH | 4 ++-- bin/perload | 4 ++-- bin/svn-revision | 5 +++-- 6 files changed, 27 insertions(+), 15 deletions(-) (limited to 'bin') diff --git a/bin/Jmakefile b/bin/Jmakefile index 3ed908a..a3cf78b 100644 --- a/bin/Jmakefile +++ b/bin/Jmakefile @@ -2,7 +2,7 @@ * Jmakefile for bin subdirectory. */ -;# $Id: Jmakefile 9 2006-08-25 22:31:50Z rmanfredi $ +;# $Id: Jmakefile 48 2010-11-28 23:05:09Z rmanfredi $ ;# ;# Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi ;# @@ -30,7 +30,8 @@ BINSH = \ !f.SH \ -expand \\ -depend:: +depend:: local_depend +local_depend:: ($(SED) '/^# DO NOT DELETE/q' Makefile && \ grep '^\$$grep' $(BINSH) | \ $(SED) -e "s/^.*' \([^ ]*\) >>[ ]*\([^ ]*\)/\2: \1/" \ diff --git a/bin/Makefile.SH b/bin/Makefile.SH index 35630ec..89aaec1 100755 --- a/bin/Makefile.SH +++ b/bin/Makefile.SH @@ -1,5 +1,5 @@ -: Makefile.SH generated from Jmake.tmpl and Jmakefile [jmake 3.5 PL0] -: $X-Id: Jmake.tmpl 8 2006-08-25 22:27:18Z rmanfredi $ +: Makefile.SH generated from Jmake.tmpl and Jmakefile [jmake 3.5-43] +: $X-Id: Jmake.tmpl 47 2010-11-28 22:23:13Z rmanfredi $ case $CONFIG in '') @@ -58,12 +58,12 @@ SCRIPTS = \$(BIN) $spitshell >>Makefile <<'!NO!SUBS!' ######################################################################## # Jmake rules for building libraries, programs, scripts, and data files -# $X-Id: Jmake.rules 8 2006-08-25 22:27:18Z rmanfredi $ +# $X-Id: Jmake.rules 18 2006-12-27 10:35:09Z rmanfredi $ ######################################################################## # Start of Jmakefile -# $X-Id: Jmakefile 9 2006-08-25 22:31:50Z rmanfredi $ +# $X-Id: Jmakefile 48 2010-11-28 23:05:09Z rmanfredi $ # # Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi # @@ -138,7 +138,8 @@ BINSH = \ packinit.SH \ manilist.SH -depend:: +depend:: local_depend +local_depend:: ($(SED) '/^# DO NOT DELETE/q' Makefile && \ grep '^\$$grep' $(BINSH) | \ $(SED) -e "s/^.*' \([^ ]*\) >>[ ]*\([^ ]*\)/\2: \1/" \ @@ -206,6 +207,8 @@ tags:: local_clobber:: $(RM) tags +depend:: + ######################################################################## # Empty rules for directories with no sub-directories -- do not edit @@ -225,6 +228,13 @@ Makefiles:: Makefiles.SH:: +######################################################################## +# Dependencies generated by make depend +# DO NOT DELETE THIS LINE -- make depend relies on it + +# Put nothing here or make depend will gobble it up +.FORCE_DEPEND:: + @echo "You must run 'make depend' in $(TOP) first."; exit 1 !NO!SUBS! chmod 644 Makefile $eunicefix Makefile diff --git a/bin/manilist.SH b/bin/manilist.SH index 8bfb341..42972ef 100755 --- a/bin/manilist.SH +++ b/bin/manilist.SH @@ -17,10 +17,10 @@ esac echo "Extracting bin/manilist (with variable substitutions)" $spitshell >manilist <packinit <) { if ($. == 1 && /^(:|#).*perl/) { # Invocation stub diff --git a/bin/svn-revision b/bin/svn-revision index 0d88b3b..c698135 100755 --- a/bin/svn-revision +++ b/bin/svn-revision @@ -25,7 +25,7 @@ if [ "x$FILE" = x ]; then FILE="&1" oldrev='' else - oldrev=`grep REVISION "$FILE" 2>/dev/null | head -n1 | cut -d' ' -f3` + oldrev=`grep REVISION "$FILE" 2>/dev/null | head -n1 | cut -d' ' -f4` fi if test -d "$TOP/.svn"; then @@ -52,8 +52,9 @@ EOF if [ "x$revnum" = x ]; then echo '/* Subversion information not available */' else + XRev='$Revision' cat <