3 appdir
=/usr
/share
/ultimatepp
9 mkdir
-p $1/usr
/share
/pixmaps
10 mkdir
-p $1/usr
/share
/applications
12 cp -r examples
$destdir
14 cp -r tutorial
$destdir
15 cp -r reference
$destdir
16 cp $destdir/uppsrc
/ide.out
$1/usr
/bin
/theide
17 cp GCC.bm
$destdir/GCC.bm
18 rm -r $destdir/uppsrc
/_out
20 # Place the application icon
21 cp $destdir/uppsrc
/ide
/icon16x16.png
$1/usr
/share
/pixmaps
/theide.png
23 # Create the launcher script
25 cat > $1/usr
/bin
/upp
<< EOF
28 if [ ! -d \${HOME}/.upp ]; then
30 mkdir \${HOME}/.upp/theide
31 mkdir \${HOME}/.upp/out
32 mkdir \${HOME}/.upp/MyApps
33 cp /usr/share/ultimatepp/GCC.bm \${HOME}/.upp/theide/GCC.bm
35 echo UPP = \"${appdir}/uppsrc\"\;OUTPUT = \"\${HOME}/.upp/out\"\; > \${HOME}/.upp/theide/uppsrc.var
36 echo UPP = \"${appdir}/examples\;${appdir}/uppsrc\"\;OUTPUT = \"\${HOME}/.upp/out\"\; > \${HOME}/.upp/theide/examples.var
37 echo UPP = \"${appdir}/reference\;${appdir}/uppsrc\"\;OUTPUT = \"\${HOME}/.upp/out\"\; > \${HOME}/.upp/theide/reference.var
38 echo UPP = \"${appdir}/tutorial\;${appdir}/uppsrc\"\;OUTPUT = \"\${HOME}/.upp/out\"\; > \${HOME}/.upp/theide/tutorial.var
39 echo UPP = \"${appdir}/bazaar\;${appdir}/uppsrc\"\;OUTPUT = \"\${HOME}/.upp/out\"\; > \${HOME}/.upp/theide/bazaar.var
40 echo UPP = \"\${HOME}/MyApps\;${appdir}/uppsrc\"\;OUTPUT = \"\${HOME}/.upp/out\"\; > \${HOME}/.upp/theide/MyApps.var
46 chmod 755 $1/usr
/bin
/upp
48 # Create the desktop file
49 cat > $1/usr
/share
/applications
/ultimatepp.desktop
<< EOF
54 Categories=Development;IDE;
57 Icon=/usr/share/pixmaps/theide.png