aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-08-27 18:52:23 +0000
committerChristian Grothoff <christian@grothoff.org>2012-08-27 18:52:23 +0000
commit28dab9e4ac0d9475ad9bbdddb4d2c62280337af8 (patch)
treef77d6815fa2869cc2f838f21b85957be25d71980
parent5dd4fc72e4f42495791c070e33b854b0d25fa55e (diff)
downloadgnunet-28dab9e4ac0d9475ad9bbdddb4d2c62280337af8.tar.gz
gnunet-28dab9e4ac0d9475ad9bbdddb4d2c62280337af8.zip
updating report.sh, removing obsolete hostlist scripts
-rw-r--r--Makefile.am2
-rw-r--r--contrib/Makefile.am2
-rw-r--r--contrib/hostlist.cgi5
-rw-r--r--contrib/hostlist.php35
-rwxr-xr-xcontrib/report.sh62
-rwxr-xr-xcontrib/submit13
-rw-r--r--doc/Makefile.am3
7 files changed, 57 insertions, 65 deletions
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
11gnunetinclude_HEADERS = gnunet_config.h 11gnunetinclude_HEADERS = gnunet_config.h
12 12
13docdir = $(datadir)/doc/gnunet/ 13docdir = $(datadir)/doc/gnunet/
14doc_DATA = COPYING 14doc_DATA = COPYING README
15 15
16ACLOCAL_AMFLAGS = -I m4 16ACLOCAL_AMFLAGS = -I m4
17 17
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 = \
27 27
28EXTRA_DIST = \ 28EXTRA_DIST = \
29 coverage.sh \ 29 coverage.sh \
30 hostlist.cgi \
31 hostlist.php \
32 report.sh \ 30 report.sh \
33 terminate.py.in \ 31 terminate.py.in \
34 gnunet_pyexpect.py.in \ 32 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 @@
1#!/bin/sh
2# This is a CGI script to generate the host list on-demand.
3# by Michael Wensley, with minor improvements by Christian Grothoff
4echo -ne "Content-Type: application/octet-stream\r\n\r\n"
5cat /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 @@
1<?php
2// Requires PHP >= 4.3.0
3// Author: "Krasko Oleksandr" <0m3r.mail@gmail.com>
4// Minor improvements by Christian Grothoff <christian@grothoff.org>
5header("Content-Type: application/octet-stream\r\n\r\n");
6$extmas = array();
7$pv=$_GET['p'];
8if (isset($pv))
9 {
10 for ($ii=0;$ii<64;$ii++)
11 if (0 != ($pv & (1 << $ii)))
12 $extmas[] = $ii;
13 }
14else
15 {
16 $extmas = array('2','3','4','5','6','8','12','17','23','25');
17 }
18$path = '/var/lib/gnunet/data/hosts/'; // adjust as necessary
19$dir = opendir($path);
20if (! $dir)
21 die("Cannot open directory $path.\n");
22$mas = array();
23while ($fname = readdir($dir)) {
24 $fn = $path . '/' . $fname;
25 if (is_file($fn)) {
26 $dpo = strpos($fname, '.') + 1;
27 $len = strlen($fname);
28 if (in_array(substr($fname, $dpo - $len), $extmas))
29 $mas[] = $fn;
30 }
31}
32shuffle($mas); // randomize order
33foreach ($mas as $val)
34 echo file_get_contents($val);
35?>
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
156 fi 156 fi
157fi 157fi
158 158
159TEST=`$WHICH dpkg 2> /dev/null`
160if test -n "$TEST"; then
161 LINES=`dpkg -s libunistring-dev | grep Version | wc -l`
162 if test "$LINES" = "1"
163 then
164 VERSION=`dpkg -s libunistring-dev | grep Version | awk '{print $2}'`
165 echo "libunistring : libunistring3-dev-$VERSION.deb"
166 else
167 echo "libunistring : dpkg: libunistring3-dev not installed"
168 fi
169else
170 TEST=`$WHICH rpm 2> /dev/null`
171 if test -n "$TEST"; then
172 rpm -q unistring | sed -e "s/unistring-//" 2> /dev/null | \
173 awk '{print "libunistring : "$1.rpm}'
174 else
175 echo "libunistring : Test not available"
176 fi
177fi
178
159TEST=`$WHICH gettext 2> /dev/null` 179TEST=`$WHICH gettext 2> /dev/null`
160if test -n "$TEST"; then 180if test -n "$TEST"; then
161 gettext --version | head -n1 2> /dev/null | \ 181 gettext --version | head -n1 2> /dev/null | \
@@ -173,15 +193,7 @@ else
173 echo "libcurl : Not found" 193 echo "libcurl : Not found"
174fi 194fi
175 195
176 196echo -n "libmicrohttpd : "
177TEST=`which qmake 2> /dev/null`
178if test -x "$TEST"; then
179 qmake --version | tail -n 1 | awk '{print "Qt : "$4}'
180else
181 echo "Qt : Not found"
182fi
183
184echo -n "MHD : "
185TMPFILE=`mktemp /tmp/mhd-version-testXXXXXX` 197TMPFILE=`mktemp /tmp/mhd-version-testXXXXXX`
186cat - >$TMPFILE.c <<EOF 198cat - >$TMPFILE.c <<EOF
187#include <microhttpd.h> 199#include <microhttpd.h>
@@ -197,4 +209,36 @@ gcc -o $TMPFILE $TMPFILE.c 2> /dev/null && $TMPFILE || echo "Not found"
197rm -f $TMPFILE $TMPFILE.bin 209rm -f $TMPFILE $TMPFILE.bin
198 210
199 211
212echo -n "GNU GLPK : "
213TMPFILE=`mktemp /tmp/glpk-version-testXXXXXX`
214cat - >$TMPFILE.c <<EOF
215#include <glpk.h>
216#include <stdio.h>
217int main()
218{
219 fprintf (stdout, "%u.%u\n", GLP_MAJOR_VERSION, GLP_MINOR_VERSION);
220 return 0;
221}
222EOF
223
224gcc -o $TMPFILE $TMPFILE.c 2> /dev/null && $TMPFILE || echo "Not found"
225rm -f $TMPFILE $TMPFILE.bin
226
227
228echo -n "GNUtls : "
229TMPFILE=`mktemp /tmp/gnutls-version-testXXXXXX`
230cat - >$TMPFILE.c <<EOF
231#include <gnutls/gnutls.h>
232#include <stdio.h>
233int main()
234{
235 fprintf (stdout, "%s\n", GNUTLS_VERSION);
236 return 0;
237}
238EOF
239
240gcc -o $TMPFILE $TMPFILE.c 2> /dev/null && $TMPFILE || echo "Not found"
241rm -f $TMPFILE $TMPFILE.bin
242
243
200echo "--------------------------------------------------------------" 244echo "--------------------------------------------------------------"
diff --git a/contrib/submit b/contrib/submit
deleted file mode 100755
index 552b253d2..000000000
--- a/contrib/submit
+++ /dev/null
@@ -1,13 +0,0 @@
1#!/bin/sh
2echo "Are you sure you want to commit changes to these files?"
3svn status
4read dummy
5svn diff
6echo "Are you sure you want to commit the changes above (CTRL-C to abort)"
7read dummy
8if test 0 != $#
9then
10 svn commit -m "$*"
11else
12 svn commit
13fi
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 @@
1SUBDIRS = man 1SUBDIRS = man
2 2
3EXTRA_DIST = README.mysql README.postgres 3EXTRA_DIST = README.mysql README.postgres
4
5docdir = $(datadir)/doc/gnunet/
6doc_DATA = README.mysql README.postgres