diff options
Diffstat (limited to 'community/syncthing/build')
-rwxr-xr-x | community/syncthing/build | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/community/syncthing/build b/community/syncthing/build index 3fe05416..4a3170df 100755 --- a/community/syncthing/build +++ b/community/syncthing/build @@ -1,11 +1,11 @@ #!/bin/sh -e -read -r ver _ < version +read -r ver _ < "${0%/*}/version" go run build.go -no-upgrade -version "v$ver" build install -Dm755 syncthing "$1/usr/bin/syncthing" -install -Dm644 man/*.1 -t "$1/usr/share/man/man1" -install -Dm644 man/*.5 -t "$1/usr/share/man/man5" -install -Dm644 man/*.7 -t "$1/usr/share/man/man7" +for manpage in man/*.1 man/*.5 man/*.7; do + install -Dm644 "$manpage" "$1/usr/share/man/man${manpage##*.}/${manpage##*/}" +done |