added script shortcuts for packaging
This commit is contained in:
parent
ea8a92de6e
commit
f2d17d830b
3 changed files with 18 additions and 1 deletions
8
package
Normal file
8
package
Normal 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
8
package.bat
Normal 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%
|
3
run.bat
3
run.bat
|
@ -5,4 +5,5 @@ for %%I in (.) do set CurrDirName=%%~nxI
|
|||
|
||||
cd ..
|
||||
@echo on
|
||||
dragonruby %CurrDirName%
|
||||
dragonruby %CurrDirName%
|
||||
EXIT /B
|
Loading…
Reference in a new issue