2007-02-19 [paul] 2.7.2cvs51
[claws.git] / tools / make.themes.project
index a0dba8b81e04e9ed31b1e824553fa741dffffeca..4ef55671cccdc568fc3f1ed771ffa35ac3ee6434 100644 (file)
@@ -1,10 +1,10 @@
 #!/bin/bash
 #
-# Generate the source directory for sylpheed-claws-themes package
-# from the theme tarballs in http://sylpheed-claws.net/themes.php
+# Generate the source directory for claws-mail-themes package
+# from the theme tarballs in http://claws-mail.org/themes.php
 #
-# Copyright (c) 2006 Ricardo Mones <ricardo@mones.org>
-#                    Paul Mangan <claws@thewildbeast.co.uk>
+# Copyright (c) 2006-2007 Ricardo Mones <ricardo@mones.org>
+#                         Paul Mangan <paul@claws-mail.org>
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -31,8 +31,8 @@ test x$1 = x && echo "Error: version number not given" && printHelp && exit 1;
 
 VERS=$1
 shift;
-SITE=http://sylpheed-claws.net
-NAME=sylpheed-claws-themes
+SITE=http://claws-mail.org
+NAME=claws-mail-themes
 NOTES=RELEASE_NOTES
 DDIR=$NAME-$VERS
 PAGE=themes.php
@@ -100,11 +100,11 @@ function createThemeMakefileAm()
   MA="/tmp/tmp.makefile.am";
   cd "$1"
   dir="$1";
-  echo 'themedir = $(prefix)/share/sylpheed-claws/themes/'${dir} > $MA
+  echo 'themedir = $(prefix)/share/claws-mail/themes/'${dir} > $MA
   echo "" >> $MA
   echo -n 'dist_theme_DATA =' >> $MA 
-  test -f .sylpheed_themeinfo \
-    && echo " .sylpheed_themeinfo \\" >> $MA;
+  test -f .claws_themeinfo \
+    && echo " .claws_themeinfo \\" >> $MA;
   count=`ls *.xpm | wc -l `;
   i=1;
   for px in `ls -1 *.xpm `; 
@@ -150,22 +150,15 @@ function createMakefileAm()
 {
   cd ${DDIR}
   MA=Makefile.am
-  echo "EXTRA_DIST = INSTALL "${NOTES} ${NAME} > $MA
+  echo "AUTOMAKE_OPTIONS = dist-bzip2" > $MA
+  echo "" >> $MA
+  echo "EXTRA_DIST = INSTALL "${NOTES} ${NAME} >> $MA
   echo "" >> $MA
   echo -n "SUBDIRS =" >> $MA
   for dir in *;
   do test -d "$dir" && echo -n " ${dir}" >> $MA;
   done;
   echo "" >> $MA
-  echo "" >> $MA
-  echo "BZIP2_ENV =" >> $MA
-  echo "" >> $MA
-  echo "release: distdir" >> $MA
-  echo "       -chmod -R a+r \$(distdir)" >> $MA
-  echo "       GZIP=\$(GZIP_ENV) \$(AMTAR)\$(TAR) chozf \$(distdir).tar.gz \$(distdir)" >> $MA
-  echo "       BZIP2=\$(BZIP2_ENV) \$(AMTAR)\$(TAR) --bzip2 -chof \$(distdir).tar.bz2 \$(distdir)" >> $MA
-  echo "       -rm -rf \$(distdir)" >> $MA
-  echo "" >> $MA
   cd ".."
   echo "Created Makefile.am"
 }