]> The Tcpdump Group git mirrors - tcpdump/commitdiff
build.sh, build_matrix.sh: Use more the PREFIX variable
authorFrancois-Xavier Le Bail <[email protected]>
Sat, 13 Mar 2021 17:30:19 +0000 (18:30 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Sat, 13 Mar 2021 18:50:02 +0000 (19:50 +0100)
build.sh
build_matrix.sh

index 083559aa4e911e7c0d7c6d0ef24082b78a0d6e68..c237fe8395c9cd4e00f4d9692ccf166f421fcca6 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -21,7 +21,7 @@ SMB=${SMB:-no}
 # Install directory prefix
 PREFIX=/tmp/local
 # For TESTrun
-export TCPDUMP_BIN=/tmp/local/bin/tcpdump
+export TCPDUMP_BIN=$PREFIX/bin/tcpdump
 
 travis_fold() {
     local action="$1"
index 1e610a9b50e328666cb7b369429e4892b0284e90..fc3b77078ece3ed446bed6f199ac6830240e22ad 100755 (executable)
@@ -70,7 +70,7 @@ build_tcpdump() {
 choose_libpcap() {
     if [ "$BUILD_LIBPCAP" = no ]; then
         echo_magenta 'Use system libpcap'
-        rm -rf /tmp/local
+        rm -rf $PREFIX
     else
         # Build libpcap with autoconf
         CMAKE_SAVE=$CMAKE