File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change 1+ # /bin/bash
2+
3+ echo " OhZff Zff Install Script"
4+ echo ' >> Install Zff...'
5+ echo ' -> (0/3) Prepare...'
6+ mkdir -p ~ /.tmp-zff
7+ mkfir -p /usr/share/ohzff-zff
8+ cd ~ /.tmp-zff
9+
10+ echo ' -> (1/4) Clone repo from GitHub:ohzff/Zff...'
11+ git clone https://github.com/ohzff/Zff.git
12+ cd Zff
13+
14+ echo ' -> (2/4) Compiling...'
15+ g++ ./zff_main_en.cpp -o zff
16+
17+ echo ' -> (3/4) Coping files...'
18+ cp ./zff /usr/bin/zff
19+ cp -r ./* /usr/share/ohzff-zff/
20+
21+ echo ' -> (4/4) This step have done.'
22+ echo ' >> Check Install'
23+ echo ' -> (0/1) Check files...'
24+ isok=0
25+ if [ ! -f /usr/bin/zff ]; then
26+ isok=1
27+ echo ' Warning: zff is not found!'
28+ fi
29+ if [ ! -d /usr/share/ohzff-zff ]; then
30+ isok=1
31+ echo ' Warning: ohzff-zff is not found!'
32+ fi
33+
34+ echo ' -> (1/1) Checked.'
35+
36+ if [ $isok == 0 ]; then
37+ echo ' >> Installed Ohzff Zff.'
38+ else
39+ echo ' >> Install Ohzff Zff failed, returned value 1.'
40+ exit 1
41+ fi
42+
You can’t perform that action at this time.
0 commit comments