mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
e9fc3cfdb5
git-svn-id: https://svn.fhem.de/fhem/trunk@3941 2b470e98-0d58-463d-a4d8-8e2adae1ed80
33 lines
632 B
Bash
Executable File
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
|