summaryrefslogtreecommitdiffstats
path: root/tools/lemon/apply-patches.sh
blob: e445c87a59557ac0ddc1d6ef298883b5deef34e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh -e
# Patch lemon.c and lempar.c to silence static analyzer warnings.
# See also tools/lemon/README

# Strip trailing whitespace
sed -e 's/ \+$//' -i lemon.c lempar.c

# Other patches
if [ -d "patches" ]; then
    for i in patches/*.patch; do
        echo "Applying $i"
        patch --silent -p1 -i "$i"
    done
fi

echo DONE