summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbuild6
1 files changed, 5 insertions, 1 deletions
diff --git a/build b/build
index 4c1fa84..0bbac7d 100755
--- a/build
+++ b/build
@@ -11,7 +11,11 @@ opkhelper.buildstamp:
../src/configure --prefix=/usr --libdir=/usr/share && \
make && make DESTDIR=$$(pwd)/../dest install
mv dest/usr/share/opkhelper dest/usr/share/opkhelper-$(VER)
- for file in dest/usr/bin/* dest/usr/share/man/man*/*; do \
+ for file in dest/usr/bin/*; do \
+ basename="$${file##*/}"; \
+ mv "$${file}" "$${file}-$(VER)"; \
+ done
+ for file in dest/usr/share/man/man*/*; do \
basename="$${file##*/}"; \
mv "$${file}" "$${file%.*}-$(VER).$${basename##*.}"; \
done