9 cp -r "$dir/artifacts" "$dir/completions"
11 mv "$dir"/completions
/*.1 "$dir/man"
13 cp ..
/{README.md
,LICENSE
,CHANGELOG.md
} "$dir"
14 rm -r "$dir/artifacts"
16 if [[ "$dir" = *.exe
]]; then
18 mv "$dir/target/${target/ouch-/}/release/ouch.exe" "$dir"
21 zip -r "../release/$target.zip" "$target"
23 mv "$dir/target/${dir/ouch-/}/release/ouch" "$dir"
26 tar czf
"../release/$dir.tar.gz" "$dir"