From: Ian Jackson Date: Sun, 21 Jul 2019 15:39:58 +0000 (+0100) Subject: git-playtree-setup: Rename from git-playtree-create X-Git-Tag: archive/debian/9.5~18 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=224ca6b4a472fb9bb70f455bcea6733f9c9e99bc git-playtree-setup: Rename from git-playtree-create The name is from when I thought it would actually mkdir. But it doesn't. No overall functional change. Signed-off-by: Ian Jackson --- diff --git a/Debian/Dgit.pm b/Debian/Dgit.pm index 8ed83649..3ac042cd 100644 --- a/Debian/Dgit.pm +++ b/Debian/Dgit.pm @@ -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 "$!"; diff --git a/Makefile b/Makefile index c8937fc9..c4f16735 100644 --- 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 \ diff --git a/debian/git-debpush.install b/debian/git-debpush.install index 563b42fa..afba4982 100644 --- a/debian/git-debpush.install +++ b/debian/git-debpush.install @@ -1 +1 @@ -git-playtree-create /usr/share/git-debpush +git-playtree-setup /usr/share/git-debpush diff --git a/debian/rules b/debian/rules index 6ce2c3b0..4d1a7602 100755 --- a/debian/rules +++ b/debian/rules @@ -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)}};' \ diff --git a/git-debpush b/git-debpush index 0be0bf4a..5b99e72a 100755 --- a/git-debpush +++ b/git-debpush @@ -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 diff --git a/git-playtree-create b/git-playtree-setup similarity index 100% rename from git-playtree-create rename to git-playtree-setup diff --git a/tests/lib-core b/tests/lib-core index cbcd602b..7e98acfb 100644 --- a/tests/lib-core +++ b/tests/lib-core @@ -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}" }