Commit ec79c3c58a9ed6b2d27ff0699552aef0e1f36c70

Authored by DarkGod
1 parent e3dd704b

and the script to do it

Showing 1 changed file with 25 additions and 0 deletions
  1 +#!/bin/bash
  2 +
  3 +if test $# -lt 2 ; then
  4 + echo "Usage: te4_pack_module_tome.sh tome [3.9.14] [exclude-ogg]"
  5 + exit
  6 +fi
  7 +
  8 +mod="$1"
  9 +version="$2"
  10 +exclude_ogg="$3"
  11 +
  12 +cp -a "$mod" tmp
  13 +find tmp -name .svn -or -name '*~' | xargs rm -rf
  14 +cd tmp
  15 +
  16 +mkdir mod
  17 +mv * mod
  18 +mv mod/data .
  19 +
  20 +zip -r -0 ../"$mod"-"$version".team * -x'data/music/*' -x'data/gfx/*'
  21 +zip -r -0 ../"$mod"-"$version"-music.team data/music/*
  22 +zip -r -0 ../"$mod"-"$version"-gfx.team data/gfx/*
  23 +
  24 +cd -
  25 +rm -rf tmp
... ...