summaryrefslogtreecommitdiff
path: root/src/static_libs
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-04 20:55:12 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-04 20:55:12 +0000
commit2b29626d8d5aa47119759d0ef1d0876674f06254 (patch)
tree13622da45e0f86f8fde5bc8d50e953e958495691 /src/static_libs
parent7abf31c88264c2a7692ce61c7985bc49e979163e (diff)
efl: fix make dist.
Carefully compared 'svn export' and 'make dist' results and couple of files were missing. Changes: * Makefile.am: removed all .pc from EXTRA_DIST, we shouldn't distribute them here as they will contain ./configure data such as install location. * src/Makefile.am: moved all if-endif to files, otherwise EXTRA_DIST won't work properly. We must EXTRA_DIST outside of the if-endif block. * static_libs/liblinebreak: removed couple of unused files. SVN revision: 82241
Diffstat (limited to 'src/static_libs')
-rw-r--r--src/static_libs/liblinebreak/LineBreak1.sed1
-rw-r--r--src/static_libs/liblinebreak/LineBreak2.sed2
-rw-r--r--src/static_libs/liblinebreak/filter_dup.c48
-rwxr-xr-xsrc/static_libs/liblinebreak/gen_linebreak_data.sh11
-rwxr-xr-xsrc/static_libs/liblinebreak/gen_wordbreak_data.sh25
-rw-r--r--src/static_libs/liblinebreak/linebreakdata1.tmpl1
-rw-r--r--src/static_libs/liblinebreak/linebreakdata2.tmpl7
-rw-r--r--src/static_libs/liblinebreak/linebreakdata3.tmpl2
-rwxr-xr-xsrc/static_libs/liblinebreak/sort_numeric_hex.py6
9 files changed, 0 insertions, 103 deletions
diff --git a/src/static_libs/liblinebreak/LineBreak1.sed b/src/static_libs/liblinebreak/LineBreak1.sed
deleted file mode 100644
index 1be9651..0000000
--- a/src/static_libs/liblinebreak/LineBreak1.sed
+++ /dev/null
@@ -1 +0,0 @@
1s/\(^[0-9A-F.]\{1,\};[A-Z][A-Z0-9]\) #.*/\1/p
diff --git a/src/static_libs/liblinebreak/LineBreak2.sed b/src/static_libs/liblinebreak/LineBreak2.sed
deleted file mode 100644
index 8165958..0000000
--- a/src/static_libs/liblinebreak/LineBreak2.sed
+++ /dev/null
@@ -1,2 +0,0 @@
1s/^\([0-9A-F]\{1,\}\);/\1..\1;/
2s/^\([0-9A-F]\{1,\}\)\.\.\([0-9A-F]\{1,\}\);\([A-Z][A-Z0-9]\)/ { 0x\1, 0x\2, LBP_\3 },/
diff --git a/src/static_libs/liblinebreak/filter_dup.c b/src/static_libs/liblinebreak/filter_dup.c
deleted file mode 100644
index 1d1d793..0000000
--- a/src/static_libs/liblinebreak/filter_dup.c
+++ /dev/null
@@ -1,48 +0,0 @@
1#include <stdio.h>
2#include <string.h>
3
4int main()
5{
6 char s[80];
7 char beg[16];
8 char end[16];
9 char prop[16];
10 char lastbeg[16];
11 char lastend[16];
12 char lastprop[16];
13 lastprop[0] = 0;
14 for (;;)
15 {
16 if (fgets(s, sizeof s, stdin) == NULL)
17 break;
18 if (strstr(s, "LBP_") == NULL || strstr(s, "LBP_Undef") != NULL)
19 {
20 if (lastprop[0])
21 {
22 printf("\t{ %s %s %s },\n", lastbeg, lastend, lastprop);
23 lastprop[0] = 0;
24 }
25 printf("%s", s);
26 continue;
27 }
28 sscanf(s, "\t{ %s %s %s }", beg, end, prop);
29 /*printf("==>\t{ \"%s\" \"%s\" \"%s\" },\n", beg, end, prop);*/
30 if (lastprop[0] && strcmp(lastprop, prop) != 0)
31 {
32 printf("\t{ %s %s %s },\n", lastbeg, lastend, lastprop);
33 lastprop[0] = 0;
34 }
35 if (lastprop[0] == 0)
36 {
37 strcpy(lastbeg, beg);
38 strcpy(lastprop, prop);
39 }
40 strcpy(lastend, end);
41 }
42 if (lastprop[0])
43 {
44 printf("\t{ %s %s %s },\n", lastbeg, lastend, prop);
45 }
46 return 0;
47}
48
diff --git a/src/static_libs/liblinebreak/gen_linebreak_data.sh b/src/static_libs/liblinebreak/gen_linebreak_data.sh
deleted file mode 100755
index e396db2..0000000
--- a/src/static_libs/liblinebreak/gen_linebreak_data.sh
+++ /dev/null
@@ -1,11 +0,0 @@
1#!/bin/sh
2if [ ! -f "LineBreak.txt" ]; then
3 wget http://unicode.org/Public/UNIDATA/LineBreak.txt
4fi
5
6sed -n -f LineBreak1.sed LineBreak.txt > tmp.txt
7sed -f LineBreak2.sed tmp.txt | ./filter_dup > tmp.c
8head -2 LineBreak.txt > tmp.txt
9cat linebreakdata1.tmpl tmp.txt linebreakdata2.tmpl tmp.c linebreakdata3.tmpl > linebreakdata.c
10rm tmp.txt tmp.c
11
diff --git a/src/static_libs/liblinebreak/gen_wordbreak_data.sh b/src/static_libs/liblinebreak/gen_wordbreak_data.sh
deleted file mode 100755
index 7c84de2..0000000
--- a/src/static_libs/liblinebreak/gen_wordbreak_data.sh
+++ /dev/null
@@ -1,25 +0,0 @@
1#!/bin/sh
2FNAME="WordBreakProperty.txt";
3if [ ! -f ${FNAME} ]; then
4 wget http://www.unicode.org/Public/UNIDATA/auxiliary/WordBreakProperty.txt
5fi
6
7#
8sed -n 's/\(^[0-9A-F.]\+\)/\1/p' ${FNAME} > tmp.txt
9sed -i 's/^\([0-9A-F]\+\)\s\+/\1..\1/' tmp.txt
10sort --numeric-sort tmp.txt > tmp2.txt
11./sort_numeric_hex.py tmp2.txt > tmp.txt
12rm tmp2.txt
13sed -i -n 's/^\([0-9A-F]\+\)..\([0-9A-F]\+\)\s*;\s*\([A-Za-z]\+\).*$/\t{0x\1, 0x\2, WBP_\3},/p' tmp.txt
14
15echo "/* The content of this file is generated from:" > wordbreakdata.x
16head -2 ${FNAME} >> wordbreakdata.x
17echo "*/" >> wordbreakdata.x
18echo '#include "linebreak.h"' >> wordbreakdata.x
19echo '#include "wordbreakdef.h"' >> wordbreakdata.x
20echo "static struct WordBreakProperties wb_prop_default[] = {" >> wordbreakdata.x
21cat tmp.txt >> wordbreakdata.x
22echo " {0xFFFFFFFF, 0xFFFFFFFF, WBP_Undefined}" >> wordbreakdata.x
23echo "};" >> wordbreakdata.x
24rm tmp.txt
25
diff --git a/src/static_libs/liblinebreak/linebreakdata1.tmpl b/src/static_libs/liblinebreak/linebreakdata1.tmpl
deleted file mode 100644
index df06125..0000000
--- a/src/static_libs/liblinebreak/linebreakdata1.tmpl
+++ /dev/null
@@ -1 +0,0 @@
1/* The content of this file is generated from:
diff --git a/src/static_libs/liblinebreak/linebreakdata2.tmpl b/src/static_libs/liblinebreak/linebreakdata2.tmpl
deleted file mode 100644
index 60d0d37..0000000
--- a/src/static_libs/liblinebreak/linebreakdata2.tmpl
+++ /dev/null
@@ -1,7 +0,0 @@
1*/
2
3#include "linebreak.h"
4#include "linebreakdef.h"
5
6/** Default line breaking properties as from the Unicode Web site. */
7struct LineBreakProperties lb_prop_default[] = {
diff --git a/src/static_libs/liblinebreak/linebreakdata3.tmpl b/src/static_libs/liblinebreak/linebreakdata3.tmpl
deleted file mode 100644
index a77017c..0000000
--- a/src/static_libs/liblinebreak/linebreakdata3.tmpl
+++ /dev/null
@@ -1,2 +0,0 @@
1 { 0xFFFFFFFF, 0xFFFFFFFF, LBP_Undefined }
2};
diff --git a/src/static_libs/liblinebreak/sort_numeric_hex.py b/src/static_libs/liblinebreak/sort_numeric_hex.py
deleted file mode 100755
index a16d0f3..0000000
--- a/src/static_libs/liblinebreak/sort_numeric_hex.py
+++ /dev/null
@@ -1,6 +0,0 @@
1#!/usr/bin/env python2
2import sys
3
4lines = open(sys.argv[1]).readlines()
5lines_out = sorted(lines, key=lambda line: int(line.split("..")[0], 16))
6map(sys.stdout.write, lines_out)