mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
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:
parent
7af5eccdb5
commit
5c3887f500
@ -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 ===
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user