summaryrefslogtreecommitdiff
path: root/bin/gitcreate
diff options
context:
space:
mode:
authorMihai Moldovan <ionic@ionic.de>2015-02-24 01:06:16 +0100
committerMihai Moldovan <ionic@ionic.de>2015-02-24 01:06:16 +0100
commit6c5e73d9bc72381d873522636ecfc6eb3b04915c (patch)
treeaf4d25ea8092caf024d991c88fc3a64d88df624a /bin/gitcreate
parentf0da677d2ac2c8be7fe1300977252922bc1999f8 (diff)
downloadbuildscripts-6c5e73d9bc72381d873522636ecfc6eb3b04915c.tar.gz
buildscripts-6c5e73d9bc72381d873522636ecfc6eb3b04915c.tar.bz2
buildscripts-6c5e73d9bc72381d873522636ecfc6eb3b04915c.zip
bin/gitcreate: change tabs to spaces.
Diffstat (limited to 'bin/gitcreate')
-rwxr-xr-xbin/gitcreate24
1 files changed, 12 insertions, 12 deletions
diff --git a/bin/gitcreate b/bin/gitcreate
index bfceb21..72eb308 100755
--- a/bin/gitcreate
+++ b/bin/gitcreate
@@ -10,16 +10,16 @@ PREFIX=$(echo `basename $0` | cut -d"-" -f1)
. ~/.buildscripts/$PREFIX.conf
for pkg in "$@"; do
- subdir=$(dirname $pkg)/
- pkg=$(basename $pkg)
- ssh -l$GIT_USER $GIT_HOSTNAME "cd ~/git && ./setup-repository ${subdir}${pkg} '$pkg upstream project'"
- ssh -l$GIT_USER $GIT_HOSTNAME "cd ~/git && ./update-repository-posixacls ${subdir}${pkg}"
- test -d "$pkg" && cd "$pkg"
- echo "$pkg: MASTER BRANCH" && git push ssh://$GIT_USER@$GIT_HOSTNAME:$GIT_SSH_PORT/~/git/${subdir}${pkg} master
- git branch | grep upstream &>/dev/null && echo "$pkg: RELEASE BRANCH" && git push ssh://$GIT_USER@$GIT_HOSTNAME:$GIT_SSH_PORT/~/git/${subdir}${pkg} upstream
- git branch | grep pristine-tar &>/dev/null && echo "$pkg: PRISTINE-TAR" && git push ssh://$GIT_USER@$GIT_HOSTNAME:$GIT_SSH_PORT/~/git/${subdir}${pkg} pristine-tar
- echo "$pkg: PUSHING TAGS" && git push --tags ssh://$GIT_USER@$GIT_HOSTNAME:$GIT_SSH_PORT/~/git/${subdir}${pkg}
- git remote | grep origin >/dev/null || git remote add origin ssh://$GIT_USER@$GIT_HOSTNAME:$GIT_SSH_PORT/~/git/${subdir}${pkg}
- git remote add ${PREFIX}-public ssh://$GIT_USER@$GIT_HOSTNAME:$GIT_SSH_PORT/~/git/${subdir}${pkg}
- cd ..
+ subdir=$(dirname $pkg)/
+ pkg=$(basename $pkg)
+ ssh -l$GIT_USER $GIT_HOSTNAME "cd ~/git && ./setup-repository ${subdir}${pkg} '$pkg upstream project'"
+ ssh -l$GIT_USER $GIT_HOSTNAME "cd ~/git && ./update-repository-posixacls ${subdir}${pkg}"
+ test -d "$pkg" && cd "$pkg"
+ echo "$pkg: MASTER BRANCH" && git push ssh://$GIT_USER@$GIT_HOSTNAME:$GIT_SSH_PORT/~/git/${subdir}${pkg} master
+ git branch | grep upstream &>/dev/null && echo "$pkg: RELEASE BRANCH" && git push ssh://$GIT_USER@$GIT_HOSTNAME:$GIT_SSH_PORT/~/git/${subdir}${pkg} upstream
+ git branch | grep pristine-tar &>/dev/null && echo "$pkg: PRISTINE-TAR" && git push ssh://$GIT_USER@$GIT_HOSTNAME:$GIT_SSH_PORT/~/git/${subdir}${pkg} pristine-tar
+ echo "$pkg: PUSHING TAGS" && git push --tags ssh://$GIT_USER@$GIT_HOSTNAME:$GIT_SSH_PORT/~/git/${subdir}${pkg}
+ git remote | grep origin >/dev/null || git remote add origin ssh://$GIT_USER@$GIT_HOSTNAME:$GIT_SSH_PORT/~/git/${subdir}${pkg}
+ git remote add ${PREFIX}-public ssh://$GIT_USER@$GIT_HOSTNAME:$GIT_SSH_PORT/~/git/${subdir}${pkg}
+ cd ..
done