build: Add privateremote
helper
Change-Id: I8f406d397914836ac1ac12a50f56263cfcf85b55
This commit is contained in:
@@ -322,6 +322,22 @@ function githubremote()
|
|||||||
echo "Remote 'github' created"
|
echo "Remote 'github' created"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function privateremote()
|
||||||
|
{
|
||||||
|
if ! git rev-parse --git-dir &> /dev/null
|
||||||
|
then
|
||||||
|
echo ".git directory not found. Please run this from the root directory of the Android repository you wish to set up."
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
git remote rm private 2> /dev/null
|
||||||
|
local REMOTE=$(git config --get remote.github.projectname)
|
||||||
|
|
||||||
|
local PROJECT=$(echo $REMOTE | sed -e "s#https://github.com/##g")
|
||||||
|
|
||||||
|
git remote add private git@github.com:$PROJECT.git
|
||||||
|
echo "Remote 'private' created"
|
||||||
|
}
|
||||||
|
|
||||||
function installboot()
|
function installboot()
|
||||||
{
|
{
|
||||||
if [ ! -e "$OUT/recovery/root/system/etc/recovery.fstab" ];
|
if [ ! -e "$OUT/recovery/root/system/etc/recovery.fstab" ];
|
||||||
|
@@ -15,6 +15,7 @@ Additional LineageOS functions:
|
|||||||
- aospremote: Add git remote for matching AOSP repository.
|
- aospremote: Add git remote for matching AOSP repository.
|
||||||
- cloremote: Add git remote for matching CodeLinaro repository.
|
- cloremote: Add git remote for matching CodeLinaro repository.
|
||||||
- githubremote: Add git remote for LineageOS Github.
|
- githubremote: Add git remote for LineageOS Github.
|
||||||
|
- privateremote: Add git remote for Github with ssh access.
|
||||||
- mka: Alias to "m".
|
- mka: Alias to "m".
|
||||||
- mkap: Builds the module(s) using mka and pushes them to the device.
|
- mkap: Builds the module(s) using mka and pushes them to the device.
|
||||||
- cmka: Cleans and builds using mka.
|
- cmka: Cleans and builds using mka.
|
||||||
|
Reference in New Issue
Block a user