ajout du script de build pour git-repo

This commit is contained in:
2022-12-22 20:53:55 +01:00
parent bb515a1f54
commit 73f1c32e15

21
build.sh Executable file
View File

@@ -0,0 +1,21 @@
#!/bin/bash
if [ ! -d ".git" ]; then
git init
git add manifest.xml
git commit -m "add/update manifest.xml"
fi
# test si il y a des modifs du manifest
git diff-index --quiet HEAD --
if [ $? -eq 1 ]; then
git add manifest.xml
git commit -m "add/update manifest.xml"
fi
if [ ! -d ".repo" ]; then
# initialisation de la base des repos GIT
/usr/bin/repo init -u . -m manifest.xml --repo-url=https://git.nas.benserv.fr/mirrors/git-repo.git
fi
# synchronisation de la base des repos GIT
/usr/bin/repo sync