Created
June 20, 2018 14:00
-
-
Save eshamster/2816fa3c1f03c2bcf1f4d52302763ecb to your computer and use it in GitHub Desktop.
A temporal script to (re)create an empty cl-web-2d-game project using template.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# A temporal script to (re)create an empty cl-web-2d-game project using template. | |
# This is used for developing the following project. | |
# https://github.com/eshamster/templates-cl-web-2d-game | |
set -eu | |
proj_name=templates-cl-web-2d-game | |
template_name=simple-cl-web-2d-game | |
sample_name=sample-clw2d | |
( | |
cd ~ | |
if [ ! -d ${proj_name} ] ; then | |
git clone git@github.com:eshamster/${proj_name}.git | |
fi | |
) | |
( | |
cd ~/${proj_name}/simple | |
ros template import | |
ros template checkout ${template_name} | |
) | |
( | |
cd ~/.roswell/local-projects | |
if [ -d ${sample_name} ]; then | |
rm -rf ${sample_name} | |
fi | |
ros init simple-cl-web-2d-game ${sample_name} \ | |
--license LLGPL \ | |
--description "This is a sample using cl-web-2d-game." | |
cd ${sample_name} | |
ros install qlot | |
qlot install | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment