The m17n project will include the singlish script file in their future packages, you can then type Sinhala just after installing the m17n package without manually copying the script in to your shared m17n scripts directory. It’ll appear as si-singlish.mim according to the standard naming convention.
What is it?
It’s a shell script which only compiles and run the .java you give,if only the .java file is newer than .class file(which should be where the .java file is). Otherwise it’ll just run the existing .class file. Which means YOU save a LOT of TIME by not typing javac and java!
Make sure you chmod +x it.