package main import ( "flag" "log" _ "github.com/codingsince1985/checksum" ) func main() { var source_dir = flag.String("source_dir", "./", "Path to image folder (/srv/fwuploads-tmp/)") var target_dir = flag.String("target_dir", "./", "Path to image folder in public (/srv/fwuploads/troisdorf)") var branch = flag.String("branch", "", "Branch to work with") flag.Parse() sdir := *source_dir tdir := *target_dir br := *branch var source_dir_branch string = sdir + br + "/" var target_dir_branch string = tdir + br + "/" //generate manifest file for branch err := generate_manifest(source_dir_branch) if err != nil { log.Println("Error generating Manifest file: ", err) } release_branch(*branch, source_dir_branch, target_dir_branch) }