X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Fvrml2gl.pl;h=f0f42bae1a06355c44c08d0d30f49806a9621fd5;hp=84dc4ccf46de1def697b3ff7d1e98ccc9565dacf;hb=aa75c7476aeaa84cf3abc192b376a8b03c325213;hpb=88cfe534a698a0562e81345957a50714af1453bc diff --git a/hacks/glx/vrml2gl.pl b/hacks/glx/vrml2gl.pl index 84dc4ccf..f0f42bae 100755 --- a/hacks/glx/vrml2gl.pl +++ b/hacks/glx/vrml2gl.pl @@ -1,5 +1,5 @@ #!/usr/bin/perl -w -# Copyright © 2003-2011 Jamie Zawinski +# Copyright © 2003-2011 Jamie Zawinski # # Permission to use, copy, modify, distribute, and sell this software and its # documentation for any purpose is hereby granted without fee, provided that @@ -26,7 +26,7 @@ use diagnostics; use strict; my $progname = $0; $progname =~ s@.*/@@g; -my $version = q{ $Revision: 1.1 $ }; $version =~ s/^[^0-9]+([0-9.]+).*$/$1/; +my ($version) = ('$Revision: 1.2 $' =~ m/\s(\d[.\d]+)\s/s); my $verbose = 0;