X-Git-Url: https://git-public.kairo.at/?p=themes.git;a=blobdiff_plain;f=maketheme;h=4983976d605e7e7d0dd2c25e50169b146562baf5;hp=d8cf7423ea9e9120e425ac42ae851a4f8f305378;hb=refs%2Ftags%2FLCARStrek-2.1b2;hpb=738054be7d72e19321754054052c726fe45b5a3f diff --git a/maketheme b/maketheme index d8cf7423..4983976d 100755 --- a/maketheme +++ b/maketheme @@ -18,6 +18,7 @@ if [ -n "$1" ]; then esac else echo "You must specify a theme name." + exit 1 fi # define variables @@ -31,22 +32,12 @@ if [ -e $WORK_DIR ] ; then 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 +echo copying theme files... +cp -a $THEME_DIR/* $WORK_DIR/ 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 removing x-* file not intended for shipping... +rm -rf x-* echo creating new xpi file... if [ -e $XPI_FILE ] ; then @@ -55,4 +46,4 @@ fi zip -rX9Dq $XPI_FILE * echo cleaning work directory... -rm -rf $WORK_DIR/* +rm -rf $WORK_DIR