Skip to content

Instantly share code, notes, and snippets.

@weatheredwatcher
Created September 19, 2013 20:15
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 weatheredwatcher/6629215 to your computer and use it in GitHub Desktop.
Save weatheredwatcher/6629215 to your computer and use it in GitHub Desktop.
Here is a basic shell script to create a new project based on lithium. Download then type: `sudo mv lithifyme.sh /usr/local/bin/lithifyme` or place it somewhere in your PATH so that you can execute it globally.
#!/bin/bash
# Lithifyme script.
# Creates a new project based on lithium.
# @Author David Duggins [weatheredwatcher@gmail.com]
# Released under the GPLv3
if [ ! -d "$1" ]; then
git clone git://github.com/UnionOfRAD/framework.git $1
echo "initializing submodules"
cd $1
git submodule init
git submodule update
echo "Done"
else
echo "Directory $1 already exists"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment