summary |
tags |
clone url |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
7b1a346)
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
#
# @(#)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
# 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