ICU-5761 Make gendtjar.pl work on Cygwin

X-SVN-Rev: 22284
This commit is contained in:
Yoshito Umaoka 2007-08-06 20:40:32 +00:00
parent a2d03cc0fb
commit 4026738639

View file

@ -116,7 +116,7 @@ sub main(){
$tempDir = $cwd."/temp";
$version =~ s/\.//;
$icu4jImpl = "com/ibm/icu/impl/data/";
$icu4jDataDir = $icu4jImpl."/icudt".$version."b";
$icu4jDataDir = $icu4jImpl."icudt".$version."b";
$icu4jDevDataDir = "com/ibm/icu/dev/data/";
$icu4jTestDataDir = "$icu4jDevDataDir/testdata";
@ -208,12 +208,18 @@ sub createJar{
chdir($tempDir);
$command="";
print "INFO: Creating $jarFile\n";
if($platform eq "cygwin") {
$jar = `cygpath -au $jar`;
chop($jar);
$tempDir = `cygpath -aw $tempDir`;
chop($tempDir);
$tempDir =~ s/\\/\\\\/g;
}
if(defined $verbose){
$command = "$jar cvf $jarFile -C $tempDir $dirToJar";
}else{
$command = "$jar cf $jarFile -C $tempDir $dirToJar";
}
cmd($command, $verbose);
}
#-----------------------------------------------------------------------