[test/shaping] Add hb-update-manifests

This commit is contained in:
Behdad Esfahbod 2012-01-19 15:43:48 -05:00
parent d4de562adf
commit a33e46cf7d
3 changed files with 25 additions and 4 deletions

View File

@ -1,10 +1,8 @@
# Process this file with automake to produce Makefile.in
manifests:
@find "$(srcdir)/texts" -type d | while read d; do \
echo " GEN $$d/MANIFEST"; \
(cd "$$d" && ls | grep -v MANIFEST | LANG=C sort > MANIFEST.tmp && mv MANIFEST.tmp MANIFEST || ($(RM) MANIFEST.tmp; false)); \
done; true
@$(srcdir)/hb-update-manifests "$(srcdir)/texts" "$(srcdir)/fonts"
.PHONY: manifests
-include $(top_srcdir)/git.mk

View File

@ -0,0 +1,22 @@
#!/bin/sh
if test $# = 0; then
echo "Usage: $0 DIR..."
exit 1
fi
find "$@" -type d |
while read d; do
echo " GEN $d/MANIFEST";
(
cd "$d" &&
ls |
grep -v "MANIFEST\|README\|LICENSE\|COPYING\|SOURCE" |
LANG=C sort > MANIFEST.tmp &&
mv MANIFEST.tmp MANIFEST ||
(
rm -f MANIFEST.tmp
false
)
)
done

View File

@ -1,3 +1,4 @@
lang
script-assamese
script-bengali
script-devanagari