From cd6153a0f1f094a57c6e20e91f1960fe41f79038 Mon Sep 17 00:00:00 2001 From: Rene Rebe Date: Sun, 16 May 2004 19:13:22 +0000 Subject: [PATCH] Rene Rebe: fixed core script (sort) to obey the POSIX standard and recent coreutils [2004050801470118856] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@2954 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- scripts/Build-Pkg | 2 +- scripts/Config | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/Build-Pkg b/scripts/Build-Pkg index 9813caaab..54f4a27f6 100755 --- a/scripts/Build-Pkg +++ b/scripts/Build-Pkg @@ -859,7 +859,7 @@ EOT echo "$file:" $( cd $root/var/adm/flists grep -l " $file\$" * ) done < <( cat $root/var/adm/flists/* | sed "s,^$xpkg:,.," | \ - sort +1 | uniq -d -f1 | grep '^\. ' ) + sort -k1 | uniq -d -f1 | grep '^\. ' ) fi found_local=0 diff --git a/scripts/Config b/scripts/Config index 4ff52da52..bc328f8d0 100755 --- a/scripts/Config +++ b/scripts/Config @@ -143,7 +143,7 @@ else for (id in count) printf "%7d %7Ld %10.3f %s\n", count[id], time[id], time[id]/count[id], id; } - ' < config.profile | sort -n +1 > config.profile.new + ' < config.profile | sort -n -k1 > config.profile.new mv config.profile.new config.profile } fi