2014-06-22 20:08:25 +02:00
|
|
|
#! /bin/sh
|
|
|
|
|
|
|
|
# Definitionen
|
2014-07-23 14:09:58 +02:00
|
|
|
VERSION="57-Network-1.5"
|
2014-06-22 20:08:25 +02:00
|
|
|
|
|
|
|
# Pfade
|
|
|
|
ARCHIV="HIVE-TriOS-R${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
|
|
|
|
|
2014-07-23 14:09:58 +02:00
|
|
|
mkdir -p .tmp/doku
|
2014-06-22 20:08:25 +02:00
|
|
|
for file in *.md ; do cp "$file" .tmp/"${file/.md}".txt ; done
|
2014-07-23 14:09:58 +02:00
|
|
|
for file in doku/*.md ; do cp "$file" .tmp/"${file/.md}".txt ; done
|
2014-06-22 20:08:25 +02:00
|
|
|
cd .tmp
|
|
|
|
zip -r9 ../../${ARCHIV}-bin.zip *
|
|
|
|
zip -r9 ../../${ARCHIV}-src.zip *
|
|
|
|
cd ..
|
|
|
|
rm -rf .tmp
|
|
|
|
|
|
|
|
zip -r9 ../${ARCHIV}-src.zip flash forth lib system make*
|
|
|
|
|
|
|
|
cd ..
|
|
|
|
zip -r9 ${ARCHIV}-bin.zip ${BIN}
|