+2005-10-23 Jan Nieuwenhuizen <janneke@gnu.org>
+
+ * scm/lily.scm: Remove horrendous running-from-gui? kludge.
+ (lilypond-main): Redirect to gui-main if 'gui is set.
+
2005-10-23 Erik Sandberg <mandolaerik@gmail.com>
* scripts/lilypond-book.py: Backport bugfix by Mats Bengtsson.
Runtime requirements:
bash
cygwin-1.5.11 or newer
- ec-fonts-mftraced
ghostscript
glib2-runtime
libfontconfig1
libfreetype2
libguile12-1.6.5-1 or newer
libiconv2
- libintl2
- libkpathsea3-2.0.2-15 or newer
+ libintl3
pango-runtime
python
- tetex-bin-2.0.2-15 or newer
- tetex-tiny or tetex-base
Suggested:
xorg-x11-base
emacs or vim
ghostscript-x11
rxvt
- tetex-x11
+ libkpathsea4-3.0.0-3 or newer
gv
Build requirements:
libfontconfig-devel
libfreetype2-devel
libguile12-1.6.5-1 or newer
- libkpathsea3-2.0.2-15 or newer
+ libkpathsea4-3.0.0-3 or newer
pango-devel
python
sed
- tetex-devel-2.0.2-15 or newer
- texinfo-4.7 or newer
+ tetex-devel-3.0.0-3 or newer
+ texinfo-4.8 or newer
Website/documentation build requirements (lilypond-doc package):
LilyPond builds ootb with cygwin/mknetrel.
- Cygwin port maintained by: Bertalan Fodor
+ Cygwin port maintained by: Jan Nieuwenhuizen.
------------------
sdesc: "A program for printing sheet music"
category: Publishing
-requires: bash coreutils cygwin findutils ghostscript glib2-runtime libfontconfig1 libfreetype2 libguile12 libiconv2 libintl3 pango-runtime python _update-info-dir
-#suggests: emacs gsview lilypond-doc rxvt tetex-x11 xorg-x11-base libkpathsea4
+requires: bash coreutils cygwin findutils ghostscript glib2-runtime libfontconfig1 libfreetype26 libguile12 libiconv2 libintl3 pango-runtime python _update-info-dir
+#suggests: emacs gsview libkpathsea4 lilypond-doc tetex-bin tetex-tiny rxvt xorg-x11-base
ldesc: "A program for printing sheet music.
-LilyPond prints beautiful sheet music. It produces music notation
-from a description file. It excels at typesetting classical music, but
-you can also print pop-songs. LilyPond is part of the GNU Project."
+LilyPond lets you create music notation. It produces
+beautiful sheet music from a high-level description file."
regtool set '/root/LilyPond/shell/generate/' '&Generate PDF ...'
regtool add '/root/LilyPond/shell/generate/command'
regtool set '/root/LilyPond/shell/generate/command/' $ROOT'\bin\bash.exe --login -c '"'"'/usr/bin/lily-wins "%1"'"'"
+
+(cd /usr/share/info/lilypond && ln -sf ../../doc/lilypond/Documentation/user/out-www/*png .)
#include <unistd.h>
+#include "file-name-map.hh"
#include "file-name.hh"
#include "file-path.hh"
-#include "main.hh"
-#include "lily-parser.hh"
-#include "warn.hh"
-#include "source.hh"
#include "lily-lexer.hh"
+#include "lily-parser.hh"
#include "ly-module.hh"
-#include "file-name-map.hh"
+#include "main.hh"
+#include "program-option.hh"
+#include "source.hh"
+#include "warn.hh"
/* Do not append `!' suffix, since 1st argument is not modified. */
LY_DEFINE (ly_set_point_and_click, "ly:set-point-and-click",
/* When running from gui, generate output in .ly source directory. */
if (output_name_global.is_empty ()
- && scm_call_0 (ly_lily_module_constant ("running-from-gui?")) == SCM_BOOL_T)
+ && ly_get_option (ly_symbol2scm ("gui")) == SCM_BOOL_T)
{
File_name f (file);
f.base_ = "";
(define-public (lilypond-main files)
"Entry point for LilyPond."
+ (if (ly:get-option 'gui)
+ (gui-main files))
+
(if (null? files)
(no-files-handler))
(use-modules (scm editor))
-(define-public (running-from-gui?)
- (let ((have-tty? (isatty? (current-input-port))))
- ;; If no TTY and not using safe, assume running from GUI.
- (cond
- ((eq? PLATFORM 'windows)
- ;; Always write to .log file.
- (if DOS #t
- ;; This only works for i586-mingw32msvc-gcc -mwindows
- (not (string-match "standard input"
- (format #f "~S" (current-input-port))))))
- ;; FIXME: using -dgui would be nice, but it does not work
- ((eq? PLATFORM 'foo-windows)
- (ly:get-option 'gui))
- ((eq? PLATFORM 'darwin) #f)
- (else
- (not have-tty?)))))
-
(define-public (gui-main files)
(if (null? files)
(gui-no-files-handler))
(let* ((base (basename (car files) ".ly"))
(log-name (string-append base ".log")))
- (if (not (running-from-gui?))
+ (if (not (ly:get-option 'gui))
(ly:message (_ "Redirecting output to ~a...") log-name))
(ly:stderr-redirect log-name "w")
(ly:message "# -*-compilation-*-")
(ly:message (_ "Invoking `~a'...") cmd)
(system cmd)
(exit 1)))
-
-(or (not (running-from-gui?))
- (ly:get-option 'safe)
- (define lilypond-main gui-main))