From: Bruno Haible Date: Sat, 17 Jan 2004 13:48:57 +0000 (+0000) Subject: Don't require KDE to be installed for "make dist". X-Git-Tag: v0.14~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2093450293f7ddd18d1b8f67003bb11647781f45;p=thirdparty%2Fgettext.git Don't require KDE to be installed for "make dist". --- diff --git a/gettext-tools/examples/ChangeLog b/gettext-tools/examples/ChangeLog index 6e39eb9b9..5eb636b54 100644 --- a/gettext-tools/examples/ChangeLog +++ b/gettext-tools/examples/ChangeLog @@ -1,3 +1,9 @@ +2004-01-10 Bruno Haible + + * hello-c++-kde/admin: New directory, from KDE 3.1.4. + * hello-c++-kde/auto*.sh: Don't create/remove the contents of the + admin subdirectory. + 2004-01-10 Bruno Haible * hello-c/*, hello-c-gnome/*, hello-objc/*, hello-objc-gnome/*, diff --git a/gettext-tools/examples/hello-c++-kde/autoclean.sh b/gettext-tools/examples/hello-c++-kde/autoclean.sh index 386eb3685..e4c32b7c5 100755 --- a/gettext-tools/examples/hello-c++-kde/autoclean.sh +++ b/gettext-tools/examples/hello-c++-kde/autoclean.sh @@ -7,6 +7,13 @@ test ! -f Makefile || make distclean +if "$1" = fromscratch; then + + # Brought in by explicit copy. + rm -rf admin + +fi + # Brought in by autopoint. rm -f ABOUT-NLS rm -f m4/codeset.m4 @@ -39,9 +46,7 @@ rm -f m4/wint_t.m4 rm -f m4/xsize.m4 rm -f po/Makefile.in.in rm -f po/remove-potcdate.sin - -# Brought in by explicit copy. -rm -rf admin +rm -f admin/config.rpath # Generated through admin/cvs.sh. rm -f acinclude.m4 diff --git a/gettext-tools/examples/hello-c++-kde/autogen.sh b/gettext-tools/examples/hello-c++-kde/autogen.sh index e9a8aef65..aec54bee1 100755 --- a/gettext-tools/examples/hello-c++-kde/autogen.sh +++ b/gettext-tools/examples/hello-c++-kde/autogen.sh @@ -1,26 +1,30 @@ #!/bin/sh # Example for use of GNU gettext. -# Copyright (C) 2003 Free Software Foundation, Inc. +# Copyright (C) 2003-2004 Free Software Foundation, Inc. # This file is in the public domain. # # Script for regenerating all autogenerated files. -kdedir= -for d in /usr/lib/kde /usr/local/kde /usr/local /usr/kde /usr /opt/kde3 /opt/kde /suse/opt/kde3 $KDEDIR; do - if test -f $d/share/apps/kdelibs/admin/cvs.sh; then - kdedir=$d - break +if test "$1" = fromscratch; then + + kdedir= + for d in /usr/lib/kde /usr/local/kde /usr/local /usr/kde /usr /opt/kde3 /opt/kde /suse/opt/kde3 $KDEDIR; do + if test -f $d/share/apps/kdelibs/admin/cvs.sh; then + kdedir=$d + break + fi + done + if test -z "$kdedir"; then + echo "*** KDE directory not found. Try setting KDEDIR." 1>&2 + exit 1 fi -done -if test -z "$kdedir"; then - echo "*** KDE directory not found. Try setting KDEDIR." 1>&2 - exit 1 -fi -cp -a $kdedir/share/apps/kdelibs/admin . -sed -e s/AC_FOREACH/INCOMPATIBLE_FOREACH/g < $kdedir/share/apps/kdelibs/admin/acinclude.m4.in > admin/acinclude.m4.in -sed -e 's/automake\*1.6/automake\*1.[678]/' < admin/cvs.sh > admin/cvs.sh.new -mv admin/cvs.sh.new admin/cvs.sh + cp -a $kdedir/share/apps/kdelibs/admin . + sed -e s/AC_FOREACH/INCOMPATIBLE_FOREACH/g < $kdedir/share/apps/kdelibs/admin/acinclude.m4.in > admin/acinclude.m4.in + sed -e 's/automake\*1.6/automake\*1.[678] | automake\*1.[678]/' < admin/cvs.sh > admin/cvs.sh.new + mv admin/cvs.sh.new admin/cvs.sh + +fi autopoint -f # was: gettextize -f -c mv config.rpath admin/config.rpath