From 1e44c2497fbe933967ab5267567d1cbd846bc9d4 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Tue, 6 Jan 2015 14:03:36 +0100 Subject: install: use submodules to handle foreign repositories it is probably safer to use git submodules to handle foreign repositories like VimperatorrcBuilder Signed-off-by: Olivier Gayot --- .gitmodules | 3 +++ install.sh | 5 +++-- mods/VimperatorrcBuilder | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .gitmodules create mode 160000 mods/VimperatorrcBuilder diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..4846a62 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "mods/VimperatorrcBuilder"] + path = mods/VimperatorrcBuilder + url = https://github.com/duskCoder/VimperatorrcBuilder.git diff --git a/install.sh b/install.sh index 1b9aa4b..22f0cf4 100755 --- a/install.sh +++ b/install.sh @@ -7,9 +7,10 @@ fi case "$1" in user) - git clone https://github.com/duskCoder/VimperatorrcBuilder.git tmp && + mod="mods/VimperatorrcBuilder" + git submodule update -i --remote "$mod" && ( - python tmp/example.py > user/.vimperatorrc + python "$mod/example.py" > "user/.vimperatorrc" ) rm -rf tmp echo "installing the user configuration..." diff --git a/mods/VimperatorrcBuilder b/mods/VimperatorrcBuilder new file mode 160000 index 0000000..2da20b8 --- /dev/null +++ b/mods/VimperatorrcBuilder @@ -0,0 +1 @@ +Subproject commit 2da20b8577d9c178a0fc4d9601a6472b82be05e6 -- cgit v1.2.3