Author: benm
Date: 2005-04-10 18:51:07 -0400 (Sun, 10 Apr 2005)
New Revision: 42769

Added:
   trunk/release/website/
   trunk/release/website/distro-info.sh
   trunk/release/website/groups
   trunk/release/website/mk-index.sh
   trunk/release/website/mk-oc.sh
   trunk/release/website/oc-config/
   trunk/release/website/oc-config/gtk-sharp-2.0.chan
   trunk/release/website/oc-config/gtk-sharp.chan
   trunk/release/website/oc-config/mono-1.1.chan
   trunk/release/website/oc-config/mono.chan
   trunk/release/website/oc-config/production.conf
   trunk/release/website/oc-config/stage.conf
   trunk/release/website/sources/
Log:
web management scripts

Added: trunk/release/website/distro-info.sh
===================================================================
--- trunk/release/website/distro-info.sh        2005-04-10 20:57:45 UTC (rev 
42768)
+++ trunk/release/website/distro-info.sh        2005-04-10 22:51:07 UTC (rev 
42769)
@@ -0,0 +1,9 @@
+function distro_info () {
+       DISTRO=$1
+       
+       case "$DISTRO" in
+               *-i[35]86) ARCH=x86 ;;
+                *-x86_64) ARCH=x86_64 ;;
+       esac
+       
+}
\ No newline at end of file

Added: trunk/release/website/groups
===================================================================
--- trunk/release/website/groups        2005-04-10 20:57:45 UTC (rev 42768)
+++ trunk/release/website/groups        2005-04-10 22:51:07 UTC (rev 42769)
@@ -0,0 +1,13 @@
+<html>
+       <body>
+               <h3>Mono 1.1</h3>
+               <ul>
+#                              mono-1.1
+               </ul>
+               
+               <h3>Gtk# 2.0</h3>
+               <ul>
+#                      gtk-sharp-2.0
+               </ul>
+       </body>
+</html>
\ No newline at end of file

Added: trunk/release/website/mk-index.sh
===================================================================
--- trunk/release/website/mk-index.sh   2005-04-10 20:57:45 UTC (rev 42768)
+++ trunk/release/website/mk-index.sh   2005-04-10 22:51:07 UTC (rev 42769)
@@ -0,0 +1,51 @@
+#!/bin/sh
+
+confdir=$(dirname $(pwd)/$0)
+. $confdir/distro-info.sh
+
+
+
+WEB_DIR=$1
+
+cd $WEB_DIR
+
+for distro_conf in $confdir/sources/*; do 
+       
+       distro_info `basename $distro_conf`
+       
+       mkdir -p $DISTRO
+       
+       OUT=$DISTRO/index.html
+       
+
+       rm -rf $OUT
+       
+       cat $confdir/groups | while read line
+       do
+               if echo "$line" | grep -q -v '^#';  then
+                       echo $line >> $OUT
+               else
+                       line=`echo $line | sed "s/^# //"`
+                       
+                       grep -v "^#" $distro_conf | while read mod mloc
+                       do
+                               if [[ x$line = x$mod ]]; then
+                                       
+                                       eval mloc=$mloc
+                                       if [ ! -d $mloc/$mod/*/ ]; then
+                                               continue
+                                       fi
+                                       
+                                       VERSION=`ls -d $mloc/$mod/*/ -t -1 | 
head -n1`
+                                       VERSION=`dirname $VERSION`/`basename 
$VERSION`
+                                       
+                                       for i in $VERSION/*.rpm; do
+                                               base=`basename $i`
+                                               
+                                               echo "<ul><a 
href='../$i'>$base</a></ul>" >> $OUT
+                                       done
+                               fi
+                       done
+               fi
+       done
+done
\ No newline at end of file


Property changes on: trunk/release/website/mk-index.sh
___________________________________________________________________
Name: svn:executable
   + *

Added: trunk/release/website/mk-oc.sh
===================================================================
--- trunk/release/website/mk-oc.sh      2005-04-10 20:57:45 UTC (rev 42768)
+++ trunk/release/website/mk-oc.sh      2005-04-10 22:51:07 UTC (rev 42769)
@@ -0,0 +1,51 @@
+#!/bin/bash
+
+confdir=$(dirname $(pwd)/$0)
+. $confdir/distro-info.sh
+
+WEB_DIR=$1
+serverconf=$2
+cd $WEB_DIR
+
+rm -rf server.conf
+
+
+cat $confdir/oc-config/$serverconf.conf | while read line; do
+       if [ "x${line:0:1}" != "x!" ]; then
+               echo $line >> server.conf
+               continue
+       fi
+       #trim whitespace
+       chan=$(echo ${line:1})
+       echo "AddChannel channels/$chan" >> server.conf
+       
+       rm -rf $chan.conf
+       
+       cat $confdir/oc-config/$chan.chan | while read lline; do
+               if [ "x${lline:0:1}" != "x!" ]; then
+                       echo $lline >> $chan.conf
+                       continue
+               fi
+               
+               package=$(echo ${lline:1})
+
+               for distro_conf in $confdir/sources/*; do 
+                       distro_info `basename $distro_conf`
+               
+                       grep -v "^#" $distro_conf | while read mod mloc
+                       do                              
+                               if [ "x$package" = "x$mod" ]; then
+                                       eval mloc=$mloc
+                                       if [ ! -d $mloc/$mod/*/ ]; then
+                                               continue
+                                       fi
+                                       
+                                       VERSION=`ls -d $mloc/$mod/*/ -t -1 | 
head -n1`
+                                       
+                                       echo "AddDistro $DISTRO $VERSION" >> 
$chan.conf
+                               fi
+                       done
+               done
+               
+       done
+done


