From e2facdbfe1b68f843e4df389c40d3422e8fa2f6a Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 10 Aug 2005 22:02:34 +0000 Subject: use gawk instead of awk #102050 --- ChangeLog | 5 ++++- bin/quickpkg | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 20c80ec..04f6a4d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,12 +1,15 @@ # ChangeLog for Portage; the Gentoo Linux ports system # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Id: ChangeLog,v 1.997 2005/07/29 06:12:19 vapier Exp $ +# $Id: ChangeLog,v 1.998 2005/08/10 22:02:34 vapier Exp $ MAJOR CHANGES in 2.0.51: 1. /var/cache/edb/virtuals is no longer used at all. It's calculated now. 2. /var/cache/edb/world is now /var/lib/portage/world. 3. /etc/portage/profile/virtuals is _USER_ configs only. + 10 Aug 2005; Mike Frysinger bin/quickpkg: + Call gawk instead of awk so non-GNU systems work #102050 by Stephen Bennett. + 29 Jul 2005; Mike Frysinger bin/prepallman: Rather than use a hardcoded list and bash expansion, let find locate man directories for us. This fixes the issues of running prepman on symlinks diff --git a/bin/quickpkg b/bin/quickpkg index 9cb5c73..961128a 100755 --- a/bin/quickpkg +++ b/bin/quickpkg @@ -1,7 +1,7 @@ #!/bin/bash # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /local/data/ulm/cvs/history/var/cvsroot/gentoo-src/portage/bin/quickpkg,v 1.16 2005/04/12 22:37:12 vapier Exp $ +# $Header: /local/data/ulm/cvs/history/var/cvsroot/gentoo-src/portage/bin/quickpkg,v 1.17 2005/08/10 22:02:34 vapier Exp $ # This script tries to quickly create a Gentoo binary package using the # VDB_PATH/category/pkg/* files @@ -59,7 +59,7 @@ do_pkg() { cp ${SRCDIR}/* ${MYDIR}/temp/ # create filelist and a basic tbz2 - awk '{ + gawk '{ if ($1 != "dir") { if ($1 == "obj") NF=NF-2 @@ -86,7 +86,7 @@ do_pkg() { if [ -e ${PKGDIR}/All/$1.tbz2 ] ; then rm -f ${LOG} - PKGSTATS="${PKGSTATS}"$'\n'"$(einfo $1: `ls -alh ${PKGDIR}/All/$1.tbz2 | awk '{print $5}'`)" + PKGSTATS="${PKGSTATS}"$'\n'"$(einfo $1: `ls -alh ${PKGDIR}/All/$1.tbz2 | gawk '{print $5}'`)" eend 0 else cat ${LOG} -- cgit v1.2.3-65-gdbad