-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlink-tools
executable file
·39 lines (35 loc) · 1.14 KB
/
link-tools
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
#!/bin/sh
# Create symlinks in a prefix to all the ld-decode tools.
testsuitedir="$(realpath $(dirname $0))"
ldddir="$(realpath $testsuitedir/../ld-decode)"
if [ -d "$ldddir/obj" ]; then
objdir="$ldddir/obj"
else
objdir="$ldddir"
fi
prefix="$HOME/pkg/ld-decode"
mkdir -p "$prefix/bin"
for f in \
"$ldddir/cx-expander" \
"$ldddir/ld-cut" \
"$ldddir/ld-decode" \
"$objdir/ld-ldf-reader" \
"$ldddir/scripts/ld-compress" \
"$objdir/tools/ld-analyse/ld-analyse" \
"$objdir/tools/ld-chroma-decoder/encoder/ld-chroma-encoder" \
"$objdir/tools/ld-chroma-decoder/ld-chroma-decoder" \
"$objdir/tools/ld-diffdod/ld-diffdod" \
"$objdir/tools/ld-discmap/ld-discmap" \
"$objdir/tools/ld-dropout-correct/ld-dropout-correct" \
"$objdir/tools/ld-export-metadata/ld-export-metadata" \
"$objdir/tools/ld-lds-converter/ld-lds-converter" \
"$objdir/tools/ld-ldstoefm/ld-ldstoefm" \
"$objdir/tools/ld-process-ac3/decode/ld-ac3-decode" \
"$objdir/tools/ld-process-ac3/demodulate/ld-ac3-demodulate" \
"$objdir/tools/ld-process-efm/ld-process-efm" \
"$objdir/tools/ld-process-vbi/ld-process-vbi" \
; do
if [ -f "$f" ]; then
ln -sf "$f" "$prefix/bin/"
fi
done