[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r6934 - trunk/www/utils/sbin
From: |
reinhard |
Subject: |
[gnue] r6934 - trunk/www/utils/sbin |
Date: |
Wed, 2 Feb 2005 04:43:57 -0600 (CST) |
Author: reinhard
Date: 2005-02-02 04:43:56 -0600 (Wed, 02 Feb 2005)
New Revision: 6934
Modified:
trunk/www/utils/sbin/update-downloads
Log:
Committed to cvs a change that was actually done long before.
Modified: trunk/www/utils/sbin/update-downloads
===================================================================
--- trunk/www/utils/sbin/update-downloads 2005-02-02 10:30:04 UTC (rev
6933)
+++ trunk/www/utils/sbin/update-downloads 2005-02-02 10:43:56 UTC (rev
6934)
@@ -13,7 +13,9 @@
for e in $extensions; do
files="$(find ../releases -name "${p}-*${e}")"
if test "$files"; then
- current=$(echo "$files" | sed -e "s/$e\$//" | grep -v "debug" | sort |
tail --lines=1)
+ # first sort by major number, then by minor number
+ # take care of the ../ at the start of each filename when counting the .
+ current=$(echo "$files" | sed -e "s/$e\$//" | grep -v "debug" | sort -t
'.' -k 3,3 -k 4,4n -k 5,5n | tail --lines=1)
test -z "$current" && continue
# Do not include packaged files older than corresponding .tar.gz
test -z "$source" && source="$current" # version of source file
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r6934 - trunk/www/utils/sbin,
reinhard <=