Files
azerothcore-wotlk/mysql-tools
Yehonal ce7b05ccae Squashed 'modules/uwd/mysql-tools/' content from commit d76f949
git-subtree-dir: modules/uwd/mysql-tools
git-subtree-split: d76f949e480d06fd4b33dd58249e8419238e9ca9
2016-08-13 20:31:44 +02:00

24 lines
571 B
Bash

#!/bin/bash
#
# * Copyright (C) 2007 - 2015 Hyperweb2 All rights reserved.
# * GNU General Public License version 3; see www.hyperweb2.com/terms/
MT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
function main {
if [ ! -z "$1" ]; then
if [ "$1" == "dump" ]; then
source $MT_DIR"/mysql-dump" "$3" "$2" "$4" "$5"
return
elif [ "$1" == "import" ]; then
source $MT_DIR"/mysql-import" "$3" "$2" "$4" "$5"
return
fi
else
echo "!!no command specified!!"
fi
}
# OPT - Tables - database - full file - config path
main "$1" "$2" "$3" "$4" "$5"