Skip to content
This repository has been archived by the owner on Jul 19, 2020. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Added shell script helper to generate a new website.
  • Loading branch information
dcneiner committed Aug 8, 2010
1 parent 8585164 commit 2a07e1d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
@@ -1,2 +1,3 @@
site export-ignore
.gitattributes export-ignore
.gitignore export-ignore
23 changes: 23 additions & 0 deletions site
@@ -0,0 +1,23 @@
#!/usr/bin/env bash

# You can use this file via the command line, like this:
#
# ./site /path/to/new/site
#
# You may need to mark this script as executable before using it:
#
# chmod +x site
#
# Finally, you can move this file to /usr/bin to use the `site`
# command from any directory


# Create the directory
mkdir $1

# If you are moving the script from this directory
# be sure to uncomment the next line, and change the path
# cd ~/Development/html5-site-template

# Run the actual export
git archive master | tar -x -C $1

0 comments on commit 2a07e1d

Please sign in to comment.