Property changes on: trunk/release/website/mk-oc.sh
___________________________________________________________________
Name: svn:executable
   + *

Added: trunk/release/website/oc-config/gtk-sharp-2.0.chan
===================================================================
--- trunk/release/website/oc-config/gtk-sharp-2.0.chan  2005-04-10 20:57:45 UTC 
(rev 42768)
+++ trunk/release/website/oc-config/gtk-sharp-2.0.chan  2005-04-10 22:51:07 UTC 
(rev 42769)
@@ -0,0 +1,8 @@
+ChannelID   "gtk-sharp-2"
+Name        "Gtk# 2"
+Alias       "gtk-sharp-2"
+Description "This channel previews of Gtk# 2. Gtk# 2 is in development and 
does NOT have a stable API/ABI."
+Priority     100
+IconPath     http://www.ximian.com/foo.png
+
+! gtk-sharp-2.0

Added: trunk/release/website/oc-config/gtk-sharp.chan
===================================================================
--- trunk/release/website/oc-config/gtk-sharp.chan      2005-04-10 20:57:45 UTC 
(rev 42768)
+++ trunk/release/website/oc-config/gtk-sharp.chan      2005-04-10 22:51:07 UTC 
(rev 42769)
@@ -0,0 +1,8 @@
+ChannelID   "gtk-sharp"
+Name        "Gtk# 1.0.x"
+Alias       "gtk-sharp"
+Description "This channel has Gtk# 1.0.x packages. Gtk# 1.0.x has a stable 
API/ABI."
+Priority     100
+IconPath     http://www.ximian.com/foo.png
+
+! gtk-sharp

Added: trunk/release/website/oc-config/mono-1.1.chan
===================================================================
--- trunk/release/website/oc-config/mono-1.1.chan       2005-04-10 20:57:45 UTC 
(rev 42768)
+++ trunk/release/website/oc-config/mono-1.1.chan       2005-04-10 22:51:07 UTC 
(rev 42769)
@@ -0,0 +1,9 @@
+ChannelID   "mono-1.1"
+Name        "Mono 1.1.x"
+Alias       "mono-1.1"
+Description "This channel has previews of mono 1.1.x. Though it is an odd 
numbered version, we currently recommend it over 1.0.x."
+Priority     100
+IconPath     http://www.ximian.com/foo.png
+
+! mono-1.1
+! libgdiplus-1.1

Added: trunk/release/website/oc-config/mono.chan
===================================================================
--- trunk/release/website/oc-config/mono.chan   2005-04-10 20:57:45 UTC (rev 
42768)
+++ trunk/release/website/oc-config/mono.chan   2005-04-10 22:51:07 UTC (rev 
42769)
@@ -0,0 +1,9 @@
+ChannelID   "mono-1.0"
+Name        "Mono 1.0.x"
+Alias       "mono-1.0"
+Description "This channel has mono 1.0.x. For increased stability and 
performance, we recommend mono 1.1.x."
+Priority     100
+IconPath     http://www.ximian.com/foo.png
+
+! mono
+! libgdiplus

Added: trunk/release/website/oc-config/production.conf
===================================================================
--- trunk/release/website/oc-config/production.conf     2005-04-10 20:57:45 UTC 
(rev 42768)
+++ trunk/release/website/oc-config/production.conf     2005-04-10 22:51:07 UTC 
(rev 42769)
@@ -0,0 +1,8 @@
+Name "Mono"
+ServerID mono-official
+ContactEmail [EMAIL PROTECTED]
+
+! mono
+! mono-1.1
+! gtk-sharp
+! gtk-sharp-2.0

Added: trunk/release/website/oc-config/stage.conf
===================================================================
--- trunk/release/website/oc-config/stage.conf  2005-04-10 20:57:45 UTC (rev 
42768)
+++ trunk/release/website/oc-config/stage.conf  2005-04-10 22:51:07 UTC (rev 
42769)
@@ -0,0 +1,8 @@
+Name "Mono Staging Server"
+ServerID mono-staging
+ContactEmail [EMAIL PROTECTED]
+
+! mono
+! mono-1.1
+! gtk-sharp
+! gtk-sharp-2.0

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to