You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
822 B

  1. #!/bin/sh
  2. if [ "x$1" = "x" ]; then
  3. echo " please set charset"
  4. exit
  5. fi
  6. CHAR="$1"
  7. case "$1" in
  8. [uU]*)
  9. CHAR=ujis ; CH=uj
  10. ;;
  11. [sS]*)
  12. CHAR=sjis ; CH=sj
  13. ;;
  14. esac
  15. #-------------------
  16. DIR=`pwd`
  17. VERSION=`cat version`
  18. T=`uname -p`
  19. sed -e "s/@CHAR1@/${CH}/" \
  20. -e "s/@CHAR2@/${CHAR}/" \
  21. -e "s/@VERSION@/${VERSION}/" \
  22. -e "s/@TYPE@/${T}/" \
  23. pkginfo.ini > pkginfo.${CHAR}
  24. sed -e "s,@DIR@,${DIR},g" \
  25. -e "s,@PKGINFO@,${DIR}/pkginfo.${CHAR}," \
  26. prototype.ini > prototype.${CHAR}
  27. INIT="tmp-${CHAR}/etc/init.d/mysql"
  28. cp ../support-files/mysql.server $INIT
  29. chmod 755 $INIT
  30. (cd tmp-${CHAR}; \
  31. chown root etc usr ; \
  32. chgrp sys etc usr ;\
  33. chmod 755 usr etc; \
  34. chgrp sys etc/init.d ; \
  35. chmod 755 etc/init.d ; \
  36. find . -print|pkgproto >> ../prototype.${CHAR})
  37. pkgmk -o -f prototype.${CHAR} -r ${DIR}/tmp-${CHAR}