copy-swig-py.sh
来自「linux subdivision ying gai ke yi le ba」· Shell 代码 · 共 31 行
SH
31 行
#!/bin/sh## copy-swig-py.sh: copy the Python bindings' .py files to the install locn## USAGE: copy-swig-py.sh PYTHON INSTALL SOURCE_DIR DEST_DIR#if test "$#" != 4; then echo USAGE: $0 PYTHON INSTALL SOURCE_DIR DEST_DIR exit 1fipyprog="$1"install="$2"srcdir="$3"dstdir="$4"# cd to the source directory so that we can get filenames rather than pathscd "$srcdir"# copy all the .py files to the target locationfor file in *.py; do $install "$file" "${dstdir}/${file}"done# figure out where the precompiling script is locatedscript="`\"$pyprog\" -c 'import compileall; print compileall.__file__'`"# precompile all of the files"$pyprog" "$script" "$dstdir"
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?