Some revision control systems have a substitution mechanism that replaces keywords of the form $...$ with other values. That doesn't explain the $$ though.