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%
|
1
run.bat
1
run.bat
|
@ -6,3 +6,4 @@ for %%I in (.) do set CurrDirName=%%~nxI
|
|||
cd ..
|
||||
@echo on
|
||||
dragonruby %CurrDirName%
|
||||
EXIT /B
|
Loading…
Reference in a new issue