#!/usr/bin/env bash ## consts dir_source=source ## args if [ $# -ge 1 ] ; then dir_build=$1 && shift ; else dir_build=/tmp/laravel-tools ; fi ## vars path_steer=${dir_build}/laravel-steer ## exec mkdir -p ${dir_build} cd ${dir_source} rm ${path_steer}.zip --force zip \ ${path_steer}.zip \ lib/string.py \ lib/command.py \ lib/execute.py \ lib/__init__.py \ steer.py \ __main__.py cd - echo "#!/usr/bin/env python3" | cat - ${path_steer}.zip > ${path_steer} chmod +x ${path_steer} rm ${path_steer}.zip