summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <greg@mysql.com>2003-03-27 18:13:37 -0500
committerunknown <greg@mysql.com>2003-03-27 18:13:37 -0500
commitaba362c3c087914f601ee7fd03808f167ca9edc7 (patch)
tree2724fbc3b5db99b71e17f62180e217768f831900
parentcdce47e6220f2272d9a01c903cd38ce9ec3d9cfc (diff)
downloadmariadb-git-aba362c3c087914f601ee7fd03808f167ca9edc7.tar.gz
Improve make_binary_distribution from Novell code at Monty's request
netware/BUILD/create-patch: Change mode to -rwxrwxr-x scripts/make_binary_distribution.sh: Split BIN_FILES into more generic parts, with no repetition
-rwxr-xr-x[-rw-r--r--]netware/BUILD/create-patch0
-rw-r--r--scripts/make_binary_distribution.sh55
2 files changed, 25 insertions, 30 deletions
diff --git a/netware/BUILD/create-patch b/netware/BUILD/create-patch
index 711eabf2d89..711eabf2d89 100644..100755
--- a/netware/BUILD/create-patch
+++ b/netware/BUILD/create-patch
diff --git a/scripts/make_binary_distribution.sh b/scripts/make_binary_distribution.sh
index 58328a5be3d..73aa95a1100 100644
--- a/scripts/make_binary_distribution.sh
+++ b/scripts/make_binary_distribution.sh
@@ -47,13 +47,15 @@ if [ -d $BASE ] ; then
rm -r -f $BASE
fi
+BS=""
+BIN_FILES=""
BASE_SYSTEM="any"
MYSQL_SHARE=$BASE/share/mysql
-BIN_FILES=""
case $system in
*netware*)
BASE_SYSTEM="netware"
+ BS=".nlm"
MYSQL_SHARE=$BASE/share
;;
esac
@@ -81,36 +83,30 @@ do
fi
done
+# Non platform-specific bin dir files:
+BIN_FILES="extra/comp_err$BS extra/replace$BS extra/perror$BS \
+ extra/resolveip$BS extra/my_print_defaults$BS \
+ extra/resolve_stack_dump$BS extra/mysql_waitpid$BS \
+ isam/isamchk$BS isam/pack_isam$BS \
+ myisam/myisamchk$BS myisam/myisampack$BS myisam/myisamlog$BS \
+ sql/mysqld$BS \
+ client/mysql$BS client/mysqlshow$BS client/mysqladmin$BS \
+ client/mysqldump$BS client/mysqlimport$BS \
+ client/mysqltest$BS client/mysqlcheck$BS \
+ client/mysqlbinlog$BS
+";
+
+# Platform-specific bin dir files:
if [ $BASE_SYSTEM = "netware" ] ; then
-
- BIN_FILES="\
- extra/comp_err.nlm extra/replace.nlm extra/perror.nlm \
- extra/resolveip.nlm extra/my_print_defaults.nlm \
- isam/isamchk.nlm isam/pack_isam.nlm \
- myisam/myisamchk.nlm myisam/myisampack.nlm myisam/myisamlog.nlm \
- sql/mysqld.nlm \
- client/mysql.nlm client/mysqlshow.nlm client/mysqladmin.nlm \
- client/mysqldump.nlm client/mysqlimport.nlm \
- client/mysqltest.nlm client/mysqlcheck.nlm \
- client/mysqlbinlog.nlm
- netware/mysqld_safe.nlm netware/mysql_install_db.nlm \
- netware/init_db.sql netware/test_db.sql netware/mysql_explain_log.nlm \
- netware/mysqlhotcopy.nlm netware/libmysql.nlm netware/init_secure_db.sql \
- ";
-
+ BIN_FILES="$BIN_FILES \
+ netware/mysqld_safe$BS netware/mysql_install_db$BS \
+ netware/init_db.sql netware/test_db.sql netware/mysql_explain_log$BS \
+ netware/mysqlhotcopy$BS netware/libmysql$BS netware/init_secure_db.sql
+ ";
else
-
- BIN_FILES="\
- extra/comp_err extra/replace extra/perror \
- extra/resolveip extra/my_print_defaults \
- extra/resolve_stack_dump extra/mysql_waitpid \
- isam/isamchk isam/pack_isam \
- myisam/myisamchk myisam/myisampack myisam/myisamlog \
- sql/mysqld \
- client/mysql client/mysqlshow client/mysqladmin \
- client/mysqldump client/mysqlimport \
- client/mysqltest client/mysqlcheck \
- client/mysqlbinlog client/mysqlmanagerc \
+ # For all other platforms:
+ BIN_FILES="$BIN_FILES \
+ client/mysqlmanagerc \
client/mysqlmanager-pwgen tools/mysqlmanager \
client/.libs/mysql client/.libs/mysqlshow client/.libs/mysqladmin \
client/.libs/mysqldump client/.libs/mysqlimport \
@@ -118,7 +114,6 @@ else
client/.libs/mysqlbinlog client/.libs/mysqlmanagerc \
client/.libs/mysqlmanager-pwgen tools/.libs/mysqlmanager \
";
-
fi
for i in $BIN_FILES