2021-03-19 08:51:18 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e -x
|
|
|
|
|
|
|
|
cd "$(dirname "$(readlink -f "$0")")"
|
|
|
|
|
2021-04-06 18:37:32 +00:00
|
|
|
base_dir=${base_dir:-/z/home/mosu/files/html/bunkus.org/videotools/mkvtoolnix/windows/releases}
|
|
|
|
archive_dir="${archive_dir:-${base_dir}/${mtxversion}}"
|
2021-03-19 08:51:18 +00:00
|
|
|
|
|
|
|
function determine_latest_version {
|
|
|
|
ls "${base_dir}" | \
|
|
|
|
grep '[0-9]*\.[0-9]*' | \
|
|
|
|
sed -Ee 's!.*/!!' | \
|
|
|
|
sort -V | \
|
|
|
|
tail -n 1
|
|
|
|
}
|
|
|
|
|
|
|
|
mtxversion=$(determine_latest_version)
|
|
|
|
|
2021-04-13 17:06:27 +00:00
|
|
|
for file in "${archive_dir}"/${mtxversion}/*.7z; do
|
2021-03-19 08:51:18 +00:00
|
|
|
./create_package.sh "$file" --sign
|
|
|
|
done
|
|
|
|
|
|
|
|
mv -v package-*/*.msix /z/home/mosu/dl/
|