aboutsummaryrefslogtreecommitdiffstats
path: root/lib_symlinks
diff options
context:
space:
mode:
authorFrederic Lepied <flepied@mandriva.com>2000-11-13 07:17:42 +0000
committerFrederic Lepied <flepied@mandriva.com>2000-11-13 07:17:42 +0000
commitd73100f995cf7d38a7e54ae523656861d449a07c (patch)
tree7af7598b582ad37b73fe6b0cd510abfffd92f81e /lib_symlinks
parenta7c28be124becb46931cd44f1e72074d03175d3d (diff)
downloadspec-helper-d73100f995cf7d38a7e54ae523656861d449a07c.tar
spec-helper-d73100f995cf7d38a7e54ae523656861d449a07c.tar.gz
spec-helper-d73100f995cf7d38a7e54ae523656861d449a07c.tar.bz2
spec-helper-d73100f995cf7d38a7e54ae523656861d449a07c.tar.xz
spec-helper-d73100f995cf7d38a7e54ae523656861d449a07c.zip
first version.
Diffstat (limited to 'lib_symlinks')
-rwxr-xr-xlib_symlinks26
1 files changed, 26 insertions, 0 deletions
diff --git a/lib_symlinks b/lib_symlinks
new file mode 100755
index 0000000..d06786e
--- /dev/null
+++ b/lib_symlinks
@@ -0,0 +1,26 @@
+#!/bin/sh
+#---------------------------------------------------------------
+# Project : Linux-Mandrake
+# Module : spec-helper
+# File : lib_symlinks
+# Version : $Id$
+# Author : Frederic Lepied
+# Created On : Tue Nov 7 08:33:05 2000
+# Description : Run ldconfig to create symlinks to libraries.
+#
+# Copyright (C) 2000 by Frederic Lepied <flepied@mandrakesoft.com>
+# Redistribution of this file is permitted under the terms of the GNU
+# Public License (GPL)
+#---------------------------------------------------------------
+
+if [ -z "$RPM_BUILD_ROOT" ]; then
+ exit 0
+fi
+
+libs=`find $RPM_BUILD_ROOT -name lib -a -type d`
+
+if [ -n "$libs" -o -n "$EXTRA_LIBS_TO_SYMLINK" ]; then
+ /sbin/ldconfig -n -N $libs $EXTRA_LIBS_TO_SYMLINK
+fi
+
+# lib_symlinks ends here