This can happen if somehow this file is retrieved without expanded keywords
(e.g. directly from the webpage, or via something like git-svn).
Reported by: Patrick Walton <pcwalton@cs.ucla.edu>
svn path=/trunk/yasm/; revision=2160
#
# NOTE: operands are arranged in NASM / Intel order (e.g. dest, src)
rcstag = "$Id$"
-scriptname = rcstag.split()[1]
-scriptrev = rcstag.split()[2]
+try:
+ scriptname = rcstag.split()[1]
+ scriptrev = rcstag.split()[2]
+except IndexError:
+ scriptname = "gen_x86_insn.py"
+ scriptrev = "HEAD"
ordered_cpus = [
"086", "186", "286", "386", "486", "586", "686", "K6", "Athlon", "P3",