Author: cazfi
Date: Tue Feb  7 05:44:01 2017
New Revision: 34984

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

See gna patch #8104

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

Modified: branches/S3_0/windows/Makefile.am
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S3_0/windows/Makefile.am?rev=34984&r1=34983&r2=34984&view=diff
==============================================================================
--- branches/S3_0/windows/Makefile.am   (original)
+++ branches/S3_0/windows/Makefile.am   Tue Feb  7 05:44:01 2017
@@ -32,6 +32,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: branches/S3_0/windows/installer_cross/build_all_installers.sh
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S3_0/windows/installer_cross/build_all_installers.sh?rev=34984&view=auto
==============================================================================
--- branches/S3_0/windows/installer_cross/build_all_installers.sh       (added)
+++ branches/S3_0/windows/installer_cross/build_all_installers.sh       Tue Feb 
 7 05:44:01 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: branches/S3_0/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