Guest User

Untitled

a guest
Dec 11th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # Package creation options
  4. OUTPUT_DIRECTORY=inst
  5. CONFIG=Release
  6. PROJECT_FILE=src/Log5/Log5.csproj
  7.  
  8. # Package deployment options
  9. PRIVATE_REPOSITORY="\\\\1099ms2\\c\\Dev\\Nuget"
  10.  
  11.  
  12. if [ $# -eq 0 -o $# -gt 1 -o "$1" != "make" -a "$1" != "deploy" ]; then
  13.  
  14. echo "Usage: $0 [make | deploy]"
  15. exit 0
  16.  
  17. fi
  18.  
  19. case $1 in
  20.  
  21. make)
  22.  
  23. if [ ! -d $OUTPUT_DIRECTORY ]; then
  24.  
  25. mkdir -p $OUTPUT_DIRECTORY
  26.  
  27. fi
  28.  
  29. nuget pack $PROJECT_FILE -Build -Properties Configuration=$CONFIG -OutputDirectory $OUTPUT_DIRECTORY
  30.  
  31. ;;
  32.  
  33.  
  34. deploy)
  35.  
  36. cp -iv inst/*.nupkg $PRIVATE_REPOSITORY
  37.  
  38. ;;
  39.  
  40.  
  41. *)
  42.  
  43. # This should be impossible. Just in case
  44. echo "Usage: $0 [make | deploy]"
  45. exit 0
  46. esac
Add Comment
Please, Sign In to add comment