mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-09 18:30:16 +00:00
Add PXC support to util/make-barebones.
This commit is contained in:
@@ -8,9 +8,18 @@
|
||||
set -x
|
||||
|
||||
tarball="$1"
|
||||
version=$(echo $tarball | awk -F'-' '{print $2}')
|
||||
full_dir=${tarball%".tar.gz"}
|
||||
|
||||
APP="${FORK:-"mysql"}"
|
||||
if [ $APP = "mysql" ]; then
|
||||
version=$(echo $tarball | awk -F'-' '{print $2}')
|
||||
elif [ $APP = "pxc" ]; then
|
||||
version=$(echo $tarball | awk -F'-' '{print $4}')
|
||||
else
|
||||
echo "Invalid FORK=$APP" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
tar xvfz "$tarball" \
|
||||
--wildcards \
|
||||
"$full_dir/COPYING" \
|
||||
@@ -29,7 +38,8 @@ tar xvfz "$tarball" \
|
||||
"$full_dir/bin/mysqldump" \
|
||||
"$full_dir/bin/mysqld" \
|
||||
"$full_dir/bin/mysqld_safe" \
|
||||
"$full_dir/bin/safe_mysqld"
|
||||
"$full_dir/bin/safe_mysqld" \
|
||||
"$full_dir/lib/libgalera_smm.so"
|
||||
|
||||
echo "This tarball was created from $tarball. It contains only the files necessary for creating a Percona Toolkit sandbox test server." > $full_dir/README.barebones
|
||||
|
||||
@@ -40,7 +50,7 @@ else
|
||||
arch="i386"
|
||||
fi
|
||||
|
||||
bare_dir="mysql-$version-$arch-barebones"
|
||||
bare_dir="$APP-$version-$arch-barebones"
|
||||
mv $full_dir $bare_dir
|
||||
tar cvfz $bare_dir.tar.gz $bare_dir
|
||||
rm -rf $bare_dir
|
||||
|
Reference in New Issue
Block a user