view netinstall/version.pl @ 3773:5f25b1501bcd

[xemacs-hg @ 2007-01-01 10:03:52 by malcolmp] Use 'grep -E' rather than egrep and 'grep -F' rather than fgrep.
author malcolmp
date Mon, 01 Jan 2007 10:04:13 +0000
parents 3078fd1074e8
children
line wrap: on
line source

while (<STDIN>) {
  if (/^\$Revision:\s*([0-9\.]*)/) {
    print "char *version = \"$1\";\n";
    print "static char *id = \"\\n%%% setup-version $1\\n\";\n";
  }
}