Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
GStreamer
common
Commits
88e512ca
Commit
88e512ca
authored
Sep 29, 2019
by
Tim-Philipp Müller
🐠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update-readmes: extract version from meson.build
parent
f32031c0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
README
README
+2
-0
hooks/pre-commit.hook
hooks/pre-commit.hook
+1
-1
update-readmes
update-readmes
+3
-3
No files found.
README
View file @
88e512ca
...
...
@@ -22,6 +22,8 @@ You can subscribe to our mailing lists:
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Follow us on Twitter: https://twitter.com/GStreamer
We track bugs, feature requests and merge requests (patches) in GitLab at
https://gitlab.freedesktop.org/gstreamer/
...
...
hooks/pre-commit.hook
View file @
88e512ca
#!/bin/sh
#
# Check that the code follows a consist
a
nt code style
# Check that the code follows a consist
e
nt code style
#
# Check for existence of indent, and error out if not present.
...
...
update-readmes
View file @
88e512ca
...
...
@@ -7,13 +7,13 @@
README_FILES
=
"README README.static-linking MAINTAINERS"
if
[
!
-f
"common/update-readmes"
-o
!
-f
configure.ac
]
;
then
if
[
!
-f
"common/update-readmes"
-o
!
-f
meson_options.txt
]
;
then
echo
"Run ./common/update-readmes from the top-level source directory of a GStreamer module"
;
exit
1
;
fi
MAJOR_VERSION
=
`
grep
'^AC_INIT'
configure.ac
|
sed
-e
's/[^0-9]*\([0-9]\)\.\([0-9]*\).*/\1/'
`
MINOR_VERSION
=
`
grep
'^AC_INIT'
configure.ac
|
sed
-e
's/[^0-9]*\([0-9]\)\.\([0-9]*\).*/\2/'
`
MAJOR_VERSION
=
`
head
-n
5 meson.build |
grep
-e
'^\s*version\s*:'
|
sed
-e
"s%^
\s
*version
\s
*:
\s
*'%%"
-e
"s%',%%"
|
sed
-e
's/[^0-9]*\([0-9]\)\.\([0-9]*\).*/\1/'
`
MINOR_VERSION
=
`
head
-n
5 meson.build |
grep
-e
'^\s*version\s*:'
|
sed
-e
"s%^
\s
*version
\s
*:
\s
*'%%"
-e
"s%',%%"
|
sed
-e
's/[^0-9]*\([0-9]\)\.\([0-9]*\).*/\2/'
`
if
test
x
$MAJOR_VERSION
=
x
-o
x
$MINOR_VERSION
=
x
;
then
echo
"Failed to extract major/minor version"
;
...
...
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