summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorRichard Hult <rhult@codefactory.se>2001-12-01 12:00:43 +0000
committerRichard Hult <rhult@src.gnome.org>2001-12-01 12:00:43 +0000
commit36c73f747bad97497ea3339b42a259a3db518911 (patch)
treefdef9bba2f3ec9e71f238d02429b11d2f7bde63c /autogen.sh
parent57c850dc83adf9638426c0a289fb3cea2bc1ba98 (diff)
downloadyelp-36c73f747bad97497ea3339b42a259a3db518911.tar.gz
Exit when the window is closed.
2001-12-01 Richard Hult <rhult@codefactory.se> * src/main.c (main): Exit when the window is closed. * src/*.c: Mark strings as translatable. * src/main.c (main): Init gettext. * acconfig.h: Add. * configure.in: Gettextize and intltoolize. * autogen.sh: Redirect to the installed one for gnome 2. * yelp.desktop.in: Desktop file. * Makefile.am: Add a desktop file and intltool rule for it.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh42
1 files changed, 15 insertions, 27 deletions
diff --git a/autogen.sh b/autogen.sh
index e5479add..a34ead48 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,34 +1,22 @@
#!/bin/sh
+# Run this to generate all the initial makefiles, etc.
-(gettextize --version) < /dev/null > /dev/null 2>&1 || {
- echo;
- echo "You must have gettext installed to compile GtkHtml";
- echo;
- exit;
-}
+srcdir=`dirname $0`
+test -z "$srcdir" && srcdir=.
-(automake --version) < /dev/null > /dev/null 2>&1 || {
- echo;
- echo "You must have automake installed to compile GtkHtml";
- echo;
- exit;
-}
+PKG_NAME="Yelp"
-(autoconf --version) < /dev/null > /dev/null 2>&1 || {
- echo;
- echo "You must have autoconf installed to compile GtkHtml";
- echo;
- exit;
+(test -f $srcdir/configure.in \
+ && test -f $srcdir/src/main.c \
+ && test -f $srcdir/README) || {
+ echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
+ echo " top-level yelp directory"
+ exit 1
}
-echo "Generating configuration files for GtkHtml2, please wait...."
-echo;
-
-echo n | gettextize --copy --force;
-aclocal $ACLOCAL_FLAGS;
-autoheader;
-automake --add-missing;
-autoconf;
-
-./configure $@ --enable-maintainer-mode --enable-compile-warnings
+which gnome-autogen.sh || {
+ echo "You need to install gnome-common from the GNOME CVS"
+ exit 1
+}
+USE_GNOME2_MACROS=1 . gnome-autogen.sh