2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00
fhem-mirror/fhem/contrib/FB7270/makeimage
rudolfkoenig e9fc3cfdb5 FRITZ!Box image fixes (7390/7270)
git-svn-id: https://svn.fhem.de/fhem/trunk@3941 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2013-09-22 14:26:57 +00:00

33 lines
632 B
Bash
Executable File

#!/bin/sh
fw=$1
if test ! -f ../../$fw.tar.gz; then
echo "usage: makeimage <fhem-VERSION>"
echo "../../<fhem-VERSION>.tar.gz must exist"
exit 1
fi
rm -rf var
echo Extracting the fritzbox template
unzip -qo ../../priv/fritzbox7270_template.zip
rm -rf fhem/{FHEM,www,docs}
echo Merging
rm -rf $fw
tar zxf ../../$fw.tar.gz
cd $fw
cp -rp fhem.pl fhem.cfg FHEM docs www ../fhem
cp -rp README_DEMO.txt fhem.cfg.demo demolog ../fhem
rm -rf ../fhem/www/frontend
cd ..
rm -rf $fw
rm -rf fhem/docs/*.{odg,pdf,man,txt}
cp fhemcmd.sh fhem/FHEM
cp backup.sh startfhem* fhem
echo Packing again
zip -qr $fw-fb7270.zip fhem
rm -rf fhem