diff options
Diffstat (limited to 'bin/nwt-gitcreate')
-rwxr-xr-x | bin/nwt-gitcreate | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/bin/nwt-gitcreate b/bin/nwt-gitcreate new file mode 100755 index 0000000..98ce7b6 --- /dev/null +++ b/bin/nwt-gitcreate @@ -0,0 +1,16 @@ +#!/bin/bash + +set -e + +for pkg in "$@"; do + subdir=$(dirname $pkg)/ + pkg=$(basename $pkg) + ssh -lnwt code.das-netzwerkteam.de "cd ~/git && ./setup-repository $subdir/$pkg '$pkg upstream project'" + ssh -lnwt code.das-netzwerkteam.de "cd ~/git && ./update-repository-posixacls $subdir/$pkg" + test -d "$pkg" && cd "$pkg" + echo "$pkg: MASTER BRANCH" && git push ssh://nwt@code.das-netzwerkteam.de:32032/~/git/${subdir}${pkg}.git master + git branch | grep upstream &>/dev/null && echo "$pkg: RELEASE BRANCH" && git push ssh://nwt@code.das-netzwerkteam.de:32032/~/git/${subdir}${pkg}.git upstream + git branch | grep pristine-tar &>/dev/null && echo "$pkg: PRISTINE-TAR" && git push ssh://nwt@code.das-netzwerkteam.de:32032/~/git/${subdir}${pkg}.git pristine-tar + echo "$pkg: PUSHING TAGS" && git push --tags ssh://nwt@code.das-netzwerkteam.de:32032/~/git/${subdir}${pkg}.git + cd .. +done |