temporary remove makeVersionTag.pl

This commit is contained in:
tateisu 2019-09-01 00:00:23 +09:00
parent cfe7aa57cc
commit 09d959bc43
1 changed files with 0 additions and 43 deletions

View File

@ -1,43 +0,0 @@
#!/usr/bin/perl --
use strict;
use warnings;
my $buildFile = 'app/build.gradle';
# ワーキングツリーに変更がないことを確認
open(my $fh,"-|","git status --porcelain --branch")
or die "can't check git status. $!";
my @untrackedFiles;
while(<$fh>){
chomp;
if(/^\?\?\s*(\S+)/){
my $path =$1;
next if $path =~ /\.idea|_Emoji/;
push @untrackedFiles,$path
}elsif( /^##\s*(\S+?)(?:\.\.|$)/ ){
my $branch=$1;
print "branch=$branch\n";
$branch eq 'master'
or die "current branch is not master.\n";
}else{
die "working tree is not clean.\n";
}
}
close($fh)
or die "can't check git status. $!";
@untrackedFiles and die "forgot git add?\n",map{ "- $_\n"} @untrackedFiles;
# 現在のバージョン番号を取得
my $output = `cat $buildFile`;
$output =~ /versionName\s+["']([\d\.]+)["']/
or die "missing versionName in $buildFile\n";
my($version)=($1);
print "version=$version\n";
#
$output = `git log --oneline --no-merges --grep v$version`;
print $output,"\n";