diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-03-18 15:49:22 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-03-18 15:49:22 +0000 |
commit | 78d1a42881b6051ef186838431dfbb49cf6f7e11 (patch) | |
tree | 4912235b69f6527f81a3620b6b500e0d5c6923d2 | |
parent | cb0ce875cb2d4bdb20e03c3cf628142eaa22caa8 (diff) | |
download | alpine-iso-78d1a42881b6051ef186838431dfbb49cf6f7e11.tar.bz2 alpine-iso-78d1a42881b6051ef186838431dfbb49cf6f7e11.tar.xz |
mklatest.sh: script to generate info about latest release for mirrors
-rw-r--r-- | mklatest.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/mklatest.sh b/mklatest.sh new file mode 100644 index 0000000..9e2b64e --- /dev/null +++ b/mklatest.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +# craete .latest.txt file for mirrors +# usage: + +current=$(cat current) || exit 1 +releasedir="v${current%.*}/releases" +target=.latest.txt + +do_stat() { + stat -c "$release_dir %y %n %s" *-$current-x86.iso +} + +do_stat || exit 1 +do_stat > $target + + |