| 1 | #!/bin/sh
|
|---|
| 2 | # py-compile - Compile a Python program
|
|---|
| 3 |
|
|---|
| 4 | scriptversion=2005-05-14.22
|
|---|
| 5 |
|
|---|
| 6 | # Copyright (C) 2000, 2001, 2003, 2004, 2005 Free Software Foundation, Inc.
|
|---|
| 7 |
|
|---|
| 8 | # This program is free software; you can redistribute it and/or modify
|
|---|
| 9 | # it under the terms of the GNU General Public License as published by
|
|---|
| 10 | # the Free Software Foundation; either version 2, or (at your option)
|
|---|
| 11 | # any later version.
|
|---|
| 12 |
|
|---|
| 13 | # This program is distributed in the hope that it will be useful,
|
|---|
| 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|---|
| 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|---|
| 16 | # GNU General Public License for more details.
|
|---|
| 17 |
|
|---|
| 18 | # You should have received a copy of the GNU General Public License
|
|---|
| 19 | # along with this program; if not, write to the Free Software
|
|---|
| 20 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|---|
| 21 | # 02110-1301, USA.
|
|---|
| 22 |
|
|---|
| 23 | # As a special exception to the GNU General Public License, if you
|
|---|
| 24 | # distribute this file as part of a program that contains a
|
|---|
| 25 | # configuration script generated by Autoconf, you may include it under
|
|---|
| 26 | # the same distribution terms that you use for the rest of that program.
|
|---|
| 27 |
|
|---|
| 28 | # This file is maintained in Automake, please report
|
|---|
| 29 | # bugs to <[email protected]> or send patches to
|
|---|
| 30 | # <[email protected]>.
|
|---|
| 31 |
|
|---|
| 32 | if [ -z "$PYTHON" ]; then
|
|---|
| 33 | PYTHON=python
|
|---|
| 34 | fi
|
|---|
| 35 |
|
|---|
| 36 | basedir=
|
|---|
| 37 | destdir=
|
|---|
| 38 | files=
|
|---|
| 39 | while test $# -ne 0; do
|
|---|
| 40 | case "$1" in
|
|---|
| 41 | --basedir)
|
|---|
| 42 | basedir=$2
|
|---|
| 43 | if test -z "$basedir"; then
|
|---|
| 44 | echo "$0: Missing argument to --basedir." 1>&2
|
|---|
|
|---|