Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / liblouis / src / tables / maketablelist.sh
1 #! /bin/sh
2
3 #  Copyright (C) 2009, 2010 Christian Egli
4
5 # Copying and distribution of this file, with or without modification,
6 # are permitted in any medium without royalty provided the copyright
7 # notice and this notice are preserved.
8
9 # Use this script to regenerate Makefile.am if you must. I recommend
10 # against it for the reasons explained in
11 # http://www.gnu.org/software/hello/manual/automake/Wildcards.html.
12 # It's easy to pick up some spurious files that you did not mean to
13 # distribute.
14  
15 OUTFILE=Makefile.am.new
16
17 (
18 cat <<'EOF' 
19 # generate the list of tables as follows:
20 # $ ls | grep -v Makefile | grep -v README | grep -v maketablelist.sh | grep -v '.*~$' | sort | sed -e 's/$/ \\/' -e 's/^/\t/' | head --bytes=-2
21 table_files = \
22 EOF
23 ) > $OUTFILE
24
25 ls | grep -v Makefile | grep -v README | grep -v maketablelist.sh | grep -v '.*~$' | sort | sed -e 's/$/ \\/' -e 's/^/\t/' | head --bytes=-2 >> $OUTFILE
26
27 (
28 cat <<'EOF' 
29
30
31 tablesdir = $(datadir)/liblouis/tables
32 tables_DATA = $(table_files)
33 EXTRA_DIST = $(table_files)
34 EOF
35 ) >> $OUTFILE
36