#!/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
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
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 `;
{
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"
}