mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
46318870b0
MacOSX packages using PackageMaker - renamed support-files/PKG -> support-files/SCO (PKG is used in MacOS X terminology as well) support-files/SCO/INSTALL.sh: mvdir support-files/SCO/compile.sh: mvdir support-files/SCO/doc.sh: mvdir support-files/SCO/mkpkg.sh: mvdir support-files/SCO/patch: mvdir support-files/SCO/pkginfo.ini: mvdir support-files/SCO/postinstall: mvdir support-files/SCO/preinstall: mvdir support-files/SCO/preremove: mvdir support-files/SCO/prototype.ini: mvdir support-files/SCO/version: mvdir support-files/MacOSX/make_mysql_pkg.pl: Rename: support-files/make_mysql_pkg.pl -> support-files/MacOSX/make_mysql_pkg.pl configure.in: - added support-files/MacOSX support-files/Makefile.am: - added MacOSX subdirectory
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}
|