Skip to content

Instantly share code, notes, and snippets.

@derekhubbard
Created February 18, 2014 17:45
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 derekhubbard/9075897 to your computer and use it in GitHub Desktop.
Save derekhubbard/9075897 to your computer and use it in GitHub Desktop.
#!/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