* Arvid Grotting on Tuesday, December 06, 2005 at 19:50:59 +0100:
> I have a step in my Makefile where I do the following, after running 
> lilypond-book but before running latex:
> 
>     sed -i 's/%%BoundingBox: -*[1-9][0-9]*/%%BoundingBox: 0/' lily*eps

Ah, thanks! Coincidentially I just found your
Message-ID: <[EMAIL PROTECTED]>
and wanted to try it.

> You need to use GNU sed (or another sed that has "-i" for in-place 
> substitution).

or, a bit more convoluted, w/ normal sed and redirection, I do
now this in my shell script:

#v+
for f in lily*.eps
do
        tf=`mktemp -t ${0##*/}-XXXXXXX` || exit 1
        sed -e 's/^%%BoundingBox: -*[1-9][0-9]*/%%BoundingBox: 0/' $f >$tf
        mv $tf $f
done
#v-

> Works for me, with 2.6; YMMV.

Yes, with 2.7 too.

c
-- 
_B A U S T E L L E N_ lesen!  --->> <http://www.blacktrash.org/baustellen.html>


_______________________________________________
bug-lilypond mailing list
bug-lilypond@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-lilypond

Reply via email to