You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2013/08/23 23:49:11 UTC
[05/14] git commit: initial structure
initial structure
Project: http://git-wip-us.apache.org/repos/asf/cordova-firefoxos/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-firefoxos/commit/fc89af5f
Tree: http://git-wip-us.apache.org/repos/asf/cordova-firefoxos/tree/fc89af5f
Diff: http://git-wip-us.apache.org/repos/asf/cordova-firefoxos/diff/fc89af5f
Branch: refs/heads/master
Commit: fc89af5f25e5efb8f772977fb6f3310f158e7324
Parents: 37ce2e7
Author: James Long <lo...@gmail.com>
Authored: Wed Aug 14 15:32:27 2013 -0400
Committer: Steven Gill <st...@gmail.com>
Committed: Fri Aug 23 14:31:21 2013 -0700
----------------------------------------------------------------------
bin/create | 12 ++++++++++++
bin/templates/project/foo | 1 +
2 files changed, 13 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-firefoxos/blob/fc89af5f/bin/create
----------------------------------------------------------------------
diff --git a/bin/create b/bin/create
new file mode 100755
index 0000000..8161907
--- /dev/null
+++ b/bin/create
@@ -0,0 +1,12 @@
+
+BUILD_PATH="$( cd "$( dirname "$0" )/.." && pwd )"
+VERSION=$(cat "$BUILD_PATH"/VERSION)
+PROJECT_PATH="${1:-'./example'}"
+
+if [ -d "$PROJECT_PATH" ]
+then
+ echo "Project already exists! Delete and recreate"
+ exit 1
+fi
+
+cp -r "`dirname $0`/templates/project" "$PROJECT_PATH"
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-firefoxos/blob/fc89af5f/bin/templates/project/foo
----------------------------------------------------------------------
diff --git a/bin/templates/project/foo b/bin/templates/project/foo
new file mode 100644
index 0000000..257cc56
--- /dev/null
+++ b/bin/templates/project/foo
@@ -0,0 +1 @@
+foo