File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ add_custom_command(
34
34
OUTPUTS ${CMAKE_CURRENT_BINARY_DIR} /json_schema_grammar.c
35
35
${CMAKE_CURRENT_BINARY_DIR} /json_schema_grammar.h
36
36
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR} /json_schema_grammar.y
37
+ ${CMAKE_CURRENT_SOURCE_DIR} /apply_lemon.sh
37
38
)
38
39
39
40
set (grammar_c ${CMAKE_CURRENT_BINARY_DIR} /json_schema_grammar.c )
Original file line number Diff line number Diff line change 2
2
3
3
# @@@LICENSE
4
4
#
5
- # Copyright (c) 2009-2013 LG Electronics, Inc.
5
+ # Copyright (c) 2009-2014 LG Electronics, Inc.
6
6
#
7
7
# Licensed under the Apache License, Version 2.0 (the "License");
8
8
# you may not use this file except in compliance with the License.
19
19
# LICENSE@@@
20
20
21
21
lemon=$1
22
- binary_dir=$2
23
- source_dir=$3
22
+ binary_dir=$( readlink -f " $2 " )
23
+ source_dir=$( readlink -f " $3 " )
24
24
file=$4
25
25
26
26
keyword_pattern=" KEY_[0-9A-Za-z_]*"
@@ -44,7 +44,9 @@ if [ "$expected_tokens" != "$token_keywords" ]; then
44
44
exit 1
45
45
fi
46
46
47
- $lemon $source_dir /$file || exit 1
48
47
if [ " $source_dir " != " $binary_dir " ]; then
49
- mv -f $source_dir /${file% .y} .{c,h,out} $binary_dir || exit 1
48
+ ln -sf " $source_dir /$file " " $binary_dir /" || \
49
+ cp -af " $source_dir /$file " " $binary_dir /" || \
50
+ exit 1
50
51
fi
52
+ " $lemon " " $binary_dir /$file " || exit 1
You can’t perform that action at this time.
0 commit comments