Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
909e968e
Unverified
Commit
909e968e
authored
Jun 26, 2018
by
hackyminer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: make build/goimports.sh more potable
parent
46129188
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
goimports.sh
build/goimports.sh
+11
-11
No files found.
build/goimports.sh
View file @
909e968e
#!/
usr/bin/env ba
sh
#!/
bin/
sh
find_files
()
{
find
.
-not
\(
\
find
.
!
\(
\
\(
\
-
wholename
'.github'
\
-o
-
wholename
'./build/_workspace'
\
-o
-
wholename
'./build/bin'
\
-o
-
wholename
'./crypto/bn256'
\
-o
-
wholename
'*/vendor/*'
\
-
path
'.github'
\
-o
-
path
'./build/_workspace'
\
-o
-
path
'./build/bin'
\
-o
-
path
'./crypto/bn256'
\
-o
-
path
'*/vendor/*'
\
\)
-prune
\
\)
-name
'*.go'
}
GOFMT
=
"gofmt -s -w"
;
GOIMPORTS
=
"goimports -w"
;
find_files | xargs
$GOFMT
;
find_files | xargs
$GOIMPORTS
;
\ No newline at end of file
GOFMT
=
"gofmt -s -w"
GOIMPORTS
=
"goimports -w"
find_files | xargs
$GOFMT
find_files | xargs
$GOIMPORTS
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