[gedit] [osx] Remove unnecessary files directly from find
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] [osx] Remove unnecessary files directly from find
- Date: Tue, 2 Sep 2014 17:03:52 +0000 (UTC)
commit 9c88958898b029226d8a03728a958201e7ac95ae
Author: Jesse van den Kieboom <jessevdk gmail com>
Date: Tue Sep 2 18:59:45 2014 +0200
[osx] Remove unnecessary files directly from find
osx/bundle/bundle | 17 +++--------------
1 files changed, 3 insertions(+), 14 deletions(-)
---
diff --git a/osx/bundle/bundle b/osx/bundle/bundle
index f9683c0..9e3a9ad 100755
--- a/osx/bundle/bundle
+++ b/osx/bundle/bundle
@@ -185,20 +185,9 @@ function cmd_make() {
echo "Removing unneeded files from bundle"
# Remove pyc and pyo files
- for i in $(find "$BUNDLE/Contents/Resources/lib/"* -type f -regex '.*\.py[oc]' 2>/dev/null); do
- rm -f "$i"
- done
-
- for i in $(find "$BUNDLE/Contents/Resources/lib/"* -type d -name '__pycache__' 2>/dev/null); do
- rmdir "$i" 2>/dev/null
- done
-
- for i in $(find "$BUNDLE/Contents/Resources/share/gedit/plugins/"* -type f -regex '.*\.py[oc]'
2>/dev/null); do
- rm -f "$i"
- done
-
- for i in $(find "$BUNDLE/Contents/Resources/share/gedit/plugins/"* -type d -name '__pycache__'
2>/dev/null); do
- rmdir "$i" 2>/dev/null
+ for d in lib share/gedit/plugins; do
+ find "$BUNDLE/Contents/Resources/$d/"* -type f -regex '.*\.py[oc]' -exec 'rm -f {}'
2>/dev/null
+ find "$BUNDLE/Contents/Resources/$d/"* -type d -name '__pycache__' -exec 'rmdir {}'
2>/dev/null
done
echo "Creating localized names..."
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]