chiark / gitweb /
git-playtree-setup: Rename from git-playtree-create
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 21 Jul 2019 15:39:58 +0000 (16:39 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 21 Jul 2019 17:01:18 +0000 (18:01 +0100)
The name is from when I thought it would actually mkdir.  But it
doesn't.  No overall functional change.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Debian/Dgit.pm
Makefile
debian/git-debpush.install
debian/rules
git-debpush
git-playtree-setup [moved from git-playtree-create with 100% similarity]
tests/lib-core

index 8ed836492df67bc54ada61f873d494e7a846fd98..3ac042cdd3052831aa611f006f72b04a8b51c609 100644 (file)
@@ -1055,7 +1055,7 @@ sub playtree_setup () {
     #   $maindir_gitdir     contains our main working "dgit", HEAD, etc.
     #   $maindir_gitcommon  the shared stuff, including .objects
 
-    # we need to invoke git-playtree-create via git because
+    # we need to invoke git-playtree-setup via git because
     # there may be config options it needs which are only available
     # to us, sensibly, in @git
 
@@ -1066,7 +1066,7 @@ sub playtree_setup () {
     # @INC is conveniently available.
     my $newpath = join ':', +(grep { !m/:/ } @INC),
                  '/usr/share/dgit', $ENV{PATH};
-    runcmd qw(env), "PATH=$newpath", @git, qw(playtree-create .);
+    runcmd qw(env), "PATH=$newpath", @git, qw(playtree-setup .);
 
     ensuredir '.git/info';
     open GA, "> .git/info/attributes" or confess "$!";
index c8937fc9e76133be0b4a3c7c8d868626b7eb752c..c4f167352dc0593ea44920d16c07f001730cc304 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -34,7 +34,7 @@ infraexamplesdir=$(prefix)/share/doc/dgit-infrastructure/examples
 txtdocdir=$(prefix)/share/doc/dgit
 absurddir=$(prefix)/share/dgit/absurd
 
-PROGRAMS=dgit dgit-badcommit-fixup git-playtree-create
+PROGRAMS=dgit dgit-badcommit-fixup git-playtree-setup
 MAN1PAGES=dgit.1
 
 MAN7PAGES=dgit.7                               \
index 563b42fa8098ae8b35912af61d224b828f09b02d..afba49825ee36c333d14c73a60a23fe6e98170d2 100644 (file)
@@ -1 +1 @@
-git-playtree-create    /usr/share/git-debpush
+git-playtree-setup     /usr/share/git-debpush
index 6ce2c3b02a6d0ab21ec559e7914096c3da807639..4d1a760274e419a93444c3e98291881f28839ab9 100755 (executable)
@@ -43,7 +43,7 @@ override_dh_auto_install: specpkg_install_gdp \
        make install prefix=/usr DESTDIR=debian/dgit
        make -C po install prefix=/usr DESTDIR=../debian/tmp \
                SUPPRESS_PO_UPDATE=1 S=''
-       mv debian/dgit/usr/bin/git-playtree-create debian/dgit/usr/share/dgit
+       mv debian/dgit/usr/bin/git-playtree-setup debian/dgit/usr/share/dgit
        make -C po4a install DESTDIR=../debian/tmp S=''
 
 override_dh_missing:
@@ -76,7 +76,7 @@ specpkg_install_%:
 #      # Most of the Perl modules in this package live in
 #      # $(specperl).  The exception is Debian::Dgit::Infra, which
 #      # lives in $(globalperl) and adds $(specperl) to @INC.
-#      # We also abuse this for git-playtree-create.  In .debs, this
+#      # We also abuse this for git-playtree-setup.  In .debs, this
 #      # goes in the per-.deb @INC dir.  See Dgit.pm::playtree_setup.
        set -ex; \
         base=debian/$(p); \
@@ -85,7 +85,7 @@ specpkg_install_%:
         dst=$${base}$(globalperl)/$${mod}; \
         mkdir -p $${dst%/*}; \
         mv -f $$src $$dst; \
-        install -m 755 git-playtree-create $${base}$(specperl); \
+        install -m 755 git-playtree-setup $${base}$(specperl); \
         perl -i -p -e 'next unless m/###substituted###/;' \
                -e 'next unless s/^# (?=unshift \@INC,)//;' \
                -e 'die unless s{q\{\S+\}}{q{$(specperl)}};' \
index 0be0bf4a37b486b707771246117382e2802a56d3..5b99e72abaad4e4880ba613c796554420513aad3 100755 (executable)
@@ -38,8 +38,8 @@ set -o pipefail
 # **** Helper functions and variables ****
 
 us="$(basename $0)"
-git_playtree_create=git-playtree-create ###substituted###
-git_playtree_create=${DEBPUSH_GIT_PLAYTREE_CREATE-$git_playtree_create}
+git_playtree_setup=git-playtree-setup ###substituted###
+git_playtree_setup=${DEBPUSH_GIT_PLAYTREE_SETUP-$git_playtree_setup}
 
 cleanup() {
     if [ -d "$temp" ]; then
similarity index 100%
rename from git-playtree-create
rename to git-playtree-setup
index cbcd602bc6fc116536339fb8f306f78e7a83521a..7e98acfbe07c3dea16dae1e6b1ed4ecef0d17681 100644 (file)
@@ -15,10 +15,10 @@ t-set-intree () {
        : ${DGIT_INFRA_PFX:=$DGIT_TEST_INTREE${DGIT_TEST_INTREE:+/infra/}}
        : ${DGIT_GITDEBREBASE_TEST:=$DGIT_TEST_INTREE/git-debrebase}
        : ${DGIT_MANPAGES_SOURCE_DIR:=$DGIT_TEST_INTREE}
-       : ${DEBPUSH_GIT_PLAYTREE_CREATE:=$DGIT_TEST_INTREE/git-playtree-create}
+       : ${DEBPUSH_GIT_PLAYTREE_SETUP:=$DGIT_TEST_INTREE/git-playtree-setup}
        export DGIT_TEST DGIT_BADCOMMIT_FIXUP
        export DGIT_REPOS_SERVER_TEST DGIT_SSH_DISPATCH_TEST
-       export DGIT_MANPAGES_SOURCE_DIR DEBPUSH_GIT_PLAYTREE_CREATE
+       export DGIT_MANPAGES_SOURCE_DIR DEBPUSH_GIT_PLAYTREE_SETUP
        export PERLLIB="$DGIT_TEST_INTREE${PERLLIB:+:}${PERLLIB}"
 }