SHA256
1
0
forked from pool/gsoap

Accepting request 76002 from home:jengelh:dev

The GSOAP libraries.

OBS-URL: https://build.opensuse.org/request/show/76002
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/gsoap?expand=0&rev=1
This commit is contained in:
Ismail Dönmez
2011-07-10 19:38:59 +00:00
committed by Git OBS Bridge
commit 35670cd99c
8 changed files with 349 additions and 0 deletions

37
sanitize_source.sh Normal file
View File

@@ -0,0 +1,37 @@
#!/bin/sh -x
#
# Shrink the gsoap archive from 11 MB -> 3 MB.
#
# Requires: fdupes hxtools
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;
version="2.8.3";
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";