]> git.deb.at Git - deb/hackedgotchi.git/blobdiff - cron/15planets
First new language: es
[deb/hackedgotchi.git] / cron / 15planets
diff --git a/cron/15planets b/cron/15planets
new file mode 100755 (executable)
index 0000000..b94fb64
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+# update the central list of available planets, so we can include that
+# in our index.html.dj for everyone.
+
+cd /org/planet.debian.org/
+
+echo '<li><a href="http://planet.debian.org/">Planet Debian</a></li>' > templates/planets.html
+
+for lang in $(ls -1 languages/); do
+       name=$(awk -F " = " '/name = / {print $2; exit}' config/config.ini.${lang})
+       link="http://planet.debian.org/${lang}/"
+       echo "<li><a href=\"${link}\">${name}</a></li>" >> templates/planets.html
+done