-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
141 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,67 @@ | ||
SUBDIRS=src pkgconfig utils | ||
DISTCLEANFILES = | ||
|
||
EXTRA_DIST=autogen.sh autoclean.sh ChangeLog | ||
|
||
CLEANFILES = *~ *.bz2 *.tar.gz *.log | ||
|
||
#dist_doc_DATA = LICENSE | ||
DISTCLEANFILES += *~ *.bz2 *.tar.gz *.log aclocal.m4 | ||
|
||
# define rpm build root | ||
RPMBUILDTOPDIR = $(shell unset RPMBUILDTOPDIR; if [ -f ${HOME}/.rpmmacros ]; then export RPMBUILDTOPDIR=`grep _topdir ${HOME}/.rpmmacros|awk '{print $$2}'`; else export RPMBUILDTOPDIR=/usr/src/redhat; fi; echo $${RPMBUILDTOPDIR};) | ||
|
||
.PHONY: rpm | ||
|
||
#${RPMBUILDTOPDIR}/rpmbuild/SOURCES/: | ||
# echo TEST: rpmdev-setuptree $@ | ||
# $(shell echo "%_topdir ${HOME}/rpmbuild/" > ${HOME}/.rpmmacros) | ||
|
||
rpm: dist rpm/@[email protected] ${RPMBUILDTOPDIR}/SOURCES/ ${RPMBUILDTOPDIR}/SPECS/ | ||
$(RM) ${RPMBUILDTOPDIR}/SOURCES/$(distdir).tar.gz | ||
$(RM) ${RPMBUILDTOPDIR}/SPECS/@[email protected] | ||
$(LN_S) $(srcdir)/$(distdir).tar.gz ${RPMBUILDTOPDIR}/SOURCES/ | ||
$(LN_S) $(srcdir)/rpm/@[email protected] ${RPMBUILDTOPDIR}/SPECS/ | ||
rpmbuild -ba ${RPMBUILDTOPDIR}/SPECS/@[email protected] | ||
|
||
# $(shell git log v2.1.0...v2.1.1 --pretty=format:'<li> <a href="http://github.com/yhfudev/cpp-libucd/commit/%H">view commit •</a> %s</li> ' --reverse | grep "#changelog" > ChangeLog.html) | ||
# git log --graph --pretty=format:'[%h] %cI %an: %s' --no-merges --abbrev-commit --date=iso | ||
#git log --no-merges --date-order --date=short | \ | ||
# sed -e '/^commit.*$/d' | \ | ||
# awk '/^Author/ {sub(/\\$/,""); getline t; print $0 t; next}; 1' | \ | ||
# sed -e 's/^Author: //g' | \ | ||
# sed -e 's/>Date: \([0-9]*-[0-9]*-[0-9]*\)/>\t\1/g' | \ | ||
# sed -e 's/^\(.*\) \(\)\t\(.*\)/\3 \1 \2/g' | ||
ChangeLog: | ||
if test -d $(srcdir)/.git; then \ | ||
if test -f $(srcdir)/.last-cl-gen; then \ | ||
git log --no-merges --date-order --date=short \ | ||
$$(cat $(srcdir)/.last-cl-gen).. \ | ||
| sed -e '/^commit.*$$/d' \ | ||
| awk '/^Author/ {sub(/\\$$/,""); getline t; print $$0 t; next}; 1' \ | ||
| sed -e 's/^Author: //g' \ | ||
| sed -e 's/>Date: \([0-9]*-[0-9]*-[0-9]*\)/>\t\1/g' \ | ||
| sed -e 's/^\(.*\) \(\)\t\(.*\)/\3 \1 \2/g' \ | ||
> ChangeLog.tmp; \ | ||
else \ | ||
git log --no-merges --date-order --date=short \ | ||
| sed -e '/^commit.*$$/d' \ | ||
| awk '/^Author/ {sub(/\\$$/,""); getline t; print $$0 t; next}; 1' \ | ||
| sed -e 's/^Author: //g' \ | ||
| sed -e 's/>Date: \([0-9]*-[0-9]*-[0-9]*\)/>\t\1/g' \ | ||
| sed -e 's/^\(.*\) \(\)\t\(.*\)/\3 \1 \2/g' \ | ||
> ChangeLog.tmp; \ | ||
fi; \ | ||
touch ChangeLog \ | ||
&& git rev-list -n 1 HEAD >.last-cl-gen.tmp \ | ||
&& (echo; cat $(srcdir)/ChangeLog) >>ChangeLog.tmp \ | ||
&& mv -f ChangeLog.tmp $(srcdir)/ChangeLog \ | ||
&& mv -f .last-cl-gen.tmp $(srcdir)/.last-cl-gen \ | ||
&& rm -f ChangeLog.tmp; \ | ||
fi | ||
if test -d $(srcdir)/.hg; then \ | ||
hg log --template changelog > ChangeLog; \ | ||
touch $(srcdir)/.last-cl-gen; \ | ||
fi | ||
|
||
EXTRA_DIST += .last-cl-gen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters