From 1d48ffad4c5d75ff0848495d93aad5975e1027b8 Mon Sep 17 00:00:00 2001 From: Greg Zharun Date: Fri, 13 Jun 2014 17:11:54 +0300 Subject: [PATCH] Added helper scripts to build stacks on Windows --- tools/dev_tools/windows/bas | 30 ++++++++++++++++++++++++++++++ tools/dev_tools/windows/bgs | 29 +++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 tools/dev_tools/windows/bas create mode 100644 tools/dev_tools/windows/bgs diff --git a/tools/dev_tools/windows/bas b/tools/dev_tools/windows/bas new file mode 100644 index 0000000000..3f96d4cc9b --- /dev/null +++ b/tools/dev_tools/windows/bas @@ -0,0 +1,30 @@ +function die () { + echo "*******************************************************************************" + echo $* + echo "*******************************************************************************" + exit 1 +} + +build="yes" +clean="no" + +if [ "$1" == "rebuild" ] ; then clean="yes" ; fi +if [ "$1" == "clean" ] ; then clean="yes" build="no"; fi + +if [ "$clean" == "yes" ] ; then + rm -fr $WINA3/inst || die "rm -fr $WINA3/inst failed" + rm -fr $WINA3/source || die "rm -fr $WINA3/source failed" + rm -fr $WINA3/buildlog || die "rm -fr $WINA3/buildlog failed" + rm -fr $WINA3/*.done || die "rm -fr $WINA3/*.done failed" +fi + +if [ "$build" != "yes" ] ; then exit 0 ; fi + +if [ "$clean" == "yes" ] ; then + cd $WINA3 + action load +fi + +if [ ! -d "$WINA3/buildlog" ] ; then mkdir "$WINA3/buildlog" ; fi +#sh -vx $WINA3/build 2>&1 | tee "$WINA3/buildlog/wina3log.`date +%Y-%m-%d--%H.%M`.txt" +sh -vx $WINA3/build 2>&1 | tee "$WINA3/buildlog/wina3log.txt" \ No newline at end of file diff --git a/tools/dev_tools/windows/bgs b/tools/dev_tools/windows/bgs new file mode 100644 index 0000000000..0bf47c9b34 --- /dev/null +++ b/tools/dev_tools/windows/bgs @@ -0,0 +1,29 @@ +function die () { + echo "*******************************************************************************" + echo $* + echo "*******************************************************************************" + exit 1 +} + +build="yes" +clean="no" + +if [ "$1" == "rebuild" ] ; then clean="yes" ; fi +if [ "$1" == "clean" ] ; then clean="yes" build="no"; fi + +if [ "$clean" == "yes" ] ; then + rm -fr $WINGTK/inst || die "rm -fr $WINGTK/inst failed" + rm -fr $WINGTK/source || die "rm -fr $WINGTK/source failed" + rm -fr $WINGTK/buildlog || die "rm -fr $WINGTK/buildlog failed" + rm -fr $WINGTK/*.done || die "rm -fr $WINGTK/*.done failed" +fi + +if [ "$build" != "yes" ] ; then exit 0 ; fi + +if [ "$clean" == "yes" ] ; then + cd $WINGTK + action load +fi + +if [ ! -d "$WINGTK/buildlog" ] ; then mkdir "$WINGTK/buildlog" ; fi +sh -vx $WINGTK/build 2>&1 | tee "$WINGTK/buildlog/wingtklog.`date +%Y-%m-%d--%H.%M`.txt"