Fix the restore script
authorCarl N Baldwin <cnb@hpsvcnb.fc.hp.com>
Fri, 28 Oct 2005 18:57:08 +0000 (12:57 -0600)
committerCarl N Baldwin <cnb@hpsvcnb.fc.hp.com>
Fri, 28 Oct 2005 18:57:08 +0000 (12:57 -0600)
scripts/Makefile.am
scripts/restore-header.sh

index 852a3c049657bd96fc03ed41cbbebc4b43d55ee2..eea43a0e52552fd5eea29f013085b63364a01b36 100644 (file)
@@ -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 > $@
index 2c17e854c33f2fdedbe6456d3102b1faa35a9eb4..8374076c69134d8cf085f70f14ea56af919b1b05 100755 (executable)
@@ -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