Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
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
Linshizhi
ffmpeg.wasm-core
Commits
f318ee3e
Commit
f318ee3e
authored
Oct 06, 2010
by
Mans Rullgard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix quoting in version.sh
parent
daed21a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
version.sh
version.sh
+10
-10
No files found.
version.sh
View file @
f318ee3e
...
...
@@ -2,32 +2,32 @@
# check for SVN revision number
revision
=
$(
cd
"
$1
"
&&
cat
snapshot_version 2> /dev/null
)
test
$revision
||
revision
=
$(
cd
"
$1
"
&&
LC_ALL
=
C svn info 2> /dev/null |
grep
"Last Changed Rev"
|
cut
-d
' '
-f4
)
test
$revision
||
revision
=
$(
cd
"
$1
"
&&
grep
committed-rev .svn/entries 2>/dev/null |
head
-n
1 |
cut
-d
'"'
-f2
)
test
$revision
||
revision
=
$(
cd
"
$1
"
&&
sed
-n
-e
'/^dir$/{n
test
"
$revision
"
||
revision
=
$(
cd
"
$1
"
&&
LC_ALL
=
C svn info 2> /dev/null |
grep
"Last Changed Rev"
|
cut
-d
' '
-f4
)
test
"
$revision
"
||
revision
=
$(
cd
"
$1
"
&&
grep
committed-rev .svn/entries 2>/dev/null |
head
-n
1 |
cut
-d
'"'
-f2
)
test
"
$revision
"
||
revision
=
$(
cd
"
$1
"
&&
sed
-n
-e
'/^dir$/{n
p
q
}'
.svn/entries 2>/dev/null
)
test
$revision
&&
revision
=
SVN-r
$revision
test
"
$revision
"
&&
revision
=
SVN-r
$revision
# check for git svn revision number
if
!
test
$revision
;
then
if
!
test
"
$revision
"
;
then
revision
=
$(
cd
"
$1
"
&&
git svn find-rev HEAD 2> /dev/null
)
test
$revision
&&
revision
=
git-svn-r
$revision
test
"
$revision
"
&&
revision
=
git-svn-r
$revision
fi
# check for git short hash
if
!
test
$revision
;
then
if
!
test
"
$revision
"
;
then
revision
=
$(
cd
"
$1
"
&&
git describe
--always
2> /dev/null
)
test
$revision
&&
revision
=
git-
$revision
test
"
$revision
"
&&
revision
=
git-
$revision
fi
# no revision number found
test
$revision
||
revision
=
UNKNOWN
test
"
$revision
"
||
revision
=
UNKNOWN
# releases extract the version number from the VERSION file
version
=
$(
cd
"
$1
"
&&
cat
VERSION 2> /dev/null
)
test
$version
||
version
=
$revision
test
"
$version
"
||
version
=
$revision
test
-n
"
$3
"
&&
version
=
$version
-
$3
...
...
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