Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
chain33-pai
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
szh
chain33-pai
Commits
cc8624f1
Commit
cc8624f1
authored
Apr 03, 2020
by
root
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add Makefile
parent
c7d696ba
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
1 deletion
+19
-1
Makefile
Makefile
+15
-0
go.mod
go.mod
+1
-0
go.sum
go.sum
+0
-0
version.go
pkg/app/version.go
+1
-1
version.sh
version.sh
+2
-0
No files found.
Makefile
View file @
cc8624f1
.PHONY
:
build clean tool lint help
.PHONY
:
build clean tool lint help
check
=
$(
shell
if
[
!
-d
"./build/"
]
;
then
mkdir
build
;
else
echo
"exist"
;
fi
;
)
version
=
$(
shell
./version.sh
)
tarfile
=
$(
shell
echo
"build/chain33-pai_
$(version)
.tar.gz"
|
sed
s/[[:space:]]//g
)
all
:
build
all
:
build
test
:
@
go build
-v
.
@
rm
-rf
build/chain33-pai
@
mkdir
build/chain33-pai
@
cp
chain33-pai build/chain33-pai
@
cp
*
.sh build/chain33-pai
@
cp
-r
scripts build/chain33-pai
@
chmod
+x build/chain33-pai/
*
.sh
@
chmod
+x build/chain33-pai/scripts/
*
.sh
@
tar
cvfpz
$(tarfile)
build/chain33-pai
@
echo
"ok"
build
:
build
:
@
go build
-v
.
@
go build
-v
.
tool
:
tool
:
go vet ./...
;
true
go vet ./...
;
true
gofmt
-w
.
gofmt
-w
.
...
...
go.mod
View file @
cc8624f1
...
@@ -4,6 +4,7 @@ go 1.13
...
@@ -4,6 +4,7 @@ go 1.13
require (
require (
github.com/33cn/chain33 v0.0.0-20200401084506-79a60df8a353
github.com/33cn/chain33 v0.0.0-20200401084506-79a60df8a353
github.com/33cn/plugin v0.0.0-20200401090725-74f0baacfc4e
github.com/360EntSecGroup-Skylar/excelize v1.4.1
github.com/360EntSecGroup-Skylar/excelize v1.4.1
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751
github.com/astaxie/beego v1.12.1
github.com/astaxie/beego v1.12.1
...
...
go.sum
View file @
cc8624f1
This diff is collapsed.
Click to expand it.
pkg/app/version.go
View file @
cc8624f1
package
app
package
app
const
version
=
"0.2.
0
"
const
version
=
"0.2.
1
"
func
GetVersion
()
string
{
func
GetVersion
()
string
{
return
version
return
version
...
...
version.sh
0 → 100755
View file @
cc8624f1
#!/bin/sh
cat
pkg/app/version.go |
grep
const |
awk
'{print $4}'
|
awk
-F
'"'
'{print $2}'
| xargs
echo
-n
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment