~ubuntu-branches/ubuntu/lucid/gnome-doc-utils/lucid

« back to all changes in this revision

Viewing changes to gnome-doc-prepare.in

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2005-12-19 08:34:21 UTC
  • mto: (2.1.1 etch) (1.1.18 upstream)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20051219083421-k72rkh3n6vox1c0t
Tags: upstream-0.5.2
ImportĀ upstreamĀ versionĀ 0.5.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
 
41
41
# Directory names.
42
42
prefix=@prefix@
 
43
datarootdir=@datarootdir@
43
44
datadir=@datadir@
44
45
pkgdatadir=@datadir@/gnome-doc-utils
45
46
 
270
271
# make sure this subshell exits with the exit value if it failed
271
272
) || exit $?
272
273
 
 
274
# Adapted from gtkdocize:
 
275
# If the AC_CONFIG_MACRO_DIR() macro is used, copy gnome-doc-utils.m4 
 
276
# from our prefix to that directory.  This makes sure that the M4 macro
 
277
# used matches the automake fragment.
 
278
# If AC_CONFIG_MACRO_DIR is not used, the macro won't be copied, and
 
279
# the correct flags must be passed to aclocal for it to find the macro.
 
280
m4dir=`cat "$configure" | grep '^AC_CONFIG_MACRO_DIR' | sed -n -e 's/AC_CONFIG_MACRO_DIR(\([^()]*\))/\1/p' | sed -e 's/^\[\(.*\)\]$/\1/' | sed -e 1q`
 
281
 
 
282
if test -n "$m4dir"; then
 
283
(
 
284
cur=`pwd`
 
285
if test "$m4dir" != .; then
 
286
  test -z "$automake" && echo "Putting files in AC_CONFIG_MACRO_DIR, '$m4dir'."
 
287
  cd $m4dir || exit 1
 
288
fi
 
289
 
 
290
files='gnome-doc-utils.m4'
 
291
 
 
292
for file in $files; do
 
293
  if test -f "$file" && test -z "$force"; then
 
294
    test -z "$automake" && echo "$progname: '$file' exists: use '--force' to overwrite" 1>&2
 
295
    continue
 
296
  fi
 
297
 
 
298
  $rm $file
 
299
  if test -n "$ln_s" && $ln_s $datadir/aclocal/$file $file; then :
 
300
  elif $cp $datadir/aclocal/$file $file; then :
 
301
  else
 
302
    echo "$progname: cannot copy '$datadir/aclocal/$file' to '$file'" 1>&2
 
303
    status=1
 
304
  fi
 
305
done
 
306
 
 
307
exit $status
 
308
# make sure this subshell exits with the exit value if it failed
 
309
) || exit $?
 
310
fi
 
311
 
 
312
 
273
313
# FIXME: This probably does not work w/ builddir != srcdir because it
274
314
# gets at source files relative to the current directory.
275
315