2019-09-18 23:43:01 +00:00
|
|
|
#! /bin/bash
|
|
|
|
|
|
|
|
PROJECT_NAME="${1}"
|
|
|
|
PROJECT_PATH="${2:-${USER}}"
|
|
|
|
|
|
|
|
echo "Creating project ${PROJECT_NAME}..."
|
|
|
|
mkdir ../"${PROJECT_NAME}"
|
|
|
|
pushd ../"${PROJECT_NAME}"
|
|
|
|
|
|
|
|
echo "Setting up repository..."
|
|
|
|
git init
|
2019-09-23 13:13:44 +00:00
|
|
|
git remote add github "git@github.com:${PROJECT_PATH}/${PROJECT_NAME}.git"
|
|
|
|
git remote add gitlab "git@git.apextoaster.com:${PROJECT_PATH}/${PROJECT_NAME}.git"
|
2019-09-18 23:43:01 +00:00
|
|
|
|
|
|
|
echo "Setting up template..."
|
|
|
|
popd
|
|
|
|
./scripts/project-update.sh "../${PROJECT_NAME}"
|