Files
dvdisaster/locale/create-makefile
Stéphane Lesimple 38defdf7aa Apply (most) debian patches
Apply debian patch 02-encryption
Apply debian patch 03-dvdrom
Apply a modified version of patch 05-help-dialog
Apply debian patch 08-fix-gnu-make-detection
Apply debian patch 10-use-non-size-specific-icon-and-add-keywords-to-desktop-file
Apply debian patch 12-fix-spelling-of-up-to
Apply debian patch 13-fix-missing-language-field-in-po-files
Apply a modified version of debian patch 14-make-builds-reproducible
Apply debian patch 17-fix-all-but-deprecated-api-warnings
Apply a modified version of debian patch 18-update-copyright-in-about-dialog
Apply debian patch 19-show-text-files-with-abs-path
Apply debian patch 22-fix-hurd-i386-ftbfs
Apply debian patch 23-add-bdrom-support
Apply debian patch 25-fix-man-pages
Apply debian patch 27-allow-opening-in-browser-again
Apply debian patch 28-pdftex-reproducibility
Apply debian patch 29-fix-more-typos
Apply debian patch 30-hurd-kfreebsd-ftbfs
Apply debian patch 31-improve-hurd-and-kfreebsd-support
Apply debian patch 33-honour-LDFLAGS
Apply debian patch 34-gcc8-format-security.patch
Apply debian patch 35-archived-homepage
Apply debian patch 36-fix-parallelism
2020-08-20 14:17:35 +02:00

61 lines
1.3 KiB
Plaintext

# dvdisaster: Create the locale Makefile.
# This is called from the toplevel ./configure script.
cat > Makefile <<EOF
# This makefile template was automatically generated by
# the create-makefile script. Do not hand-edit!
EOF
for i in ../*.c; do
cfiles="$cfiles $i"
nopath=`echo $i | sed -e 's/..\///'`
cfiles2="$cfiles2 $nopath"
done
for i in *.po; do
prefix=`echo $i | sed -e 's/.po//'`
if ! test -e $prefix; then mkdir $prefix; fi
if ! test -e $prefix/LC_MESSAGES; then mkdir $prefix/LC_MESSAGES; fi
localefiles="$localefiles $prefix/LC_MESSAGES/dvdisaster.mo"
prefixes="$prefixes $prefix"
done
cat >> Makefile <<EOF
LOCALEFILES = $localefiles
CFILES = $cfiles
CFILES_NP = $cfiles2
locale: \$(LOCALEFILES)
# Create the locale files.
messages.pot: \$(CFILES)
@cd ..; xgettext --no-wrap -cTRANSLATORS: -o locale/messages.pot -k_ -k_utf \$(CFILES_NP)
clean:
rm -f messages.pot
EOF
for i in $prefixes; do
cat >> Makefile <<EOF
$i.po: messages.pot
@echo "Updating $i.po"
@msgmerge -q -U --no-wrap --no-fuzzy-matching $i.po messages.pot
$i/LC_MESSAGES/dvdisaster.mo: $i.po
@echo "Updating $i.mo"
@msgfmt -c -o $i/LC_MESSAGES/dvdisaster.mo $i.po
EOF
done
cat >> Makefile <<EOF
.PHONY : check-untranslated
check-untranslated:
@msgattrib --untranslated de.po
EOF