Commits

Martin von Löwis committed f405cb9

Remove obsolete script

  • Participants
  • Parent commits d419ec0

Comments (0)

Files changed (1)

scripts/mvindex

-#!/usr/bin/python
-# Move fooindex.html into foo/index.html
-import sys, os
-
-for f in os.listdir(sys.argv[1] + "/web/simple"):
-    f = sys.argv[1] + "/web/simple/" + f
-    if not os.path.isdir(f): continue
-    if not os.path.exists(f + "index.html"): continue
-    src = os.stat(f+"index.html")
-    try:
-        dest = os.stat(f+"/index.html")
-    except OSError:
-        os.rename(f+"index.html", f+"/index.html")
-    else:
-        if src.st_mtime < dest.st_mtime:
-            os.unlink(f+"index.html")
-        else:
-            os.unlink(f+"/index.html")
-            os.rename(f+"index.html", f+"/index.html")
-