blob: b41177b8b2581ed29df44a7c9020b55035b412fc [file] [log] [blame]
Jake Whatley4e1248a2016-03-10 21:22:56 -05001#!/bin/bash
2#
3# Copyright (C) 2016 OmniROM Project
4#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16#
17echo -e "Enter the username"
18read username
19
20url="gerrit.omnirom.org"
21port="29418"
Alexander Diewald84cab3b2017-12-17 20:06:40 +010022branch="android-8.1"
Jake Whatley4e1248a2016-03-10 21:22:56 -050023
24cd ../../../
25
26while read path;
27 do
28
Humberto Borba5dc4c6e2018-02-03 00:34:23 -020029 project=`echo android_${path} | sed -e 's/\//\_/g'`;
30 if [ "${path}" == "build" ] ; then
31 path="build/make";
Humberto Borba3429f952017-09-08 10:49:37 -030032 fi
Jake Whatley4e1248a2016-03-10 21:22:56 -050033
34 echo ""
35 echo "====================================================================="
36 echo " PROJECT: ${project} -> [ ${path}/ ]"
37 echo ""
38
39 cd $path;
40
41 echo " Pushing..."
42 echo " git push --no-thin ssh://${username}@${url}:${port}/${project} HEAD:refs/heads/${branch}"
43 git push --no-thin ssh://${username}@${url}:${port}/${project} HEAD:refs/heads/${branch}
44 echo ""
45
46 cd - > /dev/null
47
Humberto Borba87dbab22016-07-28 19:05:13 -030048done < vendor/omni/utils/aosp-forked-list