Changeset 1219
- Timestamp:
- 15/12/2006 00:10:51 (5 years ago)
- File:
-
- 1 copied
-
box/trunk/infrastructure/msvc/getversion.pl (copied) (copied from box/chris/merge/infrastructure/msvc/getversion.pl) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
box/trunk/infrastructure/msvc/getversion.pl
r1078 r1219 2 2 3 3 $basedir = $0; 4 $basedir =~ s/\\[^\\]*$//; 5 $basedir =~ s/\\[^\\]*$//; 6 $basedir =~ s/\\[^\\]*$//; 7 $basedir =~ s/\\[^\\]*$//; 8 $basedir =~ s/\\[^\\]*$//; 9 -d $basedir or die "$basedir: $!"; 10 chdir $basedir or die "$basedir: $!"; 4 $basedir =~ s/(\\[^\\]*){5}$// or die "failed to remove last five ". 5 "directories from $basedir"; 6 -d $basedir or die "$basedir: not a directory"; 7 chdir $basedir or die "cannot change to directory $basedir: $!"; 11 8 12 9 require "$basedir\\infrastructure\\BoxPlatform.pm.in"; 13 10 14 open VERSIONFILE, "> $basedir/lib/common/BoxVersion.h" 15 or die "BoxVersion.h: $!";11 my $verfile = "$basedir\\lib\\common\\BoxVersion.h"; 12 open VERSIONFILE, "> $verfile" or die "opening $verfile: $!"; 16 13 print VERSIONFILE "#define BOX_VERSION \"$BoxPlatform::product_version\"\n"; 17 14 close VERSIONFILE;
Note: See TracChangeset
for help on using the changeset viewer.
