Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/compat/vcbuild/scripts/lib.pl # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / compat / vcbuild / scripts / lib.pl` 26 lines ยท 810 bytes Raw Blame History 1 #!/usr/bin/perl -w 2 ###################################################################### 3 # Libifies files on Windows 4 # 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 9 # 10 # Copyright (C) 2009 Marius Storm-Olsen 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); 22 } 23 } 24 unshift(@args, "lib.exe"); 25 # printf("**** @args\n"); 26 exit (system(@args) != 0);