[Libreoffice-commits] dev-tools.git: bibisect/buildReleasesRepository.sh

Xisco Fauli (via logerrit) logerrit at kemper.freedesktop.org
Mon Oct 28 15:31:45 UTC 2019


 bibisect/buildReleasesRepository.sh |   10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

New commits:
commit a16cb416bb45992be120de3c092d9653379b47ca
Author:     Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Mon Oct 28 16:25:05 2019 +0100
Commit:     Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Mon Oct 28 16:30:09 2019 +0100

    Use git add -A instead
    
    thanks to Miklos

diff --git a/bibisect/buildReleasesRepository.sh b/bibisect/buildReleasesRepository.sh
index 464db2d..b0d7705 100755
--- a/bibisect/buildReleasesRepository.sh
+++ b/bibisect/buildReleasesRepository.sh
@@ -36,18 +36,16 @@ do
     mv $rootDir/$name/DEBS/opt/$folder/* $rootDir/$name/DEBS/opt/
     rm -r $rootDir/$name/DEBS/opt/$folder
     rm $rootDir/$name/DEBS/*.deb
-    echo "*** Removing unneeded files"
-    cd ${targetDir}
-    LANG=C diff -qr ${rootDir}/$name/DEBS/opt ${targetDir}/opt | grep -w "Only in ${targetDir}/opt" | sed -r -e 's/^.*Only in //' -e 's@: @/@' | xargs git rm -r
-    echo "*** Moving files to bibisect/"
-    cd $rootDir
+    echo "*** Cleaning destination"
+    rm -rf ${targetDir}/opt/
+    echo "*** Moving files to destination"
     cp -rf $rootDir/$name/DEBS/* ${targetDir}/
     echo "*** Removing files in origin"
     rm -rf $name
     cd ${targetDir}
     par1=libreoffice-$input
     echo "*** Creating commit $par1"
-    git add opt/
+    git add -A opt/
     git commit . -m $par1 -m $file
     git clean -ffxd
     git tag -d $par1


More information about the Libreoffice-commits mailing list