1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-20 03:51:18 +00:00

Update the doc date when check_docs.py is ran.

This commit is contained in:
Brenden Matthews 2009-07-20 17:32:56 -06:00
parent 6731f4c1f3
commit 63a25aae03
2 changed files with 12 additions and 1 deletions

View File

@ -17,6 +17,8 @@
import os.path
import re
import sys
import mmap
from datetime import *
file_names = dict()
file_names["text_objects"] = "src/text_object.h"
@ -244,4 +246,13 @@ file.seek(0)
file.writelines(lines)
file.close()
# lastly, update the date in docs.xml
file = open(file_names["docs"], 'r+')
map = mmap.mmap(file.fileno(), os.path.getsize(file_names["docs"]))
d = map.find("<date>")
d += 6 # skip over first date stuff
map[d:d+10] = datetime.now().strftime("%F")
map.close()
file.close()
print "done."

View File

@ -16,7 +16,7 @@
<firstname>Brenden</firstname>
<surname>Matthews</surname>
</author>
<date>2009-07-09</date>
<date>2009-07-20</date>
</refentryinfo>
<refmeta>
<refentrytitle>conky</refentrytitle>