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() {
|
give_latest_from_dates() {
|
||||||
sed 's,-20,~20,g' | \
|
sed 's,-20,~20,g' | \
|
||||||
sort -k +1 -n -t '~' |\
|
sort -k +1 -n -t '~' | \
|
||||||
awk -F\~ \
|
awk -F\~ \
|
||||||
'BEGIN{i=$1; o=$0};
|
'BEGIN{i=$1; o=$0};
|
||||||
{ if($1 != i && i != "") { print o; }; i=$1; o=$0; }
|
{ if($1 != i && i != "") { print o; }; i=$1; o=$0; }
|
||||||
|
@ -67,6 +67,7 @@ update_symlinks() {
|
||||||
of=$(perl -p \
|
of=$(perl -p \
|
||||||
-e 's/20\d{6}T\d{6}Z/latest/g;' \
|
-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}\d{6}/latest/g;' \
|
||||||
|
-e 's/20\d{6}/latest/g;' \
|
||||||
-e 's/20\d{2}\.\d{2}/latest/g;' \
|
-e 's/20\d{2}\.\d{2}/latest/g;' \
|
||||||
<<<"$f")
|
<<<"$f")
|
||||||
ln -sf "$f" "$of"
|
ln -sf "$f" "$of"
|
||||||
|
|
Loading…
Reference in a new issue