t9114.2: Don't use --track option against "svn-remote"-tracking branches
[git/jrn.git] / compat / vcbuild / scripts / lib.pl
blobd8054e469fe81cff7ac18c436c57e253ec1112ec
1 #!/usr/bin/perl -w
2 ######################################################################
3 # Libifies files on Windows
5 # This is a wrapper to facilitate the compilation of Git with MSVC
6 # using GNU Make as the build system. So, instead of manipulating the
7 # Makefile into something nasty, just to support non-space arguments
8 # etc, we use this wrapper to fix the command line options
10 # Copyright (C) 2009 Marius Storm-Olsen <mstormo@gmail.com>
11 ######################################################################
12 use strict;
13 my @args = ();
14 while (@ARGV) {
15 my $arg = shift @ARGV;
16 if ("$arg" eq "rcs") {
17 # Consume the rcs option
18 } elsif ("$arg" =~ /\.a$/) {
19 push(@args, "-OUT:$arg");
20 } else {
21 push(@args, $arg);
24 unshift(@args, "lib.exe");
25 # printf("**** @args\n");
26 exit (system(@args) != 0);