Fix the restore script
[backups/.git] / scripts / Makefile.am
1 bin_SCRIPTS = \
2         pack-image.sh \
3         files-from-date.sh \
4         list-dates.sh \
5         restore-script.sh \
6         restore.sh
7
8 EXTRA_DIST = $(bin_SCRIPTS) restore-header.sh
9
10 restore_scripts = \
11         files-from-date.sh \
12         list-dates.sh \
13         restore-script.sh
14
15 restore_tar = restore.tgz
16
17 restore.sh : restore-header.sh $(restore_tar)
18         { cat $<; cat $(restore_tar); } > $@
19         chmod +x $@
20
21 $(restore_tar) : $(restore_scripts)
22         ( cd $(top_srcdir)/scripts && tar cf - $(restore_scripts) ) | gzip > $@