]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- simdzone-zone-load, fix makedist to make a directory in /tmp, so that
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 12 Dec 2025 14:44:46 +0000 (15:44 +0100)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 12 Dec 2025 14:44:46 +0000 (15:44 +0100)
  autoconf does not go up to the directory of the working copy for files.

makedist.sh

index c9b4de1dd09f277279206d9df58360dba15dd914..c5cc77a48ef325f520ea263128339a6d805404c7 100755 (executable)
@@ -142,7 +142,7 @@ check_git_repo () {
 create_temp_dir () {
     # Creating temp directory
     info "Creating temporary working directory"
-    temp_dir=`mktemp -d unbound-dist-XXXXXX`
+    temp_dir=`mktemp -t -d unbound-dist-XXXXXX`
     info "Directory '$temp_dir' created."
     cd $temp_dir
 }
@@ -709,7 +709,7 @@ info "Renaming Unbound directory to unbound-$version."
 cd ..
 mv unbound unbound-$version || error_cleanup "Failed to rename unbound directory."
 
-tarfile="../unbound-$version.tar.gz"
+tarfile="$cwd/unbound-$version.tar.gz"
 
 if [ -f $tarfile ]; then
     (question "The file $tarfile already exists.  Overwrite?" \
@@ -717,7 +717,7 @@ if [ -f $tarfile ]; then
 fi
 
 info "Creating tar unbound-$version.tar.gz"
-tar czf ../unbound-$version.tar.gz unbound-$version || error_cleanup "Failed to create tar file."
+tar czf $tarfile unbound-$version || error_cleanup "Failed to create tar file."
 
 cleanup