[grisbi-cvs] [SCM] grisbi branch, master, updated. upstream_version_0_7_98-32-g497f302

chtibzh nobody at users.sourceforge.net
Sun Jan 23 19:56:31 CET 2011


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "grisbi".

The branch, master has been updated
       via  497f3021fa55e833b6054da585dd10a7933d5344 (commit)
      from  60f5b6f28bdb492c903abdb56ba346f1c55b0c46 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 497f3021fa55e833b6054da585dd10a7933d5344
Author: dch <didier.chevalier35 at gmail.com>
Date:   Sun Jan 23 19:54:54 2011 +0100

    First windows mingw version.

-----------------------------------------------------------------------

Changes:
diff --git a/src/dialog.h b/src/dialog.h
index 2df6d72..df636c3 100644
--- a/src/dialog.h
+++ b/src/dialog.h
@@ -15,7 +15,7 @@ struct conditional_message
 
 
 /* START_DECLARATION */
-void dialog_message ( gchar *label, ... );
+G_MODULE_EXPORT void dialog_message ( gchar *label, ... );
 void dialogue ( gchar *texte_dialogue );
 void dialogue_conditional_hint ( gchar *hint, gchar *text, gchar *var );
 G_MODULE_EXPORT void dialogue_error ( gchar *text );
diff --git a/src/gsb_file.c b/src/gsb_file.c
index 6c0e045..6556821 100644
--- a/src/gsb_file.c
+++ b/src/gsb_file.c
@@ -26,7 +26,7 @@
 #include <time.h>
 
 #ifdef _WIN32
-#	ifdef _MSC_VER
+#	if defined(_MSC_VER) || defined(_MINGW)
 #		include <realpath.h>
 #	else
 #		include <stdlibx.h> // For realpath()
