forked from git/git
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2974 from derrickstolee/maintenance-and-headless
Include Windows-specific maintenance and headless-git
- Loading branch information
Showing
7 changed files
with
107 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#!/usr/bin/perl -w | ||
###################################################################### | ||
# Compile Resources on Windows | ||
# | ||
# This is a wrapper to facilitate the compilation of Git with MSVC | ||
# using GNU Make as the build system. So, instead of manipulating the | ||
# Makefile into something nasty, just to support non-space arguments | ||
# etc, we use this wrapper to fix the command line options | ||
# | ||
###################################################################### | ||
use strict; | ||
my @args = (); | ||
my @input = (); | ||
|
||
while (@ARGV) { | ||
my $arg = shift @ARGV; | ||
if ("$arg" =~ /^-[dD]/) { | ||
# GIT_VERSION gets passed with too many | ||
# layers of dquote escaping. | ||
$arg =~ s/\\"/"/g; | ||
|
||
push(@args, $arg); | ||
|
||
} elsif ("$arg" eq "-i") { | ||
my $arg = shift @ARGV; | ||
# TODO complain if NULL or is dashed ?? | ||
push(@input, $arg); | ||
|
||
} elsif ("$arg" eq "-o") { | ||
my $arg = shift @ARGV; | ||
# TODO complain if NULL or is dashed ?? | ||
push(@args, "-fo$arg"); | ||
|
||
} else { | ||
push(@args, $arg); | ||
} | ||
} | ||
|
||
push(@args, "-nologo"); | ||
push(@args, "-v"); | ||
push(@args, @input); | ||
|
||
unshift(@args, "rc.exe"); | ||
printf("**** @args\n"); | ||
|
||
exit (system(@args) != 0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters