contrib/oot.sh: the name is optional (if guessable from the reponame)
authorJean Privat <jean@pryen.org>
Mon, 7 May 2018 15:53:48 +0000 (11:53 -0400)
committerJean Privat <jean@pryen.org>
Mon, 7 May 2018 17:57:09 +0000 (13:57 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

contrib/oot.sh
contrib/oot.txt

index 351e69d..2864c6a 100755 (executable)
@@ -40,7 +40,8 @@ shift
 
 while read -r repo name; do
        [[ "$repo" = "#"* ]] && continue
-       [[ "$name" = "" ]] && continue
+       [[ "$repo" = "" ]] && continue
+       [[ "$name" = "" ]] && name=`basename "$repo" .git`
        dir="oot/$name"
        case "$cmd" in
                list) echo "$name";;
index 46e720b..311aa57 100644 (file)
@@ -1,9 +1,9 @@
 # List of out-of-tree repositories
 # Format: repo name
-https://github.com/R4PaSs/brewnit.git brewnit
-https://gitlab.com/xymus/darpg.git darpg
-https://gitlab.com/jeremlvt/dawn_arrival.git dawn_arrival
+https://github.com/R4PaSs/brewnit.git
+https://gitlab.com/xymus/darpg.git
+https://gitlab.com/jeremlvt/dawn_arrival.git
 https://github.com/Morriar/Missions.git missions
 https://gitlab.com/Heavyshield/NitGains.git nitgains
 https://github.com/ppepos/pep8-dbg.git pep8dbg
-https://gitlab.com/xymus/sputnit.git sputnit
+https://gitlab.com/xymus/sputnit.git