| <?php |
| /******************************************************************************* |
| * Copyright (c) 2010, 2012 Eclipse Foundation and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * Wayne Beaton (Eclipse Foundation)- initial API and implementation |
| *******************************************************************************/ |
| $path = '/gitroot/'; |
| $find="find $path -type d -name *.git | xargs -I '{}' git --git-dir={} rev-parse --git-dir 2> /dev/null"; |
| exec($find, $repositories); |
| |
| foreach($repositories as $repository) { |
| echo "$repository\n"; |
| } |
| |
| // Pull in a list of repostories |
| |
| // For each... |
| |
| // Grab the description file, remember the contents. |
| |
| // Build the probable Gerrit URL, test. If not 404, remember. |
| |
| // Build the probable GitHub URL, test. If not 404, remember. |
| |
| |
| ?> |