1. pygame
  2. pygame
  3. pygame

Commits

Lenard Lindstrom  committed 5b79a98

add setmods script missing from r 2129

  • Participants
  • Parent commits b4b4413
  • Branches default

Comments (0)

Files changed (1)

File setmods

View file
  • Ignore whitespace
+#!/bin/bash
+
+# This script sets the unix file modes for pygame files. Specifically it
+# sets the executabled bit for any python files starting with the
+# '#!/usr/bin/env python' sha-bang. Searching is restricted to the base
+# and examples directories. The Pygame policy is to not preserve
+# executable mode in SVN. It is left as an end-user choice. It is safe to
+# commit executable files as their modes are not copied to SVN.
+#
+
+SHA_BANG='^#! */usr/bin/env python'
+PROGS="*.py examples/*.py"
+
+for name in `grep -le "$SHA_BANG" $PROGS`
+do
+  chmod a+x "$name"
+done
+
+