the bob and automake framework builds, ships and installs the man
page.
git-svn-id: svn://svn.tartarus.org/sgt/agedu@8267
cda61777-01e9-0310-a592-
d414129be87e
+# Build the man page.
+in agedu do make doc
+
in agedu do sed '/AC_INIT/s/6.66/r$(revision)/' configure.ac > tmp.ac
in agedu do mv tmp.ac configure.ac
in agedu do aclocal
in agedu do sed '/AC_INIT/s/6.66/r$(revision)/' configure.ac > tmp.ac
in agedu do mv tmp.ac configure.ac
in agedu do aclocal
agedu_SOURCES = agedu.c du.c alloc.c trie.c index.c html.c httpd.c \
fgetline.c licence.c
agedu_LDADD = $(LIBOBJS)
agedu_SOURCES = agedu.c du.c alloc.c trie.c index.c html.c httpd.c \
fgetline.c licence.c
agedu_LDADD = $(LIBOBJS)
+ later glibcs have fdopendir, hooray! So we can use that
too, if it's available and O_NOATIME is too.
+ later glibcs have fdopendir, hooray! So we can use that
too, if it's available and O_NOATIME is too.
- - man page, --version.
-
Future possibilities:
- IPv6 support in the HTTP server
Future possibilities:
- IPv6 support in the HTTP server
\c URL: http://127.164.152.163:48638/
(That URL will always begin with \cq{127.}, meaning that it's in the
\c URL: http://127.164.152.163:48638/
(That URL will always begin with \cq{127.}, meaning that it's in the
-\cw{localhost} address space.)
+\cw{localhost} address space. So only processes running on the same
+computer can even try to connect to that web server, and also there
+is access control to prevent other users from seeing it \dash see
+below for more detail.)
Now paste that URL into your web browser, and you will be shown a
graphical representation of the disk usage in \cw{/home/fred} and
Now paste that URL into your web browser, and you will be shown a
graphical representation of the disk usage in \cw{/home/fred} and
-(Actually, the output will not be exactly identical, due to a
-difference in treatment of last-access times on directories. See the
-documentation of the \cw{--dir-atime} option in the next section.
+(The output will not be exactly \e{identical}, due to a
+difference in treatment of last-access times on directories.
+However, it should be effectively equivalent for most purposes. See
+the documentation of the \cw{--dir-atime} option in the next section
+for further detail.)
nearly a third of a Gb in size. Furthermore, since the data file
must be memory-mapped during most processing, it can never grow
larger than available address space, which means that any use of
nearly a third of a Gb in size. Furthermore, since the data file
must be memory-mapped during most processing, it can never grow
larger than available address space, which means that any use of
-\cw{agedu} on a seriously large file system is probably going to
-have to be done on a 64-bit computer.
+\cw{agedu} on a file system more than about ten times the above size
+is probably going to have to be done on a 64-bit computer.
The data structure also does not usefully permit access control
within the data file, so it would be difficult \dash even given the
The data structure also does not usefully permit access control
within the data file, so it would be difficult \dash even given the
usage(stdout);
return 0;
case OPT_VERSION:
usage(stdout);
return 0;
case OPT_VERSION:
- printf("FIXME: version();\n");
+#ifdef PACKAGE_VERSION
+ printf("%s, revision %s\n", PNAME, PACKAGE_VERSION);
+#else
+ printf("%s: version number not available when not built"
+ " via automake\n", PNAME);
+#endif
return 0;
case OPT_LICENCE:
{
return 0;
case OPT_LICENCE:
{
* Central header file for agedu, defining various useful things.
*/
* Central header file for agedu, defining various useful things.
*/
#define PNAME "agedu"
#define DUMPHDR "agedu dump file. pathsep="
#define PNAME "agedu"
#define DUMPHDR "agedu dump file. pathsep="