Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- init()
- {
- PROJECT_HOME=$(pwd)
- PACKAGE_HOME=${PROJECT_HOME}/package
- BUILD_PATH=`readlink -f $0`
- BUILD_PATH=`dirname $BUILD_PATH`
- cd $BUILD_PATH
- appname=$(sed '/^\#/d' ${PROJECT_HOME}/app_info.properties | grep 'app.name' | tail -n 1 | cut -d "=" -f2-)
- appversion=$(sed '/^\#/d' ${PROJECT_HOME}/app_info.properties | grep 'app.version' | tail -n 1 | cut -d "=" -f2-)
- }
- clean()
- {
- #echo ${appname}
- #echo ${appversion}
- echo "${appname}-${appversion}"
- #echo ${app_name}-${app_version}-src.tar.gz
- }
- init
- clean
Add Comment
Please, Sign In to add comment