X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;ds=sidebyside;f=febootstrap-minimize.sh;h=15782f7926c0db2bcb1b76b2cdb926e9a978cbbf;hb=c0a9555e8559a0dbf432367f87c59c2a49520c99;hp=0004d03281dc47e0636ab50218bcc55743737310;hpb=4f144d5239fffa50ad28033252ab7e1011815928;p=febootstrap.git diff --git a/febootstrap-minimize.sh b/febootstrap-minimize.sh index 0004d03..15782f7 100755 --- a/febootstrap-minimize.sh +++ b/febootstrap-minimize.sh @@ -22,7 +22,7 @@ unset CDPATH TEMP=`getopt \ -o '' \ - --long help,all,none,keep-locales,drop-locales,keep-docs,drop-docs,keep-cracklib,drop-cracklib,keep-i18n,drop-i18n,keep-zoneinfo,drop-zoneinfo,keep-rpmdb,drop-rpmdb,keep-yum-cache,drop-yum-cache,keep-services,drop-services,keep-sln,drop-sln,keep-ldconfig,drop-ldconfig,no-pack-executables,pack-executables \ + --long help,all,none,keep-locales,drop-locales,keep-docs,drop-docs,keep-cracklib,drop-cracklib,keep-i18n,drop-i18n,keep-zoneinfo,drop-zoneinfo,keep-rpmdb,drop-rpmdb,keep-yum-cache,drop-yum-cache,keep-services,drop-services,keep-sln,drop-sln,keep-ldconfig,drop-ldconfig \ -n febootstrap-minimize -- "$@"` if [ $? != 0 ]; then echo "febootstrap-minimize: problem parsing the command line arguments" @@ -59,7 +59,6 @@ keep_yum_cache=yes } set_all -pack_executables=no usage () { @@ -135,12 +134,6 @@ while true; do --drop-ldconfig) keep_ldconfig=no shift;; - --no-pack-executables) - pack_executables=no - shift;; - --pack-executables) - pack_executables=yes - shift;; --help) usage exit 0;; @@ -286,18 +279,3 @@ if [ "$keep_ldconfig" != "yes" ]; then febootstrap-run "$target" -- rm -rf var/cache/ldconfig febootstrap-run "$target" -- mkdir -p --mode=0755 var/cache/ldconfig fi - -if [ "$pack_executables" = "yes" ]; then - # NB. Be careful to keep the same inode number, since fakeroot - # tracks files by inode number. - for path in $(find "$target" -type f -perm /111 | - xargs file | - grep executable | - awk -F: '{print $1}'); do - base=$(basename "$path") - cp "$path" "$tmpdir" - (cd "$tmpdir" && upx -q -q --best "$base") - cat "$tmpdir"/"$base" > "$path" - rm "$tmpdir"/"$base" - done -fi