Should always run from installed directory
[backups/.git] / scripts / Makefile.am
index 2afda8723b96e31e92fd516013f87dae88a278f1..ba618aaa3f466883c1274f3456f9e7a3f200bb42 100644 (file)
@@ -1,9 +1,22 @@
 bin_SCRIPTS = \
        drive.sh \
        files-from-date.sh \
-       find-cmd.sh \
        list-dates.sh \
        restore-script.sh \
-       rsync-cmd.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 > $@