[gnome-builder/wip/chergert/libidemm-merge: 5/27] libidemm: move gen scripts to one file



commit 5d6e1bfa88759cdcf77ffd918cd24196ebd9b141
Author: Marcin Kolny <marcin kolny gmail com>
Date:   Sat Apr 2 13:18:10 2016 +0200

    libidemm: move gen scripts to one file

 libidemm/tools/gen_scripts/generate_docs.sh       |   18 ------------
 libidemm/tools/gen_scripts/generate_enums.sh      |   16 -----------
 libidemm/tools/gen_scripts/generate_extra_defs.sh |   11 -------
 libidemm/tools/gen_scripts/generate_methods.sh    |   18 ------------
 libidemm/tools/generate_defs_and_docs.sh          |   31 +++++++++++++++++++++
 5 files changed, 31 insertions(+), 63 deletions(-)
---
diff --git a/libidemm/tools/generate_defs_and_docs.sh b/libidemm/tools/generate_defs_and_docs.sh
new file mode 100755
index 0000000..a5f8cce
--- /dev/null
+++ b/libidemm/tools/generate_defs_and_docs.sh
@@ -0,0 +1,31 @@
+#!/bin/bash
+
+# Note that JHBUILD_SOURCES should be defined to contain the path to the root
+# of the jhbuild sources.  Also this script assumes that it resides in the
+# tools/gen_scripts directory and the XML file will be placed in
+# libidemm/src.
+
+if [ -z "$JHBUILD_SOURCES" ]; then
+  echo -e "JHBUILD_SOURCES must contain path to jhbuild sources."
+  exit 1;
+fi
+
+ROOT_DIR="$(dirname "$0")/.."
+OUT_DIR="$ROOT_DIR/src"
+
+
+PARAMS="-s $JHBUILD_SOURCES/gnome-builder/libide/"
+DOCEXTRACT_TO_XML_PY="$JHBUILD_SOURCES/glibmm/tools/defs_gen/docextract_to_xml.py"
+$DOCEXTRACT_TO_XML_PY --no-since $PARAMS > "$OUT_DIR/libide_docs.xml"
+
+
+GEN_DIR="$ROOT_DIR/tools/extra_defs_gen"
+"$GEN_DIR"/generate_defs_libide > "$OUT_DIR"/libide_signals.defs
+
+
+ENUM_PL="$JHBUILD_SOURCES/glibmm/tools/enum.pl"
+$ENUM_PL "$JHBUILD_SOURCES"/gnome-builder/libide/*.h > "$OUT_DIR/libide_enums.defs"
+
+
+H2DEF_PY="$JHBUILD_SOURCES/glibmm/tools/defs_gen/h2def.py"
+$H2DEF_PY "$JHBUILD_SOURCES/gnome-builder"/libide/*.h > "$OUT_DIR/libide_methods.defs"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]