aboutsummaryrefslogtreecommitdiffstats
path: root/print/lilypond/scripts/post-configure
blob: 32ff6afe2fcf6cc1d6a8e7050ea7648d4fcbcddd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
outdir=out
cd ${WRKSRC} || exit 2
    file=lily/$outdir/lexer.cc
    echo -n "Generating and fixing $file... "
    rm -f $file
    gmake conf=$CONF -C lily $outdir/lexer.cc || true

    mv $file $file.orig
    sed -e 's/[^:]istream\*/std::istream*/g' \
        -e 's/[^:]ostream\*/std::ostream*/g' \
        -e 's/class istream;/#include \<iostream\>/g' \
        $file.orig > $file
    echo "done"