summaryrefslogtreecommitdiffstats
path: root/tools/linguist/shared/make-qscript.sh
blob: 42cab7a05df1d25c96c3a8d6d28783f57e38ef69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

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

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

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