release.sh 721 B

123456789101112131415161718192021
  1. #!/bin/bash
  2. # Define the destination directory
  3. DESTINATION="E:/golang/bokoFS/src"
  4. # Remove the destination directory if it exists
  5. if [ -d "$DESTINATION" ]; then
  6. rm -rf "$DESTINATION"
  7. fi
  8. # Create the destination directory
  9. mkdir -p "$DESTINATION"
  10. # Copy all files and directories from the current directory to the destination
  11. cp -r ./* "$DESTINATION"
  12. # Remove ./tmp, ./config, and ./test from the destination if they exist
  13. rm -rf "$DESTINATION/tmp" "$DESTINATION/config" "$DESTINATION/test"
  14. # Remove the bokofsd.exe or bokofsd binary executable from the destination if they exist
  15. rm -f "$DESTINATION/bokofsd.exe" "$DESTINATION/bokofsd" "$DESTINATION/release.sh" "$DESTINATION/autopush.sh" "$DESTINATION/README.md"