Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Package creation options
- OUTPUT_DIRECTORY=inst
- CONFIG=Release
- PROJECT_FILE=src/Log5/Log5.csproj
- # Package deployment options
- PRIVATE_REPOSITORY="\\\\1099ms2\\c\\Dev\\Nuget"
- if [ $# -eq 0 -o $# -gt 1 -o "$1" != "make" -a "$1" != "deploy" ]; then
- echo "Usage: $0 [make | deploy]"
- exit 0
- fi
- case $1 in
- make)
- if [ ! -d $OUTPUT_DIRECTORY ]; then
- mkdir -p $OUTPUT_DIRECTORY
- fi
- nuget pack $PROJECT_FILE -Build -Properties Configuration=$CONFIG -OutputDirectory $OUTPUT_DIRECTORY
- ;;
- deploy)
- cp -iv inst/*.nupkg $PRIVATE_REPOSITORY
- ;;
- *)
- # This should be impossible. Just in case
- echo "Usage: $0 [make | deploy]"
- exit 0
- esac
Add Comment
Please, Sign In to add comment