Add path as a parameter to migration functions
[nautilus-actions.git] / run-autogen.sh
blob398ddd9570c0f474731651f9f90a44269677980d
1 #!/bin/sh
3 autogen_target=${autogen_target:-normal}
5 # a nautilus-actions-x.y may remain after an aborted make distcheck
6 # such a directory breaks gnome-autogen.sh generation
7 # so clean it here
8 for d in $(find . -maxdepth 1 -type d -name 'nautilus-actions-*'); do
9 chmod -R u+w $d
10 rm -fr $d
11 done
13 [ "${autogen_target}" = "normal" ] &&
14 exec ./autogen.sh \
15 --prefix=$(pwd)/install \
16 --with-nautilus-extdir=$(pwd)/install/lib/nautilus \
17 --disable-schemas-install \
18 --enable-gtk-doc \
19 --enable-gtk-doc-pdf \
20 --disable-scrollkeeper \
21 --enable-html-manuals \
22 --enable-pdf-manuals \
25 # Build with Gtk+ 3 (actually a 2.97.x unstable version)
26 # installed in ~/.local/jhbuild
28 # Note that building with Gtk 3.0 not only requires that we have a
29 # Gtk+ 3 available library, but also that all our required libraries
30 # only depend of Gtk+ 3.0. In our case, we have:
31 # $ grep gtk+-2.0 /usr/lib/pkgconfig/*
32 # libnautilus-extension.pc:Requires: glib-2.0 gio-2.0 gtk+-2.0
33 # unique-1.0.pc:Requires: gtk+-2.0
35 [ "${autogen_target}" = "jhbuild" ] &&
36 export autogen_prefix=${HOME}/.local/jhbuild &&
37 PKG_CONFIG_PATH=${autogen_prefix}/lib/pkgconfig \
38 LD_LIBRARY_PATH=${autogen_prefix}/lib \
39 exec ./autogen.sh \
40 --prefix=${autogen_prefix} \
41 --with-nautilus-extdir=${autogen_prefix}/lib/nautilus \
42 --enable-silent-rules \
43 --disable-schemas-install \