Don't shift ARGV[0] to undefined. (#466557, Aidan Delaney)

2007-11-08  Matthias Clasen <mclasen@redhat.com>

        * glib-mkenums.in: Don't shift ARGV[0] to undefined.
        (#466557, Aidan Delaney)


svn path=/branches/glib-2-14/; revision=5828
This commit is contained in:
Matthias Clasen
2007-11-08 15:15:07 +00:00
committed by Matthias Clasen
parent 691c683ed5
commit bdef734b2b
2 changed files with 9 additions and 1 deletions

View File

@@ -1,3 +1,10 @@
2007-11-08 Matthias Clasen <mclasen@redhat.com>
Merge from trunk:
* glib-mkenums.in: Don't shift ARGV[0] to undefined.
(#466557, Aidan Delaney)
2007-11-07 Matthias Clasen <mclasen@redhat.com>
* === Released 2.14.3 ===

View File

@@ -215,7 +215,7 @@ sub read_template_file {
if (!defined $ARGV[0]) {
usage;
}
while ($_ = $ARGV[0], /^-/) {
while ($_=$ARGV[0],/^-/) {
shift;
last if /^--$/;
if (/^--template$/) { read_template_file (shift); }
@@ -230,6 +230,7 @@ while ($_ = $ARGV[0], /^-/) {
elsif (/^--help$/ || /^-h$/) { usage; }
elsif (/^--version$/ || /^-v$/) { version; }
else { usage; }
last if not defined($ARGV[0]);
}
# put auto-generation comment