diff options
author | Hsieh Chin Fan <typebrook@gmail.com> | 2020-09-08 11:18:49 +0800 |
---|---|---|
committer | Hsieh Chin Fan <typebrook@gmail.com> | 2020-09-08 11:18:49 +0800 |
commit | 021d2df326adba6fe9c028d65d1445a28753773e (patch) | |
tree | bba8188ff9645a1abe445529016f58f5e276e704 /tools | |
parent | 4944344d5add3d8b8265deef39dd368d44873c1b (diff) |
update
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/init/check_upstream (renamed from tools/check_upstream) | 0 | ||||
-rwxr-xr-x | tools/init/load-settings.sh (renamed from tools/load-settings.sh) | 2 | ||||
-rwxr-xr-x | tools/init/sync.sh (renamed from tools/sync.sh) | 0 | ||||
-rwxr-xr-x | tools/install.sh | 12 | ||||
-rwxr-xr-x | tools/misc/diff-highlight (renamed from tools/diff-highlight) | 0 | ||||
-rw-r--r-- | tools/misc/mvt_decode.py (renamed from tools/mvt_decode.py) | 0 | ||||
-rwxr-xr-x | tools/misc/refresh-todo.sh (renamed from tools/refresh-todo.sh) | 0 |
7 files changed, 7 insertions, 7 deletions
diff --git a/tools/check_upstream b/tools/init/check_upstream index e9e8841..e9e8841 100755 --- a/tools/check_upstream +++ b/tools/init/check_upstream | |||
diff --git a/tools/load-settings.sh b/tools/init/load-settings.sh index 66ec879..041941a 100755 --- a/tools/load-settings.sh +++ b/tools/init/load-settings.sh | |||
@@ -25,7 +25,7 @@ OSM_UTIL_DIR=$SETTING_DIR/tools/osm | |||
25 | source $OSM_UTIL_DIR/osm | 25 | source $OSM_UTIL_DIR/osm |
26 | 26 | ||
27 | # sync with important git repos | 27 | # sync with important git repos |
28 | $SETTING_DIR/tools/sync.sh | 28 | $SETTING_DIR/tools/init/sync.sh |
29 | 29 | ||
30 | # go | 30 | # go |
31 | PATH=$PATH:$HOME/go/bin | 31 | PATH=$PATH:$HOME/go/bin |
diff --git a/tools/sync.sh b/tools/init/sync.sh index 00ed4b8..00ed4b8 100755 --- a/tools/sync.sh +++ b/tools/init/sync.sh | |||
diff --git a/tools/install.sh b/tools/install.sh index 0b59e28..c765c62 100755 --- a/tools/install.sh +++ b/tools/install.sh | |||
@@ -1,6 +1,6 @@ | |||
1 | #! /usr/bin/env bash | 1 | #! /usr/bin/env bash |
2 | 2 | ||
3 | set -e | 3 | set -xe |
4 | 4 | ||
5 | # Default settings | 5 | # Default settings |
6 | SETTING_DIR=${SETTING_DIR:-~/settings} | 6 | SETTING_DIR=${SETTING_DIR:-~/settings} |
@@ -16,12 +16,12 @@ if [ ! -d $SETTING_DIR ]; then | |||
16 | } | 16 | } |
17 | fi | 17 | fi |
18 | 18 | ||
19 | sed -i "\^# $REPO^, /^$/ d" $RCFILE | 19 | # Write initial commands into .bashrc or .zshrc |
20 | echo " | 20 | sed -i'.bak' "\^# $REPO^, /^$/ d" $RCFILE |
21 | cat >>$RCFILE <<EOF | ||
21 | # $REPO | 22 | # $REPO |
22 | export SETTING_DIR=$SETTING_DIR | 23 | export SETTING_DIR=$SETTING_DIR |
23 | source \$SETTING_DIR/tools/load-settings.sh | 24 | source \$SETTING_DIR/tools/init/load-settings.sh |
24 | " >> $RCFILE && \ | 25 | EOF |
25 | source $RCFILE | ||
26 | 26 | ||
27 | cd "$SETTING_DIR" && make | 27 | cd "$SETTING_DIR" && make |
diff --git a/tools/diff-highlight b/tools/misc/diff-highlight index 08c88bb..08c88bb 100755 --- a/tools/diff-highlight +++ b/tools/misc/diff-highlight | |||
diff --git a/tools/mvt_decode.py b/tools/misc/mvt_decode.py index 0f661dd..0f661dd 100644 --- a/tools/mvt_decode.py +++ b/tools/misc/mvt_decode.py | |||
diff --git a/tools/refresh-todo.sh b/tools/misc/refresh-todo.sh index 7931536..7931536 100755 --- a/tools/refresh-todo.sh +++ b/tools/misc/refresh-todo.sh | |||