File: fix-nqp-path-in-examples

package info (click to toggle)
nqp 2020.12%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 8,880 kB
  • sloc: java: 26,979; perl: 3,386; ansic: 450; makefile: 203; javascript: 68; sh: 1
file content (32 lines) | stat: -rw-r--r-- 655 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Description: Fix nqp path in examples
Author: dod
Applied-Upstream: NA
---
 examples/fib.nqp         | 2 +-
 examples/hello_world.nqp | 2 +-
 examples/loops.nqp       | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

--- a/examples/fib.nqp
+++ b/examples/fib.nqp
@@ -1,4 +1,4 @@
-#! nqp
+#!/usr/bin/nqp
 
 sub fib($n) {
     $n < 2 ?? $n !! fib($n-1) + fib($n - 2);
--- a/examples/hello_world.nqp
+++ b/examples/hello_world.nqp
@@ -1,3 +1,3 @@
-#!nqp
+#!/usr/bin/nqp
 
 say("Hello, awesome Not Quite Perl World!");
--- a/examples/loops.nqp
+++ b/examples/loops.nqp
@@ -1,4 +1,4 @@
-#! nqp
+#!/usr/bin/nqp
 # Example of a while loop
 
 my $i := 0;