12345678910111213141516171819202122 |
- #!/bin/bash
- if [ $# -eq 0 ]; then
- echo "Please insert a version number. like 2.1.0"
- exit
- fi
- sed -i 's/(Development)/(Release)/g' include/Util.hpp #change Development to Release
- touch src/main.cpp # to make sure it changes
- if cate release_smol -f -t16; then
- sed -i 's/(Release)/(Development)/g' include/Util.hpp #change it back
- cd release
- echo "cp -f cate /usr/bin/cate" > install.sh #generate the install file
- chmod +x install.sh #add permissons
- tar -czvf linux_cate_v$1.tar.gz cate install.sh #create tar
- zip -9 linux_cate_v$1.zip cate install.sh #create zip
- rm install.sh #clean
- cd ..
- else
- sed -i 's/(Release)/(Development)/g' src/Util.hpp #change it back
- echo "Build error, bye bye"
- fi
|