[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LSR --safe mode

From: Han-Wen Nienhuys
Subject: Re: LSR --safe mode
Date: Sat, 10 Feb 2007 14:52:48 +0100
User-agent: Thunderbird (X11/20070130)

Graham Percival escreveu:
> All the snippets in input/lsr/ should (in theory) be safe, since they
> are generated from LSR, and LSR only accepts snippets if they compile in
> --safe.  Still, we should have an automatic testing before adding stuff
> to GIT, so I don't have to look at the snippets myself all the time.
> I can think of two ways to do this; which is better?
> 1)  Run "lilypond --safe" on each file when I import them from LSR,
> before committing to git.  I would do this as part of the
> buildscripts/ file, but I don't know how to run "lilypond
> --safe" and check that there's no errors, as part of a python script.

simply do
  s = system  ('lilypond -dsafe ' + ly_file_name)
  if s:
     raise 'Failed'

> 2)  Compile input/lsr/ with "lilypond --safe" instead of lilypond.  This
> would require modifying the "make web" buildscripts, but I'm not certain
> how I would go about this.  John?

This won't work. --safe seriously limits what is possible in a .ly


Han-Wen Nienhuys - address@hidden -

LilyPond Software Design
 -- Code for Music Notation

reply via email to

[Prev in Thread] Current Thread [Next in Thread]