-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from antony-jr/reduce_size
Purge unwanted files and binaries.
- Loading branch information
Showing
3 changed files
with
45 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/usr/bin/env bash | ||
# The MIT License. | ||
# Copyright (C) 2018 Antony Jr. | ||
# ------------------------------- | ||
# Purges unwanted files from | ||
# the AppDir to reduce size. | ||
# ------------------------------- | ||
|
||
# We already compiled so no dev-packages. | ||
rm -rf AppDir/usr/include | ||
|
||
# Remove unwanted binaries. | ||
rm -rf AppDir/usr/bin/addr2line \ | ||
AppDir/usr/bin/c++filt \ | ||
AppDir/usr/bin/gdb \ | ||
AppDir/usr/bin/gprof \ | ||
AppDir/usr/bin/ld \ | ||
AppDir/usr/bin/objcopy \ | ||
AppDir/usr/bin/readelf \ | ||
AppDir/usr/bin/strip \ | ||
AppDir/usr/bin/ar \ | ||
AppDir/usr/bin/elfedit \ | ||
AppDir/usr/bin/gdb-add-index \ | ||
AppDir/usr/bin/ld.bfd \ | ||
AppDir/usr/bin/objdump \ | ||
AppDir/usr/bin/size \ | ||
AppDir/usr/bin/as \ | ||
AppDir/usr/bin/gcore \ | ||
AppDir/usr/bin/gdbserver \ | ||
AppDir/usr/bin/nm \ | ||
AppDir/usr/bin/ranlib \ | ||
AppDir/usr/bin/strings | ||
|
||
# Remove ubuntu specific files | ||
# Just in case | ||
rm -rf AppDir/usr/x86_64-pc-linux-gnu \ | ||
AppDir/usr/lib/x86_64-linux-gnu | ||
|
||
# Remove unwanted doc files and locales | ||
rm -rf AppDir/usr/share/doc \ | ||
AppDir/usr/share/man \ | ||
AppDir/usr/share/info \ | ||
AppDir/usr/share/locale | ||
|