summaryrefslogtreecommitdiffstats
path: root/scripts/patchfns.in
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/patchfns.in')
-rw-r--r--scripts/patchfns.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/patchfns.in b/scripts/patchfns.in
index a1c39bf..6ae58a4 100644
--- a/scripts/patchfns.in
+++ b/scripts/patchfns.in
@@ -505,6 +505,8 @@ refresh_file_list()
return 1
fi
+ # Do not reorder files in the file list...
+
if [ -e $pc_file ]
then
cat $pc_file >> $tmpfile
@@ -514,7 +516,10 @@ refresh_file_list()
then
return 1
fi
- sort $tmpfile | uniq > $pc_file
+ awk ' { if (seen[$0]) next
+ seen[$0]=1
+ print
+ }' $tmpfile > $pc_file
rm $tmpfile
return 0
fi