From 28dab9e4ac0d9475ad9bbdddb4d2c62280337af8 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 27 Aug 2012 18:52:23 +0000 Subject: updating report.sh, removing obsolete hostlist scripts --- Makefile.am | 2 +- contrib/Makefile.am | 2 -- contrib/hostlist.cgi | 5 ----- contrib/hostlist.php | 35 ----------------------------- contrib/report.sh | 62 ++++++++++++++++++++++++++++++++++++++++++++-------- contrib/submit | 13 ----------- doc/Makefile.am | 3 +++ 7 files changed, 57 insertions(+), 65 deletions(-) delete mode 100644 contrib/hostlist.cgi delete mode 100644 contrib/hostlist.php delete mode 100755 contrib/submit diff --git a/Makefile.am b/Makefile.am index 1c804cb90..39a37a940 100644 --- a/Makefile.am +++ b/Makefile.am @@ -11,7 +11,7 @@ gnunetincludedir = $(includedir)/gnunet gnunetinclude_HEADERS = gnunet_config.h docdir = $(datadir)/doc/gnunet/ -doc_DATA = COPYING +doc_DATA = COPYING README ACLOCAL_AMFLAGS = -I m4 diff --git a/contrib/Makefile.am b/contrib/Makefile.am index 6a6c1e7ab..501758369 100644 --- a/contrib/Makefile.am +++ b/contrib/Makefile.am @@ -27,8 +27,6 @@ dist_pkgdata_DATA = \ EXTRA_DIST = \ coverage.sh \ - hostlist.cgi \ - hostlist.php \ report.sh \ terminate.py.in \ gnunet_pyexpect.py.in \ diff --git a/contrib/hostlist.cgi b/contrib/hostlist.cgi deleted file mode 100644 index f04246e47..000000000 --- a/contrib/hostlist.cgi +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh -# This is a CGI script to generate the host list on-demand. -# by Michael Wensley, with minor improvements by Christian Grothoff -echo -ne "Content-Type: application/octet-stream\r\n\r\n" -cat /var/lib/gnunet/data/hosts/*.{2,3,4,5,6,8,12,17,23,25} diff --git a/contrib/hostlist.php b/contrib/hostlist.php deleted file mode 100644 index 158561542..000000000 --- a/contrib/hostlist.php +++ /dev/null @@ -1,35 +0,0 @@ -= 4.3.0 -// Author: "Krasko Oleksandr" <0m3r.mail@gmail.com> -// Minor improvements by Christian Grothoff -header("Content-Type: application/octet-stream\r\n\r\n"); -$extmas = array(); -$pv=$_GET['p']; -if (isset($pv)) - { - for ($ii=0;$ii<64;$ii++) - if (0 != ($pv & (1 << $ii))) - $extmas[] = $ii; - } -else - { - $extmas = array('2','3','4','5','6','8','12','17','23','25'); - } -$path = '/var/lib/gnunet/data/hosts/'; // adjust as necessary -$dir = opendir($path); -if (! $dir) - die("Cannot open directory $path.\n"); -$mas = array(); -while ($fname = readdir($dir)) { - $fn = $path . '/' . $fname; - if (is_file($fn)) { - $dpo = strpos($fname, '.') + 1; - $len = strlen($fname); - if (in_array(substr($fname, $dpo - $len), $extmas)) - $mas[] = $fn; - } -} -shuffle($mas); // randomize order -foreach ($mas as $val) - echo file_get_contents($val); -?> diff --git a/contrib/report.sh b/contrib/report.sh index 37a1c41ad..6e1d39949 100755 --- a/contrib/report.sh +++ b/contrib/report.sh @@ -156,6 +156,26 @@ else fi fi +TEST=`$WHICH dpkg 2> /dev/null` +if test -n "$TEST"; then + LINES=`dpkg -s libunistring-dev | grep Version | wc -l` + if test "$LINES" = "1" + then + VERSION=`dpkg -s libunistring-dev | grep Version | awk '{print $2}'` + echo "libunistring : libunistring3-dev-$VERSION.deb" + else + echo "libunistring : dpkg: libunistring3-dev not installed" + fi +else + TEST=`$WHICH rpm 2> /dev/null` + if test -n "$TEST"; then + rpm -q unistring | sed -e "s/unistring-//" 2> /dev/null | \ + awk '{print "libunistring : "$1.rpm}' + else + echo "libunistring : Test not available" + fi +fi + TEST=`$WHICH gettext 2> /dev/null` if test -n "$TEST"; then gettext --version | head -n1 2> /dev/null | \ @@ -173,15 +193,7 @@ else echo "libcurl : Not found" fi - -TEST=`which qmake 2> /dev/null` -if test -x "$TEST"; then - qmake --version | tail -n 1 | awk '{print "Qt : "$4}' -else - echo "Qt : Not found" -fi - -echo -n "MHD : " +echo -n "libmicrohttpd : " TMPFILE=`mktemp /tmp/mhd-version-testXXXXXX` cat - >$TMPFILE.c < @@ -197,4 +209,36 @@ gcc -o $TMPFILE $TMPFILE.c 2> /dev/null && $TMPFILE || echo "Not found" rm -f $TMPFILE $TMPFILE.bin +echo -n "GNU GLPK : " +TMPFILE=`mktemp /tmp/glpk-version-testXXXXXX` +cat - >$TMPFILE.c < +#include +int main() +{ + fprintf (stdout, "%u.%u\n", GLP_MAJOR_VERSION, GLP_MINOR_VERSION); + return 0; +} +EOF + +gcc -o $TMPFILE $TMPFILE.c 2> /dev/null && $TMPFILE || echo "Not found" +rm -f $TMPFILE $TMPFILE.bin + + +echo -n "GNUtls : " +TMPFILE=`mktemp /tmp/gnutls-version-testXXXXXX` +cat - >$TMPFILE.c < +#include +int main() +{ + fprintf (stdout, "%s\n", GNUTLS_VERSION); + return 0; +} +EOF + +gcc -o $TMPFILE $TMPFILE.c 2> /dev/null && $TMPFILE || echo "Not found" +rm -f $TMPFILE $TMPFILE.bin + + echo "--------------------------------------------------------------" diff --git a/contrib/submit b/contrib/submit deleted file mode 100755 index 552b253d2..000000000 --- a/contrib/submit +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh -echo "Are you sure you want to commit changes to these files?" -svn status -read dummy -svn diff -echo "Are you sure you want to commit the changes above (CTRL-C to abort)" -read dummy -if test 0 != $# -then - svn commit -m "$*" -else - svn commit -fi diff --git a/doc/Makefile.am b/doc/Makefile.am index 738d97060..16b24888e 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -1,3 +1,6 @@ SUBDIRS = man EXTRA_DIST = README.mysql README.postgres + +docdir = $(datadir)/doc/gnunet/ +doc_DATA = README.mysql README.postgres -- cgit v1.2.3