[vala/wip/vapicheck: 94/94] vapicheck: convenient caller script
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/vapicheck: 94/94] vapicheck: convenient caller script
- Date: Sat, 13 Mar 2021 21:46:09 +0000 (UTC)
commit d2c3b4b78aa434caf82d1db42e05e3d308a4d558
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sun Jan 31 13:04:52 2021 +0100
vapicheck: convenient caller script
vapicheck.sh | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
---
diff --git a/vapicheck.sh b/vapicheck.sh
new file mode 100755
index 000000000..e82ada553
--- /dev/null
+++ b/vapicheck.sh
@@ -0,0 +1,33 @@
+#!/bin/bash
+
+FILE=$1
+
+if [ ! -f "$FILE" ]; then
+ echo "'$FILE' does not exist."
+ exit 1
+fi
+
+VAPI=`basename -s .vapi $1`
+VAPIDIR=`dirname $1`
+
+vapigen/vapicheck --disable-warnings --disable-since-check \
+ --dump-tree tree.vala \
+ $FILE || exit 1
+
+compiler/valac --disable-warnings --disable-since-check \
+ -X -Wno-discarded-qualifiers \
+ -X -Wno-deprecated-declarations \
+ -X -Wno-unused-value \
+ -X -Werror=enum-conversion \
+ -X -Werror=int-conversion \
+ -X -Werror=implicit-function-declaration \
+ --vapidir $VAPIDIR --pkg $VAPI \
+ tree.vala || \
+compiler/valac --disable-warnings --disable-since-check \
+ -C \
+ --vapidir $VAPIDIR --pkg $VAPI \
+ tree.vala && exit 1
+
+./tree || exit 1
+
+rm -f tree.vala tree.c tree
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]