Created
June 3, 2014 20:59
-
-
Save dave-burke/85d8c1dcdf686180b40e to your computer and use it in GitHub Desktop.
Create a new repository based on enyojs/bootplate, but with an empty history.
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/bash | |
PROJECT_NAME=${1} | |
ENYO_VERSION=${2} | |
ENYO_GIT=https://github.com/enyojs | |
if [[ -z ${PROJECT_NAME} ]]; then | |
echo "First arg should be project name" | |
exit 1 | |
fi | |
if [[ -z ${ENYO_VERSION} ]]; then | |
echo "Second arg should be Enyo version (submodule tag)" | |
exit 1 | |
fi | |
git clone ${ENYO_GIT}/bootplate.git ${PROJECT_NAME} | |
cd ${PROJECT_NAME} | |
rm -rf .git enyo lib/* | |
git init | |
git submodule add ${ENYO_GIT}/enyo.git enyo | |
git submodule add ${ENYO_GIT}/onyx.git lib/onyx | |
git submodule add ${ENYO_GIT}/layout.git lib/layout | |
git submodule foreach git checkout ${ENYO_VERSION} | |
#git commit -m "Initial commit" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment