1.3.144.jcn1
============
* Fixes to point-and-click doco (Thanks, Laura Conrad).
* Bugfixes: changed several (eval to (ly-eval for guile 1.3.4/1.4
compatibility.
* Fixes to buildscripts/clean-fonts.sh.
+1.3.144.jcn1
+============
+
+* Fixes to point-and-click doco (Thanks, Laura Conrad).
+
+* Bugfixes: changed several (eval to (ly-eval for guile 1.3.4/1.4
+compatibility.
+
+* Fixes to buildscripts/clean-fonts.sh.
+
1.3.143.jcn3
============
1.3.143.jcn3
============
-Add one these lines to the top of your .ly file. The first one is for
+Add one of these lines to the top of your .ly file. The first one is for
line location only. The second one is more convenient, but requires
line location only. The second one is more convenient, but requires
-patching @code{emacsclient}.
+patching @code{emacsclient} and @code{server.el}.
@example
#(set! point-and-click line-location)
@example
#(set! point-and-click line-location)
Xdvi must be configured to use the emacs editor. Before starting, set
Xdvi must be configured to use the emacs editor. Before starting, set
-the environment variable @code{XEDITOR} to
+the environment variable @code{XEDITOR} to one of these strings. The
+second one, that also specifies the column, only works if you have
+patched your emacsclient and server, and have compiled your @code{.ly}
+file using the @code{line-column-location} setting (see above).
-emacsclient --no-wait +%c:%l %f
+emacsclient --no-wait +%l %f
+emacsclient --no-wait +%l:%c %f
@end example
Xdvi also must be configured to find the fonts. Refer to the
xdvi documentation for more information.
@end example
Xdvi also must be configured to find the fonts. Refer to the
xdvi documentation for more information.
will complain about not finding @code{src:X:Y} files. Those complaints are
harmless, and can be ignored.
will complain about not finding @code{src:X:Y} files. Those complaints are
harmless, and can be ignored.
+When using @code{line-colum-location}, the cursor will be one off; it
+will not jump to the exact note that you clicked, but to the next one.
+We hope to fix this before 1.4.
@node Skipping corrected music
@section Skipping corrected music
@node Skipping corrected music
@section Skipping corrected music
MAJOR_VERSION=1
MINOR_VERSION=3
PATCH_LEVEL=144
MAJOR_VERSION=1
MINOR_VERSION=3
PATCH_LEVEL=144
# use the above to send patches: MY_PATCH_LEVEL is always empty for a
# released version.
# use the above to send patches: MY_PATCH_LEVEL is always empty for a
# released version.
+#!@SHELL@
+# use kpsewhich?
+# maybe (optionally) (not) clean stuff from other versions, ie, don't clean
+# /var/spool/texmf/tfm/lilypond/<NOT-OUR-VERSION>/
+# ?
+
+VERSION="@TOPLEVEL_VERSION@
+dirs=".
+/var/lib/texmf
+/var/spool/texmf
+/var/tmp/texfonts
+/var/texfonts
+"
-TEXDIRS=.
-if [ -d /var/lib/texmf ]; then
- TEXDIRS="$TEXDIRS /var/lib/texmf"
-fi
-if [ -d /var/spool/texmf ]; then
- TEXDIRS="$TEXDIRS /var/tmp/texmf"
-fi
-if [ -d /var/tmp/texfonts ]; then
- TEXDIRS="$TEXDIRS /var/spool/texfonts"
-fi
-if [ -d /var/texfonts ]; then
- TEXDIRS="$TEXDIRS /var/texfonts"
-fi
-if [ -z "$TEXDIR" ]; then
+for i in $dirs; do
+ if [ -d "$i" ]; then
+ TEXDIRS="$TEXDIRS $i"
+ fi
+done
+
+if [ -z "$TEXDIRS" -o "$TEXDIRS" = "." ]; then
-else
- TEXDIRS=". $TEXDIRS"
fi
# remove possibly stale .pk/.tfm files
fi
# remove possibly stale .pk/.tfm files
(define (pitch->note-name pitch)
(cons (cadr pitch) (caddr pitch)))
(define (pitch->note-name pitch)
(cons (cadr pitch) (caddr pitch)))
(define (accidental->text acc)
(if (= acc 0)
(define (accidental->text acc)
(if (= acc 0)
(list (append '((raise . 0.6))
(list
(string-append "accidentals-"
(list (append '((raise . 0.6))
(list
(string-append "accidentals-"
- (number->string acc))))))))))))
+ (number->string acc))))))))))))
)
(define (pitch->text pitch)
)
(define (pitch->text pitch)
-; drum-"hack". See input/tricks/drums.ly and ly/drumpitch.ly
-; 2001/03/25 Rune Zedeler <rune@zedeler.dk>
+;;;; drum-"hack". See input/tricks/drums.ly and ly/drumpitch.ly
+;;;; 2001/03/25 Rune Zedeler <rune@zedeler.dk>
+
+;;;; changed eval to ly-eval for guile 1.4/1.4.1 compatibility --jcn
(define (seq-music-list elts)
(let* ( (ml (ly-make-music "Sequential_music")) )
(define (seq-music-list elts)
(let* ( (ml (ly-make-music "Sequential_music")) )
(begin
(display p) ;; UGH. FIXME. pitch->string ???
(ly-warn " unknown drumpitch.")
(begin
(display p) ;; UGH. FIXME. pitch->string ???
(ly-warn " unknown drumpitch.")
))
((eq? p (caddr (car pitches))) ((name->paper kit) (caar pitches)) )
(else (p2p (cdr pitches) ) )
))
((eq? p (caddr (car pitches))) ((name->paper kit) (caar pitches)) )
(else (p2p (cdr pitches) ) )
)
)
(define ((name->paper kit) n)
)
)
(define ((name->paper kit) n)
- (let n2p ((pitches (eval kit)))
+ (let n2p ((pitches (ly-eval kit)))
(cond ((eq? pitches '())
(begin
(ly-warn (string-append "Kit `" (symbol->string kit) "' doesn't contain drum `" n
"'\nSee lily/drumpitch.ly for supported drums."))
(cond ((eq? pitches '())
(begin
(ly-warn (string-append "Kit `" (symbol->string kit) "' doesn't contain drum `" n
"'\nSee lily/drumpitch.ly for supported drums."))
))
((eq? n (caar pitches)) (cdar pitches) )
(else (n2p (cdr pitches) ) )
))
((eq? n (caar pitches)) (cdar pitches) )
(else (n2p (cdr pitches) ) )
-(eval (cons
- 'begin
- (map (lambda (x) (list 'define (car x) (list 'quote (cdr x))))
- all-interfaces)))
+(ly-eval (cons
+ 'begin
+ (map (lambda (x) (list 'define (car x) (list 'quote (cdr x))))
+ all-interfaces)))
(define (interface-names) (map (lambda (x) (symbol->string (car x))) all-interfaces))
(define (interface-names) (map (lambda (x) (symbol->string (car x))) all-interfaces))
program_name = 'build-lily'
package_name = 'lilypond'
help_summary = _("Fetch and rebuild from latest source package")
program_name = 'build-lily'
package_name = 'lilypond'
help_summary = _("Fetch and rebuild from latest source package")
-build_root = os.environ ['HOME'] + '/usr/src'
-build_command = '(./configure --prefix=$HOME/usr && make all web) >> log.txt 2>&1'
+obuild_command = '(./configure --prefix=$HOME/usr && make all web) >> log.txt 2>&1'
+build_command = '''
+cd $HOME/usr/src &&
+(
+tar xzf %t &&
+rm -f building &&
+ln -s %n-%v building &&
+cd %n-%v &&
+./configure --prefix=$HOME/usr && make all web
+) >> log.txt 2>&1 &&
+rm -f %n &&
+ln -s %n%-%v %n
+'''
release_dir = build_root + '/releases'
patch_dir = build_root + '/patches'
release_dir = build_root + '/releases'
patch_dir = build_root + '/patches'
option_definitions = [
('DIR', 'b', 'build-root', _ ("unpack and build in DIR [%s]") % build_root),
option_definitions = [
('DIR', 'b', 'build-root', _ ("unpack and build in DIR [%s]") % build_root),
+ ('COMMAND', 'c', 'command', _ ("execute COMMAND, subtitute:") \
+ + '\n ' + _ ("%%n: package name") \
+ + '\n ' + _ ("%%v: package version") \
+ + '\n ' + _ ("%%t: tarball") \
+ ),
('', 'h', 'help', _ ("this help")),
('', 'k', 'keep', _ ("keep all output, and name the directory %s") % temp_dir),
('', 'r', 'remove-previous', _ ("remove previous build")),
('', 'h', 'help', _ ("this help")),
('', 'k', 'keep', _ ("keep all output, and name the directory %s") % temp_dir),
('', 'r', 'remove-previous', _ ("remove previous build")),
return join_package (list[-1])
def build (p):
return join_package (list[-1])
def build (p):
- os.chdir (build_root)
- system ('tar xzf %s/%s.tar.gz' % (release_dir, p))
- system ('rm -f building')
- os.symlink ('%s/%s' % (build_root, p), 'building')
- os.chdir (p)
- return system (build_command)
+ tar_ball = p + '.tar.gz'
+ (tar_name, tar_version) = split_package (tar_ball)
+
+ expand = {
+ '%n' : tar_name,
+ '%t' : tar_ball,
+ '%v' : version_tuple_to_str (tar_version),
+ }
+
+ c = build_command
+ for i in expand.keys ():
+ c = re.sub (i, expand[i], c)
+ return system (c)
(sh, long) = getopt_args (__main__.option_definitions)
try:
(sh, long) = getopt_args (__main__.option_definitions)
try:
help ()
elif o == '--buid-root' or o == '-b':
build_root = a
help ()
elif o == '--buid-root' or o == '-b':
build_root = a
+ elif o == '--command' or o == '-c':
+ build_command = a
elif o == '--remove-previous' or o == '-r':
remove_previous_p = 1
elif o == '--url' or o == '-u':
elif o == '--remove-previous' or o == '-r':
remove_previous_p = 1
elif o == '--url' or o == '-u':
if 1:
latest = find_latest (url)
if 1:
latest = find_latest (url)
- #if os.path.isdir ('%s/%s' % (build_root, latest)):
- if os.path.isdir ('%s/%s/%s' % (build_root, latest, 'lily/out/lilypond')):
+ if os.path.isdir ('%s/%s' % (build_root, latest)):
progress (_ ("latest is %s") % latest)
progress (_ ("relax, %s is up to date" % package_name))
sys.exit (0)
progress (_ ("latest is %s") % latest)
progress (_ ("relax, %s is up to date" % package_name))
sys.exit (0)
progress (_ ("fetching %s...") % get)
copy_url (get, '.')
progress (_ ("fetching %s...") % get)
copy_url (get, '.')
- if not build (latest):
- if os.path.isdir ('%s/%s' % (build_root, package_name)):
- os.chdir ('%s/%s' % (build_root, package_name))
- previous = os.getcwd ()
- os.chdir (build_root)
- if remove_previous_p:
- system ('echo rm -rf %s/%s' % (build_root, previous))
-
- system ('rm -f %s' % package_name)
- os.symlink ('%s/%s' % (build_root, latest), package_name)
+ if os.path.isdir (os.path.join (build_command, package_name)):
+ os.chdir (os.path.join (build_command, package_name))
+ previous = os.getcwd ()
+ else:
+ previous = 0
+
+ progress (_ ("building %s...") % get)
+ os.chdir (build_root)
+ if not build (latest) and previous and remove_previous_p:
+ system ('rm -rf %s' % os.path.join (build_root, previous))
os.chdir (original_dir)
if release_dir != temp_dir:
os.chdir (original_dir)
if release_dir != temp_dir: