#!/bin/bash
startdir=$(pwd)
_svntrunk=https://enigma-dev.svn.sourceforge.net/svnroot/enigma-dev/
_svnmod=enigma-dev
svn co $_svntrunk
mkdir -p $startdir/pkg/opt/enigma
cp -r $startdir/$_svnmod/trunk -T $startdir/pkg/opt/enigma
cd $startdir/pkg/opt/enigma/CompilerSource
mkdir -p $startdir/pkg/usr/sbin
mkdir -p $startdir/pkg/usr/share/pixmaps
mkdir -p $startdir/pkg/usr/share/applications
mkdir -p $startdir/pkg/usr/share/mime/packages
mv $startdir/pkg/opt/enigma/enigma.svg $startdir/pkg/usr/share/pixmaps
mv $startdir/pkg/opt/enigma/enigma.desktop $startdir/pkg/usr/share/applications
mv $startdir/pkg/opt/enigma/enigma.xml $startdir/pkg/usr/share/mime/packages
mv $startdir/pkg/opt/enigma/enigma $startdir/pkg/usr/sbin
chmod -R 777 $startdir/pkg/opt/enigma
chmod 755 $startdir/pkg/usr/sbin/enigma
chmod 544 $startdir/pkg/usr/share/applications/enigma.desktop $startdir/pkg/usr/share/mime/packages/enigma.xml
make linux
rm -rf $(find $startdir/pkg | grep 'svn$')
rm -r $startdir/pkg/opt/enigma/CompilerSource/.eobjsThis is taken from a PKGBUILD that I made for Arch. It can be applied to install ENIGMA on Ubuntu and other distros. The original PKGBUILD can be found
here.
To install this, run
sudo cp pkg -T /. Once this is done, run
update-mime-database /usr/share/mime to update the MIME database. In GNOME, run
nautilus -q to make the changes take effect immediately, however, a safer way would be to log off and then back on.
This will add a link to ENIGMA (LGM, but it's called ENIGMA) in the applications menu as well as adding MIME association for Game Maker executables (identification even without an extension) and also the ability to run "enigma *file*" from a terminal to open LGM.
If anyone feels like making icons for GM projects, I'll add that as well.
Also, [tt] bbcodes are broken; fix them.