Debian Codegraph @

incfiles

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2
3 export LC_ALL=C.UTF-8
4 export LANG=C.UTF-8
5
6 if [scip-shell system . . `[`. -n "$1" ]
7 then
8 DIR=$1/
9 fi
10
11 for a in $(findscip-shell system . . find. ${DIR}html -type f | grepscip-shell system . . grep. -v \~ | sortscip-shell system . . sort.)
12 do
13 c=$(echoscip-shell system . . echo. $a | sedscip-shell system . . sed. s:${DIR}html/:: | trscip-shell system . . tr. "/.-scip-shell filesystem . . `/.-`." "___")
14 echoscip-shell system . . echo. "static const unsigned char g${c}Data[] = {"
15 odscip-shell system . . od. -v -t x1 "$a" | sedscip-shell system . . sed. 's/^[0-7]*//' | sedscip-shell system . . sed. 's/\([0-9a-f][0-9a-f]\)/0x\1,/g'
16 echoscip-shell system . . echo. "};"
17 done
18
19 echoscip-shell system . . echo. "static const map<string,string,std::less<>> s_urlmap={"
20 for a in $(findscip-shell system . . find. ${DIR}html -type f | grepscip-shell system . . grep. -v \~ | sortscip-shell system . . sort.)
21 do
22 b=$(echoscip-shell system . . echo. $a | sedscip-shell system . . sed. s:${DIR}html/::g)
23 c=$(echoscip-shell system . . echo. $b | trscip-shell system . . tr. "/.-scip-shell filesystem . . `/.-`." "___")
24 echoscip-shell system . . echo. "{\"$b\", string((const char*)g${c}Data, sizeof(g${c}Data))},"
25 done
26 echoscip-shell system . . echo. "};"