change name and version(s) for 2.0a1 release; create theme for delivering theme relea...
authorRobert Kaiser <kairo@kairo.at>
Tue, 23 Sep 2008 18:11:55 +0000 (20:11 +0200)
committerRobert Kaiser <kairo@kairo.at>
Tue, 23 Sep 2008 18:11:55 +0000 (20:11 +0200)
EarlyBlue/chrome.manifest
EarlyBlue/install.rdf
maketheme [new file with mode: 0755]

index 8b06ef3d3419365654f16e7179f1d40b828892f3..1b6719bfb0cddeff7b6184a2606a2161efd718f4 100644 (file)
@@ -1,9 +1,9 @@
-skin global EarlyBlue/1.9a1pre global/
-skin mozapps EarlyBlue/1.9a1pre mozapps/
-skin messenger EarlyBlue/1.9a1pre messenger/
-skin communicator EarlyBlue/1.9a1pre communicator/
-skin help EarlyBlue/1.9a1pre help/
-skin navigator EarlyBlue/1.9a1pre navigator/
-skin editor EarlyBlue/1.9a1pre editor/
-skin chatzilla EarlyBlue/1.9a1pre chatzilla/
-skin inspector EarlyBlue/1.9a1pre inspector/
+skin global EarlyBlue global/
+skin mozapps EarlyBlue mozapps/
+skin messenger EarlyBlue messenger/
+skin communicator EarlyBlue communicator/
+skin help EarlyBlue help/
+skin navigator EarlyBlue navigator/
+skin editor EarlyBlue editor/
+skin chatzilla EarlyBlue chatzilla/
+skin inspector EarlyBlue inspector/
index 20285c487795b333d553e9da9f1d31ecf8f3c3c9..16c8b21431ab6315798faf353776772702351815 100644 (file)
@@ -5,14 +5,14 @@
 
   <Description about="urn:mozilla:install-manifest">
     <em:id>EarlyBlue@kairo.at</em:id>
-    <em:version>1.9a1pre</em:version>
+    <em:version>2.0a1</em:version>
 
     <!-- SeaMonkey -->
     <em:targetApplication>
       <Description>
         <em:id>{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}</em:id>
         <em:minVersion>2.0a1pre</em:minVersion>
-        <em:maxVersion>2.0a1pre</em:maxVersion>
+        <em:maxVersion>2.0a2pre</em:maxVersion>
       </Description>
     </em:targetApplication>
 
@@ -27,6 +27,6 @@
 
     <!--em:updateURL--> <!--/em:updateURL-->
     <!--em:aboutURL--> <!--/em:aboutURL-->
-    <em:internalName>EarlyBlue/1.9a1pre</em:internalName>
+    <em:internalName>EarlyBlue</em:internalName>
   </Description>
 </RDF>
\ No newline at end of file
diff --git a/maketheme b/maketheme
new file mode 100755 (executable)
index 0000000..d8cf742
--- /dev/null
+++ b/maketheme
@@ -0,0 +1,58 @@
+#!/bin/sh
+
+RUN_DIR=$(pwd)
+cd $(dirname "$0")
+SCRIPT_DIR=$(pwd)
+
+if [ -n "$1" ]; then
+  case "$1" in
+  EarlyBlue)
+    THEME_NAME=$1
+    ;;
+  LCARStrek)
+    THEME_NAME=$1
+    ;;
+  *)
+    echo "unknown theme $option"
+    ;;
+  esac
+else
+  echo "You must specify a theme name."
+fi
+
+# define variables
+THEME_DIR=$SCRIPT_DIR/$THEME_NAME/
+WORK_DIR=$SCRIPT_DIR/$THEME_NAME.tmp/
+XPI_FILE=$SCRIPT_DIR/$THEME_NAME.xpi
+
+echo ensuring a clean work directory...
+if [ -e $WORK_DIR ] ; then
+  rm -rf $WORK_DIR/*
+fi
+mkdir -p $WORK_DIR/chrome
+
+echo copying basic files....
+cp $THEME_DIR/install.rdf $THEME_DIR/icon.png $THEME_DIR/preview.png $WORK_DIR/
+
+echo packing internal jar file...
+cd $THEME_DIR
+SUBDIRS=
+for filename in *; do
+  if [ -d "$filename" ]; then
+    SUBDIRS="$SUBDIRS $filename"
+  fi
+done
+zip -rX0Dq $WORK_DIR/chrome/$THEME_NAME.jar $SUBDIRS
+cd $WORK_DIR
+
+echo adjusting manifest...
+sed -e "s/skin \w* $THEME_NAME /\0jar:chrome\/$THEME_NAME.jar\!\//" $THEME_DIR/chrome.manifest > chrome.manifest
+
+echo creating new xpi file...
+if [ -e $XPI_FILE ] ; then
+  rm $XPI_FILE
+fi
+zip -rX9Dq $XPI_FILE *
+
+echo cleaning work directory...
+rm -rf $WORK_DIR/*