summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@src.gnome.org>1998-12-01 16:45:02 +0000
committerJeff Garzik <jgarzik@src.gnome.org>1998-12-01 16:45:02 +0000
commit9d053a3da02bd90ecf1e23df7be1e93bd4818ca8 (patch)
treeb592c84ea92615d5502e45b4c11a4f6696ff7da1
parent46ccea90f78417b89aad32536d7d4d9096f93485 (diff)
downloadgnome-common-9d053a3da02bd90ecf1e23df7be1e93bd4818ca8.tar.gz
Platform fixes. grep -q is not portable, do not use.
svn path=/trunk/; revision=491
-rw-r--r--macros/ChangeLog5
-rw-r--r--macros/autogen.sh14
2 files changed, 12 insertions, 7 deletions
diff --git a/macros/ChangeLog b/macros/ChangeLog
index 10714ea..68fc741 100644
--- a/macros/ChangeLog
+++ b/macros/ChangeLog
@@ -1,3 +1,8 @@
+1998-12-01 Jeff Garzik <jgarzik@pobox.com>
+
+ * autogen.sh:
+ Platform fixes. grep -q is not portable, do not use.
+
1998-12-01 Changwoo Ryu <cwryu@adam.kaist.ac.kr>
* autogen.sh: Run gettextize if needed.
diff --git a/macros/autogen.sh b/macros/autogen.sh
index 2e9390e..0d4c5a0 100644
--- a/macros/autogen.sh
+++ b/macros/autogen.sh
@@ -11,7 +11,7 @@ DIE=0
DIE=1
}
-(grep -q "^AM_PROG_LIBTOOL" configure.in) && {
+(grep "^AM_PROG_LIBTOOL" configure.in >/dev/null) && {
(libtool --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "**Error**: You must have "\`libtool\'" installed to compile Gnome."
@@ -21,8 +21,8 @@ DIE=0
}
}
-grep -q "^AM_GNU_GETTEXT" configure.in && {
-grep -q "sed.*POTFILES" configure.in || \
+grep "^AM_GNU_GETTEXT" configure.in >/dev/null && {
+grep "sed.*POTFILES" configure.in >/dev/null || \
(gettext --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "**Error**: You must have "\`gettext\'" installed to compile Gnome."
@@ -84,20 +84,20 @@ do
if test -d $k; then aclocalinclude="$aclocalinclude -I $k"; \
else echo "**Warning**: No such directory \`$k'. Ignored."; fi; \
done; \
- if grep -q "^AM_GNU_GETTEXT" configure.in; then \
- if grep -q "sed.*POTFILES" configure.in; then \
+ if grep "^AM_GNU_GETTEXT" configure.in >/dev/null; then \
+ if grep "sed.*POTFILES" configure.in >/dev/null; then \
: do nothing -- we still have an old unmodified configure.in
else
echo "Running gettextize... Ignore non-fatal messages."; \
echo "no" | gettextize --force; \
fi \
fi; \
- if grep -q "^AM_PROG_LIBTOOL" configure.in; then \
+ if grep "^AM_PROG_LIBTOOL" configure.in >/dev/null; then \
echo "Running libtoolize..."; \
libtoolize --force; \
fi
aclocal $aclocalinclude; \
- if grep -q "^AM_CONFIG_HEADER" configure.in; then \
+ if grep "^AM_CONFIG_HEADER" configure.in >/dev/null; then \
echo "Running autoheader..."; \
autoheader; \
fi