Skip to content

Commit 8cc304c

Browse files
committed
dist emacs patches too.
sort commits, and use .git-commits-done file.
1 parent 7785ac3 commit 8cc304c

File tree

7 files changed

+49
-4
lines changed

7 files changed

+49
-4
lines changed

ChangeLog

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
2006-11-03 Han-Wen Nienhuys <[email protected]>
2+
3+
* buildscripts/git-update-changelog.py:
4+
sort commits, and use .git-commits-done file.
5+
6+
* GNUmakefile.in:
7+
* elisp/GNUmakefile:
8+
dist emacs patches too.
9+
110
2006-11-02 Han-Wen Nienhuys <[email protected]>
211

312
* scm/autochange.scm:

GNUmakefile.in

+1-2
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@ TOPDOC_FILES=AUTHORS README INSTALL NEWS
2222
TOPDOC_TXT_FILES = $(addprefix $(top-build-dir)/Documentation/topdocs/$(outdir)/,$(addsuffix .txt,$(TOPDOC_FILES)))
2323
IN_FILES := $(call src-wildcard,*.in)
2424

25-
PATCH_FILES = emacsclient.patch server.el.patch
2625
EXTRA_DIST_FILES = VERSION .cvsignore SConstruct \
27-
$(README_FILES) $(SCRIPTS) $(IN_FILES) $(PATCH_FILES)
26+
$(README_FILES) $(SCRIPTS) $(IN_FILES)
2827
INSTALLATION_DIR=$(local_lilypond_datadir)
2928
INSTALLATION_FILES=$(config_make) VERSION
3029

autogen.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#!/bin/sh
2+
# WARNING WARNING WARNING
3+
# do not edit! this is autogen.sh, generated from /home/lilydev/src/lilypond/stepmake/autogen.sh
4+
#!/bin/sh
25
# Run this to generate configure and initial GNUmakefiles
36

47
srcdir=`dirname $0`
@@ -50,8 +53,6 @@ do
5053
done
5154

5255
#conf_flags="--enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c
53-
#conf_flags="--with-ncsb-dir=/usr/share/fonts/default/Type1/"
54-
5556
if test -n "$NOCONFIGURE"; then
5657
echo Skipping configure process.
5758
exit 0

buildscripts/git-update-changelog.py

+21
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@ def system (x):
1717
class PatchFailed(Exception):
1818
pass
1919

20+
def sign (x):
21+
if x < 0:
22+
return -1
23+
if x > 0:
24+
return 1
25+
26+
return 0
27+
28+
2029
class Commit:
2130
def __init__ (self, dict):
2231
for v in ('message',
@@ -32,6 +41,8 @@ def __init__ (self, dict):
3241
self.email = m.group (2).strip ()
3342
self.name = m.group (1).strip ()
3443
self.diff = read_pipe ('git show %s' % self.committish)
44+
def compare (self, other):
45+
return sign (time.mktime (self.date) - time.mktime (other.date))
3546

3647
def touched_files (self):
3748
files = []
@@ -173,6 +184,15 @@ def main ():
173184
if first == log[:len (first)]:
174185
log = log[len (first):]
175186

187+
try:
188+
previously_done = dict((c, 1) for c in open ('.git-commits-done').read ().split ('\n'))
189+
except OSError:
190+
previously_done = {}
191+
192+
commits = [c for c in commits if not previously_done.has_key (c.committish)]
193+
commits = sorted (commits, cmp=Commit.compare)
194+
195+
176196
file_adddel = []
177197
collated_log = ''
178198
collated_message = ''
@@ -181,6 +201,7 @@ def main ():
181201
while commits:
182202
c = commits[0]
183203
commits = commits[1:]
204+
184205
commits_done.append (c)
185206

186207
if not c.has_patch ():

elisp/GNUmakefile

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ INSTALLATION_OUT_DIR=$(elispdir)
99
INSTALLATION_OUT_FILES=$(outdir)/lilypond-words.el
1010

1111
STEPMAKE_TEMPLATES=elisp install install-out
12+
EXTRA_DIST_FILES= emacsclient.patch server.el.patch
1213

1314
include $(depth)/make/stepmake.make
1415

lily/include/program-option.hh

+2
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,6 @@ SCM ly_set_option (SCM, SCM);
2222

2323
bool get_program_option (const char *);
2424

25+
bool get_program_option (const char *);
26+
2527
#endif /* SCM_OPTION_HH */

lily/program-option.cc

+12
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,9 @@ LY_DEFINE (ly_command_line_verbose_p, "ly:command-line-verbose?", 0, 0, 0, (),
211211
212212
213213
214+
215+
216+
214217
LY_DEFINE (ly_get_option, "ly:get-option", 1, 0, 0, (SCM var),
215218
"Get a global option setting.")
216219
{
@@ -220,6 +223,15 @@ LY_DEFINE (ly_get_option, "ly:get-option", 1, 0, 0, (SCM var),
220223
}
221224
222225
226+
bool
227+
get_program_option (const char *s)
228+
{
229+
SCM sym = ly_symbol2scm (s);
230+
231+
return to_boolean (ly_get_option (sym));
232+
}
233+
234+
223235
bool
224236
get_program_option (const char *s)
225237
{

0 commit comments

Comments
 (0)