Created
June 8, 2016 12:31
-
-
Save hguemar/9e88d80d6b09cc3a1b523e0abb8eb7c7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
REPLICATION_HOME=/home/gerrit | |
MISSING_LOG=$REPLICATION_HOME/missing.log | |
MISSING_CONFIG=$REPLICATION_HOME/missing.config | |
for i in $REPLICATION_HOME/.ssh/*key; do | |
key=`basename $i` | |
project=${key//.key} | |
grep $project replication.config &>/dev/null || echo "missing project: $project" > $MISSING_LOG | |
echo "[remote \"${project#alias_gh_}\"]" >> $MISSING_CONFIG | |
echo " url = git@$PROJECT:rdo-packages/$project.git" >> $MISSING_CONFIG | |
echo " projects = openstack/${project#alias_gh_openstack}" >> $MISSING_CONFIG | |
done; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment