1 2 3 4 5 6 7 8 9 10 11 12 13
#!/usr/bin/env bash export libname="$1_$2" rm -rf /usr/local/spm/bin/${libname} mkdir -p /usr/local/spm/bin cp -r ./bin /usr/local/spm/ ls /usr/local/spm/bin/${libname} if [ "$?" != 0 ]; then echo "Library $1 $2 copy failed" exit 1 fi