seed r196 - in trunk: doc/tutorial-standalone examples/ide/legacy examples/lightsoff extensions tests



Author: hortont
Date: Sat Nov  8 05:44:16 2008
New Revision: 196
URL: http://svn.gnome.org/viewvc/seed?rev=196&view=rev

Log:
Switched to /usr/bin/env seed instead of /usr/local/bin/seed



Modified:
   trunk/doc/tutorial-standalone/1.js
   trunk/doc/tutorial-standalone/2.js
   trunk/doc/tutorial-standalone/3.js
   trunk/doc/tutorial-standalone/tutorial.html
   trunk/examples/ide/legacy/ide.js
   trunk/examples/ide/legacy/toolbar.js
   trunk/examples/lightsoff/lightsoff.js
   trunk/extensions/Seed.js
   trunk/tests/constructor-args.js
   trunk/tests/gerror.js
   trunk/tests/signal-expects.js
   trunk/tests/signal-this.js
   trunk/tests/signal-userdata.js

Modified: trunk/doc/tutorial-standalone/1.js
==============================================================================
--- trunk/doc/tutorial-standalone/1.js	(original)
+++ trunk/doc/tutorial-standalone/1.js	Sat Nov  8 05:44:16 2008
@@ -1,4 +1,4 @@
-#!/usr/local/bin/seed
+#!/usr/bin/env seed
 
 Seed.import_namespace("Gtk");
 Gtk.init(null, null);

Modified: trunk/doc/tutorial-standalone/2.js
==============================================================================
--- trunk/doc/tutorial-standalone/2.js	(original)
+++ trunk/doc/tutorial-standalone/2.js	Sat Nov  8 05:44:16 2008
@@ -1,4 +1,4 @@
-#!/usr/local/bin/seed
+#!/usr/bin/env seed
 
 Seed.import_namespace("Gtk");
 Seed.import_namespace("WebKit");

Modified: trunk/doc/tutorial-standalone/3.js
==============================================================================
--- trunk/doc/tutorial-standalone/3.js	(original)
+++ trunk/doc/tutorial-standalone/3.js	Sat Nov  8 05:44:16 2008
@@ -1,4 +1,4 @@
-#!/usr/local/bin/seed
+#!/usr/bin/env seed
 
 Seed.import_namespace("Gtk");
 Seed.import_namespace("WebKit");

Modified: trunk/doc/tutorial-standalone/tutorial.html
==============================================================================
--- trunk/doc/tutorial-standalone/tutorial.html	(original)
+++ trunk/doc/tutorial-standalone/tutorial.html	Sat Nov  8 05:44:16 2008
@@ -78,7 +78,7 @@
 <div class="section">Beginning Seed</div>
 <p>It makes sense to start our exploration with a program you're probably quite familiar with:</p>
 <pre>
-#!/usr/local/bin/seed
+#!/usr/bin/env seed
 
 Seed.print("Hello, world!");
 </pre>
@@ -86,7 +86,7 @@
 <pre>
 Hello, world!
 </pre>
