From: Ryan Anderson <ryan@michonline.com>
To: git@vger.kernel.org
Cc: Ryan Anderson <ryan@michonline.com>
Subject: [RFC+PATCH 1/1] Move SCM interoperability tools into scm/
Date: Sun, 9 Jul 2006 02:17:06 -0400 [thread overview]
Message-ID: <11524258261798-git-send-email-ryan@michonline.com> (raw)
Signed-off-by: Ryan Anderson <ryan@michonline.com>
---
This is the first in a series to categorize the source tree a little bit more
than it is currently.
I figured I'd start with something innocuous, like the SCM interoperability
tools.
One thing I don't really like is that I had to duplicate the Perl build rule
in the subdirectory Makefile, effectively, to restructure it and leave the
built files in the root. If we can deprecate "run from the source tree",
this can go away. (That requires fixing up a lot of tests, but it's
straightforward, at least.)
So, flame away!
Makefile | 10 ++++++----
scm/Makefile | 20 ++++++++++++++++++++
git-archimport.perl => scm/git-archimport.perl | 0
.../git-cvsexportcommit.perl | 0
git-cvsimport.perl => scm/git-cvsimport.perl | 0
git-cvsserver.perl => scm/git-cvsserver.perl | 0
git-p4import.py => scm/git-p4import.py | 0
git-send-email.perl => scm/git-send-email.perl | 0
git-svnimport.perl => scm/git-svnimport.perl | 0
9 files changed, 26 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile
index 202f261..e7f5b48 100644
--- a/Makefile
+++ b/Makefile
@@ -130,11 +130,10 @@ SCRIPT_SH = \
git-lost-found.sh git-quiltimport.sh
SCRIPT_PERL = \
- git-archimport.perl git-cvsimport.perl git-relink.perl \
+ git-relink.perl \
git-shortlog.perl git-rerere.perl \
- git-annotate.perl git-cvsserver.perl \
- git-svnimport.perl git-mv.perl git-cvsexportcommit.perl \
- git-send-email.perl
+ git-annotate.perl \
+ git-mv.perl
SCRIPT_PYTHON = \
git-merge-recursive.py
@@ -176,6 +175,9 @@ BUILT_INS = git-log$X git-whatchanged$X
git-diff-index$X git-diff-stages$X git-diff-tree$X git-cat-file$X \
git-fmt-merge-msg$X
+
+include scm/Makefile
+
# what 'all' will build and 'install' will install, in gitexecdir
ALL_PROGRAMS = $(PROGRAMS) $(SIMPLE_PROGRAMS) $(SCRIPTS)
diff --git a/scm/Makefile b/scm/Makefile
new file mode 100644
index 0000000..0ce205b
--- /dev/null
+++ b/scm/Makefile
@@ -0,0 +1,20 @@
+
+SCM_PERL_BASE = \
+ git-archimport.perl \
+ git-cvsimport.perl \
+ git-cvsexportcommit.perl \
+ git-cvsserver.perl \
+ git-svnimport.perl \
+ git-send-email.perl
+
+SCRIPTS+=$(patsubst %.perl,%,$(SCM_PERL_BASE))
+
+$(patsubst %.perl,%,$(SCM_PERL_BASE)) : % : scm/%.perl
+ rm -f $@ $@+
+ sed -e '1s|#!.*perl|#!$(PERL_PATH_SQ)|' \
+ -e 's/@@GIT_VERSION@@/$(GIT_VERSION)/g' \
+ $^ >$@+
+ chmod +x $@+
+ mv $@+ $@
+
+
diff --git a/git-archimport.perl b/scm/git-archimport.perl
similarity index 100%
rename from git-archimport.perl
rename to scm/git-archimport.perl
diff --git a/git-cvsexportcommit.perl b/scm/git-cvsexportcommit.perl
similarity index 100%
rename from git-cvsexportcommit.perl
rename to scm/git-cvsexportcommit.perl
diff --git a/git-cvsimport.perl b/scm/git-cvsimport.perl
similarity index 100%
rename from git-cvsimport.perl
rename to scm/git-cvsimport.perl
diff --git a/git-cvsserver.perl b/scm/git-cvsserver.perl
similarity index 100%
rename from git-cvsserver.perl
rename to scm/git-cvsserver.perl
diff --git a/git-p4import.py b/scm/git-p4import.py
similarity index 100%
rename from git-p4import.py
rename to scm/git-p4import.py
diff --git a/git-send-email.perl b/scm/git-send-email.perl
similarity index 100%
rename from git-send-email.perl
rename to scm/git-send-email.perl
diff --git a/git-svnimport.perl b/scm/git-svnimport.perl
similarity index 100%
rename from git-svnimport.perl
rename to scm/git-svnimport.perl
--
1.4.1.gc473b-dirty
next reply other threads:[~2006-07-09 6:18 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-09 6:17 Ryan Anderson [this message]
2006-07-09 14:31 ` [RFC+PATCH 1/1] Move SCM interoperability tools into scm/ Johannes Schindelin
2006-07-09 21:26 ` Martin Langhoff
2006-07-09 22:13 ` Petr Baudis
2006-07-09 22:21 ` Johannes Schindelin
2006-07-09 22:23 ` Ryan Anderson
2006-07-10 0:39 ` Junio C Hamano
2006-07-10 3:24 ` Ryan Anderson
2006-07-09 22:34 ` Timo Hirvonen
2006-07-10 0:20 ` Ryan Anderson
2006-07-10 9:45 ` Timo Hirvonen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=11524258261798-git-send-email-ryan@michonline.com \
--to=ryan@michonline.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).