about summary refs log tree commit diff
path: root/intl/tst-gettext.sh
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-11-21 03:41:16 +0000
committerRoland McGrath <roland@gnu.org>2002-11-21 03:41:16 +0000
commit9a5b9056e0b3db14d5f15c10d9c4114568c5d65b (patch)
tree54871105ac994676e60285ebc6eda81f39cae31b /intl/tst-gettext.sh
parenteec62f42bb1e1afeef75c58dcb4fe666d6c0fcb8 (diff)
downloadglibc-9a5b9056e0b3db14d5f15c10d9c4114568c5d65b.tar.gz
glibc-9a5b9056e0b3db14d5f15c10d9c4114568c5d65b.tar.xz
glibc-9a5b9056e0b3db14d5f15c10d9c4114568c5d65b.zip
2002-11-20 Roland McGrath <roland@redhat.com>
	* intl/tst-gettext.sh: Use mkdir -p.  Copy test files unconditionally,
	so aborted prior runs don't confuse things.
Diffstat (limited to 'intl/tst-gettext.sh')
-rwxr-xr-xintl/tst-gettext.sh29
1 files changed, 11 insertions, 18 deletions
diff --git a/intl/tst-gettext.sh b/intl/tst-gettext.sh
index 91abd38d95..cf6f6f3292 100755
--- a/intl/tst-gettext.sh
+++ b/intl/tst-gettext.sh
@@ -27,26 +27,19 @@ LC_ALL=C
 export LC_ALL
 
 # Generate the test data.
-test -d ${objpfx}domaindir || mkdir ${objpfx}domaindir
-test -d ${objpfx}localedir || mkdir ${objpfx}localedir
-# Create the domain directories.
-test -d ${objpfx}domaindir/existing-locale || mkdir ${objpfx}domaindir/existing-locale
-test -d ${objpfx}domaindir/existing-locale/LC_MESSAGES || mkdir ${objpfx}domaindir/existing-locale/LC_MESSAGES
-test -d ${objpfx}domaindir/existing-locale/LC_TIME || mkdir ${objpfx}domaindir/existing-locale/LC_TIME
+
 # Create the locale directories.
-test -d ${objpfx}localedir/existing-locale || {
-  mkdir ${objpfx}localedir/existing-locale
-  for f in ADDRESS COLLATE CTYPE IDENTIFICATION MEASUREMENT MONETARY NAME NUMERIC PAPER TELEPHONE TIME; do
-    cp ${common_objpfx}localedata/de_DE.ISO-8859-1/LC_$f \
-       ${objpfx}localedir/existing-locale
-  done
-}
-test -d ${objpfx}localedir/existing-locale/LC_MESSAGES || {
-  mkdir ${objpfx}localedir/existing-locale/LC_MESSAGES
-  cp ${common_objpfx}localedata/de_DE.ISO-8859-1/LC_MESSAGES/SYS_LC_MESSAGES \
-     ${objpfx}localedir/existing-locale/LC_MESSAGES
-}
+mkdir -p ${objpfx}localedir/existing-locale/LC_MESSAGES
+for f in ADDRESS COLLATE CTYPE IDENTIFICATION MEASUREMENT MONETARY NAME NUMERIC PAPER TELEPHONE TIME; do
+  cp -f ${common_objpfx}localedata/de_DE.ISO-8859-1/LC_$f \
+        ${objpfx}localedir/existing-locale
+done
+cp -f ${common_objpfx}localedata/de_DE.ISO-8859-1/LC_MESSAGES/SYS_LC_MESSAGES \
+      ${objpfx}localedir/existing-locale/LC_MESSAGES
 
+# Create the domain directories.
+mkdir -p ${objpfx}domaindir/existing-locale/LC_MESSAGES
+mkdir -p ${objpfx}domaindir/existing-locale/LC_TIME
 # Populate them.
 msgfmt -o ${objpfx}domaindir/existing-locale/LC_MESSAGES/existing-domain.mo \
        -f ../po/de.po