Browse Source

run on Linux

David Rose 20 years ago
parent
commit
d08a4bcd2b
1 changed files with 5 additions and 1 deletions
  1. 5 1
      direct/src/ffi/genPyCodeNative

+ 5 - 1
direct/src/ffi/genPyCodeNative

@@ -21,9 +21,13 @@ if [ -z "${INSTALL_DIR}" ]; then
     fi
     fi
 fi
 fi
 
 
+if [ ! -e ${INSTALL_DIR}/lib/pandac ]; then
+  mkdir ${INSTALL_DIR}/lib/pandac || exit
+fi
+
 if [ -d ${INSTALL_DIR}/lib/pandac ]; then
 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/PandaModules.py            ${INSTALL_DIR}/lib/pandac/.
     cp ${DIRECT}/src/extensions_native/libpandaModules.py         ${INSTALL_DIR}/lib/pandac/.
     cp ${DIRECT}/src/extensions_native/libpandaModules.py         ${INSTALL_DIR}/lib/pandac/.