-
Notifications
You must be signed in to change notification settings - Fork 221
/
mvc.sh
19 lines (19 loc) · 937 Bytes
/
mvc.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
# cp mmPromise/mm*.js ../todomvc/examples/avalon/bower_components/oniui/mmPromise -rf
# cp mmRouter/mm*.js ../todomvc/examples/avalon/bower_components/oniui/mmRouter -rf
# cp avalon.js ../todomvc/examples/avalon/bower_components/oniui
# cp ../todomvc/examples/avalon/bower_components/todomvc* mmRouter/ -rf
# cp ../todomvc/examples/avalon/index.html mmRouter/avalon.mmRouter.ex8.html -f
# cp ../todomvc/examples/avalon/js mmRouter/ -rf
# cp ../todomvc/learn.json mmRouter/ -f
cd mmRouter
# sed -i "s/bower_components\///g" avalon.mmRouter.ex8.html
# sed -i "s/oniui\//..\//g" avalon.mmRouter.ex8.html
# sed -i "s/..\/..\/js/mmRouter\/js/g" avalon.mmRouter.ex8.html
# sed -i "s/..\/..\/js/mmRouter\/js/g" js/app.js
cp -rf ../mmPromise/mmPromise.js ../../mmRouter/
cp -rf mm*.js ../../mmRouter/
cp -rf README.md ../../mmRouter/
cd ../../mmRouter/
sed -i .tmp "s/..\/mmPromise\///g" mm*.js
sed -i .tmp "s/mmRouter\///g" mm*.js