File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -6,21 +6,23 @@ MODDIR="$OUTDIR/Graphics/Rendering/OpenGL/Raw"
6
6
REGISTRY=" OpenGL-Registry/gl.xml"
7
7
API=" gl"
8
8
9
- function runconverter() {
9
+ runconverter () {
10
10
echo " running" $@ 1>&2
11
- cabal run -v0 -- " $REGISTRY " " --api=$API " $@
11
+ cabal run -v0 -- " ${ REGISTRY} " " --api=$API " $@
12
12
}
13
13
14
- mkdir -p " $MODDIR "
14
+ mkdir -p " ${ MODDIR} "
15
15
16
- runconverter --print-tokens > " $MODDIR /Tokens.hs"
17
- runconverter --print-functions > " $MODDIR /Functions.hs"
16
+ runconverter --print-tokens > " ${ MODDIR} /Tokens.hs"
17
+ runconverter --print-functions > " ${ MODDIR} /Functions.hs"
18
18
19
19
for i in 1.0 1.1 1.2 1.3 1.4 1.5 2.0 2.1; do
20
- runconverter --print-feature --version=$i --profile=version > " $MODDIR /Version" ${i/ \. / } .hs
20
+ VER=` echo $i | sed ' s/\.//' `
21
+ runconverter --print-feature --version=$i --profile=version > " ${MODDIR} /Version${VER} .hs"
21
22
done
22
23
23
24
for i in 3.0 3.1 3.2 3.3 4.0 4.1 4.2 4.3 4.4 4.5; do
24
- runconverter --print-feature --version=$i --profile=core > " $MODDIR /Core" ${i/ \. / } .hs
25
- runconverter --print-feature --version=$i --profile=compatibility > " $MODDIR /Compatibility" ${i/ \. / } .hs
25
+ VER=` echo $i | sed ' s/\.//' `
26
+ runconverter --print-feature --version=$i --profile=core > " ${MODDIR} /Core${VER} .hs"
27
+ runconverter --print-feature --version=$i --profile=compatibility > " ${MODDIR} /Compatibility${VER} .hs"
26
28
done
You can’t perform that action at this time.
0 commit comments