From: Carl N Baldwin Date: Fri, 28 Oct 2005 18:57:08 +0000 (-0600) Subject: Fix the restore script X-Git-Tag: release-0.4~45 X-Git-Url: http://git.pippins.net/embedvideo/.git/?a=commitdiff_plain;h=a74a89d79bb29b97ac1b6710e1f52a832793e6ff;p=backups%2F.git Fix the restore script --- diff --git a/scripts/Makefile.am b/scripts/Makefile.am index 852a3c0..eea43a0 100644 --- a/scripts/Makefile.am +++ b/scripts/Makefile.am @@ -19,4 +19,4 @@ restore.sh : restore-header.sh $(restore_tar) chmod +x $@ $(restore_tar) : $(restore_scripts) - tar cf - $^ | gzip > $@ + ( cd $(top_srcdir)/scripts && tar cf - $(restore_scripts) ) | gzip > $@ diff --git a/scripts/restore-header.sh b/scripts/restore-header.sh index 2c17e85..8374076 100755 --- a/scripts/restore-header.sh +++ b/scripts/restore-header.sh @@ -1,5 +1,7 @@ #!/bin/sh + export rundir=/tmp/restore-$(date +%Y%m%d%H%M%S) + if ! mkdir $rundir; then echo >&2 "Cannot create temp dir" exit 1