Deal with the aftermath of sorting contrib

This basically amounts to grepping for every file that mentioned
contrib and adjusting its references to refer to the right place.
This commit is contained in:
Nick Mathewson 2014-04-28 11:59:55 -04:00
parent 9230bc7c65
commit 703ad69587
11 changed files with 43 additions and 48 deletions

19
.gitignore vendored
View File

@ -26,6 +26,7 @@
*.bak *.bak
# Python droppings # Python droppings
*.pyc *.pyc
*.pyo
# / # /
/Makefile /Makefile
@ -60,20 +61,10 @@
/tor-*-win32.exe /tor-*-win32.exe
# /contrib/ # /contrib/
/contrib/Makefile /contrib/dist/tor.sh
/contrib/Makefile.in /contrib/dist/torctl
/contrib/tor.sh /contrib/operator-tools/tor.logrotate
/contrib/torctl /contrib/dist/suse/tor.sh
/contrib/torify
/contrib/*.pyc
/contrib/*.pyo
/contrib/tor.logrotate
/contrib/tor.wxs
# /contrib/suse/
/contrib/suse/tor.sh
/contrib/suse/Makefile.in
/contrib/suse/Makefile
# /debian/ # /debian/
/debian/files /debian/files

View File

@ -77,7 +77,7 @@ reset-gcov:
# Avoid strlcpy.c, strlcat.c, aes.c, OpenBSD_malloc_Linux.c, sha256.c, # Avoid strlcpy.c, strlcat.c, aes.c, OpenBSD_malloc_Linux.c, sha256.c,
# eventdns.[hc], tinytest*.[ch] # eventdns.[hc], tinytest*.[ch]
check-spaces: check-spaces:
./contrib/checkSpace.pl -C \ ./scripts/maint/checkSpace.pl -C \
src/common/*.[ch] \ src/common/*.[ch] \
src/or/*.[ch] \ src/or/*.[ch] \
src/test/*.[ch] \ src/test/*.[ch] \
@ -85,10 +85,10 @@ check-spaces:
src/tools/tor-fw-helper/*.[ch] src/tools/tor-fw-helper/*.[ch]
check-docs: check-docs:
./contrib/checkOptionDocs.pl ./scripts/maint/checkOptionDocs.pl
check-logs: check-logs:
./contrib/checkLogs.pl \ ./scripts/maint/checkLogs.pl \
src/*/*.[ch] | sort -n src/*/*.[ch] | sort -n
version: version:

7
changes/ticket8966 Normal file
View File

@ -0,0 +1,7 @@
o Package cleanup:
- The contrib directory has been sorted and tidy. Before, it was an
unsorted dumping ground for useful and not-so-useful things. Now,
it has been divided based on functionality, and the items which
seemed to be nonfunctional or useless have been removed. Resolves
ticket 8966; based on patches from "rl1987".

View File

@ -1557,10 +1557,10 @@ CPPFLAGS="$CPPFLAGS $TOR_CPPFLAGS_libevent $TOR_CPPFLAGS_openssl $TOR_CPPFLAGS_z
AC_CONFIG_FILES([ AC_CONFIG_FILES([
Doxyfile Doxyfile
Makefile Makefile
contrib/suse/tor.sh contrib/dist/suse/tor.sh
contrib/tor.logrotate contrib/operator-tools/tor.logrotate
contrib/tor.sh contrib/dist/tor.sh
contrib/torctl contrib/dist/torctl
src/config/torrc.sample src/config/torrc.sample
]) ])
@ -1582,6 +1582,6 @@ fi
AC_OUTPUT AC_OUTPUT
if test -x /usr/bin/perl && test -x ./contrib/updateVersions.pl ; then if test -x /usr/bin/perl && test -x ./scripts/maint/updateVersions.pl ; then
./contrib/updateVersions.pl ./scripts/maint/updateVersions.pl
fi fi

View File

@ -1 +0,0 @@
EXTRA_DIST+= contrib/suse/tor.sh

View File

@ -1,18 +1,16 @@
include contrib/suse/include.am
EXTRA_DIST+= \ EXTRA_DIST+= \
contrib/cross.sh \ contrib/client-tools/torify \
contrib/exitlist \ contrib/dist/rc.subr \
contrib/linux-tor-prio.sh \ contrib/dist/suse/tor.sh.in \
contrib/package_nsis-mingw.sh \ contrib/dist/tor.sh \
contrib/rc.subr \ contrib/dist/torctl \
contrib/tor-ctrl.sh \ contrib/operator-tools/linux-tor-prio.sh \
contrib/tor-exit-notice.html \ contrib/operator-tools/tor-exit-notice.html \
contrib/tor-mingw.nsi.in \ contrib/or-tools/exitlist \
contrib/tor.ico \ contrib/win32build/package_nsis-mingw.sh \
contrib/tor.nsi.in \ contrib/win32build/tor-mingw.nsi.in \
contrib/tor.sh \ contrib/win32build/tor.ico \
contrib/torify \ contrib/win32build/tor.nsi.in
contrib/torctl
bin_SCRIPTS+= contrib/torify bin_SCRIPTS+= contrib/client-tools/torify

View File

@ -40,7 +40,7 @@
# you know what you are doing. # you know what you are doing.
# Start in the tor source directory after you've compiled tor.exe # Start in the tor source directory after you've compiled tor.exe
# This means start as ./contrib/package_nsis-mingw.sh # This means start as ./contrib/win32build/package_nsis-mingw.sh
rm -rf win_tmp rm -rf win_tmp
mkdir win_tmp mkdir win_tmp
@ -56,7 +56,7 @@ mkdir win_tmp/tmp
cp src/or/tor.exe win_tmp/bin/ cp src/or/tor.exe win_tmp/bin/
cp src/tools/tor-resolve.exe win_tmp/bin/ cp src/tools/tor-resolve.exe win_tmp/bin/
cp contrib/tor.ico win_tmp/bin/ cp contrib/win32build/tor.ico win_tmp/bin/
cp src/config/geoip win_tmp/bin/ cp src/config/geoip win_tmp/bin/
strip win_tmp/bin/*.exe strip win_tmp/bin/*.exe
@ -88,7 +88,7 @@ done
clean_localstatedir src/config/torrc.sample.in win_tmp/src/config/torrc.sample clean_localstatedir src/config/torrc.sample.in win_tmp/src/config/torrc.sample
cp contrib/tor-mingw.nsi.in win_tmp/contrib/ cp contrib/win32build/tor-mingw.nsi.in win_tmp/contrib/
cd win_tmp cd win_tmp
makensis.exe contrib/tor-mingw.nsi.in makensis.exe contrib/tor-mingw.nsi.in

View File

@ -122,7 +122,7 @@ Running gcov for unit test coverage
make make
make check make check
mkdir coverage-output mkdir coverage-output
./contrib/coverage coverage-output ./scripts/test/coverage coverage-output
----- -----
(On OSX, you'll need to start with "--enable-coverage CC=clang".) (On OSX, you'll need to start with "--enable-coverage CC=clang".)
@ -142,7 +142,7 @@ If you have two different "coverage-output" directories, and you want to see
a meaningful diff between them, you can run: a meaningful diff between them, you can run:
----- -----
./contrib/cov-diff coverage-output1 coverage-output2 | less ./scripts/test/cov-diff coverage-output1 coverage-output2 | less
----- -----
In this diff, any lines that were visited at least once will have coverage In this diff, any lines that were visited at least once will have coverage

View File

@ -1782,7 +1782,7 @@ if DirPort is non-zero):
When this option is set, it takes an HTML file and publishes it as "/" on When this option is set, it takes an HTML file and publishes it as "/" on
the DirPort. Now relay operators can provide a disclaimer without needing the DirPort. Now relay operators can provide a disclaimer without needing
to set up a separate webserver. There's a sample disclaimer in to set up a separate webserver. There's a sample disclaimer in
contrib/tor-exit-notice.html. contrib/operator-tools/tor-exit-notice.html.
[[V3AuthoritativeDirectory]] **V3AuthoritativeDirectory** **0**|**1**:: [[V3AuthoritativeDirectory]] **V3AuthoritativeDirectory** **0**|**1**::
When this option is set in addition to **AuthoritativeDirectory**, Tor When this option is set in addition to **AuthoritativeDirectory**, Tor

View File

@ -10,7 +10,7 @@
# to tell you where documentation should go! # to tell you where documentation should go!
# To use me, edit the stuff below... # To use me, edit the stuff below...
# ...and run 'make doxygen 2>doxygen.stderr' ... # ...and run 'make doxygen 2>doxygen.stderr' ...
# ...and run ./contrib/redox.py < doxygen.stderr ! # ...and run ./scripts/maint/redox.py < doxygen.stderr !
# I'll make a bunch of new files by adding missing DOCDOC comments to your # I'll make a bunch of new files by adding missing DOCDOC comments to your
# source. Those files will have names like ./src/common/util.c.newdoc. # source. Those files will have names like ./src/common/util.c.newdoc.
# You will want to look over the changes by hand before checking them in. # You will want to look over the changes by hand before checking them in.
@ -21,7 +21,7 @@
# 1. make doxygen 1>doxygen.stdout 2>doxygen.stderr. # 1. make doxygen 1>doxygen.stdout 2>doxygen.stderr.
# 2. grep Warning doxygen.stderr | grep -v 'is not documented' | less # 2. grep Warning doxygen.stderr | grep -v 'is not documented' | less
# [This will tell you about all the bogus doxygen output you have] # [This will tell you about all the bogus doxygen output you have]
# 3. python ./contrib/redox.py <doxygen.stderr # 3. python ./scripts/maint/redox.py <doxygen.stderr
# [This will make lots of .newdoc files with DOCDOC comments for # [This will make lots of .newdoc files with DOCDOC comments for
# whatever was missing documentation.] # whatever was missing documentation.]
# 4. Look over those .newdoc files, and see which docdoc comments you # 4. Look over those .newdoc files, and see which docdoc comments you

View File

@ -2,7 +2,7 @@
$CONFIGURE_IN = './configure.ac'; $CONFIGURE_IN = './configure.ac';
$ORCONFIG_H = './src/win32/orconfig.h'; $ORCONFIG_H = './src/win32/orconfig.h';
$TOR_NSI = './contrib/tor-mingw.nsi.in'; $TOR_NSI = './contrib/win32build/tor-mingw.nsi.in';
$quiet = 1; $quiet = 1;