+2014-04-21 Daiki Ueno <ueno@gnu.org>
+
+ * autopoint.in: Rename gettext_dir to gettext_datadir.
+ * gettextize.in: Likewise.
+
2014-03-27 Daiki Ueno <ueno@gnu.org>
autopoint: Use SED-based trace for non-standard Autoconf macros
version=@VERSION@
# Set variables
-# - gettext_dir directory where the sources are stored.
+# - gettext_datadir directory where the data files are stored.
prefix="@prefix@"
datarootdir="@datarootdir@"
-: ${gettext_dir="@datadir@/gettext"}
+: ${gettext_datadir="@datadir@/gettext"}
# func_tmpdir
# creates a temporary directory.
func_find_curr_installdir # determine curr_installdir
func_find_prefixes
# Relocate the directory variables that we use.
- gettext_dir=`echo "$gettext_dir/" | sed -e "s%^${orig_installprefix}/%${curr_installprefix}/%" | sed -e 's,/$,,'`
+ gettext_datadir=`echo "$gettext_datadir/" | sed -e "s%^${orig_installprefix}/%${curr_installprefix}/%" | sed -e 's,/$,,'`
fi
# func_trace macro configure.ac
# The archive of different versions is very large (unless xz compression is
# used), but using it does not require special tools.
case "@ARCHIVE_FORMAT@" in
- dirgz) gzip -d -c < "$gettext_dir/archive.dir.tar.gz" ;;
- dirbz2) bzip2 -d -c < "$gettext_dir/archive.dir.tar.bz2" ;;
- dirxz) xz -d -c < "$gettext_dir/archive.dir.tar.xz" ;;
+ dirgz) gzip -d -c < "$gettext_datadir/archive.dir.tar.gz" ;;
+ dirbz2) bzip2 -d -c < "$gettext_datadir/archive.dir.tar.bz2" ;;
+ dirxz) xz -d -c < "$gettext_datadir/archive.dir.tar.xz" ;;
esac \
| (cd "$work_dir" && tar xf - "gettext-$ver")
if test `find "$work_dir" -type f -print | wc -l` = 0; then
# Set up a temporary CVS repository.
# We need the temporary CVS repository because any checkout needs write
- # access to the CVSROOT/history file, so it cannot be under $gettext_dir.
+ # access to the CVSROOT/history file, so it cannot be under $gettext_datadir.
# We need the temporary checkout directory because when --force was not
# given, we need to compare the existing files with the checked out ones.
# Set variables
# Need to pass -d "$CVSROOT", because there may be a CVS directory in the
# current directory.
cvs -d "$CVSROOT" init
- gzip -d -c < "$gettext_dir/archive.cvs.tar.gz" | (cd "$cvs_dir" && tar xf -)
+ gzip -d -c < "$gettext_datadir/archive.cvs.tar.gz" | (cd "$cvs_dir" && tar xf -)
cd "$work_dir"
cvsver=gettext-`echo "$ver" | sed -e 's/\./_/g'`
# Check availability of the git program.
(git --version) >/dev/null 2>/dev/null || func_fatal_error "git program not found"
mkdir "$work_dir/archive"
- gzip -d -c < "$gettext_dir/archive.git.tar.gz" | (cd "$work_dir/archive" && tar xf -)
+ gzip -d -c < "$gettext_datadir/archive.git.tar.gz" | (cd "$work_dir/archive" && tar xf -)
(cd "$work_dir/archive" && git checkout -q "gettext-$ver") || {
rm -rf "$work_dir"
func_fatal_error "infrastructure files for version $ver not found; this is autopoint from GNU $package $version"
version=@VERSION@
# Set variables
-# - gettext_dir directory where the sources are stored.
+# - gettext_datadir directory where the data files are stored.
prefix="@prefix@"
datarootdir="@datarootdir@"
-: ${gettext_dir="@datadir@/gettext"}
+: ${gettext_datadir="@datadir@/gettext"}
# func_tmpdir
# creates a temporary directory.
func_find_curr_installdir # determine curr_installdir
func_find_prefixes
# Relocate the directory variables that we use.
- gettext_dir=`echo "$gettext_dir/" | sed -e "s%^${orig_installprefix}/%${curr_installprefix}/%" | sed -e 's,/$,,'`
+ gettext_datadir=`echo "$gettext_datadir/" | sed -e "s%^${orig_installprefix}/%${curr_installprefix}/%" | sed -e 's,/$,,'`
fi
# func_trace macro configure.ac
done
# For simplicity we change to the gettext source directory.
-cd "$gettext_dir" ||
- func_fatal_error "gettext source directory '${gettext_dir}' doesn't exist"
+cd "$gettext_datadir" ||
+ func_fatal_error "gettext source directory '${gettext_datadir}' doesn't exist"
# Variables which keep track what has been modified.
added_directories=
for file in *; do
case $file in
ABOUT-NLS)
- func_linkorcopy $file "$gettext_dir/$file" $file
+ func_linkorcopy $file "$gettext_datadir/$file" $file
;;
config.rpath)
if test -f "$srcdir/$auxdir$file"; then
else
added_extradist="$added_extradist $auxdir$file"
fi
- func_linkorcopy $file "$gettext_dir/$file" "$auxdir$file"
+ func_linkorcopy $file "$gettext_datadir/$file" "$auxdir$file"
;;
esac
done
for file in *; do
if test $file != COPYING.LIB-2.0 && test $file != COPYING.LIB-2.1; then
if test $file != plural.c; then
- func_linkorcopy $file "$gettext_dir/intl/$file" intl/$file
+ func_linkorcopy $file "$gettext_datadir/intl/$file" intl/$file
else
# plural.c is a generated file; it must be copied and touched.
func_copy $file intl/$file
fi
fi
func_backup "$podir/$file"
- func_linkorcopy $file "$gettext_dir/po/$file" "$podir/$file"
+ func_linkorcopy $file "$gettext_datadir/po/$file" "$podir/$file"
done
for file in *; do
case $file in
# Already handled above.
;;
Makevars.template)
- func_linkorcopy Makevars.template "$gettext_dir/po/Makevars.template" "$podir/Makevars.template"
+ func_linkorcopy Makevars.template "$gettext_datadir/po/Makevars.template" "$podir/Makevars.template"
if test -f "$srcdir/po/Makevars"; then
LC_ALL=C sed -n -e 's/[ ]*\([A-Za-z0-9_]*\)[ ]*=.*/\1/p' < "$srcdir/$podir/Makevars" | LC_ALL=C sort > "$srcdir/$podir/Makevars.tmp1"
LC_ALL=C sed -n -e 's/[ ]*\([A-Za-z0-9_]*\)[ ]*=.*/\1/p' < "$srcdir/$podir/Makevars.template" | LC_ALL=C sort > "$srcdir/$podir/Makevars.tmp2"
fi
fi
func_backup "$podir/$file"
- func_linkorcopy $file "$gettext_dir/po/$file" "$podir/$file"
+ func_linkorcopy $file "$gettext_datadir/po/$file" "$podir/$file"
;;
esac
done
if $doit; then
echo "$please"
echo "You might also want to copy the convenience header file gettext.h"
- echo "from the $gettext_dir directory into your package."
+ echo "from the $gettext_datadir directory into your package."
echo "It is a wrapper around <libintl.h> that implements the configure --disable-nls"
echo "option."
echo
+2014-04-21 Daiki Ueno <ueno@gnu.org>
+
+ * autopoint-1 (gettext_datadir): Rename from gettext_dir.
+ * autopoint-2 (gettext_datadir): Likewise.
+ * autopoint-3 (gettext_datadir): Likewise.
+
2014-04-15 Daiki Ueno <ueno@gnu.org>
tests: Add tests for 'msgfilter quot' and 'msgfilter boldquot'
rm -f configure.ac
-gettext_dir=$top_builddir/misc
-export gettext_dir
+gettext_datadir=$top_builddir/misc
+export gettext_datadir
# Check if sanity checks are actually working.
# no configure.ac
-$gettext_dir/autopoint 2>&1 | grep -q 'Missing configure.in or configure.ac' \
+$gettext_datadir/autopoint 2>&1 | grep -q 'Missing configure.in or configure.ac' \
|| exit 1
test ! -d intl || exit 1
AC_OUTPUT
EOF
-$gettext_dir/autopoint 2>&1 | grep -q 'Missing version' \
+$gettext_datadir/autopoint 2>&1 | grep -q 'Missing version' \
|| exit 1
test ! -d intl || exit 1
test -d intl || mkdir intl
echo bogus-version > intl/VERSION
-$gettext_dir/autopoint 2>&1 | grep -q 'Missing version' \
+$gettext_datadir/autopoint 2>&1 | grep -q 'Missing version' \
|| exit 1
test ! -d m4 || exit 1
test -d intl || mkdir intl
echo gettext-0.15 > intl/VERSION
-$gettext_dir/autopoint 2>&1 | grep -q 'locally modified' || exit 1
+$gettext_datadir/autopoint 2>&1 | grep -q 'locally modified' || exit 1
test ! -d m4 || exit 1
test ! -d po || exit 1
rm -f configure.ac
-gettext_dir=$top_builddir/misc
-export gettext_dir
+gettext_datadir=$top_builddir/misc
+export gettext_datadir
# Check for not copying libintl source.
cat <<EOF >configure.ac
AC_OUTPUT
EOF
-$gettext_dir/autopoint >/dev/null 2>/dev/null || exit 1
+$gettext_datadir/autopoint >/dev/null 2>/dev/null || exit 1
test ! -d intl || exit 1
test -d m4 || exit 1
AC_OUTPUT
EOF
-$gettext_dir/autopoint >/dev/null 2>/dev/null || exit 1
+$gettext_datadir/autopoint >/dev/null 2>/dev/null || exit 1
test -d intl || exit 1
test -d m4 || exit 1
AC_OUTPUT
EOF
-$gettext_dir/autopoint >/dev/null 2>/dev/null || exit 1
+$gettext_datadir/autopoint >/dev/null 2>/dev/null || exit 1
test ! -d intl || exit 1
test ! -d m4 || exit 1
AC_OUTPUT
EOF
-$gettext_dir/autopoint >/dev/null 2>/dev/null || exit 1
+$gettext_datadir/autopoint >/dev/null 2>/dev/null || exit 1
test ! -d intl || exit 1
test -d m4 || exit 1
${MAKE} --version >/dev/null 2>/dev/null \
|| { echo "Skipping test: make not found"; exit 77; }
-gettext_dir=$top_builddir/misc
-export gettext_dir
+gettext_datadir=$top_builddir/misc
+export gettext_datadir
cat <<EOF >configure.ac
AC_CONFIG_MACRO_DIR([m4])
cp -p "$abs_top_srcdir"/gnulib-lib/gettext.h .
cp -p "$abs_top_srcdir"/examples/hello-c/hello.c .
-$gettext_dir/autopoint -f >/dev/null 2>/dev/null || exit 1
+$gettext_datadir/autopoint -f >/dev/null 2>/dev/null || exit 1
test -d intl || exit 1
test -d m4 || exit 1