catalyst-auto: tweak timestamp.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
This commit is contained in:
parent
ed258c751b
commit
c19080d5f4
|
@ -47,7 +47,7 @@ EXTENSIONS="[.tar.xz,.tar.bz2,.tar.gz,.tar,.sfs]"
|
|||
|
||||
give_latest_from_dates() {
|
||||
sed 's,-20,~20,g' | \
|
||||
sort -k +1 -n -t '~' |\
|
||||
sort -k +1 -n -t '~' | \
|
||||
awk -F\~ \
|
||||
'BEGIN{i=$1; o=$0};
|
||||
{ if($1 != i && i != "") { print o; }; i=$1; o=$0; }
|
||||
|
@ -67,6 +67,7 @@ update_symlinks() {
|
|||
of=$(perl -p \
|
||||
-e 's/20\d{6}T\d{6}Z/latest/g;' \
|
||||
-e 's/20\d{6}\d{6}/latest/g;' \
|
||||
-e 's/20\d{6}/latest/g;' \
|
||||
-e 's/20\d{2}\.\d{2}/latest/g;' \
|
||||
<<<"$f")
|
||||
ln -sf "$f" "$of"
|
||||
|
|
Loading…
Reference in a new issue