mising script
This commit is contained in:
parent
a59b2383fe
commit
3e1b09fbc8
1 changed files with 33 additions and 0 deletions
33
stripdocs.sh
Executable file
33
stripdocs.sh
Executable file
|
|
@ -0,0 +1,33 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ "$1" = "" ]; then
|
||||
echo usage $0 version
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -f mysql-connector-python-$1.tar.gz ]; then
|
||||
echo please download mysql-connector-python-$1.tar.gz
|
||||
echo http://dev.mysql.com/downloads/connector/python/
|
||||
exit 1
|
||||
fi
|
||||
|
||||
tdir=`mktemp -d tmpXXXXXX`
|
||||
pushd $tdir
|
||||
|
||||
echo -n "unpacking..."
|
||||
tar xzf ../mysql-connector-python-$1.tar.gz && echo " done"
|
||||
rm -rf mysql-connector-python-$1/docs/my*
|
||||
echo -n "packing..."
|
||||
tar cjf ../mysql-connector-python-$1-nodocs.tar.bz2 mysql-connector-python-$1 && echo " done"
|
||||
|
||||
echo -n "diffing..."
|
||||
tar tzf ../mysql-connector-python-$1.tar.gz | sort >before
|
||||
echo -n "..."
|
||||
tar tjf ../mysql-connector-python-$1-nodocs.tar.bz2 | sort >after
|
||||
|
||||
diff before after
|
||||
|
||||
popd
|
||||
echo "cleaning..."
|
||||
rm -rf $tdir
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue