mirror of git://sourceware.org/git/glibc.git
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.
This commit is contained in:
parent
eec62f42bb
commit
9a5b9056e0
|
|
@ -27,26 +27,19 @@ LC_ALL=C
|
||||||
export LC_ALL
|
export LC_ALL
|
||||||
|
|
||||||
# Generate the test data.
|
# 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.
|
# Create the locale directories.
|
||||||
test -d ${objpfx}localedir/existing-locale || {
|
mkdir -p ${objpfx}localedir/existing-locale/LC_MESSAGES
|
||||||
mkdir ${objpfx}localedir/existing-locale
|
|
||||||
for f in ADDRESS COLLATE CTYPE IDENTIFICATION MEASUREMENT MONETARY NAME NUMERIC PAPER TELEPHONE TIME; do
|
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 \
|
cp -f ${common_objpfx}localedata/de_DE.ISO-8859-1/LC_$f \
|
||||||
${objpfx}localedir/existing-locale
|
${objpfx}localedir/existing-locale
|
||||||
done
|
done
|
||||||
}
|
cp -f ${common_objpfx}localedata/de_DE.ISO-8859-1/LC_MESSAGES/SYS_LC_MESSAGES \
|
||||||
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
|
${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.
|
# Populate them.
|
||||||
msgfmt -o ${objpfx}domaindir/existing-locale/LC_MESSAGES/existing-domain.mo \
|
msgfmt -o ${objpfx}domaindir/existing-locale/LC_MESSAGES/existing-domain.mo \
|
||||||
-f ../po/de.po
|
-f ../po/de.po
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue