From d08a4bcd2b24fd314de04512752735baf1d6f604 Mon Sep 17 00:00:00 2001 From: David Rose Date: Thu, 26 May 2005 18:51:39 +0000 Subject: [PATCH] run on Linux --- direct/src/ffi/genPyCodeNative | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/direct/src/ffi/genPyCodeNative b/direct/src/ffi/genPyCodeNative index 409c2c2c2a..e6eb781628 100755 --- a/direct/src/ffi/genPyCodeNative +++ b/direct/src/ffi/genPyCodeNative @@ -21,9 +21,13 @@ if [ -z "${INSTALL_DIR}" ]; then fi fi +if [ ! -e ${INSTALL_DIR}/lib/pandac ]; then + mkdir ${INSTALL_DIR}/lib/pandac || exit +fi + if [ -d ${INSTALL_DIR}/lib/pandac ]; then - find ${INSTALL_DIR}/lib/pandac/. -maxdepth 1 -type f -print0 | xargs -0 rm + rm `find ${INSTALL_DIR}/lib/pandac/. -maxdepth 1 -type f -print` cp ${DIRECT}/src/extensions_native/PandaModules.py ${INSTALL_DIR}/lib/pandac/. cp ${DIRECT}/src/extensions_native/libpandaModules.py ${INSTALL_DIR}/lib/pandac/.