summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-06-21 13:28:44 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-06-21 13:28:44 (EDT)
commit2c0f711d9bf87797d8de5a9a6e3fad2eeb31076d (patch)
tree838b6bc76d39adc36970c3bbed081cf2a01db6c7
parent8e30736855ca14ed2f58a4c53a85d75155634025 (diff)
Fix moving of executable files.HEADmaster
-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