2011-07-10 21:38:59 +02:00
|
|
|
#!/bin/sh -x
|
|
|
|
#
|
2012-09-04 06:04:37 +02:00
|
|
|
# Shrink the gsoap archive from 18 MB -> 7 MB.
|
2011-07-10 21:38:59 +02:00
|
|
|
#
|
2013-02-28 23:51:41 +01:00
|
|
|
# Requires: fdupes, hxtools
|
2011-07-10 21:38:59 +02:00
|
|
|
|
|
|
|
if ! which fdupes >/dev/null; then
|
|
|
|
echo "fdupes not installed.";
|
|
|
|
exit 1;
|
|
|
|
fi;
|
|
|
|
if ! which fduphl >/dev/null; then
|
|
|
|
echo "hxtools:fduphl not installed.";
|
|
|
|
exit 1;
|
|
|
|
fi;
|
|
|
|
|
2013-02-28 23:51:41 +01:00
|
|
|
version="2.8.14";
|
2011-07-10 21:38:59 +02:00
|
|
|
shortver="2.8"; # agh...
|
|
|
|
|
|
|
|
rm -Rf "gsoap-$shortver" "gsoap-$version";
|
|
|
|
unzip "gsoap_$version.zip";
|
|
|
|
|
|
|
|
# Someone failed at sane version number tagging.
|
|
|
|
mv "gsoap-$shortver" "gsoap-$version";
|
|
|
|
|
|
|
|
# Remove executables, backups.
|
|
|
|
rm -Rf "gsoap-$version/gsoap/bin" \
|
|
|
|
"gsoap-$version/samples/link++/xmas" \
|
|
|
|
"gsoap-$version"/*.old \
|
|
|
|
"gsoap-$version/autom4te.cache";
|
|
|
|
find "gsoap-$version" -type f "(" \
|
|
|
|
-iname "*.exe" -o -iname "*.dll" -o -name "*.o" -o \
|
|
|
|
-name "*~" ")" -delete;
|
|
|
|
fduphl "gsoap-$version";
|
|
|
|
echo Now...
|
|
|
|
find "gsoap-$version" -print0 | sort -z | \
|
|
|
|
tar -T- --null --owner=root --group=root --no-recur --use=xz \
|
|
|
|
-cvf "gsoap-$version.tar.xz";
|