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 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
|
#!/bin/sh
# BINDIR=debian/tmp/usr/X11R6/bin
# LIBDIR=debian/tmp/usr/X11R6/lib
# For debian, we use the /usr hierarchy, and separate architecture
# dependent files and architecture-independent files.
BINDIR=debian/rosegarden/usr/bin
LIBDIR=debian/rosegarden/usr/lib
SHADIR=debian/rosegarden/usr/share
install="sh ./install-sh"
if [ ! -f ./bin/rosegarden ]; then
echo "You're supposed to build it first..."
exit 1
fi
# Honor the nostrip flag in DEB_BUILD_OPTIONS
echo $DEB_BUILD_OPTIONS | grep nostrip
if [ $? = 0 ]; then
STRIP_OPT=""
else
STRIP_OPT="-s"
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']'
# Changed for debian.
echo 'Installing the rest of Rosegarden under ['$LIBDIR'] and ['$SHADIR']'
ROSELIBDIR=$LIBDIR/rosegarden
ROSESHADIR=$SHADIR/rosegarden
( set -x
$install -d $BINDIR
$install -c ./rosegarden $BINDIR
$install -d $ROSELIBDIR/bin
$install $STRIP_OPT -c ./bin/rosegarden $ROSELIBDIR/bin
$install $STRIP_OPT -c ./bin/sequencer $ROSELIBDIR/bin
$install $STRIP_OPT -c ./bin/editor $ROSELIBDIR/bin
# For Debian, all examples go in
# /usr/doc/rosegarden/examples
# And architecture independent data goes to /usr/share/rosegarden
#$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 $ROSESHADIR/synth-patches
$install -c -m 644 ./common/synth-patches/std.sb $ROSESHADIR/synth-patches
$install -c -m 644 ./common/synth-patches/drums.sb $ROSESHADIR/synth-patches
$install -d $ROSESHADIR/help
$install -c -m 644 ./common/help/rosehelp.info $ROSESHADIR/help
$install -c -m 644 ./common/help/rosehelp.hnx $ROSESHADIR/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
|