clean 429 B

12345678910111213141516
  1. #!/usr/bin/env sh
  2. printf '%s' "Cleaning:"
  3. if [ -d "./build" ]; then
  4. rm -f ./build/client_gfcp_*-gridfinity 2>/dev/null || true
  5. rm -f ./build/server_gfcp_*-gridfinity 2>/dev/null || true
  6. rm -f ./build/*_gfcp_2*-gridfinity.upx 2>/dev/null || true
  7. else
  8. printf '%s\n' " no build directory!"
  9. exit 1
  10. fi
  11. rmdir "./build" 2>/dev/null || {
  12. printf '%s\n' " build directory not removed!"
  13. exit 1
  14. }
  15. printf '%s\n' " clean-up completed!"