Sync Spanish manual
[claws.git] / tools / make.themes.project
index b3da9ba4d8ecd0f9b8e8899aacb653b28cb9d3f0..038bad76048f41484fd32c2baa2eeff378b85bbd 100644 (file)
@@ -1,13 +1,14 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Generate the source directory for claws-mail-themes package
 # from the theme tarballs in http://www.claws-mail.org/themes.php
 #
-# Copyright (c) 2006-2008 Ricardo Mones <ricardo@mones.org>
+# Copyright (c) 2006-2010 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
-# the Free Software Foundation; either version 2 of the License, or
+# the Free Software Foundation; either version 3 of the License, or
 # (at your option) any later version.
 #
 # This program is distributed in the hope that it will be useful,
@@ -57,7 +58,7 @@ function downloadThemes()
      test $tarf = "png" \
          && tarf=`echo $theme | cut -f3 -d/ `;
      echo -n "Downloading... ";
-     wget -q -a ${WLOG} -P ${DDIR} ${SITE}/$theme
+     wget -q -a ${WLOG} -O ${DDIR}/$tarf ${SITE}/$theme
      test ! -f ${DDIR}/$tarf && echo "Error: couldn't get $tarf" && exit 1;
      pushd ${DDIR} > /dev/null
      tarops="";