File: do-install

package info (click to toggle)
rosegarden 2.1-3
  • links: PTS
  • area: main
  • in suites: slink
  • size: 3,652 kB
  • ctags: 4,273
  • sloc: ansic: 42,081; makefile: 4,042; sh: 1,711; tcl: 320
file content (72 lines) | stat: -rwxr-xr-x 2,094 bytes parent folder | download
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/bin/sh

BINDIR=debian/tmp/usr/X11R6/bin
LIBDIR=debian/tmp/usr/X11R6/lib

install="sh ./install-sh"

if [ ! -f ./bin/rosegarden ]; then
  echo "You're supposed to build it first..."
  exit 1
fi

#echo
#echo Rosegarden 2.1 basic install script
#echo
#echo 'Enter directory for the main rosegarden executable ['$BINDIR']'
#read newbin
#if [ t"$newbin" != t ]; then BINDIR="$newbin"; fi
#echo 'Enter directory to contain the rosegarden lib directory ['$LIBDIR']'
#read newlib
#if [ t"$newlib" != t ]; then LIBDIR="$newlib"; fi
#echo
#echo Thanks
#echo

echo 'Installing Rosegarden shell binary in ['$BINDIR']'
echo 'Installing the rest of Rosegarden under ['$LIBDIR']'

ROSELIBDIR=$LIBDIR/rosegarden

( set -x

$install -d $BINDIR
$install -c ./rosegarden     $BINDIR

$install -d $ROSELIBDIR/bin
$install -s -c ./bin/rosegarden $ROSELIBDIR/bin
$install -s -c ./bin/sequencer  $ROSELIBDIR/bin
$install -s -c ./bin/editor     $ROSELIBDIR/bin

$install -d $ROSELIBDIR/example
$install -c -m 644 ./common/music/glazunov.rose $ROSELIBDIR/example

$install -d $ROSELIBDIR/synth-patches
$install -c -m 644 ./common/synth-patches/std.sb   $ROSELIBDIR/synth-patches
$install -c -m 644 ./common/synth-patches/drums.sb $ROSELIBDIR/synth-patches

$install -d $ROSELIBDIR/help
$install -c -m 644 ./common/help/rosehelp.info $ROSELIBDIR/help
$install -c -m 644 ./common/help/rosehelp.hnx  $ROSELIBDIR/help

$install -d $ROSELIBDIR/petal
test -f ./petal/Petal.so && $install -m 644 ./petal/Petal.so $ROSELIBDIR/petal
$install -c ./petal/Petal.tcl $ROSELIBDIR/petal
$install -c ./petal/petaleditor/PetalEditor.tcl $ROSELIBDIR/petal
$install -c ./petal/petalmidi/PetalMidi.tcl $ROSELIBDIR/petal

( cd $ROSELIBDIR/petal ; echo "pkg_mkIndex . Petal.so *.tcl" | tclsh )

$install -d $ROSELIBDIR/rosepetal-filters
$install -c ./petal/harmonizer.tcl $ROSELIBDIR/rosepetal-filters
$install -c ./petal/pattern.tcl $ROSELIBDIR/rosepetal-filters

#test -d $HOME/.. || exit 0  # not set
#test -f $HOME/Rosegarden && mv $HOME/Rosegarden $HOME/Rosegarden.SAVED
#$install -c -m 644 Rosegarden $HOME

 )

echo
echo Done
echo