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:
parent
6731f4c1f3
commit
63a25aae03
@ -17,6 +17,8 @@
|
|||||||
import os.path
|
import os.path
|
||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
|
import mmap
|
||||||
|
from datetime import *
|
||||||
|
|
||||||
file_names = dict()
|
file_names = dict()
|
||||||
file_names["text_objects"] = "src/text_object.h"
|
file_names["text_objects"] = "src/text_object.h"
|
||||||
@ -244,4 +246,13 @@ file.seek(0)
|
|||||||
file.writelines(lines)
|
file.writelines(lines)
|
||||||
file.close()
|
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."
|
print "done."
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
<firstname>Brenden</firstname>
|
<firstname>Brenden</firstname>
|
||||||
<surname>Matthews</surname>
|
<surname>Matthews</surname>
|
||||||
</author>
|
</author>
|
||||||
<date>2009-07-09</date>
|
<date>2009-07-20</date>
|
||||||
</refentryinfo>
|
</refentryinfo>
|
||||||
<refmeta>
|
<refmeta>
|
||||||
<refentrytitle>conky</refentrytitle>
|
<refentrytitle>conky</refentrytitle>
|
||||||
|
Loading…
Reference in New Issue
Block a user