repo.or.cz
/
AROS.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
- Added support for standard 32-bit images.
[AROS.git]
/
scripts
/
svnrev.sh
blob
06a42e41d0944906d47685bb7e846aef00ff424b
1
#!/bin/sh
2
#
3
# get svn revision via svn or via git
4
#
5
6
if
test -d
$1
/
.svn
;
then
7
svn info
$1
|
sed
-n
's/Revision: //p'
8
else
9
if
test -d
$1
/
.git
;
then
10
cd
$1
11
git log
-1
|
grep
git-svn-id |
sed
's|.*@\(.*\) .*|\1|'
12
else
13
echo
"NoRev"
14
fi
15
fi