File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 6
6
set -e
7
7
8
8
SCRIPTPATH=" $( cd " $( dirname " $0 " ) " ; pwd -P ) "
9
-
9
+ PROJECTPATH= $( realpath " $SCRIPTPATH /.. " ) ;
10
10
echo " We are about to amalgamate all simdjson files into one source file. "
11
11
echo " See https://www.sqlite.org/amalgamation.html and https://en.wikipedia.org/wiki/Single_Compilation_Unit for rationale. "
12
12
13
- if [ -z " $AMALGAMATE_SOURCE_PATH " ]; then AMALGAMATE_SOURCE_PATH=" $SCRIPTPATH /../src" ; fi
14
- if [ -z " $AMALGAMATE_INCLUDE_PATH " ]; then AMALGAMATE_INCLUDE_PATH=" $SCRIPTPATH /../include" ; fi
13
+ if [ -z " $AMALGAMATE_SOURCE_PATH " ]; then AMALGAMATE_SOURCE_PATH=$( realpath " $SCRIPTPATH /../src" ) ; fi
14
+ if [ -z " $AMALGAMATE_INCLUDE_PATH " ]; then AMALGAMATE_INCLUDE_PATH=$( realpath " $SCRIPTPATH /../include" ) ; fi
15
15
if [ -z " $AMALGAMATE_OUTPUT_PATH " ]; then AMALGAMATE_OUTPUT_PATH=" $SCRIPTPATH " ; fi
16
16
17
17
# this list excludes the "src/generic headers"
@@ -66,8 +66,9 @@ function doinclude()
66
66
function dofile()
67
67
{
68
68
file=" $1 /$2 "
69
+ RELFILE=${file# " $PROJECTPATH /" }
69
70
# Last lines are always ignored. Files should end by an empty lines.
70
- echo " /* begin file ${2} */"
71
+ echo " /* begin file $RELFILE */"
71
72
# echo "#line 8 \"$1\"" ## redefining the line/file is not nearly as useful as it sounds for debugging. It breaks IDEs.
72
73
while IFS= read -r line || [ -n " $line " ];
73
74
do
You can’t perform that action at this time.
0 commit comments