summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>1999-10-21 14:23:38 +0000
committeragc <agc@pkgsrc.org>1999-10-21 14:23:38 +0000
commitc702a3569507ac0e53f6eaa2769988a2d47450fe (patch)
tree91b1435b8abc8956ae87ef823ff641854dfd5cf5 /mk
parent63b9afb04f64cbdde4bac29a5c18d8ee64b67a1d (diff)
downloadpkgsrc-c702a3569507ac0e53f6eaa2769988a2d47450fe.tar.gz
Optimise some of the ELF shared object awk script.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk13
1 files changed, 4 insertions, 9 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 611fa1ecd98..4413bbf58c9 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.358 1999/10/20 09:57:47 agc Exp $
+# $NetBSD: bsd.pkg.mk,v 1.359 1999/10/21 14:23:38 agc Exp $
#
# This file is in the public domain.
#
@@ -1365,14 +1365,9 @@ root-install:
system(sprintf("${RM} -f ${PREFIX}/%s.%s.%s.%s; ${LN} -s %s ${PREFIX}/%s.%s.%s.%s", lib, v1, v2, v3, slashes[slashc], lib, v1, v2, v3)); \
printf("%s.%s.%s.%s\n", lib, v1, v2, v3); \
} \
- if (v2 >= 0) { \
- system(sprintf("${RM} -f ${PREFIX}/%s.%s.%s; ${LN} -s %s ${PREFIX}/%s.%s.%s", lib, v1, v2, slashes[slashc], lib, v1, v2)); \
- printf("%s.%s.%s\n", lib, v1, v2); \
- } \
- if (v1 >= 0) { \
- system(sprintf("${RM} -f ${PREFIX}/%s.%s; ${LN} -s %s ${PREFIX}/%s.%s", lib, v1, slashes[slashc], lib, v1)); \
- printf("%s.%s\n", lib, v1); \
- } \
+ system(sprintf("${RM} -f ${PREFIX}/%s.%s.%s; ${LN} -s %s ${PREFIX}/%s.%s.%s", lib, v1, v2, slashes[slashc], lib, v1, v2)); \
+ system(sprintf("${RM} -f ${PREFIX}/%s.%s; ${LN} -s %s ${PREFIX}/%s.%s", lib, v1, slashes[slashc], lib, v1)); \
+ printf("%s.%s.%s\n%s.%s\n", lib, v1, v2, lib, v1); \
} \
/^@/ { print; next } \
/.*\/lib[^\/]+\.so\.[0-9]+\.[0-9]+\.[0-9]+$$/ { \