forked from markkimsal/Metrof_FBConnect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mkzip.sh
49 lines (41 loc) · 2.39 KB
/
mkzip.sh
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
#!/bin/bash
mkdir build/
cd build
ln -sf ../LICENSE .
ln -sf ../INSTALL .
ln -sf ../README.txt README.txt
#simple install
mkdir -p 1.simple.install/
mkdir -p 1.simple.install/app/
mkdir -p 1.simple.install/app/code/local/Metrof/FBConnect/
mkdir -p 1.simple.install/app/design/frontend/default/default/layout/
mkdir -p 1.simple.install/app/design/frontend/default/default/template/
mkdir -p 1.simple.install/app/etc/modules
ln -sf ../../../../../Metrof_FBConnect.xml 1.simple.install/app/etc/modules/
ln -sf ../../../../../../../../design/frontend.layout/metrof_fbc.xml 1.simple.install/app/design/frontend/default/default/layout/
ln -sf ../../../../../../../../design/frontend.templates/fbconnect 1.simple.install/app/design/frontend/default/default/template/
#locale
ln -sf ../../../locale/ 1.simple.install/app/
#main module
ln -sf ../../../../../../../controllers 1.simple.install/app/code/local/Metrof/FBConnect/
ln -sf ../../../../../../../etc 1.simple.install/app/code/local/Metrof/FBConnect/
ln -sf ../../../../../../../design 1.simple.install/app/code/local/Metrof/FBConnect/
ln -sf ../../../../../../../Helper 1.simple.install/app/code/local/Metrof/FBConnect/
ln -sf ../../../../../../../Model 1.simple.install/app/code/local/Metrof/FBConnect/
ln -sf ../../../../../../../locale 1.simple.install/app/code/local/Metrof/FBConnect/
ln -sf ../../../../../../../Metrof_FBConnect.xml 1.simple.install/app/code/local/Metrof/FBConnect/
ln -sf ../../../../../../../sql 1.simple.install/app/code/local/Metrof/FBConnect/
mkdir -p 2.advanced.install/Metrof/FBConnect/
ln -sf ../../../../controllers 2.advanced.install/Metrof/FBConnect/
ln -sf ../../../../etc 2.advanced.install/Metrof/FBConnect/
ln -sf ../../../../design 2.advanced.install/Metrof/FBConnect/
ln -sf ../../../../Helper 2.advanced.install/Metrof/FBConnect/
ln -sf ../../../../Model 2.advanced.install/Metrof/FBConnect/
ln -sf ../../../../locale 2.advanced.install/Metrof/FBConnect/
ln -sf ../../../../sql 2.advanced.install/Metrof/FBConnect/
ln -sf ../../../../Metrof_FBConnect.xml 2.advanced.install/Metrof/FBConnect/
ln -sf ../../../../INSTALL 2.advanced.install/Metrof/FBConnect/
ln -sf ../../../../LICENSE 2.advanced.install/Metrof/FBConnect/
zip -r ../../../Metrof_FBConnect_magento-1.3.2.zip . -x "*~"
#cd ../../
#zip -r Metrof_FBConnect_magento-1.2.2.zip Metrof/FBConnect/ -x "Metrof/FBConnect/.git*" -x "*~" -x "Metrof/FBConnect/mkzip.sh" -x "Metrof/FBConnect/test_res.php"