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