Fixes for locates updatedb.csh script, remove -T from sort
authorGeoff Rehmet <csgr@alpha.ru.ac.za>
Sun, 4 Apr 1993 00:00:00 +0000 (00:00 +0000)
committerGeoff Rehmet <csgr@alpha.ru.ac.za>
Sun, 4 Apr 1993 00:00:00 +0000 (00:00 +0000)
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

index 44446e6..ded354a 100644 (file)
 #
 #      @(#)updatedb.csh        5.1 (Berkeley) 4/2/91
 #
 #
 #      @(#)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
 
 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' | \
 # 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 | \
 
 $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
        awk '{ if (NR <= 128) print $2 }' | tr -d '\012' > $bigrams
 
 # code the file list