Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add a script to help maintain a new XOCom activity.

  • Loading branch information...
commit 1c68a40fb393809788aa9cd68f66145cdbc1faf1 1 parent 808000a
Luke Closs authored

Showing 1 changed file with 22 additions and 0 deletions. Show diff stats Hide diff stats

  1. +22 0 xocom-activity-skeleton
22 xocom-activity-skeleton
... ... @@ -0,0 +1,22 @@
  1 +#!/bin/bash
  2 +set -e
  3 +
  4 +echo "This will download the XOCom sources to your current directory."
  5 +echo
  6 +echo "Hit Ctrl-C to cancel, enter to continue."
  7 +read
  8 +
  9 +if [ ! -d web ]; then
  10 + echo "Creating initial directory structure"
  11 + mkdir web
  12 + echo "Hello World" > web/index.html
  13 +fi
  14 +
  15 +echo "Updating XOCom libraries"
  16 +for f in XOCom.py web/xo.js; do
  17 + echo "--> Fetching $f"
  18 + if [ ! -e $f ]; then
  19 + wget -O $f "http://github.com/lukec/xocom/tree/master%2F$f?raw=true"
  20 + fi
  21 +done
  22 +

0 comments on commit 1c68a40

Please sign in to comment.
Something went wrong with that request. Please try again.