File: install

package info (click to toggle)
vfu 4.16%2Brepack-1
  • links: PTS
  • area: main
  • in suites: buster
  • size: 2,652 kB
  • ctags: 4,212
  • sloc: cpp: 16,503; ansic: 12,357; perl: 598; makefile: 564; sh: 61
file content (33 lines) | stat: -rwxr-xr-x 602 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
26
27
28
29
30
31
32
33
#!/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 in /usr/local/bin and rx_* in /usr/lib/vfu"
echo "Or press Ctrl+C to cancel"
read

cp vfu/vfu /usr/local/bin
mkdir /usr/lib/vfu
cp rx/rx_* /usr/lib/vfu

cp vfu.1 /usr/local/man/man1

cp vfu.conf /usr/lib/vfu

cd /usr/local/bin
chmod 755 vfu

cd /usr/lib/vfu
chmod 755 rx_*

echo "done."