]> git.donarmstrong.com Git - lilypond.git/commitdiff
dist emacs patches too.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 3 Nov 2006 01:20:56 +0000 (01:20 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 3 Nov 2006 01:20:56 +0000 (01:20 +0000)
sort commits, and use .git-commits-done file.

ChangeLog
GNUmakefile.in
autogen.sh
buildscripts/git-update-changelog.py
elisp/GNUmakefile
lily/include/program-option.hh
lily/program-option.cc

index 22532fc9b2ae70e4a1d5046ad103e50e7a963cdb..fdde79a4627cbc14b7427730e2d454853a1301ac 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2006-11-03  Han-Wen Nienhuys  <hanwen@lilypond.org>
+
+       * buildscripts/git-update-changelog.py: 
+       sort commits, and use .git-commits-done file.
+
+       * GNUmakefile.in: 
+       * elisp/GNUmakefile: 
+       dist emacs patches too.
+
 2006-11-02  Han-Wen Nienhuys  <hanwen@lilypond.org>
 
        * scm/autochange.scm: 
index 8ecc6f65bfc3993bbdfe0ea02ad2a9569a124cc8..fc35f9124597b9ee210437a9986035e72abc6ef8 100644 (file)
@@ -22,9 +22,8 @@ TOPDOC_FILES=AUTHORS README INSTALL NEWS
 TOPDOC_TXT_FILES = $(addprefix $(top-build-dir)/Documentation/topdocs/$(outdir)/,$(addsuffix .txt,$(TOPDOC_FILES)))
 IN_FILES := $(call src-wildcard,*.in)
 
-PATCH_FILES = emacsclient.patch server.el.patch 
 EXTRA_DIST_FILES = VERSION .cvsignore SConstruct \
-  $(README_FILES) $(SCRIPTS) $(IN_FILES) $(PATCH_FILES)
+  $(README_FILES) $(SCRIPTS) $(IN_FILES) 
 INSTALLATION_DIR=$(local_lilypond_datadir)
 INSTALLATION_FILES=$(config_make) VERSION
 
index 6db6ec12e21470bacff2e0ec09d4d312f9e3e217..d5033d9ec7cf87471371e4230a4f1df7641ad86a 100755 (executable)
@@ -1,4 +1,7 @@
 #!/bin/sh
+# WARNING WARNING WARNING
+# do not edit! this is autogen.sh, generated from /home/lilydev/src/lilypond/stepmake/autogen.sh
+#!/bin/sh
 # Run this to generate configure and initial GNUmakefiles
 
 srcdir=`dirname $0`
@@ -50,8 +53,6 @@ do
 done
 
 #conf_flags="--enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c
-#conf_flags="--with-ncsb-dir=/usr/share/fonts/default/Type1/"
-
 if test -n "$NOCONFIGURE"; then
     echo Skipping configure process.
     exit 0
index 5ad922be93a9b3619c222f4aafc3f277be34834f..4b98c6c1994e0e3a8a2073f4144e7e8c91e53c99 100644 (file)
@@ -17,6 +17,15 @@ def system (x):
 class PatchFailed(Exception):
     pass
 
+def sign (x):
+    if x < 0:
+        return -1
+    if x > 0:
+        return 1
+
+    return 0
+    
+
 class Commit:
     def __init__ (self, dict):
         for v in ('message',
@@ -32,6 +41,8 @@ class Commit:
         self.email = m.group (2).strip ()
         self.name = m.group (1).strip ()
         self.diff = read_pipe ('git show %s' % self.committish)
+    def compare (self, other):
+        return sign (time.mktime (self.date) - time.mktime (other.date))
         
     def touched_files (self):
         files = []
@@ -173,6 +184,15 @@ Run this file from the CVS directory, with commits from the repository in --git-
     if first == log[:len (first)]:
         log = log[len (first):]
 
+    try:
+        previously_done = dict((c, 1) for c in open ('.git-commits-done').read ().split ('\n'))
+    except OSError:
+        previously_done = {}
+
+    commits = [c for c in commits if not previously_done.has_key (c.committish)]
+    commits = sorted (commits, cmp=Commit.compare)
+
+    
     file_adddel = []
     collated_log = ''
     collated_message = ''
@@ -181,6 +201,7 @@ Run this file from the CVS directory, with commits from the repository in --git-
     while commits:
         c = commits[0]
         commits = commits[1:]
+        
         commits_done.append (c) 
 
         if not c.has_patch ():
index a92370d521dbbb8b6e5387831ac06d911ee84acb..0eab184cd0d74f0012dfce2808441b71831154a2 100644 (file)
@@ -9,6 +9,7 @@ INSTALLATION_OUT_DIR=$(elispdir)
 INSTALLATION_OUT_FILES=$(outdir)/lilypond-words.el
 
 STEPMAKE_TEMPLATES=elisp install install-out
+EXTRA_DIST_FILES= emacsclient.patch server.el.patch 
 
 include $(depth)/make/stepmake.make
 
index 55971a1fa16ba6a74e451ad6e5ed81cc0bd36783..7a119b46e5a7063db8f7e8e13f49d9e95d2e649f 100644 (file)
@@ -22,4 +22,6 @@ SCM ly_set_option (SCM, SCM);
 
 bool get_program_option (const char *);
 
+bool get_program_option (const char *);
+
 #endif /* SCM_OPTION_HH */
index be81de380bf49ec1d5fea180d445db17d7be7d49..04f8292a744eda151e19d2cabfa2bed6682d76ae 100644 (file)
@@ -211,6 +211,9 @@ LY_DEFINE (ly_command_line_verbose_p, "ly:command-line-verbose?", 0, 0, 0, (),
 
 
 
+
+
+
 LY_DEFINE (ly_get_option, "ly:get-option", 1, 0, 0, (SCM var),
           "Get a global option setting.")
 {
@@ -220,6 +223,15 @@ LY_DEFINE (ly_get_option, "ly:get-option", 1, 0, 0, (SCM var),
 }
 
 
+bool
+get_program_option (const char *s)
+{
+  SCM sym = ly_symbol2scm (s);
+
+  return to_boolean (ly_get_option (sym));
+}
+
+
 bool
 get_program_option (const char *s)
 {