Changeset 667 for trunk/Modules/Export


Ignore:
Timestamp:
Dec 24, 2013, 3:09:14 PM (11 years ago)
Author:
maron
Message:
  • Added: shell script export EXE by export id
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Export/client_cz_export.sh

    r647 r667  
    11#!/bin/bash
    22
    3 EXPORTID=37
     3EXPORTID=$1
    44
    55#wine like patch:
    66MPQAPP="Z:\\a\\www\\wowpreklad\\Modules\\Export\\mpq.exe"
    7 TMP="Z:\\a\\www\\wowpreklad\\tmp\\mpq\\"
     7TMP="Z:\\a\\www\\wowpreklad\\tmp\\Export\\${EXPORTID}\\"
    88MPQFILENAME="patch-5.MPQ"
    99MPQARCH="${TMP}${MPQFILENAME}"
    1010#linux patch:
     11EXPORTLINUX="/a/www/wowpreklad/Modules/Export/files/"
     12MPQARCHLINUX="${EXPORTLINUX}${MPQFILENAME}"
     13ICOLINUX="${EXPORTLINUX}WoW.ico"
     14NSILINUX="${EXPORTLINUX}Instalace_CzechWoW.nsi"
     15LUAFILENAME="WowLua.exe"
     16VERSION=$( php /a/www/wowpreklad/Modules/Export/cmdmpqexport.php version=$1 2> /dev/null)
     17LUALINUX="${EXPORTLINUX}${VERSION}/${LUAFILENAME}"
     18ADDONLINUX="${EXPORTLINUX}${VERSION}/CzWoW"
     19
    1120TMPDIR="/a/www/wowpreklad/tmp/"
    12 WORKDIR="${TMPDIR}mpq"
     21WORKDIR="${TMPDIR}Export/${EXPORTID}"
    1322           
    1423echo "==================================="
    1524echo "Workdir: $WORKDIR"
    1625echo "==================================="
     26mkdir $WORKDIR
    1727cd $WORKDIR
     28
    1829echo "==================================="
    1930echo "Export files from database:"
     
    3849mkdir dbc -p
    3950mkdir lua -p
    40 cp ${TMPDIR}Export/${EXPORTID}/lua/* lua/ -R
    41 cp ${TMPDIR}Export/${EXPORTID}/dbc/* dbc/ -R
    42 cp ${TMPDIR}Export/${EXPORTID}/CzWoW/* CzWoW / -R
     51cp $MPQARCHLINUX $MPQFILENAME
     52cp $NSILINUX Instalace_CzechWoW.nsi
     53cp $ICOLINUX WoW.ico
     54cp $LUALINUX WowLua.exe
     55cp ${$ADDONLINUX}* CzWoW / -R
     56
     57#cp ${TMPDIR}Export/${EXPORTID}/lua/* lua/ -R
     58#cp ${TMPDIR}Export/${EXPORTID}/dbc/* dbc/ -R
     59#cp ${TMPDIR}Export/${EXPORTID}/CzWoW/* CzWoW / -R
    4360echo "hotovo"
    4461
     
    4865for f in dbc/*.dbc
    4966do
    50   wine cmd /C "$MPQAPP patch-5.MPQ DBFilesClient\\$(basename ${f}) ${f}";
     67  wine cmd /C "$MPQAPP ${MPQFILENAME} DBFilesClient\\$(basename ${f}) ${f}";
    5168done
    5269
     
    5471do
    5572                                               
    56   wine cmd /C "$MPQAPP patch-5.MPQ Interface\\FrameXML\\$(basename ${f}) ${f}";
     73  wine cmd /C "$MPQAPP ${MPQFILENAME} Interface\\FrameXML\\$(basename ${f}) ${f}";
    5774done
    5875for f in lua/Glue*.lua
    5976do
    60   wine cmd /C "$MPQAPP patch-5.MPQ Interface\\GlueXML\\$(basename ${f}) ${f}";
     77  wine cmd /C "$MPQAPP ${MPQFILENAME} Interface\\GlueXML\\$(basename ${f}) ${f}";
    6178done
    6279echo "==================================="
Note: See TracChangeset for help on using the changeset viewer.