镜像自地址
https://github.com/tuna/tunasync.git
已同步 2025-12-07 06:56:47 +00:00
Merge branch 'master' of github.com:tuna/tunasync
这个提交包含在:
@@ -1,18 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
function sync_android() {
|
||||
cd $TUNASYNC_WORKING_DIR
|
||||
/usr/local/bin/android-repo sync -f
|
||||
}
|
||||
|
||||
function update_repo_config() {
|
||||
for repo in $(find $TUNASYNC_WORKING_DIR -type d -not -path "*/.repo/*" -name "*.git")
|
||||
do
|
||||
cd $repo
|
||||
echo $repo
|
||||
git config pack.threads 1
|
||||
done
|
||||
}
|
||||
|
||||
sync_android
|
||||
update_repo_config
|
||||
21
scripts/aosp.sh
可执行文件
21
scripts/aosp.sh
可执行文件
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
REPO=${REPO:-"/usr/local/bin/repo"}
|
||||
|
||||
function repo_init() {
|
||||
mkdir -p $TUNASYNC_WORKING_DIR
|
||||
cd $TUNASYNC_WORKING_DIR
|
||||
$REPO init -u https://android.googlesource.com/mirror/manifest --mirror
|
||||
}
|
||||
|
||||
function repo_sync() {
|
||||
cd $TUNASYNC_WORKING_DIR
|
||||
$REPO sync -f
|
||||
}
|
||||
|
||||
if [ ! -d "$TUNASYNC_WORKING_DIR/git-repo.git" ]; then
|
||||
echo "Initializing AOSP mirror"
|
||||
repo_init
|
||||
fi
|
||||
|
||||
repo_sync
|
||||
在新工单中引用
屏蔽一个用户