Create cron.sh for running from cron also create config.sh
[backups/.git] / scripts / Makefile.am
index ae9e2f46e29fd544f46ddf73ee20cf60a4bff919..391c6a7fa94c64ee836a16df34483f04a1e955b8 100644 (file)
@@ -1,8 +1,24 @@
 bin_SCRIPTS = \
-  files-from-date.rb \
-  find-cmd.sh \
-  list-dates.sh \
-  other-commands \
-  rsync-cmd.sh
+       config.sh \
+       cron.sh \
+       files-from-date.sh \
+       list-dates.sh \
+       pack-image.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)
+       ( cd $(top_srcdir)/scripts && tar cf - $(restore_scripts) ) | gzip > $@