[vhffs-dev] [860] Renamed post_commit.pl to post-commit.pl |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
Revision: 860
Author: gradator
Date: 2007-09-03 21:08:41 +0000 (Mon, 03 Sep 2007)
Log Message:
-----------
Renamed post_commit.pl to post-commit.pl
Modified Paths:
--------------
trunk/Makefile.am
trunk/vhffs-svn/src/Makefile.am
Added Paths:
-----------
trunk/vhffs-svn/src/post-commit.pl
Removed Paths:
-------------
trunk/vhffs-svn/src/post_commit.pl
Modified: trunk/Makefile.am
===================================================================
--- trunk/Makefile.am 2007-09-03 20:57:01 UTC (rev 859)
+++ trunk/Makefile.am 2007-09-03 21:08:41 UTC (rev 860)
@@ -7,7 +7,7 @@
endif
SUBDIRS = vhffs-api vhffs-backend vhffs-doc vhffs-compat vhffs-intl vhffs-jabber vhffs-listengine \
- vhffs-panel vhffs-public vhffs-robots vhffs-shells vhffs-tests vhffs-tools $(SUB_VHFFS_FS)
+ vhffs-panel vhffs-public vhffs-robots vhffs-shells vhffs-tests vhffs-tools vhffs-svn $(SUB_VHFFS_FS)
EXTRA_DIST = vhffs-forum vhffs-irc vhffs-packages \
Modified: trunk/vhffs-svn/src/Makefile.am
===================================================================
--- trunk/vhffs-svn/src/Makefile.am 2007-09-03 20:57:01 UTC (rev 859)
+++ trunk/vhffs-svn/src/Makefile.am 2007-09-03 21:08:41 UTC (rev 860)
@@ -1,5 +1,5 @@
svndir = @SVNDIR@
-svn_SCRIPTS = post_commit.pl
+svn_SCRIPTS = post-commit.pl
# Define the substitution we need to point perl script at correct location
do_sed = $(SED) --in-place \
Copied: trunk/vhffs-svn/src/post-commit.pl (from rev 859, trunk/vhffs-svn/src/post_commit.pl)
===================================================================
--- trunk/vhffs-svn/src/post-commit.pl (rev 0)
+++ trunk/vhffs-svn/src/post-commit.pl 2007-09-03 21:08:41 UTC (rev 860)
@@ -0,0 +1,74 @@
+#!/usr/bin/perl
+#
+# Copyright (c) vhffs project and its contributors
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+#
+# 1. Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#2. Redistributions in binary form must reproduce the above copyright
+# notice, this list of conditions and the following disclaimer in
+# the documentation and/or other materials provided with the
+# distribution.
+#3. Neither the name of vhffs nor the names of its contributors
+# may be used to endorse or promote products derived from this
+# software without specific prior written permission.
+#
+#THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+#"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+#LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+#FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+#COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+#INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+#BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+#LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+#CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+# POSSIBILITY OF SUCH DAMAGE.
+
+use strict;
+use POSIX qw(locale_h);
+use locale;
+use Locale::gettext;
+
+use lib '%VHFFS_LIB_DIR%';
+use Vhffs::Main;
+use Vhffs::Services::Svn;
+
+my $repopath = $ARGV[0];
+my $rev = $ARGV[1];
+exit 1 unless ( defined $repopath && defined $rev );
+
+my $vhffs = init Vhffs::Main;
+exit 1 unless defined $vhffs;
+
+my $svnconf = $vhffs->get_config->get_service('svn');
+
+$repopath =~ s#/$##;
+( undef , my $reponame ) = ( $repopath =~ /(^.+\/)([a-z0-9]+\/[a-z0-9]+$)/ );
+
+my $svn = Vhffs::Services::Svn::get_by_reponame( $vhffs , $reponame );
+exit 1 unless defined $svn;
+
+# MODE : mailinglist
+if( $svn->{ml_name} ne '' )
+{
+ use SVN::Notify;
+
+ my %params = (
+ repos_path => $repopath,
+ revision => $rev,
+ from => $svnconf->{'notify_from'},
+ to => $svn->{ml_name},
+ with_diff => 1,
+ attach_diff => 1,
+ );
+
+ my $notifier = SVN::Notify->new(%params);
+ $notifier->prepare;
+ $notifier->execute;
+}
Deleted: trunk/vhffs-svn/src/post_commit.pl
===================================================================
--- trunk/vhffs-svn/src/post_commit.pl 2007-09-03 20:57:01 UTC (rev 859)
+++ trunk/vhffs-svn/src/post_commit.pl 2007-09-03 21:08:41 UTC (rev 860)
@@ -1,74 +0,0 @@
-#!/usr/bin/perl
-#
-# Copyright (c) vhffs project and its contributors
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-#2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in
-# the documentation and/or other materials provided with the
-# distribution.
-#3. Neither the name of vhffs nor the names of its contributors
-# may be used to endorse or promote products derived from this
-# software without specific prior written permission.
-#
-#THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-#"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-#LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-#FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-#COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-#INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-#BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-#LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-#CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
-# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-
-use strict;
-use POSIX qw(locale_h);
-use locale;
-use Locale::gettext;
-
-use lib '%VHFFS_LIB_DIR%';
-use Vhffs::Main;
-use Vhffs::Services::Svn;
-
-my $repopath = $ARGV[0];
-my $rev = $ARGV[1];
-exit 1 unless ( defined $repopath && defined $rev );
-
-my $vhffs = init Vhffs::Main;
-exit 1 unless defined $vhffs;
-
-my $svnconf = $vhffs->get_config->get_service('svn');
-
-$repopath =~ s#/$##;
-( undef , my $reponame ) = ( $repopath =~ /(^.+\/)([a-z0-9]+\/[a-z0-9]+$)/ );
-
-my $svn = Vhffs::Services::Svn::get_by_reponame( $vhffs , $reponame );
-exit 1 unless defined $svn;
-
-# MODE : mailinglist
-if( $svn->{ml_name} ne '' )
-{
- use SVN::Notify;
-
- my %params = (
- repos_path => $repopath,
- revision => $rev,
- from => $svnconf->{'notify_from'},
- to => $svn->{ml_name},
- with_diff => 1,
- attach_diff => 1,
- );
-
- my $notifier = SVN::Notify->new(%params);
- $notifier->prepare;
- $notifier->execute;
-}