File: install-mod.sh.in

package info (click to toggle)
ircd-ratbox 3.0.6.dfsg-2+squeeze1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 12,632 kB
  • ctags: 11,261
  • sloc: ansic: 123,099; sh: 26,517; makefile: 775; yacc: 258; lex: 246; perl: 93
file content (25 lines) | stat: -rw-r--r-- 560 bytes parent folder | download | duplicates (3)
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
#!/bin/sh
# $Id: install-mod.sh.in 25279 2008-04-24 15:50:29Z androsyn $
SHELL="@SHELL@"
CP="@INSTALL@"
top_builddir="@top_builddir@"
LT_OBJDIR="@LT_OBJDIR@"
if test "$#" != "2"; then
	echo "Incorrect number of arguments";
	exit 1
fi

SHLIBEXT="@SHLIBEXT@"
OBJECT="${1}"
OBJBASE=`basename ${1}`
SRCDIR=`echo ${OBJECT}|sed -es/${OBJBASE}//`
DEST="${2}"
SOBASE=$(echo ${OBJBASE} | sed -e's/\.la$//')
TARGETOBJ="${SOBASE}${SHLIBEXT}"

RUN="${CP} ${SRCDIR}${LT_OBJDIR}/${TARGETOBJ} ${DEST}/${TARGETOBJ}"

echo "Installing ${OBJECT} as ${DEST}/${TARGETOBJ}"
$RUN