-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgit.sh
More file actions
42 lines (32 loc) · 737 Bytes
/
git.sh
File metadata and controls
42 lines (32 loc) · 737 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
35
36
37
38
39
40
41
#!/bin/bash
SCRIPT_DIR=`dirname $BASH_SOURCE{0}`
SCRIPT_HOME=`readlink -f $SCRIPT_DIR`
function git_do {
NAME=$1
if [ ! -d "$SCRIPT_HOME/sources/$NAME" ]; then
return
fi
shift
echo "------------------------------"
echo "# -- $NAME"
git -C $SCRIPT_HOME/sources/$NAME "$@"
}
NAME=$1
if [ -d "$SCRIPT_HOME/sources/$NAME" ]; then
shift
git_do $NAME "$@"
else
# for dir in `ls $SCRIPT_HOME/sources`; do
# git_do "$dir" "$@"
# done
git_do kernel "$@"
git_do file-systems "$@"
git_do drivers-pc "$@"
git_do drivers-misc "$@"
git_do libc "$@"
git_do lgfx "$@"
git_do gum "$@"
git_do utils "$@"
git_do krish "$@"
git_do desktop "$@"
fi