diff --git a/src/gsb_file_save.c b/src/gsb_file_save.c
index a529c55..2255036 100644
--- a/src/gsb_file_save.c
+++ b/src/gsb_file_save.c
@@ -464,7 +464,7 @@ gboolean gsb_file_save_save_file ( const gchar *filename,
     {
         /* it's not a new file but gtk overwrite the permissions
          * so need to re-set the good permissions saved before */
-#ifdef _MSC_VER
+#if defined(_MSC_VER) || defined(_MINGW)
         if (_chmod (filename, buf.st_mode) == -1)
         {
             /* we couldn't set the chmod, set the default permission */
diff --git a/src/plugins/ofx/ofx.h b/src/plugins/ofx/ofx.h
index 72dcea8..b395af7 100644
--- a/src/plugins/ofx/ofx.h
+++ b/src/plugins/ofx/ofx.h
@@ -30,7 +30,7 @@ G_MODULE_EXPORT extern GSList * ofx_plugin_run ( GtkWidget * assistant,
 #endif
 
 #ifndef OFX_ERROR
-#ifdef _MSC_VER
+#if defined(_MSC_VER) || defined(_MINGW)
 #undef ERROR
 #endif /* _MSC_VER */
 #define OFX_ERROR   ERROR
diff --git a/src/utils_dates.c b/src/utils_dates.c
index faac0f7..b6aed27 100644
--- a/src/utils_dates.c
+++ b/src/utils_dates.c
@@ -22,7 +22,7 @@
 /* ************************************************************************** */
 
 #include "include.h"
-#ifdef _MSC_VER
+#if defined(_MSC_VER) || defined (_MINGW)
 #include <winnls.h>
 #else
 #include <langinfo.h>
diff --git a/win32-mingw/.gitignore b/win32-mingw/.gitignore
new file mode 100644
index 0000000..fa99d0f
--- /dev/null
+++ b/win32-mingw/.gitignore
@@ -0,0 +1,13 @@
+cmake_install.cmake
+CMakeCache.txt
+CMakeFiles
+*.dir
+target
+*.cache
+*.ncb
+*.sln
+*.suo
+*.user
+*.vcproj
+downloads
+config.h
\ No newline at end of file
diff --git a/win32-mingw/CMakeLists.txt b/win32-mingw/CMakeLists.txt
new file mode 100644
index 0000000..1471919
--- /dev/null
+++ b/win32-mingw/CMakeLists.txt
@@ -0,0 +1,277 @@
+CMAKE_MINIMUM_REQUIRED(VERSION 2.6 FATAL_ERROR)
+PROJECT (Grisbi C)
+#pour que cmake 2.8 marche
+if (POLICY CMP0015)
+		cmake_policy(SET CMP0015 OLD)
+endif (POLICY CMP0015)
+
+if (WIN32)
+	set (PlateformName "WIN32")
+	ADD_DEFINITIONS(-D_WIN32)
+endif(WIN32)
+
+if (MINGW)
+	set (TargetDir .)
+	ADD_DEFINITIONS(-D_MINGW)
+	set(STATIC_SCRIPT_BINDINGS TRUE)
+	SET(BUILD_SHARED_LIBS ON)
+    set(CMAKE_C_FLAGS   "${CMAKE_C_FLAGS}   -mms-bitfields")
+    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mms-bitfields")
+endif (MINGW)
+set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/modules_cmakes)
+
+INCLUDE (CheckIncludeFiles)
+#on verifie que le programme existe
+INCLUDE (${PROJECT_SOURCE_DIR}/modules_cmake/FindMsgfmt.cmake)
+
+SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/target/${PlateformName})
+SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/target/${PlateformName}/plugins)
+SET(PACKAGE_NAME grisbi)
+set (grisbi_MAJOR 0)
+set (grisbi_MINOR 7)
+set (grisbi_PATCH 98)
+set (grisbi_version "${grisbi_MAJOR}.${grisbi_MINOR}.${grisbi_PATCH} pour windows")
+MARK_AS_ADVANCED(LIBRARY_OUTPUT_PATH)
+MARK_AS_ADVANCED(grisbi_version)
+
+configure_file (config.h.cmake config.h)
+INCLUDE_DIRECTORIES(
+	${PROJECT_SOURCE_DIR}/target/${PlateformName}/gtk-dev/include/atk-1.0
+	${PROJECT_SOURCE_DIR}/target/${PlateformName}/gtk-dev/include/cairo
+	${PROJECT_SOURCE_DIR}/target/${PlateformName}/gtk-dev/include/glib-2.0
+	${PROJECT_SOURCE_DIR}/target/${PlateformName}/gtk-dev/include/gtk-2.0
+	${PROJECT_SOURCE_DIR}/target/${PlateformName}/gtk-dev/include/pango-1.0
+	${PROJECT_SOURCE_DIR}/target/${PlateformName}/gtk-dev/include
+	${PROJECT_SOURCE_DIR}/target/${PlateformName}/gtk-dev/lib/glib-2.0/include
+	${PROJECT_SOURCE_DIR}/target/${PlateformName}/gtk-dev/lib/gtk-2.0/include
+	${PROJECT_SOURCE_DIR}/target/${PlateformName}/plugins-dev/libofx/include
+	${PROJECT_SOURCE_DIR}/target/${PlateformName}/plugins-dev/libxml2/include
+	${PROJECT_SOURCE_DIR}/target/${PlateformName}/plugins-dev/iconv/include
+	${PROJECT_SOURCE_DIR}/target/${PlateformName}/plugins-dev/openssl/include
+	${PROJECT_SOURCE_DIR}/../win32
+	${PROJECT_SOURCE_DIR}/../win32-msvc/src
+	${PROJECT_SOURCE_DIR}
+	${PROJECT_SOURCE_DIR}/../src
+	${PROJECT_SOURCE_DIR}/../src/plugins/gnucash
+	${PROJECT_SOURCE_DIR}/../src/plugins/ofx
+	${PROJECT_SOURCE_DIR}/../src/plugins/openssl
+	${PROJECT_BINARY_DIR}
+)
+LINK_DIRECTORIES(
+	${PROJECT_SOURCE_DIR}/target/${PlateformName}/gtk-dev/lib
+	${PROJECT_SOURCE_DIR}/target/${PlateformName}/plugins-dev/libofx/lib
+	${PROJECT_SOURCE_DIR}/target/${PlateformName}/plugins-dev/libxml2/lib
+	${PROJECT_SOURCE_DIR}/target/${PlateformName}/plugins-dev/iconv/lib
+	${PROJECT_SOURCE_DIR}/target/${PlateformName}/plugins-dev/openssl/lib
+	${PROJECT_SOURCE_DIR}/target/${PlateformName}/plugins-dev/openssl/lib/VC
+	${PROJECT_SOURCE_DIR}
+	${PROJECT_BINARY_DIR}
+)
+ADD_DEFINITIONS(-D_CRT_SECURE_NO_WARNINGS)
+ADD_DEFINITIONS(-D__PRETTY_FUNCTION__="")
+
+#version de dev
+ADD_DEFINITIONS(-D_IS_DEVELOPMENT_VERSION=1)
+
+# Define to 1 if translation of program messages to the user's native language is requested.
+option (HELLO_NLS_ENABLED "Native Language Support" ON)
+
+# Define if you have the iconv() function.
+ADD_DEFINITIONS(-DHAVE_ICONV=1)
+
+# Define if you have <langinfo.h> and nl_langinfo(CODESET).
+ADD_DEFINITIONS(-DHAVE_LANGINFO_CODESET=1)
+
+# Define if your <locale.h> file defines LC_MESSAGES.
+ADD_DEFINITIONS(-DHAVE_LC_MESSAGES=1)
+
+# Define to 1 if you have the `intl' library (-lintl).
+ADD_DEFINITIONS(-DHAVE_LIBINTL=1)
+
+# Define to 1 if you have the <limits.h> header file.
+ADD_DEFINITIONS(-DHAVE_LIMITS_H=1)
+
+# Define to 1 if you have the <locale.h> header file.
+ADD_DEFINITIONS(-DHAVE_LOCALE_H=1)
+
+# Define to 1 if you have the <malloc.h> header file.
+ADD_DEFINITIONS(-DHAVE_MALLOC_H=1)
+
+# Define to 1 if you have the <memory.h> header file.
+ADD_DEFINITIONS(-DHAVE_MEMORY_H=1)
+
+# Define to 1 if you have the `mempcpy' function.
+ADD_DEFINITIONS(-DHAVE_MEMPCPY=1)
+
+# Define to 1 to have grisbi plugins management system activated
+ADD_DEFINITIONS(-DHAVE_PLUGINS=1)
+
+# Define to 1 if you have the `setlocale' function.
+ADD_DEFINITIONS(-DHAVE_SETLOCALE=1)
+
+# Define to 1 if you have the <string.h> header file.
+ADD_DEFINITIONS(-DHAVE_STRING_H=1)
+
+# Define to 1 to have OFX support disabled
+#ADD_DEFINITIONS(-DNOOFX=1)
+# Define to 1 if you want to have OFX support using libofx 0.7.0
+ADD_DEFINITIONS(-DOFX_0_7=1)
+
+# Define to 1 when you do not want to use SSL as crypt algorithm (NOT RECOMMANDED)
+#ADD_DEFINITIONS(-DNOSSL=1)
+
+#Define to 1 to have grisbi plugins management system activated
+ADD_DEFINITIONS(-DHAVE_PLUGINS=1)
+
+LINK_DIRECTORIES(
+	${PROJECT_SOURCE_DIR}/target/${PlateformName}/gtk-dev/lib
+	${PROJECT_SOURCE_DIR}/target/${PlateformName}/plugins-dev/libofx/lib
+	${PROJECT_SOURCE_DIR}/target/${PlateformName}/plugins-dev/libxml2/lib
+	${PROJECT_SOURCE_DIR}/target/${PlateformName}/plugins-dev/iconv/lib
+	${PROJECT_SOURCE_DIR}/target/${PlateformName}/plugins-dev/openssl/lib
+	${PROJECT_SOURCE_DIR}/target/${PlateformName}/plugins-dev/openssl/lib/VC
+	${TargetDir}
+)
+
+file(GLOB grisbi_source 
+    ${PROJECT_SOURCE_DIR}/../src/*.c 
+	${PROJECT_SOURCE_DIR}/../win32/*.c 
+	${PROJECT_SOURCE_DIR}/../win32-msvc/src/*.c
+)
+ADD_EXECUTABLE(grisbi
+	WIN32
+	${grisbi_source}
+)
+
+TARGET_LINK_LIBRARIES( grisbi
+	glib-2.0
+	intl
+	cairo
+	gdk_pixbuf-2.0
+	gdk-win32-2.0
+	gio-2.0
+	gmodule-2.0
+	gobject-2.0
+	gtk-win32-2.0
+	pango-1.0
+	pangocairo-1.0
+	zdll
+)
+
+set_target_properties ( grisbi
+	PROPERTIES ENABLE_EXPORTS 1
+)
+
+
+
+ADD_LIBRARY ( ofxplg
+	MODULE
+	../src/plugins/ofx/ofx.c
+	../src/plugins/ofx/ofx.h
+)
+
+ADD_CUSTOM_COMMAND ( TARGET ofxplg
+	POST_BUILD
+	#COMMAND ${CMAKE_COMMAND} -E copy ${PROJECT_SOURCE_DIR}/${TargetDir}/ofx.dll ${PROJECT_BINARY_DIR}//target/${PlateformName}/plugins
+	COMMAND ${CMAKE_COMMAND} -E copy_directory ${PROJECT_SOURCE_DIR}/target/${PlateformName}/plugins-dev/libofx/bin ${PROJECT_BINARY_DIR}/target/${PlateformName}
+	COMMAND ${CMAKE_COMMAND} -E copy_directory ${PROJECT_SOURCE_DIR}/target/${PlateformName}/plugins-dev/libofx/bin/dtd ${PROJECT_BINARY_DIR}/target/${PlateformName}/dtd
+)
+
+ADD_LIBRARY ( gnucash
+	MODULE
+	../src/plugins/gnucash/gnucash.c
+	../src/plugins/gnucash/gnucash.h
+)
+
+ADD_CUSTOM_COMMAND ( TARGET gnucash
+	POST_BUILD
+	#COMMAND ${CMAKE_COMMAND} -E copy  ${PROJECT_SOURCE_DIR}/${TargetDir}/gnucash.dll target\\${PlateformName}\\${OutDir}\\plugins
+	COMMAND ${CMAKE_COMMAND} -E copy ${PROJECT_SOURCE_DIR}/target/${PlateformName}/plugins-dev/libxml2/bin/libxml2.dll ${PROJECT_BINARY_DIR}/target/${PlateformName}
+	COMMAND ${CMAKE_COMMAND} -E copy ${PROJECT_SOURCE_DIR}/target/${PlateformName}/plugins-dev/iconv/bin/iconv.dll ${PROJECT_BINARY_DIR}/target/${PlateformName}
+)
+
+ADD_LIBRARY ( openssl
+	MODULE
+	../src/plugins/openssl/openssl.c
+	../src/plugins/openssl/openssl.h
+)
+
+ADD_CUSTOM_COMMAND ( TARGET openssl
+	POST_BUILD
+	#COMMAND ${CMAKE_COMMAND} -E copy  ${PROJECT_SOURCE_DIR}/target/openssl.dll ${PROJECT_BINARY_DIR}/target/${PlateformName}/plugins
+	COMMAND ${CMAKE_COMMAND} -E copy  ${PROJECT_SOURCE_DIR}/target/${PlateformName}/plugins-dev/openssl/bin/libeay32.dll ${PROJECT_BINARY_DIR}/target/${PlateformName}
+)
+
+
+ADD_DEPENDENCIES (ofxplg grisbi)
+#SET_TARGET_PROPERTIES(ofx PROPERTIES LINK_FLAGS "-no-undefined --enable-runtime-pseudo-reloc")
+TARGET_LINK_LIBRARIES (ofxplg
+	glib-2.0
+	intl
+	libofx 
+    grisbi
+)
+
+ADD_DEPENDENCIES (gnucash grisbi)
+TARGET_LINK_LIBRARIES (gnucash
+	glib-2.0
+	intl
+	grisbi
+	libxml2
+	iconv
+)
+ADD_DEPENDENCIES (openssl grisbi)
+SET_TARGET_PROPERTIES(openssl PROPERTIES LINK_FLAGS -enable-auto-import)
+TARGET_LINK_LIBRARIES (openssl
+	glib-2.0
+	intl
+	grisbi
+	gobject-2.0
+	gtk-win32-2.0
+	libeay32
+	ssleay32
+)
+
+ADD_DEPENDENCIES (grisbi prepare_env prepare_mo)
+
+ADD_CUSTOM_TARGET (prepare_env COMMENT "preparation")
+
+ADD_CUSTOM_COMMAND(TARGET prepare_env
+	POST_BUILD
+	COMMAND ${CMAKE_COMMAND} -E copy_directory ${PROJECT_SOURCE_DIR}/../pixmaps ${PROJECT_BINARY_DIR}/target/${PlateformName}/pixmaps
+	COMMAND ${CMAKE_COMMAND} -E copy_directory ${PROJECT_SOURCE_DIR}/../help ${PROJECT_BINARY_DIR}/target/${PlateformName}/help
+)
+
+if (HELLO_NLS_ENABLED)
+	#on verifie que les headers sont la
+	set (I18N_HEADERS locale.h libintl.h)
+	foreach (HDR ${I18N_HEADERS})
+		CHECK_INCLUDE_FILES (${HDR} HDR_RET)
+		if (NOT ${HDR_RET})
+			message (FATAL_ERROR "manque header.")
+			ADD_DEFINITIONS(-DENABLE_NLS=0)
+		endif (NOT ${HDR_RET})
+	endforeach (HDR ${Hello_I18N_HEADERS})
+	add_custom_target (prepare_mo COMMENT "Building i18n messages.")
+	file(GLOB po_files ${PROJECT_SOURCE_DIR}/../po/*.po)
+	add_custom_command (TARGET prepare_mo COMMAND ${CMAKE_COMMAND} -E make_directory ${PROJECT_BINARY_DIR}/target/lib/locale)
+
+	foreach (current_po ${po_files})
+		get_filename_component(
+			lang
+			${current_po}
+			NAME_WE
+		)
+		set(mo_file ${PROJECT_BINARY_DIR}/target/${PlateformName}/lib/locale/${lang}/LC_MESSAGES/${PACKAGE_NAME}.mo)
+		add_custom_command(TARGET prepare_mo
+			POST_BUILD
+			COMMAND ${CMAKE_COMMAND} -E make_directory ${PROJECT_BINARY_DIR}/target/${PlateformName}/lib/locale/${lang}/LC_MESSAGES
+			COMMAND ${MSGFMT_EXECUTABLE} -c ${current_po} -o ${mo_file}
+			DEPENDS ${current_po}
+		)
+	 endforeach (current_po)
+	ADD_DEFINITIONS(-DENABLE_NLS=1)
+else(HELLO_NLS_ENABLED)
+	ADD_DEFINITIONS(-DENABLE_NLS=0)
+	message (STATUS "Native language support disabled.")
+endif(HELLO_NLS_ENABLED)
diff --git a/win32-mingw/build.cmd b/win32-mingw/build.cmd
new file mode 100644
index 0000000..24a6e9c
--- /dev/null
+++ b/win32-mingw/build.cmd
@@ -0,0 +1,4 @@
+ at echo off
+::cmake --build  . --clean-first
+cmake --build  .
+pause
diff --git a/win32-mingw/config.h.cmake b/win32-mingw/config.h.cmake
new file mode 100644
index 0000000..25ae446
--- /dev/null
+++ b/win32-mingw/config.h.cmake
@@ -0,0 +1,11 @@
+#ifndef _WIN32_MSVC_CONFIG_H
+#define _WIN32_MSVC_CONFIG_H
+
+#define VERSION "@grisbi_version@"
+#define PACKAGE "@PACKAGE_NAME@"
+
+
+#include "win32gtkutils.h"
+#include "win32utils.h"
+
+#endif // !_WIN32_MSVC_CONFIG_H
diff --git a/win32-mingw/generate.cmd b/win32-mingw/generate.cmd
new file mode 100644
index 0000000..c86f3f0
--- /dev/null
+++ b/win32-mingw/generate.cmd
@@ -0,0 +1,9 @@
+ at set PKG_CONFIG_PATH=%CD%\target\Win32\gtk-dev\lib\pkgconfig
+ at set PATH=%CD%\target\Win32\gtk-dev\bin;%PATH%
+::subst c: "g:\"
+::cmake --build . --target clean
+::rmdir Cmakefiles /s /q
+::del cmakecache.txt
+::del Makefile
+cmake -G "MinGW Makefiles"
+::pause
diff --git a/win32-mingw/installer_strings.nsh b/win32-mingw/installer_strings.nsh
new file mode 100644
index 0000000..e0b9643
--- /dev/null
+++ b/win32-mingw/installer_strings.nsh
@@ -0,0 +1,118 @@
+LangString ProgFiles ${LANG_FRENCH} "Fichiers programme de Grisbi"
+LangString ProgFiles ${LANG_ENGLISH} "Grisbi program files"
+LangString ProgFiles ${LANG_GERMAN} "Grisbi program files"
+LangString ProgFiles ${LANG_SPANISH} "Archivios del programma Grisbi"
+LangString ProgFiles ${LANG_TRADCHINESE} "Grisbi program files"
+LangString ProgFiles ${LANG_ITALIAN} "Grisbi program files"
+LangString ProgFiles ${LANG_DUTCH} "Grisbi program files"
+LangString ProgFiles ${LANG_DANISH} "Grisbi program files"
+LangString ProgFiles ${LANG_GREEK} "Grisbi program files"
+LangString ProgFiles ${LANG_RUSSIAN} "Grisbi program files"
+LangString ProgFiles ${LANG_PORTUGUESEBR} "Grisbi program files"
+LangString ProgFiles ${LANG_POLISH} "Grisbi program files"
+LangString ProgFiles ${LANG_CZECH} "Soubory programu Grisbi"
+LangString ProgFiles ${LANG_ROMANIAN} "Grisbi program files"
+LangString ProgFiles ${LANG_FARSI} "Grisbi program files"
+LangString ProgFiles ${LANG_HEBREW} "Grisbi program files"
+
+LangString GTK ${LANG_FRENCH} "Bibliothèque GTK2+"
+LangString GTK ${LANG_ENGLISH} "GTK2+ libraries"
+LangString GTK ${LANG_GERMAN} "GTK2+ libraries"
+LangString GTK ${LANG_SPANISH} "Biblioteca GTK"
+LangString GTK ${LANG_TRADCHINESE} "GTK2+ libraries"
+LangString GTK ${LANG_ITALIAN} "GTK2+ libraries"
+LangString GTK ${LANG_DUTCH} "GTK2+ libraries"
+LangString GTK ${LANG_DANISH} "GTK2+ libraries"
+LangString GTK ${LANG_GREEK} "GTK2+ libraries"
+LangString GTK ${LANG_RUSSIAN} "GTK2+ libraries"
+LangString GTK ${LANG_PORTUGUESEBR} "GTK2+ libraries"
+LangString GTK ${LANG_POLISH} "GTK2+ libraries"
+LangString GTK ${LANG_CZECH} "Knihovny GTK2+"
+LangString GTK ${LANG_ROMANIAN} "GTK2+ libraries"
+LangString GTK ${LANG_FARSI} "GTK2+ libraries"
+LangString GTK ${LANG_HEBREW} "GTK2+ libraries"
+
+LangString OFXplug ${LANG_FRENCH} "Plugin OFX d'importation"
+LangString OFXplug ${LANG_ENGLISH} "OFX files import"
+LangString OFXplug ${LANG_GERMAN} "OFX files import"
+LangString OFXplug ${LANG_SPANISH} "OFX import"
+LangString OFXplug ${LANG_TRADCHINESE} "OFX files import"
+LangString OFXplug ${LANG_ITALIAN} "OFX files import"
+LangString OFXplug ${LANG_DUTCH} "OFX files import"
+LangString OFXplug ${LANG_DANISH} "OFX files import"
+LangString OFXplug ${LANG_GREEK} "OFX files import"
+LangString OFXplug ${LANG_RUSSIAN} "OFX files import"
+LangString OFXplug ${LANG_PORTUGUESEBR} "OFX files import"
+LangString OFXplug ${LANG_POLISH} "OFX files import"
+LangString OFXplug ${LANG_CZECH} "Plugin pro import OFX"
+LangString OFXplug ${LANG_ROMANIAN} "OFX files import"
+LangString OFXplug ${LANG_FARSI} "OFX files import"
+LangString OFXplug ${LANG_HEBREW} "OFX files import"
+
+LangString GnuCashPlugin ${LANG_FRENCH} "Plugin d'importation GnuCash"
+LangString GnuCashPlugin ${LANG_ENGLISH} "GnuCash files import"
+LangString GnuCashPlugin ${LANG_GERMAN} "GnuCash files import"
+LangString GnuCashPlugin ${LANG_SPANISH} "Archivios del programma Grisbi"
+LangString GnuCashPlugin ${LANG_TRADCHINESE} "GnuCash files import"
+LangString GnuCashPlugin ${LANG_ITALIAN} "GnuCash files import"
+LangString GnuCashPlugin ${LANG_DUTCH} "GnuCash files import"
+LangString GnuCashPlugin ${LANG_DANISH} "GnuCash files import"
+LangString GnuCashPlugin ${LANG_GREEK} "GnuCash files import"
+LangString GnuCashPlugin ${LANG_RUSSIAN} "GnuCash files import"
+LangString GnuCashPlugin ${LANG_PORTUGUESEBR} "GnuCash files import"
+LangString GnuCashPlugin ${LANG_POLISH} "GnuCash files import"
+LangString GnuCashPlugin ${LANG_CZECH} "Plugin pro import GnuCash"
+LangString GnuCashPlugin ${LANG_ROMANIAN} "GnuCash files import"
+LangString GnuCashPlugin ${LANG_FARSI} "GnuCash files import"
+LangString GnuCashPlugin ${LANG_HEBREW} "GnuCash files import"
+
+LangString OpenSSLplug ${LANG_FRENCH} "Plugin de cryptage OpenSSL"
+LangString OpenSSLplug ${LANG_ENGLISH} "OpenSSL encryption"
+LangString OpenSSLplug ${LANG_GERMAN} "OpenSSL encryption"
+LangString OpenSSLplug ${LANG_SPANISH} "Archivios del programma Grisbi"
+LangString OpenSSLplug ${LANG_TRADCHINESE} "OpenSSL encryption"
+LangString OpenSSLplug ${LANG_ITALIAN} "OpenSSL encryption"
+LangString OpenSSLplug ${LANG_DUTCH} "OpenSSL encryption"
+LangString OpenSSLplug ${LANG_DANISH} "OpenSSL encryption"
+LangString OpenSSLplug ${LANG_GREEK} "OpenSSL encryption"
+LangString OpenSSLplug ${LANG_RUSSIAN} "OpenSSL encryption"
+LangString OpenSSLplug ${LANG_PORTUGUESEBR} "OpenSSL encryption"
+LangString OpenSSLplug ${LANG_POLISH} "OpenSSL encryption"
+LangString OpenSSLplug ${LANG_CZECH} "Plugin pro šifrování OpenSSL"
+LangString OpenSSLplug ${LANG_ROMANIAN} "OpenSSL encryption"
+LangString OpenSSLplug ${LANG_FARSI} "OpenSSL encryption"
+LangString OpenSSLplug ${LANG_HEBREW} "OpenSSL encryption"
+
+LangString Shortcut ${LANG_FRENCH} "Raccourcis du menu démarrer"
+LangString Shortcut ${LANG_ENGLISH} "Start menu shortcuts"
+LangString Shortcut ${LANG_GERMAN} "Start menu shortcuts"
+LangString Shortcut ${LANG_SPANISH} "Archivios del programma Grisbi"
+LangString Shortcut ${LANG_TRADCHINESE} "Start menu shortcuts"
+LangString Shortcut ${LANG_ITALIAN} "Start menu shortcuts"
+LangString Shortcut ${LANG_DUTCH} "Start menu shortcuts"
+LangString Shortcut ${LANG_DANISH} "Start menu shortcuts"
+LangString Shortcut ${LANG_GREEK} "Start menu shortcuts"
+LangString Shortcut ${LANG_RUSSIAN} "Start menu shortcuts"
+LangString Shortcut ${LANG_PORTUGUESEBR} "Start menu shortcuts"
+LangString Shortcut ${LANG_POLISH} "Start menu shortcuts"
+LangString Shortcut ${LANG_CZECH} "Zástupci v nabídce Start"
+LangString Shortcut ${LANG_ROMANIAN} "Start menu shortcuts"
+LangString Shortcut ${LANG_FARSI} "Start menu shortcuts"
+LangString Shortcut ${LANG_HEBREW} "Start menu shortcuts"
+
+LangString ErrorMsg ${LANG_FRENCH} "Les fichiers redistribuables de Microsoft Visual C++ 2008 SP1 n'ont pas été correctement installés. Ils sont pourant nécessaires au bon fonctionnement de Grisbi. S'ils ne sont pas déjà installés, Grisbi peut ne pas fontionner correctement. Dans ce cas, installez les fichier manuellement, ou relancez l'installateur de Grisbi."
+LangString ErrorMsg ${LANG_ENGLISH} "Microsoft Visual C++ 2008 SP1 redistribuables installation failed. This component is required to run Grisbi. If it is not already installed, Grisbi might not work. In that case, install the package manually, or re-run the installer."
+LangString ErrorMsg ${LANG_GERMAN} "Microsoft Visual C++ 2008 SP1 redistribuables failed. This component is required to run Grisbi. If it is not already installed, Grisbi might not work. In that case, install the package manually, or re-run the installer"
+LangString ErrorMsg ${LANG_SPANISH} "Microsoft Visual C++ 2008 SP1 redistribuables failed. This component is required to run Grisbi. If it is not already installed, Grisbi might not work. In that case, install the package manually, or re-run the installer."
+LangString ErrorMsg ${LANG_TRADCHINESE} "Microsoft Visual C++ 2008 SP1 redistribuables failed. This component is required to run Grisbi. If it is not already installed, Grisbi might not work. In that case, install the package manually, or re-run the installer."
+LangString ErrorMsg ${LANG_ITALIAN} "Microsoft Visual C++ 2008 SP1 redistribuables failed. This component is required to run Grisbi. If it is not already installed, Grisbi might not work. In that case, install the package manually, or re-run the installer."
+LangString ErrorMsg ${LANG_DUTCH} "Microsoft Visual C++ 2008 SP1 redistribuables failed. This component is required to run Grisbi. If it is not already installed, Grisbi might not work. In that case, install the package manually, or re-run the installer."
+LangString ErrorMsg ${LANG_DANISH} "Microsoft Visual C++ 2008 SP1 redistribuables failed. This component is required to run Grisbi. If it is not already installed, Grisbi might not work. In that case, install the package manually, or re-run the installer."
+LangString ErrorMsg ${LANG_GREEK} "Microsoft Visual C++ 2008 SP1 redistribuables failed. This component is required to run Grisbi. If it is not already installed, Grisbi might not work. In that case, install the package manually, or re-run the installer."
+LangString ErrorMsg ${LANG_RUSSIAN} "Microsoft Visual C++ 2008 SP1 redistribuables failed. This component is required to run Grisbi. If it is not already installed, Grisbi might not work. In that case, install the package manually, or re-run the installer."
+LangString ErrorMsg ${LANG_PORTUGUESEBR} "Microsoft Visual C++ 2008 SP1 redistribuables failed. This component is required to run Grisbi. If it is not already installed, Grisbi might not work. In that case, install the package manually, or re-run the installer."
+LangString ErrorMsg ${LANG_POLISH} "Microsoft Visual C++ 2008 SP1 redistribuables failed. This component is required to run Grisbi. If it is not already installed, Grisbi might not work. In that case, install the package manually, or re-run the installer."
+LangString ErrorMsg ${LANG_CZECH} "Instalace balíèku Microsoft Visual C++ 2008 SP1 redistributable se nezdaøila. Tato komponenta je nezbytná pro spuštìní Grisbi. Pokud již døíve nebyla nainstalována, Grisbi nemusí fungovat. V takovém pøípadì prosím komponentu nainstalujte ruènì, nebo znovu spuste instalaèní soubor."
+LangString ErrorMsg ${LANG_ROMANIAN} "Microsoft Visual C++ 2008 SP1 redistribuables failed. This component is required to run Grisbi. If it is not already installed, Grisbi might not work. In that case, install the package manually, or re-run the installer."
+LangString ErrorMsg ${LANG_FARSI} "Microsoft Visual C++ 2008 SP1 redistribuables failed. This component is required to run Grisbi. If it is not already installed, Grisbi might not work. In that case, install the package manually, or re-run the installer."
+LangString ErrorMsg ${LANG_HEBREW} "Microsoft Visual C++ 2008 SP1 redistribuables failed. This component is required to run Grisbi. If it is not already installed, Grisbi might not work. In that case, install the package manually, or re-run the installer."
\ No newline at end of file
diff --git a/win32-mingw/modules_cmake/FindMsgfmt.cmake b/win32-mingw/modules_cmake/FindMsgfmt.cmake
new file mode 100644
index 0000000..9e7b1e3
--- /dev/null
+++ b/win32-mingw/modules_cmake/FindMsgfmt.cmake
@@ -0,0 +1,87 @@
+#
+# - Try to find the msgfmt executeable
+#
+# It will set the following variables:
+#
+#  MSGFMT_FOUND
+#  MSGFMT_EXECUTABLE
+#
+###################################################################
+#
+#  Copyright (c) 2006, Andreas Schneider <mail at cynapses.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 (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor,
+# Boston, MA  02110-1301, USA.
+#
+###################################################################
+#
+#  Copyright (c) 2006 Andreas Schneider <mail at cynapses.org>
+#  All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+#
+# * Redistributions of source code must retain the above copyright
+#   notice, this list of conditions and the following disclaimer.
+#
+# * Redistributions in binary form must reproduce the above copyright
+#   notice, this list of conditions and the following disclaimer in
+#   the documentation and/or other materials provided with the
+#   distribution.
+#
+# * Neither the name of the cmake-modules nor the names of its
+#   contributors may be used to endorse or promote products derived
+#   from this software without specific prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+# POSSIBILITY OF SUCH DAMAGE.
+#
+
+IF (MSGFMT_EXECUTABLE)
+  # in cache alread?
+  SET(MSGFMT_FOUND TRUE)
+ELSE (MSGFMT_EXECUTABLE)
+  IF (UNIX)
+    FIND_PROGRAM(MSGFMT_EXECUTABLE
+      NAMES
+        msgfmt
+      PATHS
+        /usr/bin
+        /usr/local/bin
+    )
+  ENDIF(UNIX)
+  IF (WIN32)
+    find_program (MSGFMT_EXECUTABLE msgfmt )
+  ENDIF(WIN32)
+  IF(MSGFMT_EXECUTABLE)
+    SET(MSGFMT_FOUND TRUE)
+  ELSE(MSGFMT_EXECUTABLE)
+    MESSAGE(FATAL_ERROR "msgfmt not found - po files can't be processed")
+ENDIF(MSGFMT_EXECUTABLE)
+MARK_AS_ADVANCED(MSGFMT_EXECUTABLE)
+ENDIF (MSGFMT_EXECUTABLE)
+
+# vim:et ts=2 sw=2 comments=\:\#
diff --git a/win32-mingw/modules_cmake/check_or_error.cmake b/win32-mingw/modules_cmake/check_or_error.cmake
new file mode 100644
index 0000000..f64c71c
--- /dev/null
+++ b/win32-mingw/modules_cmake/check_or_error.cmake
@@ -0,0 +1,6 @@
+MACRO(check_or_error _testvar)
+		CHECK_INCLUDE_FILES (${_testvar} RET)
+		if (NOT ${RET})
+			message (FATAL_ERROR "manque "${_testvar})
+		endif (NOT ${RET})
+ENDMACRO(check_or_error _testvar)
diff --git a/win32-mingw/package.cmd b/win32-mingw/package.cmd
new file mode 100644
index 0000000..de262d7
--- /dev/null
+++ b/win32-mingw/package.cmd
@@ -0,0 +1,24 @@
+ at echo off
+set DIR=target\zip
+mkdir %DIR%
+
+xcopy /Y target\Release\*.dll %DIR%
+xcopy /Y target\Release\*.exe %DIR%
+xcopy /S /Y target\Release\etc %DIR%\etc\
+xcopy /S /Y target\Release\lib %DIR%\lib\
+
+xcopy /S /Y ..\help %DIR%\help\
+call tools\dos2unix.cmd ..\help\tips\tips.txt %DIR%\help\tips\tips.txt
+rmdir /S /Q %DIR%\help\cvs
+for %%f in (c de en fr tips) do rmdir /S /Q %DIR%\help\%%f\cvs
+
+xcopy /S /Y ..\pixmaps\*.png %DIR%\pixmaps\
+
+for %%f in (CS DA DE EL EO ES FA FR HE IT NL PL PT_BR RO RU ZH_CN) do (
+	mkdir target\zip\lib\locale\%%f\LC_MESSAGES
+	target\gtk-dev\bin\msgfmt.exe ..\po\%%f.po --output-file=target\zip\lib\locale\%%f\LC_MESSAGES\grisbi.mo
+)
+
+cd %DIR%
+zip -r ..\grisbi *
+pause
diff --git a/win32-mingw/prepare_Win32.cmd b/win32-mingw/prepare_Win32.cmd
new file mode 100644
index 0000000..c4f9a81
--- /dev/null
+++ b/win32-mingw/prepare_Win32.cmd
@@ -0,0 +1,121 @@
+ at echo off
+::DEFINITION DES VERSIONS
+:: Change the next lines to choose which gtk+ version you download.
+:: Choose runtime version posterior to dev version
+::    Get this file name from http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2.18/
+::    Specify the BUNDLE file
+::    Don't include the extension
+SET GTK_DEV_FILE_BASENAME=gtk+-bundle_2.18.7-20100213_win32
+SET LIBXML_FILE_BASENAME=libxml2-2.7.6.win32
+SET ICONV_FILE_BASENAME=iconv-1.9.2.win32
+SET OPENSSL_FILE_BASENAME=Win32OpenSSL-0_9_8q
+
+:: The rest of the script should do the rest
+::on met chcp 1252 qpour les wget car ils affiche en francais
+SET CURRENT_DIR=%CD%
+IF NOT EXIST target MKDIR target
+IF NOT EXIST target\Win32 MKDIR target\Win32
+SET TARGET_DIR=%CURRENT_DIR%\target\Win32
+IF NOT EXIST downloads MKDIR downloads
+SET DOWNLOADS_DIR=%CURRENT_DIR%\downloads
+
+echo Downloads directory : %DOWNLOADS_DIR%
+echo Target directory : %TARGET_DIR%
+
+REM PAUSE
+
+:: Download and install the GTK runtime
+REM cd %DOWNLOADS_DIR%
+REM wget -nc -c "http://sourceforge.net/projects/gtk-win/files/GTK+ Runtime Environment/GTK+ 2.16/%GTK_BIN_FILE%/download"
+REM .\%GTK_BIN_FILE%
+
+:: Download and unzip libxml2 dev and bin files
+
+cd %DOWNLOADS_DIR%
+chcp 1252 && wget -nc ftp://ftp.zlatkovic.com/libxml/%LIBXML_FILE_BASENAME%.zip
+cd %TARGET_DIR%
+unzip -uo "%DOWNLOADS_DIR%\%LIBXML_FILE_BASENAME%.zip" -d plugins-dev
+IF EXIST plugins-dev\libxml2 RMDIR /S /Q plugins-dev\libxml2
+MOVE plugins-dev\%LIBXML_FILE_BASENAME% plugins-dev\libxml2
+echo libxml ok
+PAUSE
+
+:: Download and unzip iconv dev and bin files
+
+cd "%DOWNLOADS_DIR%"
+chcp 1252 && wget -nc ftp://ftp.zlatkovic.com/libxml/%ICONV_FILE_BASENAME%.zip
+cd "%TARGET_DIR%"
+unzip -uo "%DOWNLOADS_DIR%\%ICONV_FILE_BASENAME%.zip" -d plugins-dev
+IF EXIST plugins-dev\iconv RMDIR /S /Q plugins-dev\iconv
+MOVE plugins-dev\%ICONV_FILE_BASENAME% plugins-dev\iconv
+echo iconv ok
+PAUSE
+
+:: Download and install openssl, copy the required files in the right place
+
+cd "%DOWNLOADS_DIR%"
+chcp 1252 && wget -nc http://www.slproweb.com/download/%OPENSSL_FILE_BASENAME%.exe
+SET SSLDIR=%SystemDrive%\OpenSSL
+IF NOT EXIST "%SSLDIR%\readme.txt" (
+	IF EXIST %OPENSSL_FILE_BASENAME%.exe (
+		ECHO ***** ATTENTION: installer openssl sur le disque systeme generalement C: dans le repertoire par defaut *****
+		PAUSE
+		START /WAIT %OPENSSL_FILE_BASENAME%.exe 
+		echo installation faite
+	) ELSE (
+		ECHO OpenSSL package not downloaded. Please edit the script with correct filename and re-run.
+		CD "%CURRENT_DIR%"
+		EXIT /B 1)
+) ELSE (
+	ECHO OpenSSL already installed. Please check version.)
+cd "%TARGET_DIR%"
+if not exist plugins-dev\openssl mkdir plugins-dev\openssl
+if not exist plugins-dev\openssl\lib mkdir plugins-dev\openssl\lib
+xcopy /Y %SSLDIR%\lib\libeay32.lib plugins-dev\openssl\lib\.
+xcopy /Y %SSLDIR%\lib\ssleay32.lib plugins-dev\openssl\lib\.
+IF NOT EXIST plugins-dev\openssl\include mkdir plugins-dev\openssl\include
+xcopy /YICD %SSLDIR%\include\openssl\* plugins-dev\openssl\include\openssl
+IF NOT EXIST plugins-dev\openssl\bin mkdir plugins-dev\openssl\bin
+xcopy /YICD %SSLDIR%\*.dll plugins-dev\openssl\bin
+echo openssl ok
+
+:: Download and unzip libofx dev and bin files
+cd "%DOWNLOADS_DIR%"
+chcp 1252 && wget -nc http://sourceforge.net/projects/grisbi/files/dependancies/0.6/libofx_Win32.zip/download
+cd "%TARGET_DIR%"
+unzip -uo "%DOWNLOADS_DIR%\libofx_Win32.zip" -d plugins-dev
+echo ofx ok
+
+cd "%DOWNLOADS_DIR%"
+chcp 1252 && wget -nc http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2.18/%GTK_DEV_FILE_BASENAME%.zip
+:: Checking if already unzipped
+:: If the readme file exists for this version, update the unzip
+cd "%TARGET_DIR%"
+IF NOT EXIST gtk-dev (
+	echo GTK+ development files not present.
+	echo Unzipping the archive now...
+	unzip "%DOWNLOADS_DIR%\%GTK_DEV_FILE_BASENAME%" -d gtk-dev
+	echo Done unzipping archive!
+)
+IF EXIST gtk-dev\%GTK_DEV_FILE_BASENAME%.README.txt (
+	echo Found gtk-dev directory with the same gtk+ version.
+	echo Updating the files...
+	unzip -uo "%DOWNLOADS_DIR%\%GTK_DEV_FILE_BASENAME%" -d gtk-dev
+	echo Done updating the files in gtk-dev!
+)
+:: If the readme file for the current version does not exist, remove the dir, and unzip again
+IF NOT EXIST gtk-dev\%GTK_DEV_FILE_BASENAME%.README.txt (
+	echo Found gtk-dev directory with a different gtk+ version.
+	echo Deleting gtk-dev for compatibility reasons...
+	rmdir /S /Q gtk-dev
+	echo Done deleting gtk-dev directory!
+	echo Unzipping downloaded archive...
+	unzip "%DOWNLOADS_DIR%\%GTK_DEV_FILE_BASENAME%" -d gtk-dev
+	echo Done unzipping archive!
+)
+echo gtk ok
+SET GTK_DEV_FILE_BASENAME=
+cd "%CURRENT_DIR%"
+::call generate.cmd
+
+PAUSE
diff --git a/win32-mingw/tools/dos2unix.cmd b/win32-mingw/tools/dos2unix.cmd
new file mode 100644
index 0000000..43851be
--- /dev/null
+++ b/win32-mingw/tools/dos2unix.cmd
@@ -0,0 +1,2 @@
+ at echo off
+tr -d "\15" < %1 > %2
\ No newline at end of file
diff --git a/win32-mingw/wiki.txt b/win32-mingw/wiki.txt
new file mode 100644
index 0000000..baef6ec
--- /dev/null
+++ b/win32-mingw/wiki.txt
@@ -0,0 +1,26 @@
+====== avec mingw ======
+<FIXME:  attention page en cours de création>
+==== A installer tout le support ====
+ 
+  - installer mingw [http://sourceforge.net/projects/mingw/files/Automated%20MinGW%20Installer/mingw-get-inst/mingw-get-inst-20100909/mingw-get-inst-20100909.exe/download]
+  - installer wget [http://sourceforge.net/projects/gnuwin32/files/wget/1.11.4-1/wget-1.11.4-1-setup.exe/download]
+  - installer unzip [http://sourceforge.net/projects/gnuwin32/files/unzip/5.51-1/unzip-5.51-1.exe/download]
+  - installer getext [http://sourceforge.net/projects/gnuwin32/files/gettext/0.14.4/gettext-0.14.4.exe/download]
+  - rajouter les 1 à 4 dans le path ( a priori les 2,3 et 4 sont dans le même répertoire)
+  - installer putty [http://the.earth.li/~sgtatham/putty/latest/x86/putty-0.60-installer.exe] (pas absolument necessaire mais bon)
+  - créer au besoin une clé SSH
+  - installer git extensions  [http://code.google.com/p/gitextensions/downloads/list]
+  - installer cmake [http://www.cmake.org/cmake/resources/software.html] (installer dans un endroit sans espaces)
+  - NSIS [http://nsis.sourceforge.net/Download] (ajoutez NSIS au PATH )
+  - redémarrer le pc
+
+==== B récupérer les sources ====
+
+  - lancer git extension  <code>git clone git://grisbi.git.sourceforge.net/gitroot/grisbi/grisbi </code>
+  - attendre
+
+==== C compiler ====
+
+  - Lancer le script %GRISBISRC%\win32-mingw\prepare_win32.cmd qui va effectuer les opération suivantes :  il va télécharger le kit de développement de gtk+ et le décompresser et générer les make pour mingw \\
+  - Lancer le script %GRISBISRC%\win32-mingw\build.cmd qui va compiler les versions Debug et Release. \\
+  - Lancer le script %GRISBISRC%\win32-mingw\package.cmd qui va générer un zip <FIXME: pas encore testé>\\
diff --git a/win32-mingw/windows_installer.nsi b/win32-mingw/windows_installer.nsi
new file mode 100644
index 0000000..e1a12d4
--- /dev/null
+++ b/win32-mingw/windows_installer.nsi
@@ -0,0 +1,293 @@
+;NSIS Modern User Interface
+;Multilingual Example Script
+;Written by Joost Verburg
+
+;--------------------------------
+;Include Modern UI
+
+  !include "MUI2.nsh"
+  
+;--------------------------------
+;Include Env Vars modification function
+;available at http://nsis.sourceforge.net/Environmental_Variables:_append,_prepend,_and_remove_entries
+
+  ;!include "EnvVarUpdate.nsh" 
+  
+  
+;-----------------------
+;Defining useful parameters
+
+!define PRODUCT "Grisbi" ;Name of the project
+!define MAJOR "0"        ;Major version number
+!define MINOR "7"        ;Minor version number
+!define PATCH "98"        ;Patch version number
+!define STAGE "mingw testing pre release"     ;Developement stage id (RC, beta, alpha)
+!define SMALL_STAGE "mingw_test_pre_rel" ;Small dev stage id without spaces
+!define EXE_PATH "target\Win32" ;Path to the exe file you want to pack
+!define PLUGINS_DEV_PATH "target\Win32\plugins-dev" ;Path to the plugins-dev generated by prepare.cmd
+!define GTK_DEV_PATH "target\Win32\gtk-dev" ;Path to the gtk-dev generated by prepare.cmd
+;!define GNUWIN32_PATH "C:\Program Files (x86)\GnuWin32\bin" ;Path to the GnuWin32 root (must have libxml and openssl)
+;!define GTK_INSTALL_PATH "." ; Path to the GTK installer file to pack
+;!define GTK_INSTALL_FILE "gtk2-runtime-2.16.5-2009-08-06-ash.exe" ;Filename of the GTK installer
+
+;Automatically defined parameters
+!define BRANCH "${MAJOR}.${MINOR}.${PATCH}"
+!define VER "${BRANCH} ${STAGE}"
+!define SMALL_VER "${BRANCH}_${SMALL_STAGE}"
+!define FULLNAME "${PRODUCT} ${VER}"
+!define SHORTNAME "${PRODUCT}_${SMALL_VER}"
+
+;--------------------------------
+;General
+
+  ;Name and file
+  Name "${FULLNAME}"
+  !define MUI_ICON "../win32/grisbi.ico"
+  !define MUI_UNICON "../win32/grisbi.ico"
+  !define MUI_COMPONENTSPAGE_NODESC "true"
+  OutFile "${SHORTNAME}.exe"
+  
+  SetCompressor /SOLID lzma
+
+  ;Default installation folder
+  InstallDir "$PROGRAMFILES32\${FULLNAME}"
+  
+  ;Get installation folder from registry if available
+  InstallDirRegKey HKLM "Software\${FULLNAME}" ""
+
+  ;Request application privileges for Windows Vista
+  RequestExecutionLevel admin
+
+;--------------------------------
+;Interface Settings
+
+  !define MUI_ABORTWARNING
+
+;--------------------------------
+;Language Selection Dialog Settings
+
+  ;Remember the installer language
+  !define MUI_LANGDLL_REGISTRY_ROOT "HKLM" 
+  !define MUI_LANGDLL_REGISTRY_KEY "Software\${FULLNAME}" 
+  !define MUI_LANGDLL_REGISTRY_VALUENAME "Installer Language"
+
+;--------------------------------
+;Pages
+
+  !insertmacro MUI_PAGE_LICENSE "..\COPYING"
+  !insertmacro MUI_PAGE_COMPONENTS
+  !insertmacro MUI_PAGE_DIRECTORY
+  !insertmacro MUI_PAGE_INSTFILES
+  
+  !insertmacro MUI_UNPAGE_CONFIRM
+  !insertmacro MUI_UNPAGE_INSTFILES
+
+!ifndef NOINSTTYPES ; only if not defined
+  InstType "Full (recommended)"
+  InstType "Full (without GTK)"
+  InstType "Grisbi only (no plugins)"
+  ;InstType /NOCUSTOM
+  ;InstType /COMPONENTSONLYONCUSTOM
+!endif
+
+
+;--------------------------------
+;Languages
+
+  !insertmacro MUI_LANGUAGE "English" ;first language is the default language
+  !insertmacro MUI_LANGUAGE "French" 
+  !insertmacro MUI_LANGUAGE "German"
+  !insertmacro MUI_LANGUAGE "Spanish"
+  !insertmacro MUI_LANGUAGE "TradChinese"
+  !insertmacro MUI_LANGUAGE "Italian"
+  !insertmacro MUI_LANGUAGE "Dutch"
+  !insertmacro MUI_LANGUAGE "Danish"
+  !insertmacro MUI_LANGUAGE "Greek"
+  !insertmacro MUI_LANGUAGE "Russian"
+  !insertmacro MUI_LANGUAGE "PortugueseBR"
+  !insertmacro MUI_LANGUAGE "Polish"
+  !insertmacro MUI_LANGUAGE "Czech"
+  !insertmacro MUI_LANGUAGE "Romanian"
+  !insertmacro MUI_LANGUAGE "Farsi"
+  !insertmacro MUI_LANGUAGE "Hebrew"
+
+;--------------------------------
+;Reserve Files
+  
+  ;If you are using solid compression, files that are required before
+  ;the actual installation should be stored first in the data block,
+  ;because this will make your installer start faster.
+  
+  !insertmacro MUI_RESERVEFILE_LANGDLL
+  
+  
+  !include "installer_strings.nsh"
+
+;--------------------------------
+;Installer Sections
+
+Section $(ProgFiles)
+
+  SectionIn 1 2 3 RO
+
+  SetOutPath "$INSTDIR"
+  File /r /x Makefile.am /x Makefile.in /x *.lib "${EXE_PATH}\help"
+  File /r /x Makefile.am /x Makefile.in /x *.lib "${EXE_PATH}\pixmaps"
+  File "${EXE_PATH}\grisbi.exe"
+  File "${EXE_PATH}\*.dll"
+  File ..\win32\grisbi.ico
+  File ..\win32\grisbi.ico
+  
+  ;Store installation folder
+  WriteRegStr HKLM "Software\${FULLNAME}" "" $INSTDIR
+  
+  ; File extension keys
+  WriteRegStr HKCR ".gsb" "" "gsb_account_file"
+  WriteRegExpandStr HKCR "gsb_account_file\Shell\open\command" "" "$INSTDIR\grisbi.exe %1"
+  WriteRegExpandStr HKCR "gsb_account_file\DefaultIcon" "" "$INSTDIR\grisbi.ico"
+  
+  ;Create uninstaller
+  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${FULLNAME}" "DisplayName" "${FULLNAME}"
+  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${FULLNAME}" "UninstallString" '"$INSTDIR\uninstall.exe"'
+  WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${FULLNAME}" "NoModify" 1
+  WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${FULLNAME}" "NoRepair" 1
+  WriteUninstaller "$INSTDIR\Uninstall.exe"
+
+SectionEnd
+
+Section $(GTK)
+
+  SectionIn 1
+  
+  SetOutPath "$INSTDIR"
+  File /r "${GTK_DEV_PATH}\bin\*.dll" ;"${GTK_INSTALL_PATH}\${GTK_INSTALL_FILE}"
+  
+  SetOutPath "$INSTDIR\lib\gtk-2.0\2.10.0\engines"
+  File "${GTK_DEV_PATH}\lib\gtk-2.0\2.10.0\engines\libwimp.dll"
+  
+  SetOutPath "$INSTDIR\share\locale"
+  File /r "${GTK_DEV_PATH}\share\locale\cs"
+  File /r "${GTK_DEV_PATH}\share\locale\da"
+  File /r "${GTK_DEV_PATH}\share\locale\de"
+  File /r "${GTK_DEV_PATH}\share\locale\el"
+  File /r "${GTK_DEV_PATH}\share\locale\eo"
+  File /r "${GTK_DEV_PATH}\share\locale\es"
+  File /r "${GTK_DEV_PATH}\share\locale\fa"
+  File /r "${GTK_DEV_PATH}\share\locale\fr"
+  File /r "${GTK_DEV_PATH}\share\locale\he"
+  File /r "${GTK_DEV_PATH}\share\locale\it"
+  File /r "${GTK_DEV_PATH}\share\locale\lv"
+  File /r "${GTK_DEV_PATH}\share\locale\nl"
+  File /r "${GTK_DEV_PATH}\share\locale\pl"
+  File /r "${GTK_DEV_PATH}\share\locale\pt_BR"
+  File /r "${GTK_DEV_PATH}\share\locale\ro"
+  File /r "${GTK_DEV_PATH}\share\locale\ru"
+  File /r "${GTK_DEV_PATH}\share\locale\zh_CN"
+
+SectionEnd
+
+SectionGroup "Plugins"
+Section $(OFXplug)
+
+  SectionIn 1 2
+
+  SetOutPath "$INSTDIR\plugins"
+  File "${EXE_PATH}\plugins\libofxplg.dll"
+  
+  SetOutPath "$INSTDIR"
+  File /r "${PLUGINS_DEV_PATH}\libofx\bin\dtd"
+  File "${PLUGINS_DEV_PATH}\libofx\bin\osp152.dll"
+  File "${PLUGINS_DEV_PATH}\libofx\bin\libofx.dll"
+
+SectionEnd
+
+Section $(GnuCashPlugin)
+
+  SectionIn 1 2
+
+  SetOutPath "$INSTDIR\plugins"
+  File "${EXE_PATH}\plugins\libgnucash.dll"
+  
+  SetOutPath "$INSTDIR"
+  File "${PLUGINS_DEV_PATH}\libxml2\bin\libxml2.dll"
+  File "${PLUGINS_DEV_PATH}\iconv\bin\iconv.dll"
+
+SectionEnd
+
+Section $(OpenSSLplug)
+
+  SectionIn 1 2
+
+  SetOutPath "$INSTDIR\plugins"
+  File "${EXE_PATH}\plugins\libopenssl.dll"
+  
+  SetOutPath "$INSTDIR"
+  File "${PLUGINS_DEV_PATH}\openssl\bin\libeay32.dll"
+
+SectionEnd
+SectionGroupEnd
+
+Section $(Shortcut)
+
+  SectionIn 1 2 3
+
+  SetShellVarContext all
+  CreateDirectory "$SMPROGRAMS\Grisbi"
+  CreateShortCut "$SMPROGRAMS\Grisbi\Uninstall ${FULLNAME}.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0
+  CreateShortCut "$SMPROGRAMS\Grisbi\${FULLNAME}.lnk" "$INSTDIR\grisbi.exe" "" "$INSTDIR\grisbi.ico" 0
+  CreateShortCut "$DESKTOP\Grisbi.lnk" "$INSTDIR\grisbi.exe" "" "$INSTDIR\grisbi.ico" 0
+  
+SectionEnd
+
+;--------------------------------
+;Installer Functions
+
+Function .onInit
+
+  !insertmacro MUI_LANGDLL_DISPLAY
+
+FunctionEnd
+
+;--------------------------------
+;Descriptions
+
+  ;USE A LANGUAGE STRING IF YOU WANT YOUR DESCRIPTIONS TO BE LANGAUGE SPECIFIC
+
+  ;Assign descriptions to sections
+  ;!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
+  ;  !insertmacro MUI_DESCRIPTION_TEXT ${SecDummy} "A test section."
+  ;!insertmacro MUI_FUNCTION_DESCRIPTION_END
+
+ 
+;--------------------------------
+;Uninstaller Section
+
+Section "Uninstall"
+
+  RMDir /r /REBOOTOK $INSTDIR
+  Delete "$INSTDIR\Uninstall.exe"
+
+  DeleteRegKey /ifempty HKLM "Software\${FULLNAME}"
+  DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${FULLNAME}"
+  
+  ; removing file extension keys
+  DeleteRegKey HKCR ".gsb"
+  DeleteRegKey HKCR "gsb_account_file"
+  
+  ; Remove shortcuts, if any
+  SetShellVarContext all
+  Delete "$SMPROGRAMS\Grisbi\Uninstall ${FULLNAME}.lnk"
+  Delete "$SMPROGRAMS\Grisbi\${FULLNAME}.lnk"
+  Delete "$DESKTOP\Grisbi.lnk"
+  RMDir "$SMPROGRAMS\Grisbi"
+
+SectionEnd
+
+;--------------------------------
+;Uninstaller Functions
+
+Function un.onInit
+
+  !insertmacro MUI_UNGETLANGUAGE
+  
+FunctionEnd


hooks/post-receive
-- 
grisbi


More information about the cvs mailing list