-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmwf-setup.sh
executable file
·38 lines (34 loc) · 1.04 KB
/
mwf-setup.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
# _ _ _ _ _ ___
#| \_/ || | | || __|
#| \_/ || V V || _|
#|_| |_| \_n_/ |_|
#this file will create the path and required files to build your web site
function help(){
echo "%s -h : help"
echo "%s -simp : will create simple web plateform"
echo "%s -adv : will create advanced web plateform(MVC)"
}
function simple(){
echo "creating folders"
mkdir css #folder for css files
mkdir js #folder for js files
mkdir mwf #folder for mwf files
mkdir images #folder for images files
mkdir upload #folder for upload files
mkdir src #folder contain source code
cp /usr/lib/mwf/Template/css/bootstrap.min.css mwf/ #copie the bootstrap cssfile
cp /usr/lib/mwf/Examples/HelloWorld.cpp src/ #copie the cpp file
cp /usr/lib/mwf/Examples/hello.mw ./ #copie the index.mw
mv hello.mw index.mw #rename the file
cp /usr/lib/wmf/Required/htaccess ./ #copie the .htaccess file
mv htaccess .htaccess
}
function check_if_installed(){
return 0
}
if [ "$1" == "-h" ]; then
help
fi
if [ "$1" == "-simp" ]; then
simple
fi