Last active
August 29, 2015 14:11
-
-
Save ten0s/7a080fcbd39e004bd0db to your computer and use it in GitHub Desktop.
Create Publish folder for a MVC project to run on Mono
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
if [[ $# -lt 1 ]]; then | |
echo "Usage: mono-publish-tar VERSION" | |
exit 1 | |
fi | |
ver=$1 | |
dir_name=poweralleyui-${ver} | |
tar_name=${dir_name}.tar.gz | |
mkdir -p ${dir_name}/bin \ | |
${dir_name}/fonts \ | |
${dir_name}/Content \ | |
${dir_name}/Scripts \ | |
${dir_name}/Views | |
cp -r PowerAlleyUI/bin/*.{dll,xml} ${dir_name}/bin | |
cp -r PowerAlleyUI/fonts/* ${dir_name}/fonts/ | |
cp -r PowerAlleyUI/Content/* ${dir_name}/Content/ | |
cp -r PowerAlleyUI/Scripts/* ${dir_name}/Scripts/ | |
cp -r PowerAlleyUI/Views/* ${dir_name}/Views/ | |
cp PowerAlleyUI/Global.asax ${dir_name}/ | |
cp PowerAlleyUI/NLog.config ${dir_name}/ | |
cp PowerAlleyUI/favicon.ico ${dir_name}/ | |
cp PowerAlleyUI/packages.config ${dir_name}/ | |
cp PowerAlleyUI/Web.config ${dir_name}/ | |
tar cfz ${tar_name} ${dir_name}/* | |
rm -rf ${dir_name} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment