From 7c3a6f0f871537e2ac528abb4469d7fe0190c5f1 Mon Sep 17 00:00:00 2001 From: David Rose Date: Thu, 26 May 2005 18:48:48 +0000 Subject: [PATCH] dos2unix --- direct/src/ffi/genPyCodeNative | 88 +++++++++++++++++----------------- 1 file changed, 44 insertions(+), 44 deletions(-) diff --git a/direct/src/ffi/genPyCodeNative b/direct/src/ffi/genPyCodeNative index 9e7f89d8e8..409c2c2c2a 100755 --- a/direct/src/ffi/genPyCodeNative +++ b/direct/src/ffi/genPyCodeNative @@ -1,44 +1,44 @@ -#! /bin/sh - -if [ -z "${DIRECT}" ]; then - if [ -d "direct" ]; then - echo "$0: \$DIRECT is not defined, using ./direct/ instead." - DIRECT="direct" - else - echo "$0: \$DIRECT is not defined and there is no ./direct/ at cwd. exiting." - exit 1 - fi -fi - -if [ -z "${INSTALL_DIR}" ]; then - if [ -n "${DIRECT}" -a -d "${DIRECT}" ]; then - - # echo "$0: \$INSTALL_DIR is not defined, using \$DIRECT (${DIRECT}) instead." - INSTALL_DIR="${DIRECT}" - else - echo "$0: \$INSTALL_DIR is not defined and \$DIRECT is not a suitable default. exiting." - exit 1 - fi -fi - -if [ -d ${INSTALL_DIR}/lib/pandac ]; then - - find ${INSTALL_DIR}/lib/pandac/. -maxdepth 1 -type f -print0 | xargs -0 rm - - cp ${DIRECT}/src/extensions_native/PandaModules.py ${INSTALL_DIR}/lib/pandac/. - cp ${DIRECT}/src/extensions_native/libpandaModules.py ${INSTALL_DIR}/lib/pandac/. - cp ${DIRECT}/src/extensions_native/libpandaphysicsModules.py ${INSTALL_DIR}/lib/pandac/. - cp ${DIRECT}/src/extensions_native/__init__.py* ${INSTALL_DIR}/lib/pandac/. - cp ${DIRECT}/src/extensions_native/libpandaeggModules.py ${INSTALL_DIR}/lib/pandac/. - cp ${DIRECT}/src/extensions_native/libpiratesModules.py ${INSTALL_DIR}/lib/pandac/. - cp ${DIRECT}/src/extensions_native/libdirectModules.py ${INSTALL_DIR}/lib/pandac/. - cp ${DIRECT}/src/extensions_native/libpandaexpressModules.py ${INSTALL_DIR}/lib/pandac/. - cp ${DIRECT}/src/extensions_native/libtoontownModules.py ${INSTALL_DIR}/lib/pandac/. - cp ${DIRECT}/src/extensions_native/libotpModules.py ${INSTALL_DIR}/lib/pandac/. - cp ${DIRECT}/src/extensions_native/libpandafxModules.py ${INSTALL_DIR}/lib/pandac/. -else - echo "$0: \"${INSTALL_DIR}/lib/pandac\" is not a directory" - exit 1 -fi - -echo "$0: finished." +#! /bin/sh + +if [ -z "${DIRECT}" ]; then + if [ -d "direct" ]; then + echo "$0: \$DIRECT is not defined, using ./direct/ instead." + DIRECT="direct" + else + echo "$0: \$DIRECT is not defined and there is no ./direct/ at cwd. exiting." + exit 1 + fi +fi + +if [ -z "${INSTALL_DIR}" ]; then + if [ -n "${DIRECT}" -a -d "${DIRECT}" ]; then + + # echo "$0: \$INSTALL_DIR is not defined, using \$DIRECT (${DIRECT}) instead." + INSTALL_DIR="${DIRECT}" + else + echo "$0: \$INSTALL_DIR is not defined and \$DIRECT is not a suitable default. exiting." + exit 1 + fi +fi + +if [ -d ${INSTALL_DIR}/lib/pandac ]; then + + find ${INSTALL_DIR}/lib/pandac/. -maxdepth 1 -type f -print0 | xargs -0 rm + + cp ${DIRECT}/src/extensions_native/PandaModules.py ${INSTALL_DIR}/lib/pandac/. + cp ${DIRECT}/src/extensions_native/libpandaModules.py ${INSTALL_DIR}/lib/pandac/. + cp ${DIRECT}/src/extensions_native/libpandaphysicsModules.py ${INSTALL_DIR}/lib/pandac/. + cp ${DIRECT}/src/extensions_native/__init__.py* ${INSTALL_DIR}/lib/pandac/. + cp ${DIRECT}/src/extensions_native/libpandaeggModules.py ${INSTALL_DIR}/lib/pandac/. + cp ${DIRECT}/src/extensions_native/libpiratesModules.py ${INSTALL_DIR}/lib/pandac/. + cp ${DIRECT}/src/extensions_native/libdirectModules.py ${INSTALL_DIR}/lib/pandac/. + cp ${DIRECT}/src/extensions_native/libpandaexpressModules.py ${INSTALL_DIR}/lib/pandac/. + cp ${DIRECT}/src/extensions_native/libtoontownModules.py ${INSTALL_DIR}/lib/pandac/. + cp ${DIRECT}/src/extensions_native/libotpModules.py ${INSTALL_DIR}/lib/pandac/. + cp ${DIRECT}/src/extensions_native/libpandafxModules.py ${INSTALL_DIR}/lib/pandac/. +else + echo "$0: \"${INSTALL_DIR}/lib/pandac\" is not a directory" + exit 1 +fi + +echo "$0: finished."