File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66set -e
77
88SCRIPTPATH=" $( cd " $( dirname " $0 " ) " ; pwd -P ) "
9-
9+ PROJECTPATH= $( realpath " $SCRIPTPATH /.. " ) ;
1010echo " We are about to amalgamate all simdjson files into one source file. "
1111echo " See https://www.sqlite.org/amalgamation.html and https://en.wikipedia.org/wiki/Single_Compilation_Unit for rationale. "
1212
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
1515if [ -z " $AMALGAMATE_OUTPUT_PATH " ]; then AMALGAMATE_OUTPUT_PATH=" $SCRIPTPATH " ; fi
1616
1717# this list excludes the "src/generic headers"
@@ -66,8 +66,9 @@ function doinclude()
6666function dofile()
6767{
6868 file=" $1 /$2 "
69+ RELFILE=${file# " $PROJECTPATH /" }
6970 # Last lines are always ignored. Files should end by an empty lines.
70- echo " /* begin file ${2} */"
71+ echo " /* begin file $RELFILE */"
7172 # echo "#line 8 \"$1\"" ## redefining the line/file is not nearly as useful as it sounds for debugging. It breaks IDEs.
7273 while IFS= read -r line || [ -n " $line " ];
7374 do
You can’t perform that action at this time.
0 commit comments