File: install-sh

package info (click to toggle)
desproxy 0.1.0~pre3-10.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 436 kB
  • sloc: ansic: 1,753; makefile: 81; sh: 29
file content (51 lines) | stat: -rwxr-xr-x 846 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/sh
#
# desproxy install script 
#
# (c) 2004 Miguelanxo Otero Salgueiro
#

BINDIR=$1
LOCALEDIR=$2
BINS="desproxy desproxy-inetd desproxy-dns desproxy-socksserver socket2socket"

echo "Using binary dir: $BINDIR"
echo "Using locale dir: $LOCALEDIR"

# Directories

echo "Making directories..."

mkdir -p $BINDIR
mkdir -p $LOCALEDIR

# Binaries

echo "Copying binaries..."

for bin in $BINS; do
	if (cp src/$bin $BINDIR); then
		echo "$bin installed"
	else
		exit 1
	fi
done

# Locales

if (test $LOCALEDIR != ""); then
	echo ""
	echo "*************************************"
	echo "* This version lacks locale support *"
	echo "*     locales won't be installed    *"
	echo "*************************************"
	echo ""
fi

# Installation OK

echo ""
echo "*******************"
echo "* Installation OK *"
echo "*******************"
echo ""