From 738054be7d72e19321754054052c726fe45b5a3f Mon Sep 17 00:00:00 2001 From: Robert Kaiser Date: Tue, 23 Sep 2008 20:11:55 +0200 Subject: [PATCH] change name and version(s) for 2.0a1 release; create theme for delivering theme release XPI file(s) --- EarlyBlue/chrome.manifest | 18 ++++++------ EarlyBlue/install.rdf | 6 ++-- maketheme | 58 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 70 insertions(+), 12 deletions(-) create mode 100755 maketheme diff --git a/EarlyBlue/chrome.manifest b/EarlyBlue/chrome.manifest index 8b06ef3d..1b6719bf 100644 --- a/EarlyBlue/chrome.manifest +++ b/EarlyBlue/chrome.manifest @@ -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/ diff --git a/EarlyBlue/install.rdf b/EarlyBlue/install.rdf index 20285c48..16c8b214 100644 --- a/EarlyBlue/install.rdf +++ b/EarlyBlue/install.rdf @@ -5,14 +5,14 @@ EarlyBlue@kairo.at - 1.9a1pre + 2.0a1 {92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a} 2.0a1pre - 2.0a1pre + 2.0a2pre @@ -27,6 +27,6 @@ - EarlyBlue/1.9a1pre + EarlyBlue \ No newline at end of file diff --git a/maketheme b/maketheme new file mode 100755 index 00000000..d8cf7423 --- /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/* -- 2.43.0