Skip to content

Instantly share code, notes, and snippets.

@eshamster
Created June 20, 2018 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eshamster/2816fa3c1f03c2bcf1f4d52302763ecb to your computer and use it in GitHub Desktop.
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.
#!/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