-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Leap Micro 6.1 publish_distro configs
- Loading branch information
Showing
2 changed files
with
109 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# vim:syntax=sh | ||
|
||
micro_version=6.1 | ||
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" | ||
flavors=(x86_64 aarch64) | ||
|
||
# openSUSE-Leap-Micro-6.1-aarch64-Build13.1.iso is the filename by 000productcompose | ||
get_version() { | ||
# get expected version from first flavor | ||
if [ -z "$version" ]; then | ||
version=`echo $stage/iso/openSUSE-Leap-Micro-$micro_version$qu-$flavor-Build[0123456789]*.[0123456789]*.iso` | ||
version=${version##*Build} | ||
version=${version%-*} | ||
if [ -z "$version" ]; then | ||
echo "no version found, exit." | tee -a $synclog | ||
exit 1 | ||
fi | ||
fi | ||
} | ||
|
||
get_iso() | ||
{ | ||
# openSUSE-Leap-Micro-6.1-aarch64-Build13.1.iso | ||
iso="openSUSE-Leap-Micro-$micro_version$qu-$flavor-Build$version.iso" | ||
} | ||
|
||
get_iso_link() | ||
{ | ||
link="$stage/iso/openSUSE-Leap-$micro_version$qu-$flavor-Current.iso" | ||
} | ||
|
||
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" | ||
} |
57 changes: 57 additions & 0 deletions
57
publish_distro_conf/publish_leap-micro61_appliances.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# vim:syntax=sh | ||
|
||
micro_version=6.1 | ||
logfile_base=~/publish_logs/$micro_version-appliances/$(date -d "$date" '+%Y/%m/%d/%H%M') | ||
synclog="${logfile_base}.log" | ||
deletelog="${logfile_base}-deletes.log" | ||
path="/distribution/leap-micro/$micro_version/appliances" | ||
flavors=(Default-SelfInstall) | ||
repos=() | ||
extra_repos=() | ||
isodir="" | ||
|
||
get_version() { | ||
# get expected version from first flavor | ||
if [ -z "$version" ]; then | ||
version=`echo $stage/openSUSE-Leap-Micro.x86_64-$micro_version-$flavor-Build*.raw.xz` | ||
version=${version##*Build} | ||
version=${version%.*} | ||
if [ -z "$version" ]; then | ||
echo "no version found, exit." | tee -a $synclog | ||
exit 1 | ||
fi | ||
fi | ||
} | ||
|
||
_get_iso() | ||
{ | ||
local snapshot="$1" | ||
local suffix=xz | ||
# echo "openSUSE-Leap-Micro-$micro_version-JeOS.x86_64-$micro_version.0-$flavor-$snapshot.$suffix" | ||
echo "openSUSE-Leap-Micro.x86_64-$micro_version-$flavor-$snapshot.$suffix" | ||
} | ||
|
||
get_iso() | ||
{ | ||
iso=`_get_iso "Build$version"` | ||
} | ||
|
||
get_iso_link() | ||
{ | ||
link="$stage/`_get_iso Current`" | ||
} | ||
|
||
get_diff_url() | ||
{ | ||
url="" | ||
} | ||
|
||
get_mark_published_url() | ||
{ | ||
url="" | ||
} | ||
|
||
get_changes_filename() | ||
{ | ||
changes="" | ||
} |