From f2d17d830b271513f37908f02f1ed538639f5a82 Mon Sep 17 00:00:00 2001 From: Gordon Pedersen Date: Mon, 8 May 2023 15:28:12 +1000 Subject: [PATCH] added script shortcuts for packaging --- package | 8 ++++++++ package.bat | 8 ++++++++ run.bat | 3 ++- 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 package create mode 100644 package.bat diff --git a/package b/package new file mode 100644 index 0000000..389228d --- /dev/null +++ b/package @@ -0,0 +1,8 @@ +#!/bin/sh +cd "`dirname "$0"`" + +result=${PWD##*/} # to assign to a variable +result=${result:-/} # to correct for the case where PWD=/ + +cd .. +exec ./dragonruby-publish --only-package ${result} \ No newline at end of file diff --git a/package.bat b/package.bat new file mode 100644 index 0000000..00d3efa --- /dev/null +++ b/package.bat @@ -0,0 +1,8 @@ +@echo off +cd /d %~dp0 + +for %%I in (.) do set CurrDirName=%%~nxI + +cd .. +@echo on +dragonruby-publish --only-package %CurrDirName% \ No newline at end of file diff --git a/run.bat b/run.bat index 4d38924..bfa317a 100644 --- a/run.bat +++ b/run.bat @@ -5,4 +5,5 @@ for %%I in (.) do set CurrDirName=%%~nxI cd .. @echo on -dragonruby %CurrDirName% \ No newline at end of file +dragonruby %CurrDirName% +EXIT /B \ No newline at end of file