-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnew
More file actions
executable file
·64 lines (47 loc) · 2.04 KB
/
Copy pathnew
File metadata and controls
executable file
·64 lines (47 loc) · 2.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/bin/sh
command -v lein >/dev/null || { echo "Checking for lein... NOT PRESENT\n\nPlease install lein and try again:\n1. Download this script - http://github.com/technomancy/leiningen/raw/stable/bin/lein\n2. Place it on your path and chmod it to be executable." ; exit -1; }
command -v git >/dev/null || { echo "Checking for git... NOT PRESENT\n\nPlease install git and try again." ; exit -1; }
echo Creating new project apps/$1
#create project
mkdir -p apps
cd apps
lein new $1
cd $1
#pull in project template files (i.e. a gitignore and merge-checkout-deps script)
cp -R ../../etc/new-project-template/* .
cp -R ../../etc/new-project-template/.* .
#initialise repo
git init
git add .
git commit -m "initial commit"
#add submodule projects
mkdir checkouts
git submodule add git://github.com/overtone/overtone-gui.git checkouts/overtone-gui
git submodule add git://github.com/overtone/overtone.git checkouts/overtone
git submodule add git://github.com/improcess/clj-monome-serial.git checkouts/monome-serial
git submodule add git://github.com/improcess/polynome.git checkouts/polynome
git submodule add git://github.com/improcess/overtone-contrib.git checkouts/overtone-contrib
git submodule add git://github.com/improcess/space-navigator.git checkouts/space-navigator
git add .
git commit -m "add subprojects as submodules"
#pull in and merge all checkout deps
./merge-checkout-deps.rb
#make submodule origin writable for dev purposes
cd checkouts/overtone
git remote rm origin
git remote add origin git@github.com:overtone/overtone.git
cd ../overtone-gui
git remote rm origin
git remote add origin git@github.com:overtone/overtone-gui.git
cd ../monome-serial
git remote rm origin
git remote add origin git@github.com:improcess/clj-monome-serial.git
cd ../polynome
git remote rm origin
git remote add origin git@github.com:improcess/polynome.git
cd ../overtone-contrib
git remote rm origin
git remote add origin git@github.com:improcess/overtone-contrib.git
cd ../space-navigator
git remote rm origin
git remote add origin git@github.com:improcess/space-navigator.git