Revision: 9765 https://osdn.net/projects/ttssh2/scm/svn/commits/9765 Author: nmaya Date: 2022-02-21 01:24:02 +0900 (Mon, 21 Feb 2022) Log Message: ----------- svnrev.pl の「SVN リビジョンを取得できないとき」の判定を修正 Modified Paths: -------------- trunk/buildtools/svnrev/svnrev.pl -------------- next part -------------- Modified: trunk/buildtools/svnrev/svnrev.pl =================================================================== --- trunk/buildtools/svnrev/svnrev.pl 2022-02-20 16:16:28 UTC (rev 9764) +++ trunk/buildtools/svnrev/svnrev.pl 2022-02-20 16:24:02 UTC (rev 9765) @@ -97,7 +97,7 @@ open(my $FD, ">$out_header") || die "error $out_header"; print $FD "/* $header */\n"; print $FD "/* #define TT_VERSION_STR \"$version\" check teraterm/common/tt-version.h */\n"; - if (defined $revision) { + if ($revision ne '') { print $FD "#define SVNVERSION $revision\n"; } else { print $FD "#undef SVNVERSION\n"; @@ -119,7 +119,7 @@ open(my $FD, ">$out_bat") || die "error $out_bat"; print $FD "\@rem $header\n"; print $FD "set VERSION=$version\n"; - if (defined $revision) { + if ($revision ne '') { print $FD "set SVNVERSION=$revision\n"; } else { print $FD "set SVNVERSION=unknown\n"; @@ -138,7 +138,7 @@ open(my $FD, ">$out_cmake") || die "error $out_cmake"; print $FD "# $header\n"; print $FD "set(VERSION \"$version\")\n"; - if (defined $revision) { + if ($revision ne '') { print $FD "set(SVNVERSION \"$revision\")\n"; } else { print $FD "#set(SVNVERSION \"0000\")\n";