Re: 2.99.12 (Irix failure)
Bernd Melchers <[email protected]> Fri, 4 Feb 2005 08:38:19 +0100
| Newsgroups | gmane.comp.tex.tetex.beta |
|---|---|
| Message-ID | <[email protected]> |
>=20
> Have a problem under Irix... basename is not present on the
> system.... Need to use xbasename..
my manpage (IRIX-6.5.24) says, you have to include <libgen.h>
to use basename(3):
basename(3G) basename(3G)
NAME
basename - return the last element of a pathname
SYNOPSIS
cc [flag ...] file ... -lgen [library ...]
#include <libgen.h>
char *basename (char *path);
DESCRIPTION
Given a pointer to a null-terminated character string that contains =
a
pathname, basename returns a pointer to the last element of path.
Trailing ``/'' characters are deleted.
If path or *path is zero, pointer to a static constant ``.'' is retu=
rned.
>=20
> (And one needs to remove texk/web2c/ttf2afm.c before recompiling as it
> is copied)
>=20
> I'll let you know if there any other problems by tomorrow morning...
>=20
> *** texk/web2c/pdftexdir/ttf2afm.c 2005/02/04 03:24:02 1.1
> --- texk/web2c/pdftexdir/ttf2afm.c 2005/02/04 03:24:31
> ***************
> *** 975,981 ****
> cur_file_name =3D argv[optind];
> if (print_cmap) {
> buf =3D xstrdup(cur_file_name);
> ! bname =3D basename(buf);
> if ((s =3D rindex(bname, '.')) !=3D NULL)
> *s =3D 0;
> }
> --- 975,981 ----
> cur_file_name =3D argv[optind];
> if (print_cmap) {
> buf =3D xstrdup(cur_file_name);
> ! bname =3D xbasename(buf);
> if ((s =3D rindex(bname, '.')) !=3D NULL)
> *s =3D 0;
> }
mit freundlichen Gr=FC=DFen
Bernd Melchers
--=20
Archiv- und Backup-Service | [email protected]
Freie Universit=E4t Berlin | Tel. (030) 838-55905