Changeset 2328 for box/trunk/infrastructure/parcelpath.pl
- Timestamp:
- 05/10/2008 16:14:24 (4 years ago)
- File:
-
- 1 copied
-
box/trunk/infrastructure/parcelpath.pl (copied) (copied from box/trunk/infrastructure/msvc/getversion.pl) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
box/trunk/infrastructure/parcelpath.pl
r1078 r2328 1 1 #!perl 2 2 3 unless (@ARGV == 2) 4 { 5 die "Usage: $0 <parcel-name> <target-os>\n"; 6 } 7 3 8 $basedir = $0; 4 $basedir =~ s/\\[^\\]*$//; 5 $basedir =~ s/\\[^\\]*$//; 6 $basedir =~ s/\\[^\\]*$//; 7 $basedir =~ s/\\[^\\]*$//; 8 $basedir =~ s/\\[^\\]*$//; 9 $basedir =~ s|/.*||; 10 $basedir .= "/.."; 9 11 -d $basedir or die "$basedir: $!"; 10 12 chdir $basedir or die "$basedir: $!"; 13 require "infrastructure/BoxPlatform.pm.in"; 11 14 12 require "$basedir\\infrastructure\\BoxPlatform.pm.in"; 13 14 open VERSIONFILE, "> $basedir/lib/common/BoxVersion.h" 15 or die "BoxVersion.h: $!"; 16 print VERSIONFILE "#define BOX_VERSION \"$BoxPlatform::product_version\"\n"; 17 close VERSIONFILE; 15 print BoxPlatform::parcel_dir(@ARGV) . "\n"; 18 16 19 17 exit 0;
Note: See TracChangeset
for help on using the changeset viewer.
