forked from m-lab/package
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsliceversion.sh
More file actions
executable file
·35 lines (30 loc) · 954 Bytes
/
Copy pathsliceversion.sh
File metadata and controls
executable file
·35 lines (30 loc) · 954 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
# NOTE:
# sliceversion.sh
# sliceversion.sh prints verbose version information for all repositories
# used by a slice-support repository including itself in $SOURCE_DIR.
#
# Defaults:
# SOURCE_DIR - if SOURCE_DIR is not set below it defaults to $PWD
#
# Env:
# SOURCE_DIR - set from environment.
# i.e. SOURCE_DIR=/some/path/to/source ./package/sliceversion.sh
#
# TODO: make this better; handle svn, create urls, make it more easily parsable.
SOURCE_DIR=${SOURCE_DIR:-$PWD}
cd $SOURCE_DIR
set -e
echo "git remote show origin ; git log -n 1"
git remote show origin
git log -n 1
echo "git submodule foreach 'git remote show origin ; git log -n 1 '"
git submodule foreach 'git remote show origin ; git log -n 1 '
if test -f svn-submodules ; then
echo "SVN-submodules:"
cat svn-submodules
fi
if test -f tar-archives ; then
echo "TAR-archives:"
cat tar-archives
fi