Browse Source

[Make] remove release folders after zipping

main
Unbewohnte 3 years ago
parent
commit
5aae65980d
  1. 5
      Makefile
  2. 2
      src/main.go

5
Makefile

@ -32,6 +32,9 @@ pkgrelease:
cd $(RELEASE_DIR) && zip -r darwin_amd64 darwin_amd64/ cd $(RELEASE_DIR) && zip -r darwin_amd64 darwin_amd64/
cd $(RELEASE_DIR) && zip -r windows_amd64 windows_amd64/ cd $(RELEASE_DIR) && zip -r windows_amd64 windows_amd64/
rm -rf $(RELEASE_DIR)/linux_amd64
rm -rf $(RELEASE_DIR)/darwin_amd64
rm -rf $(RELEASE_DIR)/windows_amd64
race: race:
cd $(SRC_DIR) && go build -race && mv $(EXE_NAME) .. cd $(SRC_DIR) && go build -race && mv $(EXE_NAME) ..
@ -43,4 +46,4 @@ test:
cd $(SRC_DIR) && go test ./... cd $(SRC_DIR) && go test ./...
clean: clean:
rm $(EXE_NAME) rm -rf $(EXE_NAME) $(RELEASE_DIR)

2
src/main.go

@ -60,7 +60,7 @@ func init() {
fmt.Printf("| -a [ip_address|domain_name] address to connect to (cannot be used with -s)\n") fmt.Printf("| -a [ip_address|domain_name] address to connect to (cannot be used with -s)\n")
fmt.Printf("| -d [path_to_directory] where the files will be downloaded to (cannot be used with -s)\n") fmt.Printf("| -d [path_to_directory] where the files will be downloaded to (cannot be used with -s)\n")
fmt.Printf("| -s [path_to_file|directory] to send it (cannot be used with -a)\n") fmt.Printf("| -s [path_to_file|directory] to send it (cannot be used with -a)\n")
fmt.Printf("| -vp [true|false] to turn off|on verbose output") fmt.Printf("| -vp [true|false] to turn on|off verbose output")
fmt.Printf("| -l print license information\n") fmt.Printf("| -l print license information\n")
fmt.Printf("| -v print version information\n\n\n") fmt.Printf("| -v print version information\n\n\n")

Loading…
Cancel
Save