summaryrefslogtreecommitdiff
path: root/bibisect/buildReleasesRepository.sh
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2019-10-24 23:10:23 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2019-10-25 12:31:00 +0200
commitc6ddc1916db97255e7a6ab0584a942fcec326894 (patch)
treec2d206a6b2c29a093c88b65f5de1a6f36e4ff8bf /bibisect/buildReleasesRepository.sh
parent431ed2f4b4c047b79bd1ed4b2d8f22dbc808743c (diff)
Diff new and old folders, remove files no longer needed
Diffstat (limited to 'bibisect/buildReleasesRepository.sh')
-rwxr-xr-xbibisect/buildReleasesRepository.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/bibisect/buildReleasesRepository.sh b/bibisect/buildReleasesRepository.sh
index d89fe4b..464db2d 100755
--- a/bibisect/buildReleasesRepository.sh
+++ b/bibisect/buildReleasesRepository.sh
@@ -36,9 +36,10 @@ do
mv $rootDir/$name/DEBS/opt/$folder/* $rootDir/$name/DEBS/opt/
rm -r $rootDir/$name/DEBS/opt/$folder
rm $rootDir/$name/DEBS/*.deb
- echo "*** Moving files to bibisect/"
+ echo "*** Removing unneeded files"
cd ${targetDir}
- git rm -r opt/
+ 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
cp -rf $rootDir/$name/DEBS/* ${targetDir}/
echo "*** Removing files in origin"