Commit edcab636 authored by Sergei Golubchik's avatar Sergei Golubchik

simplify myskel.m4 and make it work when a path contains '@'

parent a8410693
......@@ -2,15 +2,10 @@
# fix the #line directives in the generated .cc files
# to refer to the original sql_yacc.yy
#
m4_define([yyfile],m4_bpatsubst(__file__,[[a-z.0-9]+$],sql_yacc.yy))
m4_define([b4_syncline],
[m4_if(m4_index([$2],[.yy]),[-1],
[b4_sync_start([$1], [$2])[]dnl
],[b4_sync_start([$1], ["yyfile"])[]dnl
[b4_sync_start([$1], m4_bpatsubst([$2],[yy_[a-z]+\.yy],sql_yacc.yy))[]dnl
])])
])
# try both paths for different bison versions
m4_sinclude(skeletons/c-skel.m4)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment