• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

AUTHORSH A D13-Aug-200738 31

COPYINGH A D13-Oct-200517.6 KiB341281

ChangeLogH A D21-Feb-200922.5 KiB738443

INSTALLH A D14-Jun-20089.2 KiB235177

Makefile.amH A D18-Aug-2007790 4332

Makefile.inH A D03-May-202217.1 KiB548471

NEWSH A D13-Oct-20050

READMEH A D26-Aug-20071.5 KiB4633

aclocal.m4H A D21-Feb-200922.1 KiB619548

configureH A D21-Feb-200990.8 KiB3,2772,586

configure.acH A D21-Feb-2009806 3426

icon-name-mapping.pl.inH A D27-Aug-20072.4 KiB9060

icon-naming-utils-uninstalled.pc.inH A D13-Aug-2007243 119

icon-naming-utils.pc.inH A D20-Jan-2006243 119

install-shH A D21-Feb-200913.3 KiB520344

legacy-icon-mapping.dtdH A D13-Oct-2005247 126

legacy-icon-mapping.xmlH A D21-Feb-200935.6 KiB1,2381,236

missingH A D21-Feb-200910.9 KiB368275

README

1
2icon-naming-utils is a script for maintaining backwards compatibility with
3current desktop icon themes, while migrating to the names specified in the
4Icon Naming Specification [1].
5
6The recommended method for using icon-naming-utils is via the Makefile
7scripts used to build a project. An example of how to do this, in an
8automake-parsed Makefile.am, is shown below:
9
10size = 32x32
11context = actions
12
13iconsdir = $(themedir)/$(size)/$(context)
14
15install-data-local: install-iconsDATA
16	(cd $(DESTDIR)$(themedir)/$(size) && $(ICONMAP) -c $(context))
17
18
19And in configure.{in,ac} you should have:
20
21# Define the toplevel path here
22AC_SUBST(themedir, "\${datadir}/icons/Theme")
23
24UTILS_REQUIRED=0.8.2
25
26AC_MSG_CHECKING([icon-naming-utils >= $UTILS_REQUIRED])
27PKG_CHECK_EXISTS(icon-naming-utils >= $UTILS_REQUIRED,
28                 have_utils=yes, have_utils=no)
29if test "x$have_utils" = "xyes"; then
30   UTILS_PATH="`$PKG_CONFIG --variable=program_path icon-naming-utils`"
31   ICONMAP="$UTILS_PATH/icon-name-mapping"
32   AC_SUBST(ICONMAP)
33   AC_MSG_RESULT([yes])
34else
35   AC_MSG_RESULT([no])
36   AC_MSG_ERROR([icon-naming-utils >= $UTILS_REQUIRED is required to build
37                 and install tango-icon-theme])
38fi
39
40In this example, we define $(themedir) to point to the theme's install
41path, and ICONMAP gets defined as the path to the icon-name-mapping script.
42This script is not installed in a normal $(bindir) path, as it is not intended
43to be run by users by hand, but to be called from scripts, such as Makefiles.
44
45[1] http://www.freedesktop.org/wiki/Standards_2ficon_2dnaming_2dspec
46