gen_prop_parser.sh 1.88 KB
Newer Older
1
2
#!/bin/bash

XueShuming's avatar
XueShuming committed
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#
# 
#                           IMPORTANT NOTICE
# 
#  The following open source license statement does not apply to any
#  entity in the Exception List published by FMSoft.
# 
#  For more information, please visit:
# 
#  https://www.fmsoft.cn/exception-list
# 
#
#   This file is part of HiDOMLayout. hiDOMLayout is a library to
#   maintain a DOM tree, lay out and stylize the DOM nodes by
#   using CSS (Cascaded Style Sheets).
#
#   Copyright (C) 2021 Beijing FMSoft Technologies Co., Ltd.
#
#   This program is free software: you can redistribute it and/or modify
XueShuming's avatar
XueShuming committed
22
#   it under the terms of the GNU Lesser General License as published by
XueShuming's avatar
XueShuming committed
23
24
25
26
27
28
#   the Free Software Foundation, either version 3 of the License, or
#   (at your option) any later version.
#
#   This program is distributed in the hope that it will be useful,
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
XueShuming's avatar
XueShuming committed
29
#   GNU Lesser General License for more details.
XueShuming's avatar
XueShuming committed
30
#
XueShuming's avatar
XueShuming committed
31
#   You should have received a copy of the GNU Lesser General License
XueShuming's avatar
XueShuming committed
32
33
34
35
36
#   along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
#   Or,
#
#   As this program is a library, any link to this program must follow
XueShuming's avatar
XueShuming committed
37
38
#   GNU Lesser General License version 3 (LLGPLv3). If you cannot accept
#   LLGPLv3, you need to be licensed from FMSoft.
XueShuming's avatar
XueShuming committed
39
40
41
42
43
44
45
46
#
#   If you have got a commercial license of this program, please use it
#   under the terms and conditions of the commercial license.
#
#   For more information about the commercial license, please refer to
#   <http://www.minigui.com/blog/minigui-licensing-policy/>.
#

47
48
gcc code-tools/css_property_parser_gen.c  -o gen_parser

49

XueShuming's avatar
XueShuming committed
50
cat code-tools/prop.gen | grep -v "^#" | grep -v "^$" | while read line
51
52
53
54
55
56
do
    prop=`echo $line | cut -d: -f1`
    ./gen_parser -o src/css/libcss/src/parse/properties/autogenerated_$prop.c "$line"
done

rm -f gen_parser