Commits

Bryan O'Sullivan committed 5cee648

Require examples to be executable, so it's easier to see them with "ls".

Comments (0)

Files changed (7)

en/examples/hook.simple

File contents unchanged.

en/examples/mq.diff

File contents unchanged.

en/examples/mq.qinit-help

File contents unchanged.

en/examples/mq.tarball

File contents unchanged.

en/examples/mq.tools

File contents unchanged.

en/examples/mq.tutorial

File contents unchanged.

en/examples/run-example

 import re
 import shutil
 import signal
+import stat
 import sys
 import tempfile
 import time
         if name == 'run-example' or name.startswith('.'): continue
         if name.endswith('.out') or name.endswith('~'): continue
         pathname = os.path.join(path, name)
-        if os.path.isfile(pathname):
+        st = os.lstat(pathname)
+        if stat.S_ISREG(st.st_mode) and st.st_mode & 0111:
             example(pathname).run()
     print >> open(os.path.join(path, '.run'), 'w'), time.asctime()