mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 14:54:20 +01:00
bee9933ab8
support-files/mysql.server-sys5.sh: Change mode to -rw-rw-r-- Docs/manual.texi: Added information about BeOS, Access 2000, AIX and user links client/mysql.cc: Fixed SOURCE to work on windows client/mysqldump.c: Strip of white space configure.in: Fix for AIX include/dbug.h: Assert handling include/my_pthread.h: Ia64 needs more thread stack than other processors include/my_sys.h: More comments myisam/mi_key.c: Fixed wrong key length checks mysql.proj: update mysys/charset.c: Cleanup mysys/mf_keycache.c: Moved SEC_LINK to file that used it mysys/my_static.h: Moved SEC_LINK to file that used it scripts/Makefile.am: Fix for debian scripts/mysql_install_db.sh: Cleanup sql/gen_lex_hash.cc: Better values sql/ha_berkeley.cc: Fix of reading of unique key sql/handler.cc: Fix memory allocation bug sql/mysqld.cc: Fix for Ia64 sql/share/charsets/latin1.conf: Fixed sortorder back to scandinavian. sql/sql_yacc.yy: FULL shouldn't be a keyword support-files/Makefile.am: Fix for debian support-files/mysql.server.sh: Cleanups
47 lines
822 B
Bash
47 lines
822 B
Bash
#!/bin/sh
|
|
|
|
if [ "x$1" = "x" ]; then
|
|
echo " please set charset"
|
|
exit
|
|
fi
|
|
|
|
CHAR="$1"
|
|
case "$1" in
|
|
[uU]*)
|
|
CHAR=ujis ; CH=uj
|
|
;;
|
|
[sS]*)
|
|
CHAR=sjis ; CH=sj
|
|
;;
|
|
esac
|
|
|
|
#-------------------
|
|
DIR=`pwd`
|
|
|
|
VERSION=`cat version`
|
|
|
|
T=`uname -p`
|
|
|
|
sed -e "s/@CHAR1@/${CH}/" \
|
|
-e "s/@CHAR2@/${CHAR}/" \
|
|
-e "s/@VERSION@/${VERSION}/" \
|
|
-e "s/@TYPE@/${T}/" \
|
|
pkginfo.ini > pkginfo.${CHAR}
|
|
|
|
sed -e "s,@DIR@,${DIR},g" \
|
|
-e "s,@PKGINFO@,${DIR}/pkginfo.${CHAR}," \
|
|
prototype.ini > prototype.${CHAR}
|
|
|
|
INIT="tmp-${CHAR}/etc/init.d/mysql"
|
|
cp ../support-files/mysql.server $INIT
|
|
chmod 755 $INIT
|
|
|
|
(cd tmp-${CHAR}; \
|
|
chown root etc usr ; \
|
|
chgrp sys etc usr ;\
|
|
chmod 755 usr etc; \
|
|
chgrp sys etc/init.d ; \
|
|
chmod 755 etc/init.d ; \
|
|
find . -print|pkgproto >> ../prototype.${CHAR})
|
|
|
|
pkgmk -o -f prototype.${CHAR} -r ${DIR}/tmp-${CHAR}
|