blob: fc856d28aba051bf3a88ce14f61f5abe6e9bfbe2 [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"
22branch="android-6.0"
23
24cd ../../../
25
26while read path;
27 do
28
29 project=`echo android_${path} | sed -e 's/\//\_/g'`
30
31 echo ""
32 echo "====================================================================="
33 echo " PROJECT: ${project} -> [ ${path}/ ]"
34 echo ""
35
36 cd $path;
37
38 echo " Pushing..."
39 echo " git push --no-thin ssh://${username}@${url}:${port}/${project} HEAD:refs/heads/${branch}"
40 git push --no-thin ssh://${username}@${url}:${port}/${project} HEAD:refs/heads/${branch}
41 echo ""
42
43 cd - > /dev/null
44
45done < vendor/omni/utils/omni-list