hello again wmh830621. i got your message from mail and i thought that i should frankly tell you that it will just take too long to discuss the code.
rather i'm suggesting that you read:
bash beginner's guide:
http://www.tldp.org/LDP/Bash-Beginne...tml/index.html
and then
advanced bash scripting howto
http://www.tldp.org/LDP/abs/html/
please try them. they're just easy to understand. also take note more on variables, quoting and output redirection.
--------------------
ok i'll explain some
these are the variables
Code:
SERVER_IP=
SERVER_PORT=
LANGUAGE_URL=
PROJECT_NAME=
OUTPUTFIL=
the next commands are enclosed in braces to redirect their output to the file
Code:
{
commands
} > FILE
so
Code:
{
echo "<?xml version=\"1.0\" encoding=\"Shift-JIS\"?>"
echo "<flash_cfg>"
echo "<server ip=\"${SERVER_IP}\" port=\"${SERVER_PORT}\"/>"
echo "<language_url>${LANGUAGE_URL}</language_url>"
echo "<project_name>${PROJECT_NAME}</project_name>"
echo "</flash_cfg>"
} > ${OUTPUTFIL}