• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


コミットメタ情報

リビジョン975c2216a1c8baa37b4c05695b4c66e455e4eec9 (tree)
日時2015-01-07 03:18:22
作者H.J. Lu <hjl.tools@gmai...>
コミッターH.J. Lu

ログメッセージ

Add git commit info to BFD_VERSION_STRING

GNU ld (GNU Binutils) 2.25.51.20150106

from git://sourceware.org/git/binutils.git commit 85880250e591a51624d24db653aaace0c5ce5943 on users/hjl/version

変更サマリ

差分

--- a/bfd/Makefile.am
+++ b/bfd/Makefile.am
@@ -1037,8 +1037,23 @@ bfdver.h: $(srcdir)/version.h $(srcdir)/development.sh $(srcdir)/Makefile.in
10371037 report_bugs_to="\"$(REPORT_BUGS_TO)\"" ;\
10381038 . $(srcdir)/development.sh ;\
10391039 if test "$$development" = true ; then \
1040- bfd_version_date=`sed -n -e 's/.*DATE //p' < $(srcdir)/version.h` ;\
1041- bfd_version_string="\"$(VERSION).$${bfd_version_date}\"" ;\
1040+ if test -e $(srcdir)/../.git; then \
1041+ here=`pwd`; \
1042+ cd $(srcdir); \
1043+ bfd_version_date=`git log -1 --pretty=%ci | awk '{ print $$1 }' | sed -e "s/-//g"` ;\
1044+ bfd_remote_git_repo=`git remote -v | grep fetch | awk '{ print $$2 }'` ;\
1045+ case $$bfd_remote_git_repo in \
1046+ *sourceware.org/git/binutils-gdb.git) \
1047+ bfd_remote_git_repo="git://sourceware.org/git/binutils.git";; \
1048+ esac; \
1049+ bfd_git_branch=`git status | grep "On branch" | sed -e "s/.*On branch //"` ;\
1050+ bfd_git_commit=`git log -1 --pretty=%H` ;\
1051+ bfd_version_string="\"$(VERSION).$${bfd_version_date}\\\n from $$bfd_remote_git_repo commit $$bfd_git_commit on $$bfd_git_branch\"" ;\
1052+ cd $$here; \
1053+ else \
1054+ bfd_version_date=`sed -n -e 's/.*DATE //p' < $(srcdir)/version.h` ;\
1055+ bfd_version_string="\"$(VERSION).$${bfd_version_date}\"" ;\
1056+ fi ;\
10421057 bfd_soversion="$(VERSION).$${bfd_version_date}" ;\
10431058 fi ;\
10441059 sed -e "s,@bfd_version@,$$bfd_version," \
--- a/bfd/Makefile.in
+++ b/bfd/Makefile.in
@@ -2099,8 +2099,23 @@ bfdver.h: $(srcdir)/version.h $(srcdir)/development.sh $(srcdir)/Makefile.in
20992099 report_bugs_to="\"$(REPORT_BUGS_TO)\"" ;\
21002100 . $(srcdir)/development.sh ;\
21012101 if test "$$development" = true ; then \
2102- bfd_version_date=`sed -n -e 's/.*DATE //p' < $(srcdir)/version.h` ;\
2103- bfd_version_string="\"$(VERSION).$${bfd_version_date}\"" ;\
2102+ if test -e $(srcdir)/../.git; then \
2103+ here=`pwd`; \
2104+ cd $(srcdir); \
2105+ bfd_version_date=`git log -1 --pretty=%ci | awk '{ print $$1 }' | sed -e "s/-//g"` ;\
2106+ bfd_remote_git_repo=`git remote -v | grep fetch | awk '{ print $$2 }'` ;\
2107+ case $$bfd_remote_git_repo in \
2108+ *sourceware.org/git/binutils-gdb.git) \
2109+ bfd_remote_git_repo="git://sourceware.org/git/binutils.git";; \
2110+ esac; \
2111+ bfd_git_branch=`git status | grep "On branch" | sed -e "s/.*On branch //"` ;\
2112+ bfd_git_commit=`git log -1 --pretty=%H` ;\
2113+ bfd_version_string="\"$(VERSION).$${bfd_version_date}\\\n from $$bfd_remote_git_repo commit $$bfd_git_commit on $$bfd_git_branch\"" ;\
2114+ cd $$here; \
2115+ else \
2116+ bfd_version_date=`sed -n -e 's/.*DATE //p' < $(srcdir)/version.h` ;\
2117+ bfd_version_string="\"$(VERSION).$${bfd_version_date}\"" ;\
2118+ fi ;\
21042119 bfd_soversion="$(VERSION).$${bfd_version_date}" ;\
21052120 fi ;\
21062121 sed -e "s,@bfd_version@,$$bfd_version," \