[glade/glade-3-8] Updated mingw windows buils script
- From: Juan Pablo Ugarte <jpu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade/glade-3-8] Updated mingw windows buils script
- Date: Mon, 11 Apr 2016 21:32:51 +0000 (UTC)
commit 6e125eb2862addc8abe160628eea018afd3ebccb
Author: Juan Pablo Ugarte <juanpablougarte gmail com>
Date: Sat May 17 19:16:22 2014 -0300
Updated mingw windows buils script
build/mingw-w64/nsis_make_installer.sh | 31 +++++++++++++++++++++----------
1 files changed, 21 insertions(+), 10 deletions(-)
---
diff --git a/build/mingw-w64/nsis_make_installer.sh b/build/mingw-w64/nsis_make_installer.sh
index 49995d1..0818c2c 100644
--- a/build/mingw-w64/nsis_make_installer.sh
+++ b/build/mingw-w64/nsis_make_installer.sh
@@ -48,7 +48,6 @@ case $1 in
;;
makedev)
DEVELOPER="true"
- MINGW_ROOT_BIN=$MINGW_ROOT
INCLUDE_DIR=include
EXCLUDE_FILES=
;;
@@ -90,12 +89,13 @@ if test ! -e download-mingw-rpm.py; then
fi
if test ! -d $MINGW_ROOT; then
- python3 download-mingw-rpm.py --deps gtk2-devel libxml2-devel
+ python3 download-mingw-rpm.py --deps gtk2 hicolor-icon-theme gtk2-devel libxml2-devel
mv $MINGW_ROOT_BIN $MINGW_ROOT
-fi
-
-if test $DEVELOPER = "false" -a ! -d $MINGW_ROOT_BIN; then
- python3 download-mingw-rpm.py --deps gtk2 hicolor-icon-theme
+ if test $DEVELOPER = "true"; then
+ python3 download-mingw-rpm.py --deps gtk2 hicolor-icon-theme gtk2-devel libxml2-devel
+ else
+ python3 download-mingw-rpm.py --deps gtk2 hicolor-icon-theme
+ fi
fi
if test ! -e $MINGW_ROOT_BIN/bin/glade-3.exe; then
@@ -108,7 +108,7 @@ fi
fi
-if test ! -e $MINGW_ROOT_BIN/bin/glade.exe; then
+if test ! -e $MINGW_ROOT_BIN/bin/glade-3.exe; then
echo Executable not found! Aborting...
exit 1
fi
@@ -117,16 +117,25 @@ fi
cp $ROOT/build/mingw-w64/glade.nsi $ROOT/data/icons/glade-3.ico $MINGW_ROOT_BIN
+# Move locale files
+if test -d $MINGW_ROOT_BIN/lib/locale; then
+ cp -r $MINGW_ROOT_BIN/lib/locale/* $MINGW_ROOT_BIN/share/locale/
+ rm -rf $MINGW_ROOT_BIN/lib/locale
+fi
+
#change to installer directory
cd $MINGW_ROOT_BIN
+# remove locales whitout a glade file
+rm -r `find share/locale/ -mindepth 1 -maxdepth 1 -type d -exec test ! -e "{}/LC_MESSAGES/glade3.mo" \;
-print`
+
if test ! -d COPYING; then
cat > COPYING << EOF
Glade - A user interface designer for GTK+ and GNOME.
Copyright � 2001-2006 Ximian, Inc.
Copyright � 2001-2006 Joaquin Cuenca Abela, Paolo Borelli, et al.
-Copyright � 2001-2012 Tristan Van Berkom, Juan Pablo Ugarte, et al.
+Copyright � 2001-2014 Tristan Van Berkom, Juan Pablo Ugarte, et al.
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
@@ -151,11 +160,13 @@ if test $DEVELOPER = "true"; then
cat > install_files.nsh << EOF
file /r lib
+ file /r etc
file /r share
file /r include
EOF
else
cat > install_files.nsh << EOF
+ file /r etc
file /r /x pkgconfig /x *.dll.a /x *.la lib
file /r share
EOF
@@ -173,8 +184,8 @@ makensis glade.nsi
rm install_files.nsh uninstall_files.nsh
-#copy installer in build directory
-cp glade-*-installer.exe $CWD
+#move installer in build directory
+mv glade-*-installer.exe $CWD
#go back to start
cd $CWD
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]