[Gpg4win-commits] r1296 - in trunk: . src
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Mon Sep 28 16:44:36 CEST 2009
Author: werner
Date: 2009-09-28 16:44:36 +0200 (Mon, 28 Sep 2009)
New Revision: 1296
Modified:
trunk/ChangeLog
trunk/src/Makefile.am
trunk/src/gpg4win.mk.in
Log:
finally builds
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2009-09-28 13:17:47 UTC (rev 1295)
+++ trunk/ChangeLog 2009-09-28 14:44:36 UTC (rev 1296)
@@ -2,6 +2,15 @@
Release 2.0.1.
+ * src/gpg4win.mk.in (README_template): New.
+ * src/Makefile.am (README.en.txt, README.de.txt): Remove
+ (gpg4win_readme_ll): New.
+ (README_files): New.
+ (CLEANFILES): Delete all README files.
+ (gpg4win-$(VERSION).exe, gpg4win-light-$(VERSION).exe)
+ (gpg4win-$(VERSION).wix, gpg4win-light-$(VERSION).wix): Depend on
+ all readme files.
+
* src/inst-gpg4win.nsi: Install ar, es, fr and ru REDME files.
* src/uninst-gpg4win.nsi: Uninstall them.
Modified: trunk/src/Makefile.am
===================================================================
--- trunk/src/Makefile.am 2009-09-28 13:17:47 UTC (rev 1295)
+++ trunk/src/Makefile.am 2009-09-28 14:44:36 UTC (rev 1296)
@@ -1,5 +1,5 @@
# Makefile.am - Installer for GnuPG 4 Windows Makefile.
-# Copyright (C) 2005, 2006, 2007, 2008 g10 Code GmbH
+# Copyright (C) 2005, 2006, 2007, 2008, 2009 g10 Code GmbH
#
# This file is part of Gpg4win.
#
@@ -33,7 +33,7 @@
inst-libxml2.nsi uninst-libxml2.nsi \
inst-libetpan.nsi uninst-libetpan.nsi \
inst-claws-mail.nsi uninst-claws-mail.nsi \
- inst-notification_plugin.nsi uninst-notification_plugin.nsi \
+ inst-notification_plugin.nsi uninst-notification_plugin.nsi \
inst-gtkhtml2_viewer.nsi uninst-gtkhtml2_viewer.nsi \
inst-vcalendar.nsi uninst-vcalendar.nsi \
inst-rssyl.nsi uninst-rssyl.nsi \
@@ -84,8 +84,14 @@
inst-bzip2.nsi uninst-bzip2.nsi \
inst-final.nsi
+
+gpg4win_readme_ll = en de ar es fr ru
+
+README_files = $(addsuffix .txt,$(addprefix README.,$(gpg4win_readme_ll)))
+
+
# Need to clean the dll because we bypassed automake.
-CLEANFILES = g4wihelp.dll versioninfo.txt README.en.txt README.de.txt \
+CLEANFILES = g4wihelp.dll versioninfo.txt $(README_files) \
installer-options.ini NEWS.tmp versioninfo.tmp \
gpgwrap.exe gpgwrap-2.exe kleowrap.exe
@@ -461,54 +467,38 @@
NEWS.tmp : $(top_srcdir)/NEWS
sed -e '/^#/d' <$(top_srcdir)/NEWS >NEWS.tmp
-README.en.txt : versioninfo.txt NEWS.tmp $(top_srcdir)/doc/README.en.txt
- sed -e '/^;.*/d;/!VERSIONINFO!/{r versioninfo.txt' -e 'd;}' \
- -e '/!NEWSFILE!/{r NEWS.tmp' -e 'd;}' \
- -e '/!PKG-COPYRIGHT!/{r $(top_srcdir)/doc/pkg-copyright.txt' -e 'd;}' \
- -e 's,!VERSION!,$(VERSION),g' \
- < $(top_srcdir)/doc/README.en.txt \
- | awk '{printf "%s\r\n", $$0}' >README.en.txt
installer-options.ini : $(top_srcdir)/src/installer-options.ini.in
cat $(top_srcdir)/src/installer-options.ini.in >installer-options.ini
-README.de.txt : versioninfo.txt NEWS.tmp $(top_srcdir)/doc/README.de.txt
- sed -e '/^;.*/d;/!VERSIONINFO!/{r versioninfo.txt' -e 'd;}' \
- -e '/!NEWSFILE!/{r NEWS.tmp' -e 'd;}' \
- -e '/!PKG-COPYRIGHT!/{r $(top_srcdir)/doc/pkg-copyright.txt' -e 'd;}' \
- -e 's,!VERSION!,$(VERSION),g' \
- < $(top_srcdir)/doc/README.de.txt \
- | awk '{printf "%s\r\n", $$0}' >README.de.txt
# For some nut-crazy reason someone thought it would be a great idea
# if makensis changed to the directory of the source file at startup.
# So we have to pull a couple of strings to correct this.
gpg4win-$(VERSION).exe: gpg4win.nsi $(common_nsi) stamps/stamp-final \
g4wihelp.dll gpgwrap.exe gpgwrap-2.exe kleowrap.exe \
- README.en.txt \
- README.de.txt installer-options.ini versioninfo.txt
+ $(README_files) installer-options.ini versioninfo.txt
$(MAKENSIS) -V3 -DBUILD_DIR=`pwd` -DTOP_SRCDIR=$(top_srcdir) \
-DSRCDIR=$(srcdir) $(EXTRA_MAKENSIS_FLAGS) $(srcdir)/gpg4win.nsi
gpg4win-light-$(VERSION).exe: gpg4win.nsi $(common_nsi) stamps/stamp-final \
g4wihelp.dll gpgwrap.exe gpgwrap-2.exe kleowrap.exe \
- README.en.txt \
- README.de.txt installer-options.ini versioninfo.txt
+ $(README_files) installer-options.ini versioninfo.txt
$(MAKENSIS) -V3 -DBUILD_DIR=`pwd` -DTOP_SRCDIR=$(top_srcdir) \
-DSRCDIR=$(srcdir) $(EXTRA_MAKENSIS_FLAGS) \
-DGPG4WIN_LIGHT=1 $(srcdir)/gpg4win.nsi
gpg4win-$(VERSION).wix: gpg4win.nsi $(common_nsi) stamps/stamp-final \
- gpgwrap.exe gpgwrap-2.exe kleowrap.exe README.en.txt \
- README.de.txt versioninfo.txt
+ gpgwrap.exe gpgwrap-2.exe kleowrap.exe \
+ $(README_files) versioninfo.txt
perl make-msi.pl --guids $(srcdir)/make-msi.guids \
--manifest gpg4win-$(VERSION).files \
-DBUILD_DIR=. -DTOP_SRCDIR=$(top_srcdir) \
-DSRCDIR=$(srcdir) $(srcdir)/gpg4win.nsi > $@
gpg4win-light-$(VERSION).wix: gpg4win.nsi $(common_nsi) stamps/stamp-final \
- gpgwrap.exe gpgwrap-2.exe kleowrap.exe README.en.txt \
- README.de.txt versioninfo.txt
+ gpgwrap.exe gpgwrap-2.exe kleowrap.exe \
+ $(README_files) versioninfo.txt
perl make-msi.pl --guids $(srcdir)/make-msi.guids \
--manifest gpg4win-light-$(VERSION).files \
-DBUILD_DIR=. -DTOP_SRCDIR=$(top_srcdir) \
Modified: trunk/src/gpg4win.mk.in
===================================================================
--- trunk/src/gpg4win.mk.in 2009-09-28 13:17:47 UTC (rev 1295)
+++ trunk/src/gpg4win.mk.in 2009-09-28 14:44:36 UTC (rev 1296)
@@ -306,7 +306,19 @@
touch stamps/stamp-final-$(1)
endef
+# Template for README files
+define README_template
+README.$(1).txt : versioninfo.txt NEWS.tmp $(top_srcdir)/doc/README.$(1).txt
+ sed -e '/^;.*/d;/!VERSIONINFO!/{r versioninfo.txt' -e 'd;}' \
+ -e '/!NEWSFILE!/{r NEWS.tmp' -e 'd;}' \
+ -e '/!PKG-COPYRIGHT!/{r $(top_srcdir)/doc/pkg-copyright.txt' -e 'd;}' \
+ -e 's,!VERSION!,$(VERSION),g' \
+ < $(top_srcdir)/doc/README.$(1).txt \
+ | awk '{printf "%s\r\n", $$$$0}' >README.$(1).txt
+endef
+
+
# Insert the template for each source package.
$(foreach spkg, $(gpg4win_spkgs), $(eval $(call SPKG_template,$(spkg))))
@@ -319,6 +331,9 @@
# Insert the template for each internal package.
$(foreach ipkg, $(gpg4win_ipkgs), $(eval $(call IPKG_template,$(ipkg))))
+# Insert the template for each README file.
+$(foreach rll, $(gpg4win_readme_ll), $(eval $(call README_template,$(rll))))
+
stamps/stamp-final: stamps/stamp-directories
stamps/stamp-final: $(addprefix stamps/stamp-final-,$(gpg4win_build_list))
touch stamps/stamp-final
More information about the Gpg4win-commits
mailing list