summaryrefslogtreecommitdiffstats
path: root/util/qtscriptparser/make-parser.sh
blob: 6620e64650075eaa84330d34e924a357708dfbb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

me=$(dirname $0)
mkdir -p $me/out
(cd $me/out && ${QLALR-qlalr} --troll --no-lines ../qscript.g)

for f in $me/out/*.{h,cpp}; do
    n=$(basename $f)
    p4 open $me/../../src/script/$n
    cp $f $me/../../src/script/$n
done

p4 revert -a $me/../../src/script/...
p4 diff -du $me/../../src/script/...