On 11/28/2014 08:20 PM, Thorsten Glaser wrote:
> On Fri, 28 Nov 2014, Thomas Goirand wrote:
> 
>> It's been a long time I've been thinking about it, and I believe that
>> the only way to do this, would be to use triggers. Though I have never
> 
> Look at libjs-protoaculous which combines prototype and
> scriptaculous into one (possibly minified) js file. In
> (our inhouse version of) FusionForge, we just depend on
> it, and it contains all the trigger and dependency magic
> needed for that.

Hi!

Thanks for the pointer. I just had a look, let me make sure I understand
how it works now. So if I understand well (by reading your example
package), the only thing I have to do (for horizon) is:

1/ Create a debian/openstack-dashboard.triggers that would contain a
list of "interest /usr/share/javascript/<something>", for example:

interest /usr/share/javascript/jsencrypt

then I'd get triggered in my postinst, and then I should do:

2/ in debian/openstack-dashboard.postinst, implement something like:

if [ "$1" = "triggered" ] ; then
        /usr/share/openstack-dashboard/manage.py compress --force
fi

Is it *that* simple?

Cheers,

Thomas Goirand (zigo)


_______________________________________________
Pkg-javascript-devel mailing list
Pkg-javascript-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-javascript-devel

Reply via email to