From a74a89d79bb29b97ac1b6710e1f52a832793e6ff Mon Sep 17 00:00:00 2001
From: Carl N Baldwin <cnb@hpsvcnb.fc.hp.com>
Date: Fri, 28 Oct 2005 12:57:08 -0600
Subject: [PATCH] Fix the restore script

---
 scripts/Makefile.am       | 2 +-
 scripts/restore-header.sh | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

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
-- 
2.34.1