-<p>In order to make the file executable, include (<code>#!/usr/local/bin/seed</code>) at the top of every Seed program you write. This is known as the <em>shebang line</em>, and tells your shell where to find the <code>seed</code> interpreter; I'm only going to include it when listing a whole file, from now on.</p>
+<p>In order to make the file executable, include (<code>#!/usr/bin/env seed</code>) at the top of every Seed program you write. This is known as the <em>shebang line</em>, and tells your shell where to find the <code>seed</code> interpreter; I'm only going to include it when listing a whole file, from now on.</p>
 <p>Variables in Javascript are not given any <em>type</em>, and conversion between different kinds of values is automatic and painless. For example, you can:</p>
 <ul>
 <li>Add two strings <code>("Hello, " + "World!")</code> turns into <code>"Hello, World!"</code></li>
@@ -140,7 +140,7 @@
 <p>Combining <code>readline</code>, <code>eval</code>, exceptions, and <code>print</code>, we can write a simple shell, allowing interactive use of Seed. This shell is included in the Seed distribution, in <code>examples/repl.js</code>. Looking at the source, you'll note that it takes very little code to implement a shell:</p>
 <div class="filename">examples/repl.js</div>
 <pre>
-#!/usr/local/bin/seed
+#!/usr/bin/env seed
 
 while(1)
 {
@@ -161,7 +161,7 @@
 <p>Once the library has been imported, all of its functions are available on a global object with the same name as the library. For example, if we <code>Seed.import_namespace("Gtk")</code>, all of the imported functions are available on the Gtk object: <code><a href="http://library.gnome.org/devel/gtk/2.14/gtk-General.html#gtk-init";>Gtk.init()</a></code>, etc.</p>
 <p>Let's start off the development of our browser by getting Gtk working. It takes very little to get a window displayed with Seed:</p>
 <pre>
-#!/usr/local/bin/seed
+#!/usr/bin/env seed
 
 Seed.import_namespace("Gtk");
 Gtk.init(null, null);

Modified: trunk/examples/ide/legacy/ide.js
==============================================================================
--- trunk/examples/ide/legacy/ide.js	(original)
+++ trunk/examples/ide/legacy/ide.js	Sat Nov  8 05:44:16 2008
@@ -1,4 +1,4 @@
-#!/usr/local/bin/seed
+#!/usr/bin/env seed
 
 Seed.import_namespace("Vte");
 Seed.import_namespace("Gtk");

Modified: trunk/examples/ide/legacy/toolbar.js
==============================================================================
--- trunk/examples/ide/legacy/toolbar.js	(original)
+++ trunk/examples/ide/legacy/toolbar.js	Sat Nov  8 05:44:16 2008
@@ -114,7 +114,7 @@
     this.terminal.reset(true, true);
     this.terminal.fork_command("/bin/dash");
     
-    var command = "clear ; /usr/local/bin/seed \"" + this.filename + "\" ; sleep 1d\n";
+    var command = "clear ; /usr/bin/env seed \"" + this.filename + "\" ; sleep 1d\n";
     
     this.terminal.feed_child(command, command.length);
 }

Modified: trunk/examples/lightsoff/lightsoff.js
==============================================================================
--- trunk/examples/lightsoff/lightsoff.js	(original)
+++ trunk/examples/lightsoff/lightsoff.js	Sat Nov  8 05:44:16 2008
@@ -1,4 +1,4 @@
-#!/usr/local/bin/seed
+#!/usr/bin/env seed
 Seed.import_namespace("Gtk");
 
 image_off = new Gtk.Image({"file": "./tim-off.svg"});

Modified: trunk/extensions/Seed.js
==============================================================================
--- trunk/extensions/Seed.js	(original)
+++ trunk/extensions/Seed.js	Sat Nov  8 05:44:16 2008
@@ -1,4 +1,4 @@
-#!/usr/local/bin/seed
+#!/usr/bin/env seed
 
 Seed.sprintf = function ()
 {

Modified: trunk/tests/constructor-args.js
==============================================================================
--- trunk/tests/constructor-args.js	(original)
+++ trunk/tests/constructor-args.js	Sat Nov  8 05:44:16 2008
@@ -1,4 +1,4 @@
-#!/usr/local/bin/seed
+#!/usr/bin/env seed
 // Returns: 0
 // STDIN:
 // STDOUT:Constructor expects 1 argument, got 2\nConstructor expects object as argument
@@ -31,4 +31,4 @@
 catch (e)
 {
 	Seed.print(e.message);
-}
\ No newline at end of file
+}

Modified: trunk/tests/gerror.js
==============================================================================
--- trunk/tests/gerror.js	(original)
+++ trunk/tests/gerror.js	Sat Nov  8 05:44:16 2008
@@ -1,4 +1,4 @@
-#!/usr/local/bin/seed
+#!/usr/bin/env seed
 // Returns: 0
 // STDIN:
 // STDOUT:GIoError Error opening file .* Is a directory

Modified: trunk/tests/signal-expects.js
==============================================================================
--- trunk/tests/signal-expects.js	(original)
+++ trunk/tests/signal-expects.js	Sat Nov  8 05:44:16 2008
@@ -1,4 +1,4 @@
-#!/usr/local/bin/seed
+#!/usr/bin/env seed
 // Returns: 0
 // STDIN:
 // STDOUT:In signal
@@ -14,4 +14,4 @@
 
 w = new Gtk.Window();
 w.signal.map.connect(expects_test);
-w.show();
\ No newline at end of file
+w.show();

Modified: trunk/tests/signal-this.js
==============================================================================
--- trunk/tests/signal-this.js	(original)
+++ trunk/tests/signal-this.js	Sat Nov  8 05:44:16 2008
@@ -1,4 +1,4 @@
-#!/usr/local/bin/seed
+#!/usr/bin/env seed
 // Returns: 0
 // STDIN:
 // STDOUT:\{"Hello":"World"\}
@@ -14,4 +14,4 @@
 
 w = new Gtk.Window();
 w.signal.map.connect(this_test, {Hello: "World"});
-w.show();
\ No newline at end of file
+w.show();

Modified: trunk/tests/signal-userdata.js
==============================================================================
--- trunk/tests/signal-userdata.js	(original)
+++ trunk/tests/signal-userdata.js	Sat Nov  8 05:44:16 2008
@@ -1,4 +1,4 @@
-#!/usr/local/bin/seed
+#!/usr/bin/env seed
 // Returns: 0
 // STDIN:
 // STDOUT:\{"Hello":"World"\}
@@ -14,4 +14,4 @@
 
 w = new Gtk.Window();
 w.signal.map.connect(userdata_test, null, {Hello: "World"});
-w.show();
\ No newline at end of file
+w.show();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]