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=/trunk/; revision=5827
This commit is contained in:
Matthias Clasen 2007-11-08 14:57:15 +00:00 committed by Matthias Clasen
parent 7af5eccdb5
commit 5c3887f500
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-11-08 Matthias Clasen <mclasen@redhat.com>
* 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