File: install

package info (click to toggle)
vfu 4.06-5
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,092 kB
  • ctags: 2,184
  • sloc: cpp: 14,482; ansic: 4,091; perl: 581; makefile: 539; sh: 57
file content (25 lines) | stat: -rwxr-xr-x 519 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/bash

if [ ! -e vfu/vfu ]; then
  echo "vfu/vfu cannot be found, try to build it first..."
  exit;
fi

# this is not completely correct, it should check for all rx_* tools
if [ ! -e rx/rx_auto ]; then
  echo "rx/rx_* cannot be found, check distribution/docs..."
  exit;
fi

echo "Press ENTER to install vfu,rx_* to /usr/local/bin"
echo "Or press Ctrl+C to cancel"
read

cp vfu/vfu rx/rx_* /usr/local/bin
cp vfu.1 /usr/local/man/man1
cp vfu.conf /usr/local/etc
cd /usr/local/bin
chmod 755 vfu rx_*

echo "done."