We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2398ca9 commit 805a296Copy full SHA for 805a296
1 file changed
scripts/status.sh
@@ -0,0 +1,33 @@
1
+#!/bin/bash
2
+set -o errexit
3
+set -o errtrace
4
+set -o nounset
5
+
6
+trap '_es=${?};
7
+ printf "${0}: line ${LINENO}: \"${BASH_COMMAND}\"";
8
+ printf " exited with a status of ${_es}\n";
9
+ exit ${_es}' ERR
10
11
+DIR_SCRIPT="${0%/*}"
12
+DIR_TOP="$(python -c \
13
+ 'import os.path, sys; print(os.path.normpath(sys.argv[1]))' \
14
+ "${DIR_SCRIPT}/..")"
15
16
+REPOS='.
17
+python_src/cc.engine
18
+python_src/cc.i18n
19
+python_src/cc.license
20
+python_src/cc.licenserdf
21
+python_src/rdfadict'
22
23
+for _r in ${REPOS}
24
+do
25
+ _r="${DIR_TOP}/${_r}"
26
+ [[ -d ${_r} ]] || continue
27
+ pushd ${_r} >/dev/null
28
+ printf "\e[1m\e[7m %-40s\e[0m\n" ${PWD##*/}
29
+ git status
30
+ echo
31
32
+ popd >/dev/null
33
+done
0 commit comments