summaryrefslogtreecommitdiff
path: root/scripts/make_binary_distribution.sh
diff options
context:
space:
mode:
authorunknown <monty@mysql.com>2004-05-25 22:01:50 +0300
committerunknown <monty@mysql.com>2004-05-25 22:01:50 +0300
commitb287ca53d0b97265478283e4226f5dafb5496ca4 (patch)
treef5abb32f436bbc05db102bf322757f4a03aaa850 /scripts/make_binary_distribution.sh
parentb2882fd4f5401fdc9a1aab57de758848e9831f2e (diff)
parentb3851363ba8df0b3f55ecb358849a212db4b12a8 (diff)
downloadmariadb-git-b287ca53d0b97265478283e4226f5dafb5496ca4.tar.gz
Merge bk-internal.mysql.com:/home/bk/mysql-4.0
into mysql.com:/tmp/skr99/mysql-4.0 client/mysqltest.c: Auto merged configure.in: Auto merged include/my_global.h: Auto merged myisam/myisam_ftdump.c: Auto merged scripts/make_binary_distribution.sh: Auto merged sql/mysqld.cc: Auto merged
Diffstat (limited to 'scripts/make_binary_distribution.sh')
-rw-r--r--scripts/make_binary_distribution.sh77
1 files changed, 53 insertions, 24 deletions
diff --git a/scripts/make_binary_distribution.sh b/scripts/make_binary_distribution.sh
index 730086bbb62..ea64f5ccfbd 100644
--- a/scripts/make_binary_distribution.sh
+++ b/scripts/make_binary_distribution.sh
@@ -85,8 +85,8 @@ do
fi
done
-for i in COPYING README Docs/INSTALL-BINARY \
- MySQLEULA.txt LICENSE.doc README.NW
+for i in COPYING COPYING.LIB README Docs/INSTALL-BINARY \
+ MySQLEULA.txt LICENSE.doc README.NW
do
if [ -f $i ]
then
@@ -151,6 +151,7 @@ done
if [ $BASE_SYSTEM = "netware" ] ; then
$CP -r netware/*.pl $BASE/scripts
+ $CP scripts/mysqlhotcopy $BASE/scripts/mysqlhotcopy.pl
fi
for i in \
@@ -167,7 +168,7 @@ do
fi
done
-# convert the libs to .lib for NetWare
+# convert the .a to .lib for NetWare
if [ $BASE_SYSTEM = "netware" ] ; then
for i in $BASE/lib/*.a
do
@@ -234,6 +235,16 @@ fi
rm -f $BASE/bin/Makefile* $BASE/bin/*.in $BASE/bin/*.sh $BASE/bin/mysql_install_db $BASE/bin/make_binary_distribution $BASE/bin/setsomevars $BASE/support-files/Makefile* $BASE/support-files/*.sh
+
+#
+# Remove system dependent files
+#
+if [ $BASE_SYSTEM = "netware" ] ; then
+ rm -f $BASE/MySQLEULA.txt
+else
+ rm -f $BASE/README.NW
+fi
+
# Make safe_mysqld a symlink to mysqld_safe for backwards portability
# To be removed in MySQL 4.1
(cd $BASE/bin ; ln -s mysqld_safe safe_mysqld )
@@ -295,29 +306,47 @@ which_1 ()
exit 1
}
-#
-# Create the result tar file
-#
+if [ $BASE_SYSTEM != "netware" ] ; then
-tar=`which_1 gnutar gtar`
-if test "$?" = "1" -o "$tar" = ""
-then
- tar=tar
-fi
+ #
+ # Create the result tar file
+ #
+
+ tar=`which_1 gnutar gtar`
+ if test "$?" = "1" -o "$tar" = ""
+ then
+ tar=tar
+ fi
+
+ echo "Using $tar to create archive"
+ cd $TMP
+
+ OPT=cvf
+ if [ x$SILENT = x1 ] ; then
+ OPT=cf
+ fi
+
+ $tar $OPT $SOURCE/$NEW_NAME.tar $NEW_NAME
+ cd $SOURCE
+ echo "Compressing archive"
+ rm -f $NEW_NAME.tar.gz
+ gzip -9 $NEW_NAME.tar
+ echo "Removing temporary directory"
+ rm -r -f $BASE
+
+ echo "$NEW_NAME.tar.gz created"
+else
-echo "Using $tar to create archive"
-cd $TMP
+ #
+ # Create a zip file for NetWare users
+ #
-OPT=cvf
-if [ x$SILENT = x1 ] ; then
- OPT=cf
-fi
+ cd $TMP
+ if test -e "$SOURCE/$NEW_NAME.zip"; then rm $SOURCE/$NEW_NAME.zip; fi
+ zip -r $SOURCE/$NEW_NAME.zip $NEW_NAME
+ echo "Removing temporary directory"
+ rm -r -f $BASE
-$tar $OPT $SOURCE/$NEW_NAME.tar $NEW_NAME
-cd $SOURCE
-echo "Compressing archive"
-gzip -9 $NEW_NAME.tar
-echo "Removing temporary directory"
-rm -r -f $BASE
+ echo "$NEW_NAME.zip created"
-echo "$NEW_NAME.tar.gz created"
+fi