Rename NIC feature
[releng/builder.git] / jjb / autorelease / include-raw-generate-project-report.sh
1 #!/bin/bash
2 # @License EPL-1.0 <http://spdx.org/licenses/EPL-1.0>
3 ##############################################################################
4 # Copyright (c) 2015 The Linux Foundation and others.
5 #
6 # All rights reserved. This program and the accompanying materials
7 # are made available under the terms of the Eclipse Public License v1.0
8 # which accompanies this distribution, and is available at
9 # http://www.eclipse.org/legal/epl-v10.html
10 ##############################################################################
11
12 GIT_REPORT_FILE=$REPORT_DIR/git-report.log
13
14 mkdir $REPORT_DIR
15 touch $GIT_REPORT_FILE
16
17 projects=`grep path .gitmodules | sed 's/.*= //' | sort`
18 for p in $projects; do
19     echo "" >> $GIT_REPORT_FILE
20     echo "========" >> $GIT_REPORT_FILE
21     echo "$p" >> $GIT_REPORT_FILE
22     echo "========" >> $GIT_REPORT_FILE
23     echo "" >> $GIT_REPORT_FILE
24
25     cd $WORKSPACE/$p
26     git log --after="1 week ago" | sed 'sX^    Change-Id: X    -> https://git.opendaylight.org/gerrit/r/X' >> $GIT_REPORT_FILE
27     cd $WORKSPACE
28 done