Commit 9c889588 authored by Jesse van den Kieboom's avatar Jesse van den Kieboom

[osx] Remove unnecessary files directly from find

parent 1b973c88
......@@ -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..."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment