mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 21:42:35 +01:00
ac22cdc577
- cleanup: removed obsolete support-files/MacOSX/make_mysql_pkg.pl script (we now use Do-pkg for building OS X packages) BitKeeper/deleted/.del-.cvsignore~4c7a1f88a5a62a24: Delete: NEW-RPMS/.cvsignore BitKeeper/deleted/.del-make_mysql_pkg.pl~caac82eb901cc206: Delete: support-files/MacOSX/make_mysql_pkg.pl netware/BUILD/compile-linux-tools: - removed reference to the NEW-RPMS directory netware/BUILD/compile-netware-END: - removed reference to the NEW-RPMS directory netware/BUILD/compile-netware-src: - removed reference to the NEW-RPMS directory
35 lines
689 B
Bash
35 lines
689 B
Bash
#! /bin/sh
|
|
|
|
# debug
|
|
#set -x
|
|
|
|
# stop on errors
|
|
set -e
|
|
|
|
if test ! -r ./sql/mysqld.cc
|
|
then
|
|
echo "you must start from the top source directory"
|
|
exit 1
|
|
fi
|
|
|
|
path=`dirname $0`
|
|
|
|
# clean
|
|
if test -e "Makefile"; then
|
|
make -k clean;
|
|
make -k distclean;
|
|
fi
|
|
|
|
# remove other files
|
|
rm -f */.deps/*.P
|
|
rm -rf Makefile.in.bk
|
|
|
|
# zip source
|
|
files=`pwd | sed -e "s/.*\\\(mysql-.*\)/\1/"`
|
|
file=`pwd | sed -e "s/.*\\mysql-\(.*\)/mysql-src-\1-pc-netware-i686/"`
|
|
cd ..
|
|
if test -e "$file.zip"; then rm -f $file.zip; fi
|
|
zip -r $file.zip $files -x \*.zip -x \*.tar.gz
|
|
if test -e "./$files/$file.zip"; then mv -f ./$files/$file.zip ./$files/$file.zip.old; fi
|
|
mv -f $file.zip ./$files/$file.zip
|
|
|