Create the self-extracting archive restore.sh
[backups/.git] / scripts / Makefile.am
index 95e619cf9207254dd1045a57351213657970f0dd..a4cb5768639f95344abb78d9b721a95b75adc45a 100644 (file)
@@ -1,5 +1,24 @@
-EXTRA_DIST= \
-  find-cmd.sh \
-  list-dates.rb \
-  other-commands \
-  rsync-cmd.sh
+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)
+
+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 > $@