-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More problem perl6 script into perl6-testing so we can get working bu…
…ilds back This breaks relative paths, but giving it full paths works fine
- Loading branch information
Showing
2 changed files
with
35 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,4 @@ | ||
#!/usr/bin/env bash | ||
#Get the directory you ran the script from | ||
IMAGE_PWD="$(pwd)" | ||
cd "$OWD" | ||
i=$(($#-1)) | ||
function argv { | ||
for a in ${BASH_ARGV[*]} ; do | ||
arg="$a" | ||
if [ "$APPIMAGE_DEBUG" ]; then echo $i; fi | ||
first_letter=$(printf %.1s "$arg") | ||
if [ $first_letter != '-' ]; then | ||
arg=$(readlink -f "$arg") | ||
fi | ||
NEWARGS[$i]="$arg" | ||
i=$((i-1)) | ||
done | ||
} | ||
argv | ||
function debug { | ||
for a in ${NEWARGS[*]} ; do | ||
echo $a | ||
done | ||
} | ||
if [ "$APPIMAGE_DEBUG" ]; then debug; fi | ||
|
||
cd "$IMAGE_PWD" | ||
exec ./bin/moar --execname="$APPIMAGE" --libpath="././share/nqp/lib" --libpath="././share/nqp/lib" \ | ||
--libpath="././share/perl6/lib" \ | ||
--libpath="././share/perl6/runtime" \ | ||
././share/perl6/runtime/perl6.moarvm \ | ||
"${NEWARGS[@]}" | ||
#!/bin/sh | ||
exec ./bin/moar --execname="$0" --libpath="././share/nqp/lib" \ | ||
--libpath="././share/nqp/lib" --libpath="././share/perl6/lib" \ | ||
--libpath="././share/perl6/runtime" ././share/perl6/runtime/perl6.moarvm "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/usr/bin/env bash | ||
#Get the directory you ran the script from | ||
IMAGE_PWD="$(pwd)" | ||
cd "$OWD" | ||
i=$(($#-1)) | ||
function argv { | ||
for a in ${BASH_ARGV[*]} ; do | ||
arg="$a" | ||
if [ "$APPIMAGE_DEBUG" ]; then echo $i; fi | ||
first_letter=$(printf %.1s "$arg") | ||
if [ $first_letter != '-' ]; then | ||
arg=$(readlink -f "$arg") | ||
fi | ||
NEWARGS[$i]="$arg" | ||
i=$((i-1)) | ||
done | ||
} | ||
argv | ||
function debug { | ||
for a in ${NEWARGS[*]} ; do | ||
echo $a | ||
done | ||
} | ||
if [ "$APPIMAGE_DEBUG" ]; then debug; fi | ||
|
||
cd "$IMAGE_PWD" | ||
exec ./bin/moar --execname="$APPIMAGE" --libpath="././share/nqp/lib" --libpath="././share/nqp/lib" \ | ||
--libpath="././share/perl6/lib" \ | ||
--libpath="././share/perl6/runtime" \ | ||
././share/perl6/runtime/perl6.moarvm \ | ||
"${NEWARGS[@]}" |