Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
d054d176
Unverified
Commit
d054d176
authored
Jul 27, 2019
by
Gregor Hartmann
Committed by
GitHub
Jul 27, 2019
Browse files
adapt sed calls for macOS
parent
825e3505
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/update_buildinfo.sh
View file @
d054d176
...
...
@@ -3,8 +3,8 @@
USER_MODULES_H
=
app/include/user_modules.h
COMMIT_ID
=
"
$(
git rev-parse HEAD
)
"
BRANCH
=
"
$(
git rev-parse
--abbrev-ref
HEAD |
sed
-
r
's/[\/\\]+/_/g'
)
"
RELEASE
=
"
$(
git describe
--tags
--long
|
sed
-
r
's/(.*)-(.*)-.*/\1 +\2/g'
|
sed
's/ +0$//'
)
"
BRANCH
=
"
$(
git rev-parse
--abbrev-ref
HEAD |
sed
-
E
's/[\/\\]+/_/g'
)
"
RELEASE
=
"
$(
git describe
--tags
--long
|
sed
-
E
's/(.*)-(.*)-.*/\1 +\2/g'
|
sed
's/ +0$//'
)
"
RELEASE_DTS
=
$(
TZ
=
UTC git show
--quiet
--date
=
format-local:
"%Y%m%d%H%M"
--format
=
"%cd"
HEAD
)
MODULES
=
$(
awk
'/^[ \t]*#define LUA_USE_MODULES/{modules=modules sep tolower(substr($2,17));sep=","}END{if(length(modules)==0)modules="-";print modules}'
$USER_MODULES_H
|
tr
-d
'\r'
)
...
...
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