Toolbox-2/release.sh

38 lines
722 B
Bash
Raw Normal View History

2014-06-22 20:12:46 +02:00
#! /bin/sh
# Definitionen
VERSION="1.1"
# Pfade
ARCHIV="HIVE-Toolbox2-${VERSION}"
MAKE="./make.sh"
BIN="Bin"
# ----------------------------------------------------------------
# Alte Versionen löschen
rm -rf ../${BIN}
rm -f ../${ARCHIV}-bin.zip
rm -f ../${ARCHIV}-src.zip
# ----------------------------------------------------------------
# Binaries erstellen
${MAKE}
# ----------------------------------------------------------------
# Archive erstellen
mkdir .tmp
for file in *.md ; do cp "$file" .tmp/"${file/.md}".txt ; done
cd .tmp
zip -r9 ../../${ARCHIV}-bin.zip *
zip -r9 ../../${ARCHIV}-src.zip *
cd ..
rm -rf .tmp
zip -r9 ../${ARCHIV}-src.zip sounds source make*
cd ..
zip -r9 ${ARCHIV}-bin.zip ${BIN}