mirror of
https://github.com/j-a-n/raspberrymatic-addon-rmupdate.git
synced 2023-10-10 13:37:40 +02:00
14 lines
362 B
Bash
Executable File
14 lines
362 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
version=$(cat VERSION)
|
|
addon_file="$(pwd)/rmupdate.tar.gz"
|
|
tmp_dir=$(mktemp -d)
|
|
|
|
for f in VERSION update_script update_addon addon ccu1 ccu2 ccurm rmupdate; do
|
|
[ -e $f ] && cp -a $f "${tmp_dir}/"
|
|
done
|
|
chmod 755 "${tmp_dir}/update_script"
|
|
|
|
(cd ${tmp_dir}; tar --owner=root --group=root --exclude ".*~" -czvf "${addon_file}" .)
|
|
rm -rf "${tmp_dir}"
|