ignore generators: sort the dirlist for repeatable output
Sort the output from reading directory contents so that the generated .gitignore and .hgignore files will be much more consistent (and friendly to change from subsequent runs, especially when they are committed to SVN/git/hg repos). This commit was SVN r31394.
Этот коммит содержится в:
родитель
e67ca81dca
Коммит
fc91ed7fc0
@ -1,6 +1,7 @@
|
||||
#!/usr/bin/env perl
|
||||
#
|
||||
# Copyright (c) 2008-2010 Cisco Systems, Inc. All rights reserved.
|
||||
# Copyright (c) 2008-2014 Cisco Systems, Inc. All rights reserved.
|
||||
# $COPYRIGHT$
|
||||
#
|
||||
# Dumb script to run through all the svn:ignore's in the tree and
|
||||
# build build .gitignore files for Git.
|
||||
@ -128,7 +129,7 @@ sub process {
|
||||
# Now find subdirectories in this directory
|
||||
my @entries;
|
||||
opendir(DIR, $dir) || die "Cannot open directory \"$dir\" for reading: $!";
|
||||
@entries = readdir(DIR);
|
||||
@entries = sort(readdir(DIR));
|
||||
closedir DIR;
|
||||
|
||||
foreach my $e (@entries) {
|
||||
|
@ -1,6 +1,7 @@
|
||||
#!/usr/bin/env perl
|
||||
#
|
||||
# Copyright (c) 2008-2010 Cisco Systems, Inc. All rights reserved.
|
||||
# Copyright (c) 2008-2014 Cisco Systems, Inc. All rights reserved.
|
||||
# $COPYRIGHT$
|
||||
#
|
||||
# Dumb script to run through all the svn:ignore's in the tree and build
|
||||
# build a .hgignore file for Mercurial. Do a few trivial things to
|
||||
@ -140,7 +141,7 @@ sub process {
|
||||
# Now find subdirectories in this directory
|
||||
my @entries;
|
||||
opendir(DIR, $dir) || die "Cannot open directory \"$dir\" for reading: $!";
|
||||
@entries = readdir(DIR);
|
||||
@entries = sort(readdir(DIR));
|
||||
closedir DIR;
|
||||
|
||||
foreach my $e (@entries) {
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user