mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:54:13 +00:00
make_dlls: Generate the .gitignore file.
This commit is contained in:
parent
cc2b3b48e6
commit
38daf97abf
2 changed files with 29 additions and 0 deletions
1
dlls/.gitignore
vendored
1
dlls/.gitignore
vendored
|
@ -1,3 +1,4 @@
|
|||
# Automatically generated by make_dlls; DO NOT EDIT!!
|
||||
/Makedll.rules
|
||||
/Makeimplib.rules
|
||||
/Maketest.rules
|
||||
|
|
|
@ -351,3 +351,31 @@ EOF
|
|||
close NEWMAKE;
|
||||
rename "Makefile.in.new", "Makefile.in";
|
||||
printf "Successfully updated Makefile.in\n";
|
||||
|
||||
################################################################
|
||||
# .gitignore file
|
||||
|
||||
open GITIGNORE, ">.gitignore.new" or die "cannot create .gitignore.new";
|
||||
print GITIGNORE "# Automatically generated by make_dlls; DO NOT EDIT!!\n";
|
||||
|
||||
my @ignores =
|
||||
(
|
||||
"/Makedll.rules",
|
||||
"/Makeimplib.rules",
|
||||
"/Maketest.rules",
|
||||
);
|
||||
|
||||
foreach my $mod (sort @lib_symlinks)
|
||||
{
|
||||
push @ignores, "/$importlibs{$mod}.def";
|
||||
}
|
||||
foreach my $mod (sort keys %directories)
|
||||
{
|
||||
next unless defined $altnames{$mod};
|
||||
push @ignores, map { "/" . $_ . "16"; } @{$altnames{$mod}};
|
||||
}
|
||||
print GITIGNORE join("\n", sort @ignores) . "\n";
|
||||
|
||||
close GITIGNORE;
|
||||
rename ".gitignore.new", ".gitignore";
|
||||
printf "Successfully updated .gitignore\n";
|
||||
|
|
Loading…
Reference in a new issue