[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[linterna-magica-commit] [271] Run the entire code in the scope of an an
From: |
Ivaylo Valkov |
Subject: |
[linterna-magica-commit] [271] Run the entire code in the scope of an anonymous self invoking function. |
Date: |
Sat, 21 Apr 2012 08:38:10 +0000 |
Revision: 271
http://svn.sv.gnu.org/viewvc/?view=rev&root=linterna-magica&revision=271
Author: valkov
Date: 2012-04-21 08:38:09 +0000 (Sat, 21 Apr 2012)
Log Message:
-----------
Run the entire code in the scope of an anonymous self invoking function.
Work-around for the Scriptish userscripts extension. Fixes bugs #35996.
Ticket Links:
------------
http://savannah.gnu.org/bugs/?35996
Modified Paths:
--------------
trunk/Makefile
Modified: trunk/Makefile
===================================================================
--- trunk/Makefile 2012-04-21 08:07:16 UTC (rev 270)
+++ trunk/Makefile 2012-04-21 08:38:09 UTC (rev 271)
@@ -164,7 +164,9 @@
$(SED) -e \
's/^\/\/\s*/LinternaMagica.prototype.copyrights.push\(\"/g' -e \
's/$$/\"\);\n/g'`";\
+ echo "(function(){" >> $@;\
$(CAT) $(STRIPCOMMENTS) >> $@;\
+ echo "})();" >> $@;\
$(SED) -i -e 's/@VERSION@/$(VERSION)/g' $@;\
tmp="`$(MKTEMP)`";\
rights_up_cut="`$(CAT) $@ | $(GREP) -n $(PUSHCOPYRIGHTLINE) |$(HEAD)
-n 1| $(CUT) -d':' -f1`";\
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [linterna-magica-commit] [271] Run the entire code in the scope of an anonymous self invoking function.,
Ivaylo Valkov <=