about summary refs log tree commit diff
path: root/generate
diff options
context:
space:
mode:
Diffstat (limited to 'generate')
-rwxr-xr-xgenerate19
1 files changed, 7 insertions, 12 deletions
diff --git a/generate b/generate
index 7f62ada..aa3d372 100755
--- a/generate
+++ b/generate
@@ -1,10 +1,5 @@
 #!/bin/sh
 
-if [ $# -lt 1 ]; then
-	printf "Usage: generate <gobject introspection root>\n" >&2
-	exit 1
-fi
-GI="$1"
 BIND=./bindings
 
 mkdir -p "$BIND"/glib "$BIND"/gobject "$BIND"/gio "$BIND"/gmodule "$BIND"/atk \
@@ -25,16 +20,16 @@ hare build cmd/hare-gi && ./hare-gi -B \
 	-m Gdk,gdk,"$BIND"/gdk/_generated.ha \
 	-m xlib,xlib,"$BIND"/xlib/_generated.ha \
 	-m Gtk,gtk,"$BIND"/gtk/_generated.ha \
-	"$GI"/build/gir/GLib-2.0.gir \
-	"$GI"/build/gir/GObject-2.0.gir \
-	"$GI"/build/gir/Gio-2.0.gir \
-	"$GI"/build/gir/GModule-2.0.gir \
+	/usr/share/gir-1.0/GLib-2.0.gir \
+	/usr/share/gir-1.0/GObject-2.0.gir \
+	/usr/share/gir-1.0/Gio-2.0.gir \
+	/usr/share/gir-1.0/GModule-2.0.gir \
 	/usr/share/gir-1.0/Atk-1.0.gir \
 	/usr/share/gir-1.0/GdkPixbuf-2.0.gir \
-	"$GI"/build/gir/freetype2-2.0.gir \
+	/usr/share/gir-1.0/freetype2-2.0.gir \
 	/usr/share/gir-1.0/HarfBuzz-0.0.gir \
-	"$GI"/build/gir/cairo-1.0.gir \
+	/usr/share/gir-1.0/cairo-1.0.gir \
 	/usr/share/gir-1.0/Pango-1.0.gir \
 	/usr/share/gir-1.0/Gdk-3.0.gir \
-	"$GI"/build/gir/xlib-2.0.gir \
+	/usr/share/gir-1.0/xlib-2.0.gir \
 	/usr/share/gir-1.0/Gtk-3.0.gir