Add mailto before exit
[backups/.git] / scripts / Makefile.am
index 92bd941a0c3c92923eddb39f997017a714a67001..852a3c049657bd96fc03ed41cbbebc4b43d55ee2 100644 (file)
@@ -1,8 +1,22 @@
 bin_SCRIPTS = \
-  files-from-date.sh \
-  find-cmd.sh \
-  list-dates.sh \
-  other-commands \
-  rsync-cmd.sh
+       pack-image.sh \
+       files-from-date.sh \
+       list-dates.sh \
+       restore-script.sh \
+       restore.sh
 
-EXTRA_DIST = $(bin_SCRIPTS)
+EXTRA_DIST = $(bin_SCRIPTS) restore-header.sh
+
+restore_scripts = \
+       files-from-date.sh \
+       list-dates.sh \
+       restore-script.sh
+
+restore_tar = restore.tgz
+
+restore.sh : restore-header.sh $(restore_tar)
+       { cat $<; cat $(restore_tar); } > $@
+       chmod +x $@
+
+$(restore_tar) : $(restore_scripts)
+       tar cf - $^ | gzip > $@