~ubuntu-branches/ubuntu/vivid/nqp/vivid-proposed

« back to all changes in this revision

Viewing changes to debian/patches/01_fix-example-interpreter-not-absolute.patch

  • Committer: Package Import Robot
  • Author(s): Alessandro Ghedini
  • Date: 2012-04-19 17:57:00 UTC
  • Revision ID: package-import@ubuntu.com-20120419175700-pra15qjbv69x7724
Tags: 0.1~2012.01-3
* Add 04_fix-dyncall-armel-arch.patch (fix FTBFS on armel)
* Explicitly set --with-parrot on configure (should fix FTBFS on mips)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: Use absolute interpreter in examples
 
2
Origin: vendor
 
3
Forwarded: not-needed
 
4
Author: Alessandro Ghedini <ghedo@debian.org>
 
5
Reviewed-by: Alessandro Ghedini <ghedo@debian.org>
 
6
Last-Update: 2012-04-10
 
7
 
 
8
--- a/examples/fib.nqp
 
9
+++ b/examples/fib.nqp
 
10
@@ -1,4 +1,4 @@
 
11
-#! nqp
 
12
+#!/usr/bin/nqp
 
13
 
 
14
 sub fib($n) {
 
15
     $n < 2 ?? $n !! fib($n-1) + fib($n - 2);
 
16
--- a/examples/hello_world.nqp
 
17
+++ b/examples/hello_world.nqp
 
18
@@ -1,3 +1,3 @@
 
19
-#!nqp
 
20
+#!/usr/bin/nqp
 
21
 
 
22
 say("Hello, awesome Not Quite Perl 6 World!");
 
23
--- a/examples/json.nqp
 
24
+++ b/examples/json.nqp
 
25
@@ -1,4 +1,4 @@
 
26
-#! nqp
 
27
+#!/usr/bin/nqp
 
28
 
 
29
 # A JSON compiler written in NQP.  To use this compiler, first
 
30
 # precompile the code to PIR, then run that:
 
31
--- a/examples/load_bytecode.nqp
 
32
+++ b/examples/load_bytecode.nqp
 
33
@@ -1,4 +1,4 @@
 
34
-#!nqp
 
35
+#!/usr/bin/nqp
 
36
 
 
37
 pir::load_bytecode('PGE.pbc');
 
38
 say("Loaded Parrot Grammar Engine");
 
39
--- a/examples/loops.nqp
 
40
+++ b/examples/loops.nqp
 
41
@@ -1,4 +1,4 @@
 
42
-#! nqp
 
43
+#!/usr/bin/nqp
 
44
 # Example of a while loop
 
45
 
 
46
 my $i := 0;