From 5f27fb12a65c942fe323286cc0516dbeeadda3d7 Mon Sep 17 00:00:00 2001 From: jay Date: Fri, 6 Jun 2014 07:10:18 +0000 Subject: [PATCH] The change in the configure script done in r32919 would be overwritten next time someone ran autoconf. Changed configure.ac instead and ran autoconf 2.69 to regenerate configure. --- configure | 1 + configure.ac | 22 ++++++++++++++++++++-- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/configure b/configure index b9a64e591..20a8713ce 100755 --- a/configure +++ b/configure @@ -9391,6 +9391,7 @@ if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi + # Krad ASCII ART#!#@$!@#$ # Randomly store the name of one of the ASCII Art files in FILENAME FILENAME=`ls docs/leet-nmap-ascii-art*.txt 2>/dev/null | awk ' diff --git a/configure.ac b/configure.ac index 1a8b024bb..074b75fa5 100644 --- a/configure.ac +++ b/configure.ac @@ -946,8 +946,26 @@ AC_SUBST(NMAP_UPDATE_DIST_CLEAN) AC_OUTPUT(Makefile libnetutil/Makefile) + # Krad ASCII ART#!#@$!@#$ -if test -f docs/leet-nmap-ascii-art.txt; then - cat docs/leet-nmap-ascii-art.txt +# Randomly store the name of one of the ASCII Art files in FILENAME +FILENAME=`ls docs/leet-nmap-ascii-art*.txt 2>/dev/null | awk ' + BEGIN { + srand(); + } + + { + lines[[++d]] = $0 + } + + END { + # This makes AWKs random numbers more random + print lines[[int(rand()*49139)%d+1]]; + } + '` +# Print the file to screen, if any such file exists (i.e. $FILENAME is not empty) +if test "$FILENAME"; then + cat "$FILENAME" fi + echo "Configuration complete. Type make (or gmake on some *BSD machines) to compile."