Create the self-extracting archive restore.sh
[backups/.git] / scripts / Makefile.am
1 bin_SCRIPTS = \
2         drive.sh \
3         files-from-date.sh \
4         find-cmd.sh \
5         list-dates.sh \
6         restore-script.sh \
7         rsync-cmd.sh \
8         restore.sh
9
10 EXTRA_DIST = $(bin_SCRIPTS)
11
12 restore_scripts = \
13         files-from-date.sh \
14         list-dates.sh \
15         restore-script.sh
16
17 restore_tar = restore.tgz
18
19 restore.sh : restore-header.sh $(restore_tar)
20         { cat $<; cat $(restore_tar); } > $@
21         chmod +x $@
22
23 $(restore_tar) : $(restore_scripts)
24         tar cf - $^ | gzip > $@