From 92609681d4a7ef9a52077d46e01cf957efa36346 Mon Sep 17 00:00:00 2001 From: Geoff Rehmet Date: Sun, 4 Apr 1993 00:00:00 +0000 Subject: [PATCH] Fixes for locates updatedb.csh script, remove -T from sort The shell script from locate updatedb.csh had -T options on all the sort commands, gnu sort does not support the -T option so these have been removed. AUTHOR: Geoff Rehmet (csgr@alpha.ru.ac.za) 386BSD-Patchkit: patch00132 --- usr/src/usr.bin/locate/locate/updatedb.csh | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/usr/src/usr.bin/locate/locate/updatedb.csh b/usr/src/usr.bin/locate/locate/updatedb.csh index 44446e68c2..ded354adab 100644 --- a/usr/src/usr.bin/locate/locate/updatedb.csh +++ b/usr/src/usr.bin/locate/locate/updatedb.csh @@ -36,6 +36,14 @@ # # @(#)updatedb.csh 5.1 (Berkeley) 4/2/91 # +# PATCHES MAGIC LEVEL PATCH THAT GOT US HERE +# -------------------- ----- ---------------------- +# CURRENT PATCH LEVEL: 1 00132 +# -------------------- ----- ---------------------- +# +# 04 Apr 93 Geoff Rehmet Modified to remove the -T option +# from all of the sort calls +# set SRCHPATHS = "/" # directories to be put in the database set LIBDIR = /usr/libexec # for subprograms @@ -58,11 +66,11 @@ set errs = $TMPDIR/locate.errs.$$ # find ${SRCHPATHS} -print | \ find ${SRCHPATHS} ! -fstype local -a -prune -o -print | \ tr '/' '\001' | \ - (sort -T /var/tmp -f; echo $status > $errs) | tr '\001' '/' > $filelist + (sort -f; echo $status > $errs) | tr '\001' '/' > $filelist $LIBDIR/locate.bigram < $filelist | \ - (sort -T /var/tmp; echo $status >> $errs) | \ - uniq -c | sort -T /var/tmp -nr | \ + (sort ; echo $status >> $errs) | \ + uniq -c | sort -nr | \ awk '{ if (NR <= 128) print $2 }' | tr -d '\012' > $bigrams # code the file list -- 2.20.1