[libmoosex-has-sugar-perl] 11/120: move default dir to maint-travis-ci

Intrigeri intrigeri at moszumanska.debian.org
Wed Aug 27 21:35:06 UTC 2014


This is an automated email from the git hooks/post-receive script.

intrigeri pushed a commit to annotated tag 0.05070422-source
in repository libmoosex-has-sugar-perl.

commit f8fae57805083546658f0d9f2fa881619b1f679a
Author: Kent Fredric <kentfredric at gmail.com>
Date:   Tue Sep 10 23:35:51 2013 +1200

    move default dir to maint-travis-ci
---
 README.mkdn  |  6 +++---
 sync_tree.pl | 13 +++++++++----
 2 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/README.mkdn b/README.mkdn
index 68ea110..80d1add 100644
--- a/README.mkdn
+++ b/README.mkdn
@@ -33,13 +33,13 @@ And lastly, execute the installer
 $ /tmp/tci-scripts/sync_tree.pl
 ```
 
-This will create the folder called `maint` within your distribution,
+This will create the folder called `maint-travis-ci` within your distribution,
 with a tree installed by `git subtree`, which will track this distribution.
 
-To update your copy of `/maint` to the latest, simply execute
+To update your copy of `/maint-travis-ci` to the latest, simply execute
 
 ```shell
-$ $PROJECT/maint/sync_tree.pl
+$ $PROJECT/maint-travis-ci/sync_tree.pl
 ```
 
 While somewhere in your project.
diff --git a/sync_tree.pl b/sync_tree.pl
index a25643d..6435944 100755
--- a/sync_tree.pl
+++ b/sync_tree.pl
@@ -9,16 +9,21 @@ my $root = find_dev('./');
 chdir "$root";
 
 sub git_subtree {
-    system('git','subtree', @_ ) == 0 or die "Git subtree had nonzero exit";
+    system( 'git', 'subtree', @_ ) == 0 or die "Git subtree had nonzero exit";
 }
 
 my $travis = 'https://github.com/kentfredric/travis-scripts.git';
-my $prefix = 'maint';
+my $prefix = 'maint-travis-ci';
 
 if ( not -d -e $root->child($prefix) ) {
-  git_subtree('add','--prefix=' . $prefix , $travis, 'master' );
+    git_subtree( 'add', '--prefix=' . $prefix, $travis, 'master' );
 }
 else {
-  git_subtree('pull','-m', 'Synchronise git subtree maint', '--prefix=' . $prefix , $travis, 'master' );
+    git_subtree(
+        'pull', '-m',
+        'Synchronise git subtree maint-travis-ci',
+        '--prefix=' . $prefix,
+        $travis, 'master'
+    );
 }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libmoosex-has-sugar-perl.git



More information about the Pkg-perl-cvs-commits mailing list