forked from doublechaintech/scm-biz-suite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreate.sh
25 lines (21 loc) · 1.04 KB
/
create.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# !/bin/bash
projectname="$1-biz-suite"
git clone https://github.com/philipgreat/client-biz-suite.git $projectname
rm -rf $projectname/.git
echo "$projectname" >> $projectname/projectname
echo "copying bizcore..........$projectname/bizcore/"
cp -Ra skynet-common-app-framework/* "$projectname/bizcore/"
echo "moving folder to upper structure...."
mv $projectname/bizcore/viewlayers/* $projectname/bizcore
mv $projectname/bizcore/statics/* $projectname/bizcore
echo "copying bizui..........to $projectname/bizui/"
cp -Ra skynet-react-framework/. "$projectname/bizui/"
rm -rf "$projectname/bizui/.git"
rm -rf "$projectname/bizui/src/axios/config.js"
rm -rf "$projectname/bizcore/.classpath"
rm -rf "$projectname/bizcore/.project"
echo "repalcing __project_name__ to $projectname in gitinit.sh"
sed -i -e "s/__project_name__/$projectname/g" $projectname/gitinit.sh
echo "repalcing __project_name__ to $projectname in deploy.sh"
sed -i -e "s/__project_name__/$projectname/g" $projectname/deploy.sh
echo "done....do not forget create an EMPTY git repository!!"