2024-01-25 16:36:29 +01:00
|
|
|
# vim:syntax=sh
|
|
|
|
|
|
|
|
micro_version=6.0
|
|
|
|
qu="" # empty string for GA, QuarterlyUpdate repins have -N in version
|
|
|
|
logfile_base=~/publish_logs/$micro_version/$(date -d "$date" '+%Y/%m/%d/%H%M')
|
|
|
|
synclog="${logfile_base}.log"
|
|
|
|
deletelog="${logfile_base}-deletes.log"
|
|
|
|
path="/distribution/leap-micro/$micro_version/product"
|
2024-06-17 17:52:57 +02:00
|
|
|
flavors=(x86_64 aarch64)
|
2024-01-25 16:36:29 +01:00
|
|
|
|
2024-06-17 18:03:24 +02:00
|
|
|
# openSUSE-Leap-Micro-6.0-aarch64-Build13.1.iso is the filename by 000productcompose
|
2024-01-25 16:36:29 +01:00
|
|
|
get_version() {
|
|
|
|
# get expected version from first flavor
|
|
|
|
if [ -z "$version" ]; then
|
2024-06-17 18:03:24 +02:00
|
|
|
version=`echo $stage/iso/openSUSE-Leap-Micro-$micro_version$qu-$flavor-Build[0123456789]*.[0123456789]*.iso`
|
2024-01-25 16:36:29 +01:00
|
|
|
version=${version##*Build}
|
|
|
|
version=${version%-*}
|
|
|
|
if [ -z "$version" ]; then
|
|
|
|
echo "no version found, exit." | tee -a $synclog
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
get_iso()
|
|
|
|
{
|
2024-06-18 09:44:35 +02:00
|
|
|
# openSUSE-Leap-Micro-6.0-aarch64-Build13.1.iso
|
2024-06-17 18:03:24 +02:00
|
|
|
iso="openSUSE-Leap-Micro-$micro_version$qu-$flavor-Build$version.iso"
|
2024-01-25 16:36:29 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
get_iso_link()
|
|
|
|
{
|
2024-06-17 18:03:24 +02:00
|
|
|
link="$stage/iso/openSUSE-Leap-$micro_version$qu-$flavor-Current.iso"
|
2024-01-25 16:36:29 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
get_diff_url()
|
|
|
|
{
|
|
|
|
url="$diff_url_base/$micro_version/diff/$version"
|
|
|
|
}
|
|
|
|
|
|
|
|
get_mark_published_url()
|
|
|
|
{
|
|
|
|
url="$diff_url_base/$micro_version/current"
|
|
|
|
}
|
|
|
|
|
|
|
|
get_changes_filename()
|
|
|
|
{
|
|
|
|
# ChangeLog files from obsgendiff are used instead
|
|
|
|
#changes="$changes_dir_base/jump/$jump_version/Changes.$version.txt"
|
|
|
|
:
|
|
|
|
# changes="$changes_dir_base/leap/$micro_version/Changes.$version.txt"
|
|
|
|
}
|