* first version.

git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@65 9bc8b190-ac0f-0410-8968-dc7d1f502856
This commit is contained in:
Frédéric Lepied 1999-10-23 22:07:41 +00:00
parent 51568c57ee
commit 44346c5e62
1 changed files with 21 additions and 0 deletions

21
compile.py Executable file
View File

@ -0,0 +1,21 @@
#!/usr/bin/python
#############################################################################
# File : compile.py
# Package : rpmlint
# Author : Frederic Lepied
# Created on : Sat Oct 23 23:40:21 1999
# Version : $Id$
# Purpose : byte compile all python files given in arguments.
#############################################################################
import py_compile
import re
import sys
py_regex=re.compile(".*\.py$")
for f in sys.argv[1:]:
if py_regex.search(f):
py_compile.compile(f, f+"o")
# compile.py ends here