File: shlibln

package info (click to toggle)
poco 1.3.6p1-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 21,928 kB
  • sloc: cpp: 159,767; ansic: 91,785; makefile: 914; sh: 656; xml: 59; perl: 29
file content (28 lines) | stat: -rwxr-xr-x 402 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#! /bin/sh
#
# $Id: //poco/1.3/build/script/shlibln#1 $
#
# shlibln
#
# Create a symbolic link for a shared library
#

if [ $# -ne 2 ] ; then
	echo "usage: $0:t file link"
	exit 1
fi

source="$1"
target="$2"

sourcedir=`dirname "$source"`
targetdir=`dirname "$target"`

if [ "$sourcedir" = "$targetdir" ] ; then
	source=`basename $source`
fi


if [ "$1" != "$2" ] ; then
	ln -sf "$source" "$target"
fi