Skip to content

Commit

Permalink
We are using git for version control now, can't use svn/git-svn to ge…
Browse files Browse the repository at this point in the history
…t a rev.
  • Loading branch information
coke committed Oct 13, 2009
1 parent 329ce26 commit d034e86
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
7 changes: 1 addition & 6 deletions Configure.pl
Expand Up @@ -71,12 +71,7 @@
END_WARN
unless $opt{has_icu};

# Get the SVN revision using svn or git-svn
my $cmd = 'svn info';
$cmd = 'git svn info README' if -d '.git';
my $out = `$cmd`;
$out =~ /Revision: (\d+)/;
my $partcl_revision = $1;
my $partcl_revision = `$^X tools/rev.pl`;

my $build_tool = $opt{perl} . ' '
. $opt{libdir}
Expand Down
9 changes: 4 additions & 5 deletions tools/rev.pl
@@ -1,8 +1,7 @@
#! perl

# Get the SVN revision using svn or git-svn
my $cmd = 'svn info';
$cmd = 'git svn info README' if -d '.git';
# Get the git revision
my $cmd = 'git rev-parse master';
my $out = `$cmd`;
$out =~ /Revision: (\d+)/;
print $1;
chomp $out;
print $out;

0 comments on commit d034e86

Please sign in to comment.