Created
February 18, 2014 17:45
-
-
Save derekhubbard/9075897 to your computer and use it in GitHub Desktop.
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/sh | |
WORKING_DIR=work | |
# step 0 - clean up | |
if [ -d $WORKING_DIR ]; then | |
rm -rf $WORKING_DIR | |
fi | |
mkdir $WORKING_DIR | |
# step 1 - download zip | |
curl -L https://github.com/daytoncleancoders/projects/raw/master/commandline/command-line-kata.zip > $WORKING_DIR/command-line-kata.zip | |
#step 2 - extract zip | |
unzip $WORKING_DIR/command-line-kata.zip -d $WORKING_DIR | |
cd $WORKING_DIR/site | |
#step 3 - organize!!!! | |
mkdir css | |
find . -name *.css | xargs -I file mv file /css | |
#mv ./base.css css/ | |
mkdir js | |
find . -name *.js| xargs -I file mv file /js | |
mkdir img | |
find . -name *.png | xargs -I file mv file /img | |
# step 4 - start up | |
python -m SimpleHTTPServer 8000 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment