aboutsummaryrefslogtreecommitdiff
path: root/community/syncthing/build
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-05-15 21:19:13 +0300
committerCem Keylan <cem@ckyln.com>2020-05-15 21:19:13 +0300
commit28edd1df77c548748ca31fd53a2c8820c812ae3e (patch)
treea1bd0d923b568723bb5b209bbe0e4ac545b3f061 /community/syncthing/build
parentcb164386638ad61d38ce33e7bd5892c85aa6fced (diff)
downloadrepository-28edd1df77c548748ca31fd53a2c8820c812ae3e.tar.gz
syncthing: change way for obtaining version number
Diffstat (limited to 'community/syncthing/build')
-rwxr-xr-xcommunity/syncthing/build8
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