Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
ffmpeg
Commits
7f6d9b30
Commit
7f6d9b30
authored
Aug 16, 2009
by
Måns Rullgård
Browse files
version.sh: use standard sed syntax
Originally committed as revision 19655 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
9b734d44
Changes
1
Hide whitespace changes
Inline
Side-by-side
version.sh
View file @
7f6d9b30
...
...
@@ -4,7 +4,10 @@
revision
=
$(
cat
snapshot_version 2> /dev/null
)
test
$revision
||
revision
=
$(
cd
"
$1
"
&&
LC_ALL
=
C svn info 2> /dev/null |
grep
Revision |
cut
-d
' '
-f2
)
test
$revision
||
revision
=
$(
cd
"
$1
"
&&
grep
revision .svn/entries 2>/dev/null |
cut
-d
'"'
-f2
)
test
$revision
||
revision
=
$(
cd
"
$1
"
&&
sed
-n
-e
'/^dir$/{n;p;q}'
.svn/entries 2>/dev/null
)
test
$revision
||
revision
=
$(
cd
"
$1
"
&&
sed
-n
-e
'/^dir$/{n
p
q
}'
.svn/entries 2>/dev/null
)
test
$revision
&&
revision
=
SVN-r
$revision
# check for git short hash
...
...
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