aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2002-10-08 17:17:11 +0000
committerDaniel Veillard <veillard@src.gnome.org>2002-10-08 17:17:11 +0000
commitf08d400dbc3f3f1e1d8a2939198b76b458a45559 (patch)
tree6f54a63af9dee94772b1eb39dc7edf2bf1bd8ac9 /doc
parent01e87d229524185c3d355dd20fe136c938fd67b7 (diff)
downloadandroid_external_libxml2-f08d400dbc3f3f1e1d8a2939198b76b458a45559.tar.gz
android_external_libxml2-f08d400dbc3f3f1e1d8a2939198b76b458a45559.tar.bz2
android_external_libxml2-f08d400dbc3f3f1e1d8a2939198b76b458a45559.zip
Added year archiving + fix a problem on current date archive, Daniel
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/index.py19
1 files changed, 17 insertions, 2 deletions
diff --git a/doc/index.py b/doc/index.py
index 42bf9d01..ced5c359 100755
--- a/doc/index.py
+++ b/doc/index.py
@@ -1162,7 +1162,7 @@ def analyzeAPI():
print "Found %d associations, skipped %d words" % (i, skipped)
def usage():
- print "Usage index.py [--force] [--archive] [--archive-month month] [--API] [--docs]"
+ print "Usage index.py [--force] [--archive] [--archive-year year] [--archive-month month] [--API] [--docs]"
sys.exit(1)
def main():
@@ -1174,7 +1174,22 @@ def main():
if args[i] == '--force':
force = 1
elif args[i] == '--archive':
- analyzeArchives(force)
+ analyzeArchives(None, force)
+ elif args[i] == '--archive-year':
+ i = i + 1;
+ year = args[i]
+ months = ["January" , "February", "March", "April", "May",
+ "June", "July", "August", "September", "October",
+ "November", "December"];
+ for month in months:
+ try:
+ str = "%s-%s" % (year, month)
+ T = time.strptime(str, "%Y-%B")
+ t = time.mktime(T) + 3600 * 24 * 10;
+ analyzeArchives(t, force)
+ except:
+ print "Failed to index month archive:"
+ print sys.exc_type, sys.exc_value
elif args[i] == '--archive-month':
i = i + 1;
month = args[i]