From 24d02c161a85d7bf047757b16e6885a67586051f Mon Sep 17 00:00:00 2001 From: jlam Date: Sat, 6 Mar 2004 15:11:22 +0000 Subject: Update pkgtools/createbuildlink to 3.3. Changes from version 3.2 include fixes to the whitespace in the generated files to more closely match the template buildlink3.mk file. --- pkgtools/createbuildlink/Makefile | 4 ++-- pkgtools/createbuildlink/files/createbuildlink | 24 ++++++++++++++++++------ 2 files changed, 20 insertions(+), 8 deletions(-) (limited to 'pkgtools/createbuildlink') diff --git a/pkgtools/createbuildlink/Makefile b/pkgtools/createbuildlink/Makefile index 11db361fcb0..07637d632d4 100644 --- a/pkgtools/createbuildlink/Makefile +++ b/pkgtools/createbuildlink/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.27 2004/03/05 19:42:09 jlam Exp $ +# $NetBSD: Makefile,v 1.28 2004/03/06 15:11:22 jlam Exp $ -DISTNAME= createbuildlink-3.2 +DISTNAME= createbuildlink-3.3 CATEGORIES= pkgtools sysutils MASTER_SITES= # Nothing DISTFILES= # Nothing diff --git a/pkgtools/createbuildlink/files/createbuildlink b/pkgtools/createbuildlink/files/createbuildlink index e46181b3436..288cc6bb52f 100755 --- a/pkgtools/createbuildlink/files/createbuildlink +++ b/pkgtools/createbuildlink/files/createbuildlink @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: createbuildlink,v 1.19 2004/03/05 19:42:09 jlam Exp $ +# $NetBSD: createbuildlink,v 1.20 2004/03/06 15:11:22 jlam Exp $ # # Copyright (c) 2002 The NetBSD Foundation, Inc. # All rights reserved. @@ -40,8 +40,9 @@ # and PLIST # -REV=`echo '$Revision: 1.19 $' | sed 's/\\$//g'` +REV=`echo '$Revision: 1.20 $' | sed 's/\\$//g'` tmpdir=/tmp +spacesintab=8 makefile=Makefile sedrules=$tmpdir/sedrules.buildlink.$$ PLIST=PLIST @@ -151,9 +152,20 @@ EOF else # buildlink 3 +gap=" " +for i in 1 2 3; do + n=`expr $i \* $spacesintab` + if [ ${#PKGUPPER} -ge $n ]; then + gap=" $gap" + fi +done + sed -f $sedrules </dev/null 2>&1 && echo "" # Be careful not to print duplicate \n for i in $makefile $commons ; do [ ! -f $i ] || grep '^.include.*\.\.\/.*\/.*/buildlink[23].mk\"' $i | sed "s/buildlink$otherver/buildlink$blver/" | -- cgit v1.2.3