[scripts] gen_html: add support for monthly ISOs
Additionally, daily.tmpl skips now 'daily' and 'monthly' under Other.
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
<div style="float:right;">
|
||||
<ul style="margin:0px">
|
||||
<li><a href="../main.html">go to main editions</a></li>
|
||||
<li><a href="../monthly/monthly.html">go to monthly editions</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
+19
-2
@@ -17,16 +17,17 @@ fi
|
||||
iso_dir_prefix="/sabayon/rsync/rsync.sabayon.org/iso"
|
||||
main_dir=$iso_dir_prefix
|
||||
dailies_dir=$iso_dir_prefix/daily
|
||||
monthly_dir=$iso_dir_prefix/monthly
|
||||
unset iso_dir_prefix
|
||||
|
||||
for dir in "$main_dir" "$dailies_dir"; do
|
||||
for dir in "$main_dir" "$dailies_dir" "$monthly_dir"; do
|
||||
if [ ! -d "$dir" ]; then
|
||||
warn "'$dir' doesn't exist or is not a directory"
|
||||
exit 2
|
||||
fi
|
||||
done
|
||||
|
||||
common_args="--skip .. --skip main.html --skip daily.html --skip style.css"
|
||||
common_args="--skip .. --skip main.html --skip daily.html --skip monthly.html --skip style.css"
|
||||
|
||||
tmpfile="$script_dir/tmp.html"
|
||||
|
||||
@@ -38,6 +39,7 @@ fi
|
||||
# main
|
||||
if ! "$script" $common_args \
|
||||
main --template "$script_dir/main.tmpl" --dir "$main_dir" \
|
||||
--skip daily --skip monthly \
|
||||
> "$tmpfile"; then
|
||||
warn "script for main releases failed"
|
||||
rm -f "$tmpfile"
|
||||
@@ -65,6 +67,21 @@ if ! mv "$tmpfile" "$dailies_dir/daily.html"; then
|
||||
exit 2
|
||||
fi
|
||||
|
||||
# monthly
|
||||
if ! "$script" $common_args \
|
||||
main --template "$script_dir/monthly.tmpl" --dir "$monthly_dir" \
|
||||
> "$tmpfile"; then
|
||||
warn "script for monthly releases failed"
|
||||
rm -f "$tmpfile"
|
||||
exit 2
|
||||
fi
|
||||
|
||||
if ! mv "$tmpfile" "$monthly_dir/monthly.html"; then
|
||||
warn "mv $tmpfile $monthly_dir/monthly failed"
|
||||
rm -f "$tmpfile"
|
||||
exit 2
|
||||
fi
|
||||
|
||||
# CSS
|
||||
if ! cp "$script_dir/style.css" "$main_dir/"; then
|
||||
warn "cp $script_dir/style.css $main_dir/ failed"
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
<div style="float:right;">
|
||||
<ul style="margin:0px">
|
||||
<li><a href="daily/daily.html">go to "daily" editions</a></li>
|
||||
<li><a href="monthly/monthly.html">go to monthly editions</a></li>
|
||||
<li><a href="http://torrents.sabayon.org/">go to torrent tracker</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,163 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||
<title>Sabayon Linux</title>
|
||||
<link rel="stylesheet" type="text/css" href="../style.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>
|
||||
<span style="float:left;">
|
||||
<a href="#download_links">skip to download links</a>
|
||||
</span>
|
||||
</p>
|
||||
|
||||
<div style="float:right;">
|
||||
<ul style="margin:0px">
|
||||
<li><a href="../main.html">go to main editions</a></li>
|
||||
<li><a href="../daily/daily.html">go to "daily" editions</a></li>
|
||||
<li><a href="http://torrents.sabayon.org/">go to torrent tracker</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Sabayon comes in different flavours to choose.<br>
|
||||
To distinguish between them, a suffix is appended to file names.<br>
|
||||
Here's a short description. <strong>More details</strong> can be found <a href="http://forum.sabayon.org/viewtopic.php?f=86&t=20887">in this thread on Sabayon forum</a>.
|
||||
</p>
|
||||
|
||||
<p><strong>main releases:</strong></p>
|
||||
<dl>
|
||||
<dt>G</dt>
|
||||
<dd>This version contains the well known GNOME 3.</dd>
|
||||
<dt>K</dt>
|
||||
<dd>This version comes with KDE SC, another popular desktop environment.</dd>
|
||||
<dt>Xfce</dt>
|
||||
<dd>Contains Xfce - lightweight yet very functional and friendly desktop.</dd>
|
||||
<dt>MATE</dt>
|
||||
<dd>With the GNOME 2 fork.</dd>
|
||||
</dl>
|
||||
|
||||
<!--
|
||||
<p><strong>experimental or secondary releases:</strong></p>
|
||||
<dl>
|
||||
<dt>LXDE</dt>
|
||||
<dd>With LXDE. Small, pretty and usable. In this category it's the best solution for newbies.</dd>
|
||||
<dt>E17</dt>
|
||||
<dd>With Enlightenment DR17.</dd>
|
||||
</dl>
|
||||
-->
|
||||
|
||||
<p><strong>additionally, these Core releases are available:</strong></p>
|
||||
<!-- borrowed from Sabayon 7 release announcement for Core rel. and modified a bit :) -->
|
||||
<dl>
|
||||
<dt>SpinBase</dt>
|
||||
<dd>It's a very minimal environment that can be used for many different purposes: didactical, home server deployment, and even for custom Sabayon ISO images creation, using our tool called Molecule. Any Sabayon release we make is based on SpinBase.</dd>
|
||||
<dt>CoreCDX</dt>
|
||||
<dd>It's geared towards very minimal graphical environment setup, no fancy tools, browsers, whatever, just Fluxbox and command line.</dd>
|
||||
<dt>ServerBase</dt>
|
||||
<dd>It's very similar to SpinBase, but powered by a server-optimized Linux kernel (package: sys-kernel/linux-server).</dd>
|
||||
<!--
|
||||
<dt>OpenVZ</dt>
|
||||
<dd>It's our official OpenVZ template.</dd>
|
||||
-->
|
||||
</dl>
|
||||
|
||||
<p>
|
||||
All of them have a smaller footprint making them fit into a single CD, or USB memory sticks.<br>
|
||||
SpinBase and ServerBase are provided with a very minimal Anaconda Installer and CoreCDX <strong>should be preferred</strong> for non-standard filesystem/partition layouts.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<a name="download_links"></a>
|
||||
</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Architecture</th>
|
||||
<th>Download link</th>
|
||||
<th>Torrent</th>
|
||||
<th>md5sum</th>
|
||||
<th>Package list</th>
|
||||
<th>Size</th>
|
||||
<th>Date</th>
|
||||
</tr>
|
||||
<TMPL_LOOP NAME="intel_editions_loop">
|
||||
<TMPL_LOOP NAME="arches_loop">
|
||||
<tr>
|
||||
<TMPL_IF NAME="__first__">
|
||||
<td rowspan="<TMPL_VAR name="arches_per_edition">">
|
||||
<strong><TMPL_VAR NAME="name" ESCAPE=html></strong>
|
||||
</td>
|
||||
</TMPL_IF>
|
||||
<td>
|
||||
<TMPL_VAR name="arch" ESCAPE=html>
|
||||
</td>
|
||||
<td>
|
||||
<TMPL_IF NAME="mainfile_url">
|
||||
<a href="<TMPL_VAR NAME="mainfile_url" ESCAPE=html>">download</a>
|
||||
<TMPL_ELSE>
|
||||
???
|
||||
</TMPL_IF>
|
||||
</td>
|
||||
<td>
|
||||
<TMPL_IF NAME="torrent_url">
|
||||
<a href="<TMPL_VAR NAME="torrent_url" ESCAPE=html>">torrent</a>
|
||||
<TMPL_ELSE>
|
||||
N/A
|
||||
</TMPL_IF>
|
||||
</td>
|
||||
<td>
|
||||
<TMPL_IF NAME="md5_url">
|
||||
<a href="<TMPL_VAR NAME="md5_url" ESCAPE=html>">md5sum</a>
|
||||
<TMPL_ELSE>
|
||||
N/A
|
||||
</TMPL_IF>
|
||||
</td>
|
||||
<td>
|
||||
<TMPL_IF NAME="pkglist_url">
|
||||
<a href="<TMPL_VAR NAME="pkglist_url" ESCAPE=html>">package list</a>
|
||||
<TMPL_ELSE>
|
||||
N/A
|
||||
</TMPL_IF>
|
||||
</td>
|
||||
<td>
|
||||
<TMPL_IF NAME="mainfile_size">
|
||||
<TMPL_VAR NAME="mainfile_size" ESCAPE=html>
|
||||
<TMPL_ELSE>
|
||||
N/A
|
||||
</TMPL_IF>
|
||||
</td>
|
||||
<td>
|
||||
<TMPL_IF NAME="mainfile_date">
|
||||
<TMPL_VAR NAME="mainfile_date" ESCAPE=html>
|
||||
<TMPL_ELSE>
|
||||
N/A
|
||||
</TMPL_IF>
|
||||
</td>
|
||||
</tr>
|
||||
</TMPL_LOOP>
|
||||
</TMPL_LOOP>
|
||||
</table>
|
||||
<p style="font-size:75%; margin-top:0px">All dates are in day-month-year format.</p>
|
||||
|
||||
<TMPL_IF NAME="others_loop">
|
||||
<p>
|
||||
<strong>Other:</strong><br>
|
||||
<TMPL_LOOP NAME="others_loop">
|
||||
<a href="<TMPL_VAR NAME="url" ESCAPE=html>">
|
||||
<TMPL_VAR NAME="name" ESCAPE=html>
|
||||
</a>
|
||||
<br>
|
||||
</TMPL_LOOP>
|
||||
</p>
|
||||
</TMPL_IF>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -196,7 +196,7 @@ sub parse_entry {
|
||||
# If numeration schema changes, look at $re_ver. :)
|
||||
# $re_ver part can't be too loose because it would match something else
|
||||
# than release type...
|
||||
my $re_ver = "(?<ver>DAILY|[0-9]+)";
|
||||
my $re_ver = "(?<ver>DAILY|[0-9.]+)";
|
||||
|
||||
my $fmt = sub {
|
||||
my ($ver, $ed) = @_;
|
||||
|
||||
Reference in New Issue
Block a user