Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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