added script shortcuts for packaging

This commit is contained in:
Gordon Pedersen 2023-05-08 15:28:12 +10:00
parent ea8a92de6e
commit f2d17d830b
3 changed files with 18 additions and 1 deletions

8
package Normal file
View file

@ -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}

8
package.bat Normal file
View file

@ -0,0 +1,8 @@
@echo off
cd /d %~dp0
for %%I in (.) do set CurrDirName=%%~nxI
cd ..
@echo on
dragonruby-publish --only-package %CurrDirName%

View file

@ -5,4 +5,5 @@ for %%I in (.) do set CurrDirName=%%~nxI
cd .. cd ..
@echo on @echo on
dragonruby %CurrDirName% dragonruby %CurrDirName%
EXIT /B