| 58 |
needupdate="yes" |
needupdate="yes" |
| 59 |
fi |
fi |
| 60 |
# Create parameters and check if an update is needed |
# Create parameters and check if an update is needed |
| 61 |
for i in news excuse other volatile s-p-u t-p-u oldstable oldstable-security stable-security testing-security experimental stable testing unstable |
# XXX order _does_ matter, the latter has precedence over the former |
| 62 |
|
for i in news excuse other mentors volatile s-p-u t-p-u oldstable \ |
| 63 |
|
oldstable-security stable-security testing-security experimental stable \ |
| 64 |
|
testing unstable |
| 65 |
do |
do |
| 66 |
if [ -f "$dir/$i.xml" ]; then |
if [ -f "$dir/$i.xml" ]; then |
| 67 |
# Input is the main xml file used by xsltproc to generate the HTML |
# Input is the main xml file used by xsltproc to generate the HTML |
| 68 |
# page. By default it is unstable.xml but it has many |
# page. By default it is unstable.xml but it has many |
| 69 |
# fallbacks (testing.xml, stable.xml, experimental.xml, ...) |
# fallbacks (testing.xml, stable.xml, experimental.xml, ...) |
| 70 |
input=$dir/$i.xml |
if [ "$i" != "mentors" ] ; then |
| 71 |
|
# mentors.d.n needs special handling, because we don't want a PTS |
| 72 |
|
# page to exist for packages only available on mentors.d.n |
| 73 |
|
input=$dir/$i.xml |
| 74 |
|
fi |
| 75 |
param="$param --stringparam has$i yes" |
param="$param --stringparam has$i yes" |
| 76 |
fi |
fi |
| 77 |
if [ "$needupdate" = "no" -a "$dir/$i.xml" -nt "$htmlfile" ]; then |
if [ "$needupdate" = "no" -a "$dir/$i.xml" -nt "$htmlfile" ]; then |