-
Notifications
You must be signed in to change notification settings - Fork 27
/
prepare.sh
executable file
·58 lines (40 loc) · 950 Bytes
/
prepare.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
50
51
52
53
54
55
56
#! /bin/bash
echo ":: clean release folder"
rm -rf release
mkdir release
echo ":: change to release folder"
cd release
echo "$(pwd)"
echo ":: cloning appifi repository"
git clone https://github.com/wisnuc/appifi.git
cd appifi
git rev-parse HEAD > .revision
cd -
echo ":: cloning appifi-release repository"
git clone https://github.com/wisnuc/appifi-release.git
rm -rf appifi/.git
mv appifi-release/.git appifi/.git
rm -rf appifi-release
mv appifi appifi-release
cd appifi-release
npm install
node_modules/.bin/webpack -p
mkdir -p build
npm run build
rm .gitignore
rm build/.gitignore
rm -rf docpress
rm -rf docs
rm -rf graph.sh
rm -rf prepare.sh
rm -rf markdown
rm -rf misc
rm -rf test
rm -rf src
rm -rf web
npm prune --production
git add *
git add .[!.]*
git config --global user.email "[email protected]"
git config --global user.name "lewis ma"
git commit -a -m "scripted commit on original appifi commit: $(cat .revision)"