Author: cazfi
Date: Tue Feb  7 05:43:52 2017
New Revision: 34983

URL: http://svn.gna.org/viewcvs/freeciv?rev=34983&view=rev
Log:
Added script to cross-build all installers.

See gna patch #8104

Added:
    trunk/windows/installer_cross/build_all_installers.sh   (with props)
Modified:
    trunk/windows/Makefile.am

Modified: trunk/windows/Makefile.am
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/windows/Makefile.am?rev=34983&r1=34982&r2=34983&view=diff
==============================================================================
--- trunk/windows/Makefile.am   (original)
+++ trunk/windows/Makefile.am   Tue Feb  7 05:43:52 2017
@@ -29,6 +29,7 @@
                installer_cross/create-freeciv-sdl2-nsi.sh      \
                installer_cross/create-freeciv-ruledit-nsi.sh   \
                installer_cross/installer_build.sh              \
+               installer_cross/build_all_installers.sh         \
                installer_cross/winbuild.sh                     \
                installer_cross/Freeciv.url                     \
                installer_cross/freeciv-server.cmd              \

Added: trunk/windows/installer_cross/build_all_installers.sh
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/windows/installer_cross/build_all_installers.sh?rev=34983&view=auto
==============================================================================
--- trunk/windows/installer_cross/build_all_installers.sh       (added)
+++ trunk/windows/installer_cross/build_all_installers.sh       Tue Feb  7 
05:43:52 2017
@@ -0,0 +1,68 @@
+#!/bin/bash
+#/**********************************************************************
+# Freeciv - Copyright (C) 2017
+#   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, 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.
+#
+#***********************************************************************/
+
+if test "x$1" = x || test "x$1" = "x-h" || test "x$1" = "x--help" ; then
+  echo "Usage: $0 <crosser dir>"
+  exit 1
+fi
+
+DLLSPATH="$1"
+
+if ! test -d "$DLLSPATH" ; then
+  echo "Dllstack directory \"$DLLSPATH\" not found!" >&2
+  exit 1
+fi
+
+if ! test -f "$DLLSPATH/crosser.txt" ; then
+  echo "Directory \"$DLLSPATH\" does not look like crosser environment!" >&2
+  exit 1
+fi
+
+RET=0
+
+if ! ./installer_build.sh $DLLSPATH gtk3.22 ; then
+  RET=1
+  GTK322="Fail"
+else
+  GTK322="Success"
+fi
+
+if ! ./installer_build.sh $DLLSPATH qt ; then
+  RET=1
+  QT="Fail"
+else
+  QT="Success"
+fi
+
+if ! ./installer_build.sh $DLLSPATH sdl2 ; then
+  RET=1
+  SDL2="Fail"
+else
+  SDL2="Success"
+fi
+
+if ! ./installer_build.sh $DLLSPATH ruledit ; then
+  RET=1
+  RULEDIT="Fail"
+else
+  RULEDIT="Success"
+fi
+
+echo "Gtk3.22: $GTK322"
+echo "Qt:      $QT"
+echo "Sdl2:    $SDL2"
+echo "Ruledit: $RULEDIT"
+
+exit $RET

Propchange: trunk/windows/installer_cross/build_all_installers.sh
------------------------------------------------------------------------------
    svn:executable = *


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to