Files
libremetaverse/applications/SLProxy/build
axial 8ed8eaba36 Eliminated extra allocation in Packet.
SLProxy's build script now cleans when libsl-cs is rebuilt.

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@118 52acb1d6-8a22-11de-b505-999d5b087335
2006-08-04 22:32:15 +00:00

34 lines
752 B
Perl
Executable File

#!/usr/bin/perl -w
system('prj2make SLProxy.sln')
and die "*** prj2make failed\n";
if (!-e '../../libsecondlife-cs/bin/Debug/libsecondlife.dll') {
die "*** libsecondlife-cs must be built first\n";
}
if (-e 'bin/Debug/SLProxy.dll' && -M '../../libsecondlife-cs/bin/Debug/libsecondlife.dll' < -M 'bin/Debug/SLProxy.dll') {
system('make clean')
and die "*** make clean failed\n";
}
open(MAKEFILE, 'Makefile')
or die "*** failed to open Makefile for reading: $!\n";
while (<MAKEFILE>) {
s/^MCS=mcs$/MCS=gmcs/;
push @patched, $_;
}
close(MAKEFILE);
open(MAKEFILE, '>Makefile')
or die "*** failed to open Makefile for writing: $!\n";
print MAKEFILE $_ foreach @patched;
close(MAKEFILE);
system('make', @ARGV)
and die "*** make failed\n";