From ab1138ff59559ccbce95537475f2894a0705ef1d Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Thu, 16 Dec 2010 16:18:15 +0000 Subject: [PATCH] 2010-12-16 Miguel de Dios * DEBIAN/make_deb_package.sh: added source code for to delete ".svn" dirs when to make the deb package. Fixes: #3119594, #3115604 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3660 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 7 +++++++ pandora_console/DEBIAN/make_deb_package.sh | 21 +++++++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 9adb5b4d17..a6503d4b4d 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,10 @@ +2010-12-16 Miguel de Dios + + * DEBIAN/make_deb_package.sh: added source code for to delete ".svn" dirs + when to make the deb package. + + Fixes: #3119594, #3115604 + 2010-12-15 Miguel de Dios * pandoradb.sql, extras/pandoradb_migrate_v3.1_to_v3.2.sql: increment the diff --git a/pandora_console/DEBIAN/make_deb_package.sh b/pandora_console/DEBIAN/make_deb_package.sh index f015e0b917..bec221ba74 100644 --- a/pandora_console/DEBIAN/make_deb_package.sh +++ b/pandora_console/DEBIAN/make_deb_package.sh @@ -96,6 +96,27 @@ then rm -Rf temp_package/var/www/pandora_console/pandora_console.spec chmod 755 -R temp_package/DEBIAN touch temp_package/var/www/pandora_console/include/config.php + + + echo "Remove the SVN files and other temp files." + for item in `find temp_package` + do + echo -n "." + echo $item | grep "svn" > /dev/null + #last command success + if [ $? -eq 0 ] + then + rm -rf $item + fi + + echo $item | grep "make_deb_package.sh" > /dev/null + #last command success + if [ $? -eq 0 ] + then + rm -rf $item + fi + done + echo "END" echo "Calculate md5sum for md5sums package control file." for item in `find temp_package`