[nemiver/gtk2-branch] Fix update-changelog for building out of srcdir



commit fcbdbe827e0a3b7b6c95d437bf0d7fb83f29f198
Author: Dodji Seketeli <dodji seketeli org>
Date:   Sun May 8 14:32:42 2011 +0200

    Fix update-changelog for building out of srcdir
    
    	* Makefile.am (update-changelog):  Refer to the absolute location
    	of gitlog2gnucl and ChangeLog files.

 Makefile.am |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 6e25313..ca9e326 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -43,9 +43,9 @@ $(sig_file): $(tar_gz_file)
 
 # update ChangeLog from git log
 update-changelog:
-	@./gitlog2gnucl > ChangeLog.updated
-	@size1=`stat -c%s ChangeLog`; size2=`stat -c%s ChangeLog.updated`; \
-	if test $(size2) -ge $(size1); then mv ChangeLog.updated ChangeLog; \
+	@$(abs_srcdir)/gitlog2gnucl > ChangeLog.updated
+	@size1=`stat -c%s $(abs_srcdir)/ChangeLog`; size2=`stat -c%s ChangeLog.updated`; \
+	if test $(size2) -ge $(size1); then mv ChangeLog.updated $(abs_srcdir)/ChangeLog; \
 	else echo "ChangeLog.updated is smaller than ChangeLog. Problem!!"\
 	; exit -1; fi
 



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