{"thread":{"id":"11045","subject":"[PATCH 2/2] Link porcelain commands from gitexecdir to bindir","startedAt":"2007-11-28T16:26:29Z","lastAt":"2007-11-28T20:11:20Z","messageCount":2,"participants":["Nguyễn Thái Ngọc Duy","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":2},"messages":[{"id":"61234","messageId":"20071128162629.GA5453@laptop","threadId":"11045","inReplyTo":null,"subject":"[PATCH 2/2] Link porcelain commands from gitexecdir to bindir","fromName":"Nguyễn Thái Ngọc Duy","fromEmail":"pclouds@gmail.com","sentAt":"2007-11-28T16:26:29Z","receivedAt":"2007-11-28T16:26:29Z","isPatch":true,"sender":{"key":"pclouds@gmail.com","avatar":"https://avatars.githubusercontent.com/u/720?v=4"},"body":"This also adds variable my_porcelains. If you are not happy\nwith the default porcelain list, you can add your favourite\ncommands too.\n\nSigned-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>\n---\n The porcelain list needs eyeballs.\n\n Makefile    |   15 +++++++++++++++\n git.spec.in |    6 ++++++\n 2 files changed, 21 insertions(+), 0 deletions(-)\n\ndiff --git a/Makefile b/Makefile\nindex 3cf791f..0ab1569 100644\n--- a/Makefile\n+++ b/Makefile\n@@ -262,6 +262,17 @@ BUILT_INS = \\\n \tgit-fsck-objects$X git-cherry-pick$X git-status$X\\\n \t$(patsubst builtin-%.o,git-%$X,$(BUILTIN_OBJS))\n \n+PORCELAINS = \\\n+\tadd$X am annotate$X apply$X archive$X bisect blame$X \\\n+\tbranch$X bundle$X checkout cherry-pick$X citool$X clean$X \\\n+\tclone commit$X config$X cvsimport archimport \\\n+\tdaemon$X describe$X diff$X fetch$X format-patch$X fsck$X \\\n+\tgc$X grep$X gui$X init$X instaweb log$X lost-found \\\n+\tmerge mergetool mv$X name-rev$X pull push$X quiltimport \\\n+\trebase remote rerere$X reset$X revert$X rm$X send-email \\\n+\tshow$X stash status submodule svn tag$X var$X \\\n+\twhatchanged$X $(my_porcelains)\n+\n # what 'all' will build and 'install' will install, in gitexecdir\n ALL_PROGRAMS = $(PROGRAMS) $(SCRIPTS)\n \n@@ -1034,6 +1045,10 @@ endif\n ifneq (,$X)\n \t$(foreach p,$(patsubst %$X,%,$(filter %$X,$(ALL_PROGRAMS) $(BUILT_INS) git$X)), $(RM) '$(DESTDIR_SQ)$(gitexecdir_SQ)/$p';)\n endif\n+\tif test 'z$(bindir_SQ)' != 'z$(gitexecdir_SQ)'; \\\n+\tthen \\\n+\t\t$(foreach p,$(PORCELAINS), ln -f '$(DESTDIR_SQ)$(gitexecdir_SQ)/git-$p' '$(DESTDIR_SQ)$(bindir_SQ)/git-$p' || cp '$(DESTDIR_SQ)$(gitexecdir_SQ)/git-$p' '$(DESTDIR_SQ)$(bindir_SQ)/git-$p';) \\\n+\tfi\n \t./check_bindir 'z$(bindir_SQ)' 'z$(gitexecdir_SQ)' '$(DESTDIR_SQ)$(bindir_SQ)/git-shell$X'\n \n install-doc:\ndiff --git a/git.spec.in b/git.spec.in\nindex b6637a7..6830b03 100644\n--- a/git.spec.in\n+++ b/git.spec.in\n@@ -121,6 +121,7 @@ rm -rf $RPM_BUILD_ROOT\n \n %files svn\n %defattr(-,root,root)\n+%{_bindir}/*svn*\n %{_libexecdir}/git-core/*svn*\n %doc Documentation/*svn*.txt\n %{!?_without_docs: %{_mandir}/man1/*svn*.1*}\n@@ -129,6 +130,7 @@ rm -rf $RPM_BUILD_ROOT\n %files cvs\n %defattr(-,root,root)\n %doc Documentation/*git-cvs*.txt\n+%{_bindir}/*cvs*\n %{_libexecdir}/git-core/*cvs*\n %{!?_without_docs: %{_mandir}/man1/*cvs*.1*}\n %{!?_without_docs: %doc Documentation/*git-cvs*.html }\n@@ -136,6 +138,7 @@ rm -rf $RPM_BUILD_ROOT\n %files arch\n %defattr(-,root,root)\n %doc Documentation/git-archimport.txt\n+%{_bindir}/git-archimport\n %{_libexecdir}/git-core/git-archimport\n %{!?_without_docs: %{_mandir}/man1/git-archimport.1*}\n %{!?_without_docs: %doc Documentation/git-archimport.html }\n@@ -143,13 +146,16 @@ rm -rf $RPM_BUILD_ROOT\n %files email\n %defattr(-,root,root)\n %doc Documentation/*email*.txt\n+%{_bindir}/*email*\n %{_libexecdir}/git-core/*email*\n %{!?_without_docs: %{_mandir}/man1/*email*.1*}\n %{!?_without_docs: %doc Documentation/*email*.html }\n \n %files gui\n %defattr(-,root,root)\n+%{_bindir}/git-gui\n %{_libexecdir}/git-core/git-gui\n+%{_bindir}/git-citool\n %{_libexecdir}/git-core/git-citool\n %{_datadir}/git-gui/\n %{!?_without_docs: %{_mandir}/man1/git-gui.1*}\n-- \n1.5.3.6.2041.g106f-dirty\n"},{"id":"61281","messageId":"7v1waa5dw7.fsf@gitster.siamese.dyndns.org","threadId":"11045","inReplyTo":"20071128162629.GA5453@laptop","subject":"Re: [PATCH 2/2] Link porcelain commands from gitexecdir to bindir","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2007-11-28T20:11:20Z","receivedAt":"2007-11-28T20:11:20Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Nguyễn Thái Ngọc Duy <pclouds@gmail.com> writes:\n\n>  The porcelain list needs eyeballs.\n\nThe source of porcelain list needs consolidation first.  See a patch\nfrom me in the last couple of days to contrib/completion and\ngenerate-cmdlist.sh for ideas, for example.\n"}]}