diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..0a27dee --- /dev/null +++ b/build.sh @@ -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