Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I've created a userscript(.user.js.in file) in src folder of webapps-application.So how can I compile it now?

share|improve this question
    
why do you want to compile it? it's enough to put it in /usr/share/unity-webapps/userscripts/SCRIPTNAME/, aside with it's manifest.json –  Pisu Jan 9 '13 at 7:05
add comment

1 Answer

You need to create a Make file.

Here is the sample Makefile.am file

If you look at line number the 3 in Makefile.am file. All the users.js scripts that are placed under src directory will be picked.

You need to create the same structure showed in here and follow the below commands to build

./autogen.sh
make
sudo make install prefix=/usr

Reference:

  1. http://quickmediasolutions.com/blog/9/using-the-unity-web-api
  2. http://bazaar.launchpad.net/~webapps/webapps-applications/trunk/files/head:/
share|improve this answer
    
Yeah,I have done that already but it didn't work.The official tutorial says that we need to create a file like 'anyname.user.js.in' in src folder.But they never explained what to do with it.Any ideas? –  Rajat Saxena Oct 26 '12 at 9:51
    
Can you share the official tutorial page? –  devav2 Oct 26 '12 at 10:26
    
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.