Touch the file in make-dissector-reg.py if it hasn't changed, so that

we don't try and regenerate it every single subsequent build.

Also, add modelines.

svn path=/trunk/; revision=45117
This commit is contained in:
Evan Huus 2012-09-25 01:06:13 +00:00
parent 410fdcd065
commit b409efefce
1 changed files with 14 additions and 0 deletions

View File

@ -297,5 +297,19 @@ try:
fh.close()
else:
print(final_filename + ' unchanged.')
os.utime(final_filename, None)
except OSError:
sys.exit('Unable to write ' + final_filename + '.\n')
#
# Editor modelines - http://www.wireshark.org/tools/modelines.html
#
# Local variables:
# c-basic-offset: 8
# tab-width: 8
# indent-tabs-mode: t
# End:
#
# vi: set shiftwidth=8 tabstop=8 noexpandtab:
# :indentSize=8:tabSize=8:noTabs=false:
#