From 4ec436fdce1666d8a377b0ae1c2e8c91b64446d0 Mon Sep 17 00:00:00 2001 From: Shivansh-007 Date: Fri, 2 Apr 2021 03:39:46 +0530 Subject: [PATCH] pkg(pony-0.39.0): Setup compile script. --- packages/ponylang/0.39.0/compile | 4 ++++ packages/ponylang/0.39.0/run | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 packages/ponylang/0.39.0/compile diff --git a/packages/ponylang/0.39.0/compile b/packages/ponylang/0.39.0/compile new file mode 100644 index 0000000..a412613 --- /dev/null +++ b/packages/ponylang/0.39.0/compile @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +# Compile pony file(s) +ponyc -b out \ No newline at end of file diff --git a/packages/ponylang/0.39.0/run b/packages/ponylang/0.39.0/run index f7645d1..8ac647b 100644 --- a/packages/ponylang/0.39.0/run +++ b/packages/ponylang/0.39.0/run @@ -1,3 +1,6 @@ #!/bin/bash -ponyc "$@" \ No newline at end of file +# removes the first arg from $@, which is always the filename +shift +# runs the executable with whatever args are left in $@ +./out "$@" \ No newline at end of file