Create the self-extracting archive restore.sh
[backups/.git] / scripts / Makefile.am
index 92bd941a0c3c92923eddb39f997017a714a67001..a4cb5768639f95344abb78d9b721a95b75adc45a 100644 (file)
@@ -1,8 +1,24 @@
 bin_SCRIPTS = \
-  files-from-date.sh \
-  find-cmd.sh \
-  list-dates.sh \
-  other-commands \
-  rsync-cmd.sh
+       drive.sh \
+       files-from-date.sh \
+       find-cmd.sh \
+       list-dates.sh \
+       restore-script.sh \
+       rsync-cmd.sh \
+       restore.sh
 
 EXTRA_DIST = $(bin_SCRIPTS)
+
+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 > $@