Importing from X.Org 7.2RC2

This commit is contained in:
matthieu
2006-11-25 20:07:29 +00:00
parent 8c9bfd57b8
commit 616b6f15ab
1886 changed files with 1041525 additions and 0 deletions

0
app/xcmsdb/AUTHORS Normal file
View File

12
app/xcmsdb/COPYING Normal file
View File

@@ -0,0 +1,12 @@
This is a stub file. This package has not yet had its complete licensing
information compiled. Please see the individual source files for details on
your rights to use and modify this software.
Please submit updated COPYING files to the Xorg bugzilla:
https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
All licensing questions regarding this software should be directed at the
Xorg mailing list:
http://lists.freedesktop.org/mailman/listinfo/xorg

25
app/xcmsdb/ChangeLog Normal file
View File

@@ -0,0 +1,25 @@
2005-12-20 Kevin E. Martin <kem-at-freedesktop-dot-org>
* configure.ac:
Update package version for X11R7 release.
2005-12-14 Kevin E. Martin <kem-at-freedesktop-dot-org>
* configure.ac:
Update package version number for final X11R7 release candidate.
2005-12-06 Kevin E. Martin <kem-at-freedesktop-dot-org>
* Makefile.am:
Change *man_SOURCES ==> *man_PRE to fix autotools warnings.
2005-12-03 Kevin E. Martin <kem-at-freedesktop-dot-org>
* configure.ac:
Update package version number for X11R7 RC3 release.
2005-10-18 Kevin E. Martin <kem-at-freedesktop-dot-org>
* configure.ac:
Update package version number for RC1 release.

0
app/xcmsdb/INSTALL Normal file
View File

66
app/xcmsdb/Makefile.am Normal file
View File

@@ -0,0 +1,66 @@
#
# Copyright 2005 Red Hat, Inc.
#
# Permission to use, copy, modify, distribute, and sell this software and its
# documentation for any purpose is hereby granted without fee, provided that
# the above copyright notice appear in all copies and that both that
# copyright notice and this permission notice appear in supporting
# documentation, and that the name of Red Hat not be used in
# advertising or publicity pertaining to distribution of the software without
# specific, written prior permission. Red Hat makes no
# representations about the suitability of this software for any purpose. It
# is provided "as is" without express or implied warranty.
#
# RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
# EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
bin_PROGRAMS = xcmsdb
xcmsdb_CFLAGS = $(XCMSDB_CFLAGS)
xcmsdb_LDADD = $(XCMSDB_LIBS)
xcmsdb_SOURCES = \
loadData.c \
SCCDFile.h \
xcmsdb.c
appman_PRE = \
xcmsdb.man
EXTRA_DIST = datafiles/sample1.dcc datafiles/sample2.dcc
appmandir = $(APP_MAN_DIR)
appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@)
EXTRA_DIST += $(appman_PRE)
CLEANFILES = $(appman_DATA)
SED = sed
# Strings to replace in man pages
XORGRELSTRING = @PACKAGE_STRING@
XORGMANNAME = X Version 11
MAN_SUBSTS = \
-e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
-e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
-e 's|__xservername__|Xorg|g' \
-e 's|__xconfigfile__|xorg.conf|g' \
-e 's|__projectroot__|$(prefix)|g' \
-e 's|__apploaddir__|$(appdefaultdir)|' \
-e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \
-e 's|__libmansuffix__|$(LIB_MAN_SUFFIX)|g' \
-e 's|__adminmansuffix__|$(ADMIN_MAN_SUFFIX)|g' \
-e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \
-e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g'
SUFFIXES = .$(APP_MAN_SUFFIX) .man
.man.$(APP_MAN_SUFFIX):
sed $(MAN_SUBSTS) < $< > $@

660
app/xcmsdb/Makefile.in Normal file
View File

@@ -0,0 +1,660 @@
# Makefile.in generated by automake 1.7.9 from Makefile.am.
# @configure_input@
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
# Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
@SET_MAKE@
#
# Copyright 2005 Red Hat, Inc.
#
# Permission to use, copy, modify, distribute, and sell this software and its
# documentation for any purpose is hereby granted without fee, provided that
# the above copyright notice appear in all copies and that both that
# copyright notice and this permission notice appear in supporting
# documentation, and that the name of Red Hat not be used in
# advertising or publicity pertaining to distribution of the software without
# specific, written prior permission. Red Hat makes no
# representations about the suitability of this software for any purpose. It
# is provided "as is" without express or implied warranty.
#
# RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
# EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
top_builddir = .
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
INSTALL = @INSTALL@
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
host_triplet = @host@
ACLOCAL = @ACLOCAL@
ADMIN_MAN_DIR = @ADMIN_MAN_DIR@
ADMIN_MAN_SUFFIX = @ADMIN_MAN_SUFFIX@
AMDEP_FALSE = @AMDEP_FALSE@
AMDEP_TRUE = @AMDEP_TRUE@
AMTAR = @AMTAR@
APP_MAN_DIR = @APP_MAN_DIR@
APP_MAN_SUFFIX = @APP_MAN_SUFFIX@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@
CPPFLAGS = @CPPFLAGS@
CYGPATH_W = @CYGPATH_W@
DEFS = @DEFS@
DEPDIR = @DEPDIR@
DRIVER_MAN_DIR = @DRIVER_MAN_DIR@
DRIVER_MAN_SUFFIX = @DRIVER_MAN_SUFFIX@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
EXEEXT = @EXEEXT@
FILE_MAN_DIR = @FILE_MAN_DIR@
FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
LDFLAGS = @LDFLAGS@
LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LIB_MAN_DIR = @LIB_MAN_DIR@
LIB_MAN_SUFFIX = @LIB_MAN_SUFFIX@
LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@
MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
MAKEINFO = @MAKEINFO@
MISC_MAN_DIR = @MISC_MAN_DIR@
MISC_MAN_SUFFIX = @MISC_MAN_SUFFIX@
OBJEXT = @OBJEXT@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
PKG_CONFIG = @PKG_CONFIG@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
STRIP = @STRIP@
VERSION = @VERSION@
XCMSDB_CFLAGS = @XCMSDB_CFLAGS@
XCMSDB_LIBS = @XCMSDB_LIBS@
ac_ct_CC = @ac_ct_CC@
ac_ct_STRIP = @ac_ct_STRIP@
ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@
am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
am__include = @am__include@
am__leading_dot = @am__leading_dot@
am__quote = @am__quote@
bindir = @bindir@
build = @build@
build_alias = @build_alias@
build_cpu = @build_cpu@
build_os = @build_os@
build_vendor = @build_vendor@
datadir = @datadir@
exec_prefix = @exec_prefix@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_os = @host_os@
host_vendor = @host_vendor@
includedir = @includedir@
infodir = @infodir@
install_sh = @install_sh@
libdir = @libdir@
libexecdir = @libexecdir@
localstatedir = @localstatedir@
mandir = @mandir@
oldincludedir = @oldincludedir@
prefix = @prefix@
program_transform_name = @program_transform_name@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
bin_PROGRAMS = xcmsdb
xcmsdb_CFLAGS = $(XCMSDB_CFLAGS)
xcmsdb_LDADD = $(XCMSDB_LIBS)
xcmsdb_SOURCES = \
loadData.c \
SCCDFile.h \
xcmsdb.c
appman_PRE = \
xcmsdb.man
EXTRA_DIST = datafiles/sample1.dcc datafiles/sample2.dcc $(appman_PRE)
appmandir = $(APP_MAN_DIR)
appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@)
CLEANFILES = $(appman_DATA)
SED = sed
# Strings to replace in man pages
XORGRELSTRING = @PACKAGE_STRING@
XORGMANNAME = X Version 11
MAN_SUBSTS = \
-e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
-e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
-e 's|__xservername__|Xorg|g' \
-e 's|__xconfigfile__|xorg.conf|g' \
-e 's|__projectroot__|$(prefix)|g' \
-e 's|__apploaddir__|$(appdefaultdir)|' \
-e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \
-e 's|__libmansuffix__|$(LIB_MAN_SUFFIX)|g' \
-e 's|__adminmansuffix__|$(ADMIN_MAN_SUFFIX)|g' \
-e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \
-e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g'
SUFFIXES = .$(APP_MAN_SUFFIX) .man
subdir = .
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = config.h
CONFIG_CLEAN_FILES =
bin_PROGRAMS = xcmsdb$(EXEEXT)
PROGRAMS = $(bin_PROGRAMS)
am_xcmsdb_OBJECTS = xcmsdb-loadData.$(OBJEXT) xcmsdb-xcmsdb.$(OBJEXT)
xcmsdb_OBJECTS = $(am_xcmsdb_OBJECTS)
xcmsdb_DEPENDENCIES =
xcmsdb_LDFLAGS =
DEFAULT_INCLUDES = -I. -I$(srcdir) -I.
depcomp = $(SHELL) $(top_srcdir)/depcomp
am__depfiles_maybe = depfiles
@AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/xcmsdb-loadData.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/xcmsdb-xcmsdb.Po
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
DIST_SOURCES = $(xcmsdb_SOURCES)
DATA = $(appman_DATA)
DIST_COMMON = README $(srcdir)/Makefile.in $(srcdir)/configure AUTHORS \
COPYING ChangeLog INSTALL Makefile.am NEWS aclocal.m4 compile \
config.guess config.h.in config.sub configure configure.ac \
depcomp install-sh missing mkinstalldirs
SOURCES = $(xcmsdb_SOURCES)
all: config.h
$(MAKE) $(AM_MAKEFLAGS) all-am
.SUFFIXES:
.SUFFIXES: .$(APP_MAN_SUFFIX) .man .c .o .obj
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
configure.lineno
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.ac $(ACLOCAL_M4)
cd $(top_srcdir) && \
$(AUTOMAKE) --gnu Makefile
Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status
cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)
$(top_builddir)/config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
$(SHELL) ./config.status --recheck
$(srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(srcdir)/configure.ac $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
cd $(srcdir) && $(AUTOCONF)
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.ac
cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
config.h: stamp-h1
@if test ! -f $@; then \
rm -f stamp-h1; \
$(MAKE) stamp-h1; \
else :; fi
stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
@rm -f stamp-h1
cd $(top_builddir) && $(SHELL) ./config.status config.h
$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(top_srcdir)/configure.ac $(ACLOCAL_M4)
cd $(top_srcdir) && $(AUTOHEADER)
touch $(srcdir)/config.h.in
distclean-hdr:
-rm -f config.h stamp-h1
binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
install-binPROGRAMS: $(bin_PROGRAMS)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(bindir)
@list='$(bin_PROGRAMS)'; for p in $$list; do \
p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
if test -f $$p \
; then \
f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f"; \
$(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f || exit 1; \
else :; fi; \
done
uninstall-binPROGRAMS:
@$(NORMAL_UNINSTALL)
@list='$(bin_PROGRAMS)'; for p in $$list; do \
f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
echo " rm -f $(DESTDIR)$(bindir)/$$f"; \
rm -f $(DESTDIR)$(bindir)/$$f; \
done
clean-binPROGRAMS:
-test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
xcmsdb$(EXEEXT): $(xcmsdb_OBJECTS) $(xcmsdb_DEPENDENCIES)
@rm -f xcmsdb$(EXEEXT)
$(LINK) $(xcmsdb_LDFLAGS) $(xcmsdb_OBJECTS) $(xcmsdb_LDADD) $(LIBS)
mostlyclean-compile:
-rm -f *.$(OBJEXT) core *.core
distclean-compile:
-rm -f *.tab.c
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xcmsdb-loadData.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xcmsdb-xcmsdb.Po@am__quote@
.c.o:
@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
@am__fastdepCC_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
@am__fastdepCC_TRUE@ fi
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(COMPILE) -c `test -f '$<' || echo '$(srcdir)/'`$<
.c.obj:
@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
@am__fastdepCC_TRUE@ -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`; \
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
@am__fastdepCC_TRUE@ fi
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(COMPILE) -c `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`
xcmsdb-loadData.o: loadData.c
@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xcmsdb_CFLAGS) $(CFLAGS) -MT xcmsdb-loadData.o -MD -MP -MF "$(DEPDIR)/xcmsdb-loadData.Tpo" \
@am__fastdepCC_TRUE@ -c -o xcmsdb-loadData.o `test -f 'loadData.c' || echo '$(srcdir)/'`loadData.c; \
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/xcmsdb-loadData.Tpo" "$(DEPDIR)/xcmsdb-loadData.Po"; \
@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/xcmsdb-loadData.Tpo"; exit 1; \
@am__fastdepCC_TRUE@ fi
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='loadData.c' object='xcmsdb-loadData.o' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/xcmsdb-loadData.Po' tmpdepfile='$(DEPDIR)/xcmsdb-loadData.TPo' @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xcmsdb_CFLAGS) $(CFLAGS) -c -o xcmsdb-loadData.o `test -f 'loadData.c' || echo '$(srcdir)/'`loadData.c
xcmsdb-loadData.obj: loadData.c
@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xcmsdb_CFLAGS) $(CFLAGS) -MT xcmsdb-loadData.obj -MD -MP -MF "$(DEPDIR)/xcmsdb-loadData.Tpo" \
@am__fastdepCC_TRUE@ -c -o xcmsdb-loadData.obj `if test -f 'loadData.c'; then $(CYGPATH_W) 'loadData.c'; else $(CYGPATH_W) '$(srcdir)/loadData.c'; fi`; \
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/xcmsdb-loadData.Tpo" "$(DEPDIR)/xcmsdb-loadData.Po"; \
@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/xcmsdb-loadData.Tpo"; exit 1; \
@am__fastdepCC_TRUE@ fi
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='loadData.c' object='xcmsdb-loadData.obj' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/xcmsdb-loadData.Po' tmpdepfile='$(DEPDIR)/xcmsdb-loadData.TPo' @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xcmsdb_CFLAGS) $(CFLAGS) -c -o xcmsdb-loadData.obj `if test -f 'loadData.c'; then $(CYGPATH_W) 'loadData.c'; else $(CYGPATH_W) '$(srcdir)/loadData.c'; fi`
xcmsdb-xcmsdb.o: xcmsdb.c
@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xcmsdb_CFLAGS) $(CFLAGS) -MT xcmsdb-xcmsdb.o -MD -MP -MF "$(DEPDIR)/xcmsdb-xcmsdb.Tpo" \
@am__fastdepCC_TRUE@ -c -o xcmsdb-xcmsdb.o `test -f 'xcmsdb.c' || echo '$(srcdir)/'`xcmsdb.c; \
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/xcmsdb-xcmsdb.Tpo" "$(DEPDIR)/xcmsdb-xcmsdb.Po"; \
@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/xcmsdb-xcmsdb.Tpo"; exit 1; \
@am__fastdepCC_TRUE@ fi
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='xcmsdb.c' object='xcmsdb-xcmsdb.o' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/xcmsdb-xcmsdb.Po' tmpdepfile='$(DEPDIR)/xcmsdb-xcmsdb.TPo' @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xcmsdb_CFLAGS) $(CFLAGS) -c -o xcmsdb-xcmsdb.o `test -f 'xcmsdb.c' || echo '$(srcdir)/'`xcmsdb.c
xcmsdb-xcmsdb.obj: xcmsdb.c
@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xcmsdb_CFLAGS) $(CFLAGS) -MT xcmsdb-xcmsdb.obj -MD -MP -MF "$(DEPDIR)/xcmsdb-xcmsdb.Tpo" \
@am__fastdepCC_TRUE@ -c -o xcmsdb-xcmsdb.obj `if test -f 'xcmsdb.c'; then $(CYGPATH_W) 'xcmsdb.c'; else $(CYGPATH_W) '$(srcdir)/xcmsdb.c'; fi`; \
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/xcmsdb-xcmsdb.Tpo" "$(DEPDIR)/xcmsdb-xcmsdb.Po"; \
@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/xcmsdb-xcmsdb.Tpo"; exit 1; \
@am__fastdepCC_TRUE@ fi
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='xcmsdb.c' object='xcmsdb-xcmsdb.obj' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/xcmsdb-xcmsdb.Po' tmpdepfile='$(DEPDIR)/xcmsdb-xcmsdb.TPo' @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xcmsdb_CFLAGS) $(CFLAGS) -c -o xcmsdb-xcmsdb.obj `if test -f 'xcmsdb.c'; then $(CYGPATH_W) 'xcmsdb.c'; else $(CYGPATH_W) '$(srcdir)/xcmsdb.c'; fi`
uninstall-info-am:
appmanDATA_INSTALL = $(INSTALL_DATA)
install-appmanDATA: $(appman_DATA)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(appmandir)
@list='$(appman_DATA)'; for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
f="`echo $$p | sed -e 's|^.*/||'`"; \
echo " $(appmanDATA_INSTALL) $$d$$p $(DESTDIR)$(appmandir)/$$f"; \
$(appmanDATA_INSTALL) $$d$$p $(DESTDIR)$(appmandir)/$$f; \
done
uninstall-appmanDATA:
@$(NORMAL_UNINSTALL)
@list='$(appman_DATA)'; for p in $$list; do \
f="`echo $$p | sed -e 's|^.*/||'`"; \
echo " rm -f $(DESTDIR)$(appmandir)/$$f"; \
rm -f $(DESTDIR)$(appmandir)/$$f; \
done
ETAGS = etags
ETAGSFLAGS =
CTAGS = ctags
CTAGSFLAGS =
tags: TAGS
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
mkid -fID $$unique
TAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
tags=; \
here=`pwd`; \
list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
test -z "$(ETAGS_ARGS)$$tags$$unique" \
|| $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
$$tags $$unique
ctags: CTAGS
CTAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
tags=; \
here=`pwd`; \
list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
test -z "$(CTAGS_ARGS)$$tags$$unique" \
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
$$tags $$unique
GTAGS:
here=`$(am__cd) $(top_builddir) && pwd` \
&& cd $(top_srcdir) \
&& gtags -i $(GTAGS_ARGS) $$here
distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
top_distdir = .
distdir = $(PACKAGE)-$(VERSION)
am__remove_distdir = \
{ test ! -d $(distdir) \
|| { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
&& rm -fr $(distdir); }; }
GZIP_ENV = --best
distuninstallcheck_listfiles = find . -type f -print
distcleancheck_listfiles = find . -type f -print
distdir: $(DISTFILES)
$(am__remove_distdir)
mkdir $(distdir)
$(mkinstalldirs) $(distdir)/datafiles
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
list='$(DISTFILES)'; for file in $$list; do \
case $$file in \
$(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
$(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
esac; \
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
dir="/$$dir"; \
$(mkinstalldirs) "$(distdir)$$dir"; \
else \
dir=''; \
fi; \
if test -d $$d/$$file; then \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
fi; \
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
else \
test -f $(distdir)/$$file \
|| cp -p $$d/$$file $(distdir)/$$file \
|| exit 1; \
fi; \
done
-find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
! -type d ! -perm -400 -exec chmod a+r {} \; -o \
! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
|| chmod -R a+r $(distdir)
dist-gzip: distdir
$(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
$(am__remove_distdir)
dist-bzip2: distdir
$(AMTAR) chof - $(distdir) | bzip2 -9 -c >$(distdir).tar.bz2
$(am__remove_distdir)
dist dist-all: distdir
$(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
$(AMTAR) chof - $(distdir) | bzip2 -9 -c >$(distdir).tar.bz2
$(am__remove_distdir)
# This target untars the dist file and tries a VPATH configuration. Then
# it guarantees that the distribution is self-contained by making another
# tarfile.
distcheck: dist
$(am__remove_distdir)
GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf -
chmod -R a-w $(distdir); chmod a+w $(distdir)
mkdir $(distdir)/_build
mkdir $(distdir)/_inst
chmod a-w $(distdir)
dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
&& dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
&& cd $(distdir)/_build \
&& ../configure --srcdir=.. --prefix="$$dc_install_base" \
$(DISTCHECK_CONFIGURE_FLAGS) \
&& $(MAKE) $(AM_MAKEFLAGS) \
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
&& $(MAKE) $(AM_MAKEFLAGS) check \
&& $(MAKE) $(AM_MAKEFLAGS) install \
&& $(MAKE) $(AM_MAKEFLAGS) installcheck \
&& $(MAKE) $(AM_MAKEFLAGS) uninstall \
&& $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
distuninstallcheck \
&& chmod -R a-w "$$dc_install_base" \
&& ({ \
(cd ../.. && $(mkinstalldirs) "$$dc_destdir") \
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
} || { rm -rf "$$dc_destdir"; exit 1; }) \
&& rm -rf "$$dc_destdir" \
&& $(MAKE) $(AM_MAKEFLAGS) dist-gzip \
&& rm -f $(distdir).tar.gz \
&& $(MAKE) $(AM_MAKEFLAGS) distcleancheck
$(am__remove_distdir)
@echo "$(distdir).tar.gz is ready for distribution" | \
sed 'h;s/./=/g;p;x;p;x'
distuninstallcheck:
@cd $(distuninstallcheck_dir) \
&& test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
|| { echo "ERROR: files left after uninstall:" ; \
if test -n "$(DESTDIR)"; then \
echo " (check DESTDIR support)"; \
fi ; \
$(distuninstallcheck_listfiles) ; \
exit 1; } >&2
distcleancheck: distclean
@if test '$(srcdir)' = . ; then \
echo "ERROR: distcleancheck can only run from a VPATH build" ; \
exit 1 ; \
fi
@test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
|| { echo "ERROR: files left in build directory after distclean:" ; \
$(distcleancheck_listfiles) ; \
exit 1; } >&2
check-am: all-am
check: check-am
all-am: Makefile $(PROGRAMS) $(DATA) config.h
installdirs:
$(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(appmandir)
install: install-am
install-exec: install-exec-am
install-data: install-data-am
uninstall: uninstall-am
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
installcheck: installcheck-am
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
`test -z '$(STRIP)' || \
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
mostlyclean-generic:
clean-generic:
-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
distclean-generic:
-rm -f $(CONFIG_CLEAN_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
clean: clean-am
clean-am: clean-binPROGRAMS clean-generic mostlyclean-am
distclean: distclean-am
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
-rm -rf ./$(DEPDIR)
-rm -f Makefile
distclean-am: clean-am distclean-compile distclean-generic distclean-hdr \
distclean-tags
dvi: dvi-am
dvi-am:
info: info-am
info-am:
install-data-am: install-appmanDATA
install-exec-am: install-binPROGRAMS
install-info: install-info-am
install-man:
installcheck-am:
maintainer-clean: maintainer-clean-am
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
-rm -rf $(top_srcdir)/autom4te.cache
-rm -rf ./$(DEPDIR)
-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-am
mostlyclean-am: mostlyclean-compile mostlyclean-generic
pdf: pdf-am
pdf-am:
ps: ps-am
ps-am:
uninstall-am: uninstall-appmanDATA uninstall-binPROGRAMS \
uninstall-info-am
.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
clean-generic ctags dist dist-all dist-bzip2 dist-gzip \
distcheck distclean distclean-compile distclean-generic \
distclean-hdr distclean-tags distcleancheck distdir \
distuninstallcheck dvi dvi-am info info-am install install-am \
install-appmanDATA install-binPROGRAMS install-data \
install-data-am install-exec install-exec-am install-info \
install-info-am install-man install-strip installcheck \
installcheck-am installdirs maintainer-clean \
maintainer-clean-generic mostlyclean mostlyclean-compile \
mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \
uninstall-am uninstall-appmanDATA uninstall-binPROGRAMS \
uninstall-info-am
.man.$(APP_MAN_SUFFIX):
sed $(MAN_SUBSTS) < $< > $@
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

0
app/xcmsdb/NEWS Normal file
View File

0
app/xcmsdb/README Normal file
View File

145
app/xcmsdb/SCCDFile.h Normal file
View File

@@ -0,0 +1,145 @@
/* $Xorg: SCCDFile.h,v 1.3 2000/08/17 19:54:13 cpqbld Exp $ */
/*
* (c) Copyright 1990 Tektronix Inc.
* All Rights Reserved
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose and without fee is hereby granted,
* provided that the above copyright notice appear in all copies and that
* both that copyright notice and this permission notice appear in
* supporting documentation, and that the name of Tektronix not be used
* in advertising or publicity pertaining to distribution of the software
* without specific, written prior permission.
*
* Tektronix disclaims all warranties with regard to this software, including
* all implied warranties of merchantability and fitness, in no event shall
* Tektronix be liable for any special, indirect or consequential damages or
* any damages whatsoever resulting from loss of use, data or profits,
* whether in an action of contract, negligence or other tortious action,
* arising out of or in connection with the use or performance of this
* software.
*
*
* NAME
* SCCDFile.h
*
* DESCRIPTION
* Include file for TekCMS Color Extension when using the
* X Device Color Characterization Convention (XDCCC).
*
*/
/* $XFree86: xc/programs/xcmsdb/SCCDFile.h,v 1.3 1999/03/02 11:49:36 dawes Exp $ */
#ifndef SCCDFILE_H
#define SCCDFILE_H
#include <X11/Xutil.h>
#include <X11/Xcms.h>
/*
* DEFINES
*/
#define XDCCC_NUMBER 0x8000000L /* 2**27 per ICCCM */
#define XDCCC_MATRIX_ATOM_NAME "XDCCC_LINEAR_RGB_MATRICES"
#define XDCCC_CORRECT_ATOM_NAME "XDCCC_LINEAR_RGB_CORRECTION"
#define READABLE_SD_SUFFIX ".txt"
#define TXT_FORMAT_VERSION "1.1"
#define DATA_DELIMS " \t\n" /* space, tab, newline */
#define SC_BEGIN_KEYWORD "SCREENDATA_BEGIN"
#define SC_END_KEYWORD "SCREENDATA_END"
#define COMMENT_KEYWORD "COMMENT"
#define NAME_KEYWORD "NAME"
#define MODEL_KEYWORD "MODEL"
#define PART_NUMBER_KEYWORD "PART_NUMBER"
#define SERIAL_NUMBER_KEYWORD "SERIAL_NUMBER"
#define REVISION_KEYWORD "REVISION"
#define SCREEN_CLASS_KEYWORD "SCREEN_CLASS"
#define COLORIMETRIC_BEGIN_KEYWORD "COLORIMETRIC_BEGIN"
#define COLORIMETRIC_END_KEYWORD "COLORIMETRIC_END"
#define XYZTORGBMAT_BEGIN_KEYWORD "XYZtoRGB_MATRIX_BEGIN"
#define XYZTORGBMAT_END_KEYWORD "XYZtoRGB_MATRIX_END"
#define RGBTOXYZMAT_BEGIN_KEYWORD "RGBtoXYZ_MATRIX_BEGIN"
#define RGBTOXYZMAT_END_KEYWORD "RGBtoXYZ_MATRIX_END"
#define IPROFILE_BEGIN_KEYWORD "INTENSITY_PROFILE_BEGIN"
#define IPROFILE_END_KEYWORD "INTENSITY_PROFILE_END"
#define ITBL_BEGIN_KEYWORD "INTENSITY_TBL_BEGIN"
#define ITBL_END_KEYWORD "INTENSITY_TBL_END"
#define WHITEPT_XYZ_BEGIN_KEYWORD "WHITEPT_XYZ_BEGIN"
#define WHITEPT_XYZ_END_KEYWORD "WHITEPT_XYZ_END"
#define VIDEO_RGB_KEYWORD "VIDEO_RGB"
#ifdef GRAY
#define VIDEO_GRAY_KEYWORD "VIDEO_GRAY"
#endif
#define DATA -1
#define SC_BEGIN 1
#define SC_END 2
#define COMMENT 3
#define NAME 4
#define MODEL 5
#define PART_NUMBER 6
#define SERIAL_NUMBER 7
#define REVISION 8
#define SCREEN_CLASS 9
#define COLORIMETRIC_BEGIN 10
#define COLORIMETRIC_END 11
#define XYZTORGBMAT_BEGIN 12
#define XYZTORGBMAT_END 13
#define RGBTOXYZMAT_BEGIN 14
#define RGBTOXYZMAT_END 15
#define IPROFILE_BEGIN 16
#define IPROFILE_END 17
#define ITBL_BEGIN 18
#define ITBL_END 19
#define WHITEPT_XYZ_BEGIN 20
#define WHITEPT_XYZ_END 21
#define CORR_TYPE_NONE -1
#define CORR_TYPE_0 0
#define CORR_TYPE_1 1
#define VIDEO_RGB 0
#ifdef GRAY
#define VIDEO_GRAY 1
#endif
/*
* Intensity Record (i.e., value / intensity tuple)
*/
typedef struct _IntensityRec {
unsigned short value;
XcmsFloat intensity;
} IntensityRec;
/*
* Intensity Table
*/
typedef struct _IntensityTbl {
IntensityRec *pBase;
unsigned int nEntries;
} IntensityTbl;
typedef struct _XDCCC_Matrix {
XcmsFloat XYZtoRGBmatrix[3][3];
XcmsFloat RGBtoXYZmatrix[3][3];
} XDCCC_Matrix;
typedef struct _XDCCC_Correction {
XVisualInfo visual_info;
long visual_info_mask;
int tableType;
int nTables;
IntensityTbl* pRedTbl;
IntensityTbl* pGreenTbl;
IntensityTbl* pBlueTbl;
struct _XDCCC_Correction* next;
} XDCCC_Correction;
extern int LoadSCCData(Display *pDpy, int screenNumber, char *filename,
int targetFormat);
#endif /* SCCDFILE_H */

1374
app/xcmsdb/aclocal.m4 vendored Normal file

File diff suppressed because it is too large Load Diff

99
app/xcmsdb/compile Normal file
View File

@@ -0,0 +1,99 @@
#! /bin/sh
# Wrapper for compilers which do not understand `-c -o'.
# Copyright 1999, 2000 Free Software Foundation, Inc.
# Written by Tom Tromey <tromey@cygnus.com>.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
# Usage:
# compile PROGRAM [ARGS]...
# `-o FOO.o' is removed from the args passed to the actual compile.
prog=$1
shift
ofile=
cfile=
args=
while test $# -gt 0; do
case "$1" in
-o)
# configure might choose to run compile as `compile cc -o foo foo.c'.
# So we do something ugly here.
ofile=$2
shift
case "$ofile" in
*.o | *.obj)
;;
*)
args="$args -o $ofile"
ofile=
;;
esac
;;
*.c)
cfile=$1
args="$args $1"
;;
*)
args="$args $1"
;;
esac
shift
done
if test -z "$ofile" || test -z "$cfile"; then
# If no `-o' option was seen then we might have been invoked from a
# pattern rule where we don't need one. That is ok -- this is a
# normal compilation that the losing compiler can handle. If no
# `.c' file was seen then we are probably linking. That is also
# ok.
exec "$prog" $args
fi
# Name of file we expect compiler to create.
cofile=`echo $cfile | sed -e 's|^.*/||' -e 's/\.c$/.o/'`
# Create the lock directory.
# Note: use `[/.-]' here to ensure that we don't use the same name
# that we are using for the .o file. Also, base the name on the expected
# object file name, since that is what matters with a parallel build.
lockdir=`echo $cofile | sed -e 's|[/.-]|_|g'`.d
while true; do
if mkdir $lockdir > /dev/null 2>&1; then
break
fi
sleep 1
done
# FIXME: race condition here if user kills between mkdir and trap.
trap "rmdir $lockdir; exit 1" 1 2 15
# Run the compile.
"$prog" $args
status=$?
if test -f "$cofile"; then
mv "$cofile" "$ofile"
fi
rmdir $lockdir
exit $status

1411
app/xcmsdb/config.guess vendored Normal file

File diff suppressed because it is too large Load Diff

22
app/xcmsdb/config.h.in Normal file
View File

@@ -0,0 +1,22 @@
/* config.h.in. Generated from configure.ac by autoheader. */
/* Name of package */
#undef PACKAGE
/* Define to the address where bug reports for this package should be sent. */
#undef PACKAGE_BUGREPORT
/* Define to the full name of this package. */
#undef PACKAGE_NAME
/* Define to the full name and version of this package. */
#undef PACKAGE_STRING
/* Define to the one symbol short name of this package. */
#undef PACKAGE_TARNAME
/* Define to the version of this package. */
#undef PACKAGE_VERSION
/* Version number of package */
#undef VERSION

1500
app/xcmsdb/config.sub vendored Normal file

File diff suppressed because it is too large Load Diff

4723
app/xcmsdb/configure vendored Normal file

File diff suppressed because it is too large Load Diff

42
app/xcmsdb/configure.ac Normal file
View File

@@ -0,0 +1,42 @@
dnl Copyright 2005 Red Hat, Inc.
dnl
dnl Permission to use, copy, modify, distribute, and sell this software and its
dnl documentation for any purpose is hereby granted without fee, provided that
dnl the above copyright notice appear in all copies and that both that
dnl copyright notice and this permission notice appear in supporting
dnl documentation, and that the name of Red Hat not be used in
dnl advertising or publicity pertaining to distribution of the software without
dnl specific, written prior permission. Red Hat makes no
dnl representations about the suitability of this software for any purpose. It
dnl is provided "as is" without express or implied warranty.
dnl
dnl RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
dnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
dnl EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
dnl CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
dnl DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
dnl TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
dnl PERFORMANCE OF THIS SOFTWARE.
dnl
dnl Process this file with autoconf to create configure.
AC_PREREQ([2.57])
AC_INIT(xcmsdb,[1.0.1], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],xcmsdb)
AM_INIT_AUTOMAKE([dist-bzip2])
AM_MAINTAINER_MODE
AM_CONFIG_HEADER(config.h)
AC_PROG_CC
AC_PROG_INSTALL
# Checks for pkg-config packages
PKG_CHECK_MODULES(XCMSDB, x11)
AC_SUBST(XCMSDB_CFLAGS)
AC_SUBST(XCMSDB_LIBS)
XORG_MANPAGE_SECTIONS
XORG_RELEASE_VERSION
AC_OUTPUT([Makefile])

View File

@@ -0,0 +1,843 @@
/*
* (c) Copyright 1990 1991 Tektronix Inc.
* All Rights Reserved
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose and without fee is hereby granted,
* provided that the above copyright notice appear in all copies and that
* both that copyright notice and this permission notice appear in
* supporting documentation, and that the name of Tektronix not be used
* in advertising or publicity pertaining to distribution of the software
* without specific, written prior permission.
*
* Tektronix disclaims all warranties with regard to this software, including
* all implied warranties of merchantability and fitness, in no event shall
* Tektronix be liable for any special, indirect or consequential damages or
* any damages whatsoever resulting from loss of use, data or profits,
* whether in an action of contract, negligence or other tortious action,
* arising out of or in connection with the use or performance of this
* software.
*
*
* NAME
* sample1.dcc
*
* DESCRIPTION
* Sample Screen Color Characterization Data File
*
* IMPORTANT NOTICE
* This sample file is provided solely for the purpose of
* presenting the format of input files accepted by the
* 'cmsdb' utility -- a sample mechanism for placing Screen
* Color Characterization Data into root window properties
* in accordance with the X Device Color Characterization
* Convention (XDCCC). The data in this file is tailored
* specifically for the Tektronix monitor (part number
* 119-2451-00). These monitors have been built by the
* monitor vendor to Tektronix specifications that typically
* differ from monitors provided by the same vendor to other
* companies. Therefore, for accurate color rendition this
* sample file should only be used in conjunction with the
* specified Tektronix monitor. To be XCMS compatible,
* X workstation and X terminal vendors must provide screen
* characterization data for their own monitors.
*/
SCREENDATA_BEGIN 0.3
NAME Tektronix 19" (Sony) CRT
PART_NUMBER 119-2451-00
MODEL Tek4300, XD88
SCREEN_CLASS VIDEO_RGB
REVISION 1.0
COLORIMETRIC_BEGIN
XYZtoRGB_MATRIX_BEGIN
3.48340481253539000 -1.52176374927285200 -0.55923133354049780
-1.07152751306193600 1.96593795204372400 0.03673691339553462
0.06351179790497788 -0.20020501000496480 0.81070942031648220
XYZtoRGB_MATRIX_END
RGBtoXYZ_MATRIX_BEGIN
0.38106149108714790 0.32025712365352110 0.24834578525933100
0.20729745115140850 0.68054638776373240 0.11215616108485920
0.02133944350088028 0.14297193020246480 1.24172892629665500
RGBtoXYZ_MATRIX_END
COLORIMETRIC_END
INTENSITY_PROFILE_BEGIN 0 3
INTENSITY_TBL_BEGIN RED 256
0x0000 0.000000
0x0101 0.000000
0x0202 0.000000
0x0303 0.000000
0x0404 0.000000
0x0505 0.000000
0x0606 0.000000
0x0707 0.000000
0x0808 0.000000
0x0909 0.000000
0x0a0a 0.000936
0x0b0b 0.001023
0x0c0c 0.001121
0x0d0d 0.001229
0x0e0e 0.001349
0x0f0f 0.001481
0x1010 0.001624
0x1111 0.001781
0x1212 0.001950
0x1313 0.002133
0x1414 0.002329
0x1515 0.002539
0x1616 0.002764
0x1717 0.003003
0x1818 0.003258
0x1919 0.003529
0x1a1a 0.003815
0x1b1b 0.004118
0x1c1c 0.004437
0x1d1d 0.004773
0x1e1e 0.005127
0x1f1f 0.005498
0x2020 0.005888
0x2121 0.006296
0x2222 0.006723
0x2323 0.007169
0x2424 0.007634
0x2525 0.008120
0x2626 0.008625
0x2727 0.009152
0x2828 0.009699
0x2929 0.010267
0x2a2a 0.010857
0x2b2b 0.011468
0x2c2c 0.012102
0x2d2d 0.012759
0x2e2e 0.013438
0x2f2f 0.014141
0x3030 0.014867
0x3131 0.015617
0x3232 0.016392
0x3333 0.017190
0x3434 0.018014
0x3535 0.018863
0x3636 0.019737
0x3737 0.020637
0x3838 0.021563
0x3939 0.022515
0x3a3a 0.023494
0x3b3b 0.024500
0x3c3c 0.025533
0x3d3d 0.026594
0x3e3e 0.027683
0x3f3f 0.028800
0x4040 0.029945
0x4141 0.031119
0x4242 0.032323
0x4343 0.033555
0x4444 0.034817
0x4545 0.036109
0x4646 0.037431
0x4747 0.038784
0x4848 0.040167
0x4949 0.041582
0x4a4a 0.043027
0x4b4b 0.044504
0x4c4c 0.046013
0x4d4d 0.047554
0x4e4e 0.049128
0x4f4f 0.050734
0x5050 0.052373
0x5151 0.054045
0x5252 0.055750
0x5353 0.057489
0x5454 0.059262
0x5555 0.061069
0x5656 0.062910
0x5757 0.064786
0x5858 0.066697
0x5959 0.068643
0x5a5a 0.070624
0x5b5b 0.072641
0x5c5c 0.074694
0x5d5d 0.076783
0x5e5e 0.078908
0x5f5f 0.081070
0x6060 0.083268
0x6161 0.085503
0x6262 0.087776
0x6363 0.090086
0x6464 0.092433
0x6565 0.094819
0x6666 0.097242
0x6767 0.099704
0x6868 0.102205
0x6969 0.104744
0x6a6a 0.107322
0x6b6b 0.109939
0x6c6c 0.112595
0x6d6d 0.115291
0x6e6e 0.118026
0x6f6f 0.120802
0x7070 0.123618
0x7171 0.126474
0x7272 0.129370
0x7373 0.132307
0x7474 0.135285
0x7575 0.138305
0x7676 0.141365
0x7777 0.144467
0x7878 0.147610
0x7979 0.150795
0x7a7a 0.154023
0x7b7b 0.157292
0x7c7c 0.160604
0x7d7d 0.163958
0x7e7e 0.167354
0x7f7f 0.170794
0x8080 0.174276
0x8181 0.177802
0x8282 0.181371
0x8383 0.184983
0x8484 0.188639
0x8585 0.192339
0x8686 0.196083
0x8787 0.199871
0x8888 0.203702
0x8989 0.207579
0x8a8a 0.211500
0x8b8b 0.215465
0x8c8c 0.219475
0x8d8d 0.223530
0x8e8e 0.227630
0x8f8f 0.231776
0x9090 0.235966
0x9191 0.240202
0x9292 0.244484
0x9393 0.248811
0x9494 0.253184
0x9595 0.257604
0x9696 0.262069
0x9797 0.266580
0x9898 0.271138
0x9999 0.275742
0x9a9a 0.280392
0x9b9b 0.285089
0x9c9c 0.289833
0x9d9d 0.294624
0x9e9e 0.299461
0x9f9f 0.304346
0xa0a0 0.309278
0xa1a1 0.314257
0xa2a2 0.319283
0xa3a3 0.324357
0xa4a4 0.329478
0xa5a5 0.334647
0xa6a6 0.339863
0xa7a7 0.345128
0xa8a8 0.350440
0xa9a9 0.355800
0xaaaa 0.361208
0xabab 0.366664
0xacac 0.372168
0xadad 0.377721
0xaeae 0.383322
0xafaf 0.388971
0xb0b0 0.394669
0xb1b1 0.400415
0xb2b2 0.406210
0xb3b3 0.412053
0xb4b4 0.417945
0xb5b5 0.423886
0xb6b6 0.429876
0xb7b7 0.435914
0xb8b8 0.442001
0xb9b9 0.448138
0xbaba 0.454323
0xbbbb 0.460557
0xbcbc 0.466841
0xbdbd 0.473173
0xbebe 0.479555
0xbfbf 0.485986
0xc0c0 0.492466
0xc1c1 0.498995
0xc2c2 0.505574
0xc3c3 0.512202
0xc4c4 0.518879
0xc5c5 0.525606
0xc6c6 0.532382
0xc7c7 0.539207
0xc8c8 0.546082
0xc9c9 0.553006
0xcaca 0.559980
0xcbcb 0.567004
0xcccc 0.574076
0xcdcd 0.581199
0xcece 0.588370
0xcfcf 0.595592
0xd0d0 0.602862
0xd1d1 0.610183
0xd2d2 0.617552
0xd3d3 0.624972
0xd4d4 0.632440
0xd5d5 0.639959
0xd6d6 0.647526
0xd7d7 0.655144
0xd8d8 0.662810
0xd9d9 0.670526
0xdada 0.678292
0xdbdb 0.686106
0xdcdc 0.693971
0xdddd 0.701884
0xdede 0.709847
0xdfdf 0.717859
0xe0e0 0.725921
0xe1e1 0.734031
0xe2e2 0.742191
0xe3e3 0.750400
0xe4e4 0.758658
0xe5e5 0.766966
0xe6e6 0.775322
0xe7e7 0.783727
0xe8e8 0.792181
0xe9e9 0.800684
0xeaea 0.809236
0xebeb 0.817837
0xecec 0.826486
0xeded 0.835185
0xeeee 0.843931
0xefef 0.852727
0xf0f0 0.861571
0xf1f1 0.870463
0xf2f2 0.879404
0xf3f3 0.888393
0xf4f4 0.897430
0xf5f5 0.906515
0xf6f6 0.915648
0xf7f7 0.924830
0xf8f8 0.934059
0xf9f9 0.943337
0xfafa 0.952662
0xfbfb 0.962034
0xfcfc 0.971454
0xfdfd 0.980922
0xfefe 0.990437
0xffff 1.000000
INTENSITY_TBL_END
INTENSITY_TBL_BEGIN GREEN 256
0x0000 0.000000
0x0101 0.000000
0x0202 0.000000
0x0303 0.000000
0x0404 0.000000
0x0505 0.000000
0x0606 0.000000
0x0707 0.000000
0x0808 0.000000
0x0909 0.000000
0x0a0a 0.000000
0x0b0b 0.000000
0x0c0c 0.000000
0x0d0d 0.000000
0x0e0e 0.000000
0x0f0f 0.000000
0x1010 0.000000
0x1111 0.000000
0x1212 0.000000
0x1313 0.000000
0x1414 0.000832
0x1515 0.001033
0x1616 0.001249
0x1717 0.001482
0x1818 0.001731
0x1919 0.001998
0x1a1a 0.002283
0x1b1b 0.002587
0x1c1c 0.002909
0x1d1d 0.003251
0x1e1e 0.003612
0x1f1f 0.003994
0x2020 0.004397
0x2121 0.004821
0x2222 0.005267
0x2323 0.005736
0x2424 0.006227
0x2525 0.006741
0x2626 0.007279
0x2727 0.007842
0x2828 0.008428
0x2929 0.009040
0x2a2a 0.009677
0x2b2b 0.010340
0x2c2c 0.011029
0x2d2d 0.011745
0x2e2e 0.012489
0x2f2f 0.013259
0x3030 0.014058
0x3131 0.014885
0x3232 0.015740
0x3333 0.016625
0x3434 0.017539
0x3535 0.018484
0x3636 0.019458
0x3737 0.020463
0x3838 0.021499
0x3939 0.022566
0x3a3a 0.023665
0x3b3b 0.024796
0x3c3c 0.025960
0x3d3d 0.027156
0x3e3e 0.028385
0x3f3f 0.029648
0x4040 0.030945
0x4141 0.032275
0x4242 0.033640
0x4343 0.035039
0x4444 0.036474
0x4545 0.037944
0x4646 0.039449
0x4747 0.040990
0x4848 0.042567
0x4949 0.044181
0x4a4a 0.045832
0x4b4b 0.047519
0x4c4c 0.049244
0x4d4d 0.051006
0x4e4e 0.052806
0x4f4f 0.054644
0x5050 0.056520
0x5151 0.058435
0x5252 0.060389
0x5353 0.062381
0x5454 0.064413
0x5555 0.066484
0x5656 0.068595
0x5757 0.070746
0x5858 0.072936
0x5959 0.075167
0x5a5a 0.077439
0x5b5b 0.079751
0x5c5c 0.082104
0x5d5d 0.084498
0x5e5e 0.086933
0x5f5f 0.089409
0x6060 0.091927
0x6161 0.094487
0x6262 0.097089
0x6363 0.099732
0x6464 0.102418
0x6565 0.105146
0x6666 0.107917
0x6767 0.110730
0x6868 0.113586
0x6969 0.116485
0x6a6a 0.119427
0x6b6b 0.122411
0x6c6c 0.125439
0x6d6d 0.128511
0x6e6e 0.131625
0x6f6f 0.134783
0x7070 0.137985
0x7171 0.141231
0x7272 0.144520
0x7373 0.147853
0x7474 0.151229
0x7575 0.154650
0x7676 0.158115
0x7777 0.161624
0x7878 0.165176
0x7979 0.168774
0x7a7a 0.172415
0x7b7b 0.176100
0x7c7c 0.179830
0x7d7d 0.183604
0x7e7e 0.187423
0x7f7f 0.191285
0x8080 0.195192
0x8181 0.199144
0x8282 0.203140
0x8383 0.207180
0x8484 0.211264
0x8585 0.215393
0x8686 0.219566
0x8787 0.223783
0x8888 0.228045
0x8989 0.232351
0x8a8a 0.236701
0x8b8b 0.241095
0x8c8c 0.245533
0x8d8d 0.250015
0x8e8e 0.254542
0x8f8f 0.259112
0x9090 0.263726
0x9191 0.268384
0x9292 0.273085
0x9393 0.277830
0x9494 0.282619
0x9595 0.287451
0x9696 0.292327
0x9797 0.297246
0x9898 0.302207
0x9999 0.307212
0x9a9a 0.312260
0x9b9b 0.317351
0x9c9c 0.322484
0x9d9d 0.327660
0x9e9e 0.332878
0x9f9f 0.338138
0xa0a0 0.343441
0xa1a1 0.348786
0xa2a2 0.354172
0xa3a3 0.359600
0xa4a4 0.365069
0xa5a5 0.370580
0xa6a6 0.376132
0xa7a7 0.381725
0xa8a8 0.387359
0xa9a9 0.393033
0xaaaa 0.398747
0xabab 0.404502
0xacac 0.410297
0xadad 0.416131
0xaeae 0.422006
0xafaf 0.427919
0xb0b0 0.433871
0xb1b1 0.439863
0xb2b2 0.445893
0xb3b3 0.451961
0xb4b4 0.458068
0xb5b5 0.464213
0xb6b6 0.470395
0xb7b7 0.476614
0xb8b8 0.482871
0xb9b9 0.489165
0xbaba 0.495495
0xbbbb 0.501862
0xbcbc 0.508264
0xbdbd 0.514703
0xbebe 0.521176
0xbfbf 0.527685
0xc0c0 0.534229
0xc1c1 0.540808
0xc2c2 0.547420
0xc3c3 0.554067
0xc4c4 0.560747
0xc5c5 0.567460
0xc6c6 0.574207
0xc7c7 0.580986
0xc8c8 0.587797
0xc9c9 0.594640
0xcaca 0.601515
0xcbcb 0.608420
0xcccc 0.615357
0xcdcd 0.622324
0xcece 0.629322
0xcfcf 0.636349
0xd0d0 0.643405
0xd1d1 0.650490
0xd2d2 0.657604
0xd3d3 0.664746
0xd4d4 0.671916
0xd5d5 0.679113
0xd6d6 0.686337
0xd7d7 0.693588
0xd8d8 0.700865
0xd9d9 0.708167
0xdada 0.715495
0xdbdb 0.722848
0xdcdc 0.730225
0xdddd 0.737626
0xdede 0.745050
0xdfdf 0.752497
0xe0e0 0.759967
0xe1e1 0.767459
0xe2e2 0.774973
0xe3e3 0.782508
0xe4e4 0.790064
0xe5e5 0.797640
0xe6e6 0.805235
0xe7e7 0.812850
0xe8e8 0.820483
0xe9e9 0.828135
0xeaea 0.835805
0xebeb 0.843491
0xecec 0.851195
0xeded 0.858914
0xeeee 0.866649
0xefef 0.874399
0xf0f0 0.882164
0xf1f1 0.889943
0xf2f2 0.897735
0xf3f3 0.905540
0xf4f4 0.913357
0xf5f5 0.921187
0xf6f6 0.929027
0xf7f7 0.936878
0xf8f8 0.944739
0xf9f9 0.952610
0xfafa 0.960490
0xfbfb 0.968377
0xfcfc 0.976273
0xfdfd 0.984176
0xfefe 0.992085
0xffff 1.000000
INTENSITY_TBL_END
INTENSITY_TBL_BEGIN BLUE 256
0x0000 0.000000
0x0101 0.000000
0x0202 0.000000
0x0303 0.000000
0x0404 0.000000
0x0505 0.000000
0x0606 0.000000
0x0707 0.000000
0x0808 0.000000
0x0909 0.000000
0x0a0a 0.000000
0x0b0b 0.000000
0x0c0c 0.000000
0x0d0d 0.000000
0x0e0e 0.000000
0x0f0f 0.001341
0x1010 0.001462
0x1111 0.001596
0x1212 0.001744
0x1313 0.001905
0x1414 0.002080
0x1515 0.002270
0x1616 0.002475
0x1717 0.002696
0x1818 0.002934
0x1919 0.003188
0x1a1a 0.003459
0x1b1b 0.003749
0x1c1c 0.004057
0x1d1d 0.004383
0x1e1e 0.004729
0x1f1f 0.005095
0x2020 0.005481
0x2121 0.005888
0x2222 0.006316
0x2323 0.006766
0x2424 0.007238
0x2525 0.007733
0x2626 0.008250
0x2727 0.008792
0x2828 0.009357
0x2929 0.009947
0x2a2a 0.010562
0x2b2b 0.011202
0x2c2c 0.011867
0x2d2d 0.012559
0x2e2e 0.013277
0x2f2f 0.014023
0x3030 0.014795
0x3131 0.015596
0x3232 0.016424
0x3333 0.017282
0x3434 0.018168
0x3535 0.019083
0x3636 0.020028
0x3737 0.021004
0x3838 0.022009
0x3939 0.023046
0x3a3a 0.024113
0x3b3b 0.025213
0x3c3c 0.026344
0x3d3d 0.027507
0x3e3e 0.028703
0x3f3f 0.029932
0x4040 0.031194
0x4141 0.032489
0x4242 0.033818
0x4343 0.035182
0x4444 0.036580
0x4545 0.038013
0x4646 0.039481
0x4747 0.040984
0x4848 0.042523
0x4949 0.044098
0x4a4a 0.045710
0x4b4b 0.047357
0x4c4c 0.049042
0x4d4d 0.050764
0x4e4e 0.052523
0x4f4f 0.054319
0x5050 0.056154
0x5151 0.058027
0x5252 0.059938
0x5353 0.061887
0x5454 0.063876
0x5555 0.065903
0x5656 0.067970
0x5757 0.070076
0x5858 0.072222
0x5959 0.074408
0x5a5a 0.076634
0x5b5b 0.078900
0x5c5c 0.081207
0x5d5d 0.083555
0x5e5e 0.085944
0x5f5f 0.088373
0x6060 0.090844
0x6161 0.093357
0x6262 0.095911
0x6363 0.098507
0x6464 0.101145
0x6565 0.103825
0x6666 0.106547
0x6767 0.109311
0x6868 0.112118
0x6969 0.114968
0x6a6a 0.117861
0x6b6b 0.120797
0x6c6c 0.123775
0x6d6d 0.126797
0x6e6e 0.129862
0x6f6f 0.132971
0x7070 0.136123
0x7171 0.139318
0x7272 0.142557
0x7373 0.145841
0x7474 0.149167
0x7575 0.152538
0x7676 0.155953
0x7777 0.159412
0x7878 0.162915
0x7979 0.166463
0x7a7a 0.170054
0x7b7b 0.173690
0x7c7c 0.177371
0x7d7d 0.181095
0x7e7e 0.184865
0x7f7f 0.188678
0x8080 0.192536
0x8181 0.196439
0x8282 0.200386
0x8383 0.204378
0x8484 0.208414
0x8585 0.212495
0x8686 0.216621
0x8787 0.220791
0x8888 0.225005
0x8989 0.229265
0x8a8a 0.233568
0x8b8b 0.237916
0x8c8c 0.242309
0x8d8d 0.246746
0x8e8e 0.251227
0x8f8f 0.255753
0x9090 0.260323
0x9191 0.264937
0x9292 0.269596
0x9393 0.274298
0x9494 0.279045
0x9595 0.283836
0x9696 0.288670
0x9797 0.293549
0x9898 0.298471
0x9999 0.303436
0x9a9a 0.308446
0x9b9b 0.313499
0x9c9c 0.318595
0x9d9d 0.323734
0x9e9e 0.328916
0x9f9f 0.334142
0xa0a0 0.339410
0xa1a1 0.344721
0xa2a2 0.350075
0xa3a3 0.355471
0xa4a4 0.360909
0xa5a5 0.366390
0xa6a6 0.371913
0xa7a7 0.377477
0xa8a8 0.383084
0xa9a9 0.388732
0xaaaa 0.394421
0xabab 0.400151
0xacac 0.405923
0xadad 0.411735
0xaeae 0.417588
0xafaf 0.423481
0xb0b0 0.429415
0xb1b1 0.435388
0xb2b2 0.441402
0xb3b3 0.447455
0xb4b4 0.453547
0xb5b5 0.459679
0xb6b6 0.465849
0xb7b7 0.472059
0xb8b8 0.478306
0xb9b9 0.484592
0xbaba 0.490916
0xbbbb 0.497278
0xbcbc 0.503677
0xbdbd 0.510114
0xbebe 0.516587
0xbfbf 0.523097
0xc0c0 0.529643
0xc1c1 0.536226
0xc2c2 0.542844
0xc3c3 0.549498
0xc4c4 0.556187
0xc5c5 0.562912
0xc6c6 0.569670
0xc7c7 0.576463
0xc8c8 0.583291
0xc9c9 0.590151
0xcaca 0.597046
0xcbcb 0.603973
0xcccc 0.610933
0xcdcd 0.617925
0xcece 0.624950
0xcfcf 0.632006
0xd0d0 0.639093
0xd1d1 0.646212
0xd2d2 0.653361
0xd3d3 0.660540
0xd4d4 0.667750
0xd5d5 0.674988
0xd6d6 0.682256
0xd7d7 0.689553
0xd8d8 0.696878
0xd9d9 0.704231
0xdada 0.711612
0xdbdb 0.719019
0xdcdc 0.726454
0xdddd 0.733915
0xdede 0.741402
0xdfdf 0.748914
0xe0e0 0.756451
0xe1e1 0.764013
0xe2e2 0.771600
0xe3e3 0.779210
0xe4e4 0.786843
0xe5e5 0.794499
0xe6e6 0.802178
0xe7e7 0.809878
0xe8e8 0.817600
0xe9e9 0.825343
0xeaea 0.833107
0xebeb 0.840891
0xecec 0.848694
0xeded 0.856517
0xeeee 0.864358
0xefef 0.872217
0xf0f0 0.880093
0xf1f1 0.887987
0xf2f2 0.895898
0xf3f3 0.903824
0xf4f4 0.911766
0xf5f5 0.919723
0xf6f6 0.927695
0xf7f7 0.935680
0xf8f8 0.943679
0xf9f9 0.951691
0xfafa 0.959715
0xfbfb 0.967750
0xfcfc 0.975797
0xfdfd 0.983855
0xfefe 0.991923
0xffff 1.00000
INTENSITY_TBL_END
INTENSITY_PROFILE_END
SCREENDATA_END

View File

@@ -0,0 +1,843 @@
/*
* (c) Copyright 1990 1991 Tektronix Inc.
* All Rights Reserved
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose and without fee is hereby granted,
* provided that the above copyright notice appear in all copies and that
* both that copyright notice and this permission notice appear in
* supporting documentation, and that the name of Tektronix not be used
* in advertising or publicity pertaining to distribution of the software
* without specific, written prior permission.
*
* Tektronix disclaims all warranties with regard to this software, including
* all implied warranties of merchantability and fitness, in no event shall
* Tektronix be liable for any special, indirect or consequential damages or
* any damages whatsoever resulting from loss of use, data or profits,
* whether in an action of contract, negligence or other tortious action,
* arising out of or in connection with the use or performance of this
* software.
*
*
* NAME
* sample2.dcc
*
* DESCRIPTION
* Sample Screen Color Characterization Data File
*
* IMPORTANT NOTICE
* This sample file is provided solely for the purpose of
* presenting the format of input files accepted by the
* 'cmsdb' utility -- a sample mechanism for placing Screen
* Color Characterization Data into root window properties
* in accordance with the X Device Color Characterization
* Convention (XDCCC). The data in this file is tailored
* specifically for the Tektronix monitor (part number
* 119-3916-00). These monitors have been built by the
* monitor vendor to Tektronix specifications that typically
* differ from monitors provided by the same vendor to other
* companies. Therefore, for accurate color rendition this
* sample file should only be used in conjunction with the
* specified Tektronix monitor. To be XCMS compatible,
* X workstation and X terminal vendors must provide screen
* characterization data for their own monitors.
*/
SCREENDATA_BEGIN 0.3
NAME Tektronix 19" (Panasonic) CRT
PART_NUMBER 119-3916-00
MODEL XP27
SCREEN_CLASS VIDEO_RGB
REVISION 2.0
COLORIMETRIC_BEGIN
XYZtoRGB_MATRIX_BEGIN
4.075911 -1.820444 -0.627311
-1.102477 1.935176 0.037364
0.059967 -0.206788 0.885717
XYZtoRGB_MATRIX_END
RGBtoXYZ_MATRIX_BEGIN
0.333300 0.337244 0.221834
0.189464 0.706136 0.104400
0.021668 0.142028 1.138384
RGBtoXYZ_MATRIX_END
COLORIMETRIC_END
INTENSITY_PROFILE_BEGIN 0 3
INTENSITY_TBL_BEGIN RED 256
0x0000 0.000000
0x0101 0.000000
0x0202 0.000000
0x0303 0.000000
0x0404 0.000000
0x0505 0.000000
0x0606 0.000000
0x0707 0.000000
0x0808 0.000000
0x0909 0.000000
0x0a0a 0.000000
0x0b0b 0.000000
0x0c0c 0.000000
0x0d0d 0.000000
0x0e0e 0.000000
0x0f0f 0.000000
0x1010 0.000000
0x1111 0.000000
0x1212 0.000000
0x1313 0.000000
0x1414 0.000000
0x1515 0.000000
0x1616 0.000000
0x1717 0.000000
0x1818 0.000000
0x1919 0.000000
0x1a1a 0.000000
0x1b1b 0.000000
0x1c1c 0.000000
0x1d1d 0.000000
0x1e1e 0.000000
0x1f1f 0.000152
0x2020 0.000303
0x2121 0.000455
0x2222 0.000607
0x2323 0.000759
0x2424 0.000910
0x2525 0.001062
0x2626 0.001213
0x2727 0.001365
0x2828 0.001516
0x2929 0.001683
0x2a2a 0.001850
0x2b2b 0.002017
0x2c2c 0.002184
0x2d2d 0.002350
0x2e2e 0.002581
0x2f2f 0.002813
0x3030 0.003044
0x3131 0.003275
0x3232 0.003506
0x3333 0.003902
0x3434 0.004298
0x3535 0.004694
0x3636 0.005090
0x3737 0.005487
0x3838 0.006029
0x3939 0.006571
0x3a3a 0.007114
0x3b3b 0.007656
0x3c3c 0.008198
0x3d3d 0.008998
0x3e3e 0.009799
0x3f3f 0.010599
0x4040 0.011399
0x4141 0.012200
0x4242 0.012987
0x4343 0.013775
0x4444 0.014563
0x4545 0.015350
0x4646 0.016138
0x4747 0.017156
0x4848 0.018174
0x4949 0.019191
0x4a4a 0.020209
0x4b4b 0.021227
0x4c4c 0.022418
0x4d4d 0.023609
0x4e4e 0.024800
0x4f4f 0.025991
0x5050 0.027181
0x5151 0.028690
0x5252 0.030198
0x5353 0.031707
0x5454 0.033215
0x5555 0.034724
0x5656 0.036212
0x5757 0.037700
0x5858 0.039187
0x5959 0.040675
0x5a5a 0.042163
0x5b5b 0.043903
0x5c5c 0.045642
0x5d5d 0.047382
0x5e5e 0.049121
0x5f5f 0.050861
0x6060 0.052846
0x6161 0.054830
0x6262 0.056815
0x6363 0.058800
0x6464 0.060785
0x6565 0.062914
0x6666 0.065043
0x6767 0.067173
0x6868 0.069302
0x6969 0.071431
0x6a6a 0.073965
0x6b6b 0.076498
0x6c6c 0.079032
0x6d6d 0.081565
0x6e6e 0.084099
0x6f6f 0.086704
0x7070 0.089310
0x7171 0.091916
0x7272 0.094521
0x7373 0.097127
0x7474 0.100051
0x7575 0.102975
0x7676 0.105899
0x7777 0.108823
0x7878 0.111747
0x7979 0.114750
0x7a7a 0.117752
0x7b7b 0.120755
0x7c7c 0.123757
0x7d7d 0.126760
0x7e7e 0.130326
0x7f7f 0.133893
0x8080 0.137459
0x8181 0.141026
0x8282 0.144592
0x8383 0.147992
0x8484 0.151391
0x8585 0.154791
0x8686 0.158190
0x8787 0.161590
0x8888 0.165460
0x8989 0.169329
0x8a8a 0.173199
0x8b8b 0.177068
0x8c8c 0.180938
0x8d8d 0.185355
0x8e8e 0.189773
0x8f8f 0.194190
0x9090 0.198608
0x9191 0.203025
0x9292 0.207218
0x9393 0.211412
0x9494 0.215605
0x9595 0.219799
0x9696 0.223992
0x9797 0.228504
0x9898 0.233016
0x9999 0.237527
0x9a9a 0.242039
0x9b9b 0.246551
0x9c9c 0.251762
0x9d9d 0.256974
0x9e9e 0.262185
0x9f9f 0.267397
0xa0a0 0.272608
0xa1a1 0.277726
0xa2a2 0.282845
0xa3a3 0.287963
0xa4a4 0.293082
0xa5a5 0.298200
0xa6a6 0.303506
0xa7a7 0.308811
0xa8a8 0.314117
0xa9a9 0.319422
0xaaaa 0.324728
0xabab 0.330258
0xacac 0.335788
0xadad 0.341317
0xaeae 0.346847
0xafaf 0.352377
0xb0b0 0.358593
0xb1b1 0.364808
0xb2b2 0.371024
0xb3b3 0.377239
0xb4b4 0.383455
0xb5b5 0.389612
0xb6b6 0.395769
0xb7b7 0.401925
0xb8b8 0.408082
0xb9b9 0.414239
0xbaba 0.420600
0xbbbb 0.426961
0xbcbc 0.433321
0xbdbd 0.439682
0xbebe 0.446043
0xbfbf 0.453125
0xc0c0 0.460207
0xc1c1 0.467288
0xc2c2 0.474370
0xc3c3 0.481452
0xc4c4 0.488288
0xc5c5 0.495125
0xc6c6 0.501961
0xc7c7 0.508798
0xc8c8 0.515634
0xc9c9 0.522853
0xcaca 0.530072
0xcbcb 0.537292
0xcccc 0.544511
0xcdcd 0.551730
0xcece 0.559584
0xcfcf 0.567438
0xd0d0 0.575292
0xd1d1 0.583146
0xd2d2 0.591000
0xd3d3 0.598768
0xd4d4 0.606535
0xd5d5 0.614303
0xd6d6 0.622070
0xd7d7 0.629838
0xd8d8 0.637745
0xd9d9 0.645652
0xdada 0.653558
0xdbdb 0.661465
0xdcdc 0.669372
0xdddd 0.678403
0xdede 0.687433
0xdfdf 0.696464
0xe0e0 0.705494
0xe1e1 0.714525
0xe2e2 0.723065
0xe3e3 0.731605
0xe4e4 0.740146
0xe5e5 0.748686
0xe6e6 0.757226
0xe7e7 0.766178
0xe8e8 0.775130
0xe9e9 0.784082
0xeaea 0.793034
0xebeb 0.801986
0xecec 0.811624
0xeded 0.821262
0xeeee 0.830901
0xefef 0.840539
0xf0f0 0.850177
0xf1f1 0.859991
0xf2f2 0.869804
0xf3f3 0.879618
0xf4f4 0.889431
0xf5f5 0.899245
0xf6f6 0.909217
0xf7f7 0.919188
0xf8f8 0.929160
0xf9f9 0.939131
0xfafa 0.949103
0xfbfb 0.959282
0xfcfc 0.969462
0xfdfd 0.979641
0xfefe 0.989821
0xffff 1.000000
INTENSITY_TBL_END
INTENSITY_TBL_BEGIN GREEN 256
0x0000 0.000000
0x0101 0.000000
0x0202 0.000000
0x0303 0.000000
0x0404 0.000000
0x0505 0.000000
0x0606 0.000000
0x0707 0.000000
0x0808 0.000000
0x0909 0.000000
0x0a0a 0.000000
0x0b0b 0.000000
0x0c0c 0.000000
0x0d0d 0.000000
0x0e0e 0.000000
0x0f0f 0.000000
0x1010 0.000000
0x1111 0.000000
0x1212 0.000000
0x1313 0.000000
0x1414 0.000000
0x1515 0.000022
0x1616 0.000044
0x1717 0.000066
0x1818 0.000087
0x1919 0.000109
0x1a1a 0.000131
0x1b1b 0.000152
0x1c1c 0.000173
0x1d1d 0.000195
0x1e1e 0.000216
0x1f1f 0.000307
0x2020 0.000398
0x2121 0.000489
0x2222 0.000580
0x2323 0.000671
0x2424 0.000804
0x2525 0.000937
0x2626 0.001070
0x2727 0.001203
0x2828 0.001336
0x2929 0.001514
0x2a2a 0.001691
0x2b2b 0.001869
0x2c2c 0.002046
0x2d2d 0.002224
0x2e2e 0.002604
0x2f2f 0.002985
0x3030 0.003365
0x3131 0.003746
0x3232 0.004127
0x3333 0.004618
0x3434 0.005110
0x3535 0.005602
0x3636 0.006094
0x3737 0.006586
0x3838 0.007191
0x3939 0.007797
0x3a3a 0.008402
0x3b3b 0.009008
0x3c3c 0.009613
0x3d3d 0.010399
0x3e3e 0.011185
0x3f3f 0.011971
0x4040 0.012757
0x4141 0.013543
0x4242 0.014529
0x4343 0.015516
0x4444 0.016502
0x4545 0.017488
0x4646 0.018475
0x4747 0.019641
0x4848 0.020808
0x4949 0.021975
0x4a4a 0.023141
0x4b4b 0.024308
0x4c4c 0.025678
0x4d4d 0.027049
0x4e4e 0.028419
0x4f4f 0.029789
0x5050 0.031159
0x5151 0.032730
0x5252 0.034301
0x5353 0.035872
0x5454 0.037443
0x5555 0.039014
0x5656 0.040697
0x5757 0.042380
0x5858 0.044063
0x5959 0.045747
0x5a5a 0.047430
0x5b5b 0.049363
0x5c5c 0.051295
0x5d5d 0.053228
0x5e5e 0.055161
0x5f5f 0.057094
0x6060 0.059316
0x6161 0.061539
0x6262 0.063761
0x6363 0.065983
0x6464 0.068206
0x6565 0.070521
0x6666 0.072836
0x6767 0.075151
0x6868 0.077466
0x6969 0.079781
0x6a6a 0.082294
0x6b6b 0.084808
0x6c6c 0.087321
0x6d6d 0.089835
0x6e6e 0.092348
0x6f6f 0.095312
0x7070 0.098276
0x7171 0.101240
0x7272 0.104204
0x7373 0.107168
0x7474 0.110134
0x7575 0.113100
0x7676 0.116067
0x7777 0.119033
0x7878 0.121999
0x7979 0.125235
0x7a7a 0.128471
0x7b7b 0.131708
0x7c7c 0.134944
0x7d7d 0.138180
0x7e7e 0.141796
0x7f7f 0.145412
0x8080 0.149029
0x8181 0.152645
0x8282 0.156261
0x8383 0.159971
0x8484 0.163681
0x8585 0.167392
0x8686 0.171102
0x8787 0.174812
0x8888 0.178720
0x8989 0.182628
0x8a8a 0.186536
0x8b8b 0.190444
0x8c8c 0.194352
0x8d8d 0.198687
0x8e8e 0.203023
0x8f8f 0.207358
0x9090 0.211694
0x9191 0.216029
0x9292 0.220412
0x9393 0.224795
0x9494 0.229179
0x9595 0.233562
0x9696 0.237945
0x9797 0.242618
0x9898 0.247291
0x9999 0.251965
0x9a9a 0.256638
0x9b9b 0.261311
0x9c9c 0.266561
0x9d9d 0.271812
0x9e9e 0.277062
0x9f9f 0.282313
0xa0a0 0.287563
0xa1a1 0.292687
0xa2a2 0.297811
0xa3a3 0.302936
0xa4a4 0.308060
0xa5a5 0.313184
0xa6a6 0.318485
0xa7a7 0.323787
0xa8a8 0.329088
0xa9a9 0.334390
0xaaaa 0.339691
0xabab 0.345238
0xacac 0.350785
0xadad 0.356332
0xaeae 0.361879
0xafaf 0.367426
0xb0b0 0.373596
0xb1b1 0.379766
0xb2b2 0.385935
0xb3b3 0.392105
0xb4b4 0.398275
0xb5b5 0.404379
0xb6b6 0.410483
0xb7b7 0.416586
0xb8b8 0.422690
0xb9b9 0.428794
0xbaba 0.435099
0xbbbb 0.441405
0xbcbc 0.447710
0xbdbd 0.454016
0xbebe 0.460321
0xbfbf 0.467525
0xc0c0 0.474729
0xc1c1 0.481932
0xc2c2 0.489136
0xc3c3 0.496340
0xc4c4 0.503722
0xc5c5 0.511105
0xc6c6 0.518487
0xc7c7 0.525870
0xc8c8 0.533252
0xc9c9 0.540159
0xcaca 0.547066
0xcbcb 0.553972
0xcccc 0.560879
0xcdcd 0.567786
0xcece 0.576112
0xcfcf 0.584437
0xd0d0 0.592763
0xd1d1 0.601088
0xd2d2 0.609414
0xd3d3 0.617043
0xd4d4 0.624672
0xd5d5 0.632302
0xd6d6 0.639931
0xd7d7 0.647560
0xd8d8 0.655408
0xd9d9 0.663255
0xdada 0.671103
0xdbdb 0.678950
0xdcdc 0.686798
0xdddd 0.695334
0xdede 0.703869
0xdfdf 0.712405
0xe0e0 0.720940
0xe1e1 0.729476
0xe2e2 0.737757
0xe3e3 0.746039
0xe4e4 0.754320
0xe5e5 0.762602
0xe6e6 0.770883
0xe7e7 0.779637
0xe8e8 0.788391
0xe9e9 0.797145
0xeaea 0.805899
0xebeb 0.814653
0xecec 0.824068
0xeded 0.833483
0xeeee 0.842899
0xefef 0.852314
0xf0f0 0.861729
0xf1f1 0.870730
0xf2f2 0.879730
0xf3f3 0.888731
0xf4f4 0.897731
0xf5f5 0.906732
0xf6f6 0.915706
0xf7f7 0.924680
0xf8f8 0.933653
0xf9f9 0.942627
0xfafa 0.951601
0xfbfb 0.961281
0xfcfc 0.970961
0xfdfd 0.980640
0xfefe 0.990320
0xffff 1.000000
INTENSITY_TBL_END
INTENSITY_TBL_BEGIN BLUE 256
0x0000 0.000000
0x0101 0.000000
0x0202 0.000000
0x0303 0.000000
0x0404 0.000000
0x0505 0.000000
0x0606 0.000000
0x0707 0.000000
0x0808 0.000000
0x0909 0.000000
0x0a0a 0.000000
0x0b0b 0.000000
0x0c0c 0.000000
0x0d0d 0.000000
0x0e0e 0.000000
0x0f0f 0.000000
0x1010 0.000000
0x1111 0.000000
0x1212 0.000000
0x1313 0.000000
0x1414 0.000000
0x1515 0.000000
0x1616 0.000000
0x1717 0.000000
0x1818 0.000000
0x1919 0.000000
0x1a1a 0.000000
0x1b1b 0.000000
0x1c1c 0.000000
0x1d1d 0.000000
0x1e1e 0.000000
0x1f1f 0.000000
0x2020 0.000000
0x2121 0.000000
0x2222 0.000000
0x2323 0.000000
0x2424 0.000201
0x2525 0.000402
0x2626 0.000603
0x2727 0.000804
0x2828 0.001005
0x2929 0.001606
0x2a2a 0.002206
0x2b2b 0.002807
0x2c2c 0.003408
0x2d2d 0.004008
0x2e2e 0.004413
0x2f2f 0.004818
0x3030 0.005224
0x3131 0.005629
0x3232 0.006034
0x3333 0.006034
0x3434 0.006034
0x3535 0.006034
0x3636 0.006034
0x3737 0.006034
0x3838 0.006835
0x3939 0.007637
0x3a3a 0.008439
0x3b3b 0.009240
0x3c3c 0.010042
0x3d3d 0.010837
0x3e3e 0.011632
0x3f3f 0.012428
0x4040 0.013223
0x4141 0.014018
0x4242 0.014820
0x4343 0.015621
0x4444 0.016423
0x4545 0.017225
0x4646 0.018026
0x4747 0.019032
0x4848 0.020038
0x4949 0.021044
0x4a4a 0.022049
0x4b4b 0.023055
0x4c4c 0.024262
0x4d4d 0.025469
0x4e4e 0.026675
0x4f4f 0.027882
0x5050 0.029089
0x5151 0.030491
0x5252 0.031893
0x5353 0.033296
0x5454 0.034698
0x5555 0.036100
0x5656 0.037715
0x5757 0.039330
0x5858 0.040945
0x5959 0.042560
0x5a5a 0.044175
0x5b5b 0.045982
0x5c5c 0.047790
0x5d5d 0.049597
0x5e5e 0.051405
0x5f5f 0.053212
0x6060 0.055409
0x6161 0.057607
0x6262 0.059805
0x6363 0.062002
0x6464 0.064200
0x6565 0.066412
0x6666 0.068625
0x6767 0.070837
0x6868 0.073050
0x6969 0.075262
0x6a6a 0.077664
0x6b6b 0.080065
0x6c6c 0.082467
0x6d6d 0.084868
0x6e6e 0.087270
0x6f6f 0.090083
0x7070 0.092896
0x7171 0.095710
0x7272 0.098523
0x7373 0.101336
0x7474 0.104353
0x7575 0.107370
0x7676 0.110388
0x7777 0.113405
0x7878 0.116422
0x7979 0.119640
0x7a7a 0.122858
0x7b7b 0.126077
0x7c7c 0.129295
0x7d7d 0.132513
0x7e7e 0.135920
0x7f7f 0.139328
0x8080 0.142735
0x8181 0.146143
0x8282 0.149550
0x8383 0.153165
0x8484 0.156780
0x8585 0.160394
0x8686 0.164009
0x8787 0.167624
0x8888 0.171436
0x8989 0.175249
0x8a8a 0.179061
0x8b8b 0.182874
0x8c8c 0.186686
0x8d8d 0.190910
0x8e8e 0.195134
0x8f8f 0.199358
0x9090 0.203582
0x9191 0.207806
0x9292 0.212219
0x9393 0.216632
0x9494 0.221045
0x9595 0.225458
0x9696 0.229871
0x9797 0.234696
0x9898 0.239520
0x9999 0.244345
0x9a9a 0.249169
0x9b9b 0.253994
0x9c9c 0.258998
0x9d9d 0.264003
0x9e9e 0.269007
0x9f9f 0.274012
0xa0a0 0.279016
0xa1a1 0.284045
0xa2a2 0.289073
0xa3a3 0.294102
0xa4a4 0.299130
0xa5a5 0.304159
0xa6a6 0.309779
0xa7a7 0.315399
0xa8a8 0.321018
0xa9a9 0.326638
0xaaaa 0.332258
0xabab 0.338293
0xacac 0.344327
0xadad 0.350362
0xaeae 0.356396
0xafaf 0.362431
0xb0b0 0.368651
0xb1b1 0.374872
0xb2b2 0.381092
0xb3b3 0.387313
0xb4b4 0.393533
0xb5b5 0.399567
0xb6b6 0.405602
0xb7b7 0.411636
0xb8b8 0.417671
0xb9b9 0.423705
0xbaba 0.430127
0xbbbb 0.436548
0xbcbc 0.442970
0xbdbd 0.449391
0xbebe 0.455813
0xbfbf 0.463033
0xc0c0 0.470253
0xc1c1 0.477472
0xc2c2 0.484692
0xc3c3 0.491912
0xc4c4 0.499138
0xc5c5 0.506364
0xc6c6 0.513591
0xc7c7 0.520817
0xc8c8 0.528043
0xc9c9 0.535269
0xcaca 0.542495
0xcbcb 0.549722
0xcccc 0.556948
0xcdcd 0.564174
0xcece 0.572009
0xcfcf 0.579845
0xd0d0 0.587680
0xd1d1 0.595516
0xd2d2 0.603351
0xd3d3 0.611379
0xd4d4 0.619407
0xd5d5 0.627434
0xd6d6 0.635462
0xd7d7 0.643490
0xd8d8 0.651512
0xd9d9 0.659533
0xdada 0.667555
0xdbdb 0.675576
0xdcdc 0.683598
0xdddd 0.692650
0xdede 0.701701
0xdfdf 0.710753
0xe0e0 0.719804
0xe1e1 0.728856
0xe2e2 0.737496
0xe3e3 0.746136
0xe4e4 0.754777
0xe5e5 0.763417
0xe6e6 0.772057
0xe7e7 0.781091
0xe8e8 0.790124
0xe9e9 0.799158
0xeaea 0.808191
0xebeb 0.817225
0xecec 0.826660
0xeded 0.836096
0xeeee 0.845531
0xefef 0.854967
0xf0f0 0.864402
0xf1f1 0.873235
0xf2f2 0.882067
0xf3f3 0.890900
0xf4f4 0.899732
0xf5f5 0.908565
0xf6f6 0.917806
0xf7f7 0.927047
0xf8f8 0.936287
0xf9f9 0.945528
0xfafa 0.954769
0xfbfb 0.963815
0xfcfc 0.972861
0xfdfd 0.981908
0xfefe 0.990954
0xffff 1.000000
INTENSITY_TBL_END
INTENSITY_PROFILE_END
SCREENDATA_END

479
app/xcmsdb/depcomp Normal file
View File

@@ -0,0 +1,479 @@
#! /bin/sh
# depcomp - compile a program generating dependencies as side-effects
# Copyright 1999, 2000, 2003 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
if test -z "$depmode" || test -z "$source" || test -z "$object"; then
echo "depcomp: Variables source, object and depmode must be set" 1>&2
exit 1
fi
# `libtool' can also be set to `yes' or `no'.
if test -z "$depfile"; then
base=`echo "$object" | sed -e 's,^.*/,,' -e 's,\.\([^.]*\)$,.P\1,'`
dir=`echo "$object" | sed 's,/.*$,/,'`
if test "$dir" = "$object"; then
dir=
fi
# FIXME: should be _deps on DOS.
depfile="$dir.deps/$base"
fi
tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
rm -f "$tmpdepfile"
# Some modes work just like other modes, but use different flags. We
# parameterize here, but still list the modes in the big case below,
# to make depend.m4 easier to write. Note that we *cannot* use a case
# here, because this file can only contain one case statement.
if test "$depmode" = hp; then
# HP compiler uses -M and no extra arg.
gccflag=-M
depmode=gcc
fi
if test "$depmode" = dashXmstdout; then
# This is just like dashmstdout with a different argument.
dashmflag=-xM
depmode=dashmstdout
fi
case "$depmode" in
gcc3)
## gcc 3 implements dependency tracking that does exactly what
## we want. Yay! Note: for some reason libtool 1.4 doesn't like
## it if -MD -MP comes after the -MF stuff. Hmm.
"$@" -MT "$object" -MD -MP -MF "$tmpdepfile"
stat=$?
if test $stat -eq 0; then :
else
rm -f "$tmpdepfile"
exit $stat
fi
mv "$tmpdepfile" "$depfile"
;;
gcc)
## There are various ways to get dependency output from gcc. Here's
## why we pick this rather obscure method:
## - Don't want to use -MD because we'd like the dependencies to end
## up in a subdir. Having to rename by hand is ugly.
## (We might end up doing this anyway to support other compilers.)
## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
## -MM, not -M (despite what the docs say).
## - Using -M directly means running the compiler twice (even worse
## than renaming).
if test -z "$gccflag"; then
gccflag=-MD,
fi
"$@" -Wp,"$gccflag$tmpdepfile"
stat=$?
if test $stat -eq 0; then :
else
rm -f "$tmpdepfile"
exit $stat
fi
rm -f "$depfile"
echo "$object : \\" > "$depfile"
alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
## The second -e expression handles DOS-style file names with drive letters.
sed -e 's/^[^:]*: / /' \
-e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
## This next piece of magic avoids the `deleted header file' problem.
## The problem is that when a header file which appears in a .P file
## is deleted, the dependency causes make to die (because there is
## typically no way to rebuild the header). We avoid this by adding
## dummy dependencies for each header file. Too bad gcc doesn't do
## this for us directly.
tr ' ' '
' < "$tmpdepfile" |
## Some versions of gcc put a space before the `:'. On the theory
## that the space means something, we add a space to the output as
## well.
## Some versions of the HPUX 10.20 sed can't process this invocation
## correctly. Breaking it into two sed invocations is a workaround.
sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
rm -f "$tmpdepfile"
;;
hp)
# This case exists only to let depend.m4 do its work. It works by
# looking at the text of this script. This case will never be run,
# since it is checked for above.
exit 1
;;
sgi)
if test "$libtool" = yes; then
"$@" "-Wp,-MDupdate,$tmpdepfile"
else
"$@" -MDupdate "$tmpdepfile"
fi
stat=$?
if test $stat -eq 0; then :
else
rm -f "$tmpdepfile"
exit $stat
fi
rm -f "$depfile"
if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
echo "$object : \\" > "$depfile"
# Clip off the initial element (the dependent). Don't try to be
# clever and replace this with sed code, as IRIX sed won't handle
# lines with more than a fixed number of characters (4096 in
# IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
# the IRIX cc adds comments like `#:fec' to the end of the
# dependency line.
tr ' ' '
' < "$tmpdepfile" \
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
tr '
' ' ' >> $depfile
echo >> $depfile
# The second pass generates a dummy entry for each header file.
tr ' ' '
' < "$tmpdepfile" \
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
>> $depfile
else
# The sourcefile does not contain any dependencies, so just
# store a dummy comment line, to avoid errors with the Makefile
# "include basename.Plo" scheme.
echo "#dummy" > "$depfile"
fi
rm -f "$tmpdepfile"
;;
aix)
# The C for AIX Compiler uses -M and outputs the dependencies
# in a .u file. In older versions, this file always lives in the
# current directory. Also, the AIX compiler puts `$object:' at the
# start of each line; $object doesn't have directory information.
# Version 6 uses the directory in both cases.
stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'`
tmpdepfile="$stripped.u"
if test "$libtool" = yes; then
"$@" -Wc,-M
else
"$@" -M
fi
stat=$?
if test -f "$tmpdepfile"; then :
else
stripped=`echo "$stripped" | sed 's,^.*/,,'`
tmpdepfile="$stripped.u"
fi
if test $stat -eq 0; then :
else
rm -f "$tmpdepfile"
exit $stat
fi
if test -f "$tmpdepfile"; then
outname="$stripped.o"
# Each line is of the form `foo.o: dependent.h'.
# Do two passes, one to just change these to
# `$object: dependent.h' and one to simply `dependent.h:'.
sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
else
# The sourcefile does not contain any dependencies, so just
# store a dummy comment line, to avoid errors with the Makefile
# "include basename.Plo" scheme.
echo "#dummy" > "$depfile"
fi
rm -f "$tmpdepfile"
;;
icc)
# Intel's C compiler understands `-MD -MF file'. However on
# icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
# ICC 7.0 will fill foo.d with something like
# foo.o: sub/foo.c
# foo.o: sub/foo.h
# which is wrong. We want:
# sub/foo.o: sub/foo.c
# sub/foo.o: sub/foo.h
# sub/foo.c:
# sub/foo.h:
# ICC 7.1 will output
# foo.o: sub/foo.c sub/foo.h
# and will wrap long lines using \ :
# foo.o: sub/foo.c ... \
# sub/foo.h ... \
# ...
"$@" -MD -MF "$tmpdepfile"
stat=$?
if test $stat -eq 0; then :
else
rm -f "$tmpdepfile"
exit $stat
fi
rm -f "$depfile"
# Each line is of the form `foo.o: dependent.h',
# or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
# Do two passes, one to just change these to
# `$object: dependent.h' and one to simply `dependent.h:'.
sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
# Some versions of the HPUX 10.20 sed can't process this invocation
# correctly. Breaking it into two sed invocations is a workaround.
sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
sed -e 's/$/ :/' >> "$depfile"
rm -f "$tmpdepfile"
;;
tru64)
# The Tru64 compiler uses -MD to generate dependencies as a side
# effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
# At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
# dependencies in `foo.d' instead, so we check for that too.
# Subdirectories are respected.
dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
test "x$dir" = "x$object" && dir=
base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
if test "$libtool" = yes; then
tmpdepfile1="$dir.libs/$base.lo.d"
tmpdepfile2="$dir.libs/$base.d"
"$@" -Wc,-MD
else
tmpdepfile1="$dir$base.o.d"
tmpdepfile2="$dir$base.d"
"$@" -MD
fi
stat=$?
if test $stat -eq 0; then :
else
rm -f "$tmpdepfile1" "$tmpdepfile2"
exit $stat
fi
if test -f "$tmpdepfile1"; then
tmpdepfile="$tmpdepfile1"
else
tmpdepfile="$tmpdepfile2"
fi
if test -f "$tmpdepfile"; then
sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
# That's a tab and a space in the [].
sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
else
echo "#dummy" > "$depfile"
fi
rm -f "$tmpdepfile"
;;
#nosideeffect)
# This comment above is used by automake to tell side-effect
# dependency tracking mechanisms from slower ones.
dashmstdout)
# Important note: in order to support this mode, a compiler *must*
# always write the preprocessed file to stdout, regardless of -o.
"$@" || exit $?
# Remove the call to Libtool.
if test "$libtool" = yes; then
while test $1 != '--mode=compile'; do
shift
done
shift
fi
# Remove `-o $object'.
IFS=" "
for arg
do
case $arg in
-o)
shift
;;
$object)
shift
;;
*)
set fnord "$@" "$arg"
shift # fnord
shift # $arg
;;
esac
done
test -z "$dashmflag" && dashmflag=-M
# Require at least two characters before searching for `:'
# in the target name. This is to cope with DOS-style filenames:
# a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
"$@" $dashmflag |
sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
rm -f "$depfile"
cat < "$tmpdepfile" > "$depfile"
tr ' ' '
' < "$tmpdepfile" | \
## Some versions of the HPUX 10.20 sed can't process this invocation
## correctly. Breaking it into two sed invocations is a workaround.
sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
rm -f "$tmpdepfile"
;;
dashXmstdout)
# This case only exists to satisfy depend.m4. It is never actually
# run, as this mode is specially recognized in the preamble.
exit 1
;;
makedepend)
"$@" || exit $?
# Remove any Libtool call
if test "$libtool" = yes; then
while test $1 != '--mode=compile'; do
shift
done
shift
fi
# X makedepend
shift
cleared=no
for arg in "$@"; do
case $cleared in
no)
set ""; shift
cleared=yes ;;
esac
case "$arg" in
-D*|-I*)
set fnord "$@" "$arg"; shift ;;
# Strip any option that makedepend may not understand. Remove
# the object too, otherwise makedepend will parse it as a source file.
-*|$object)
;;
*)
set fnord "$@" "$arg"; shift ;;
esac
done
obj_suffix="`echo $object | sed 's/^.*\././'`"
touch "$tmpdepfile"
${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
rm -f "$depfile"
cat < "$tmpdepfile" > "$depfile"
sed '1,2d' "$tmpdepfile" | tr ' ' '
' | \
## Some versions of the HPUX 10.20 sed can't process this invocation
## correctly. Breaking it into two sed invocations is a workaround.
sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
rm -f "$tmpdepfile" "$tmpdepfile".bak
;;
cpp)
# Important note: in order to support this mode, a compiler *must*
# always write the preprocessed file to stdout.
"$@" || exit $?
# Remove the call to Libtool.
if test "$libtool" = yes; then
while test $1 != '--mode=compile'; do
shift
done
shift
fi
# Remove `-o $object'.
IFS=" "
for arg
do
case $arg in
-o)
shift
;;
$object)
shift
;;
*)
set fnord "$@" "$arg"
shift # fnord
shift # $arg
;;
esac
done
"$@" -E |
sed -n '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
sed '$ s: \\$::' > "$tmpdepfile"
rm -f "$depfile"
echo "$object : \\" > "$depfile"
cat < "$tmpdepfile" >> "$depfile"
sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
rm -f "$tmpdepfile"
;;
msvisualcpp)
# Important note: in order to support this mode, a compiler *must*
# always write the preprocessed file to stdout, regardless of -o,
# because we must use -o when running libtool.
"$@" || exit $?
IFS=" "
for arg
do
case "$arg" in
"-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
set fnord "$@"
shift
shift
;;
*)
set fnord "$@" "$arg"
shift
shift
;;
esac
done
"$@" -E |
sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
rm -f "$depfile"
echo "$object : \\" > "$depfile"
. "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
echo " " >> "$depfile"
. "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
rm -f "$tmpdepfile"
;;
none)
exec "$@"
;;
*)
echo "Unknown depmode $depmode" 1>&2
exit 1
;;
esac
exit 0

294
app/xcmsdb/install-sh Normal file
View File

@@ -0,0 +1,294 @@
#!/bin/sh
#
# install - install a program, script, or datafile
#
# This originates from X11R5 (mit/util/scripts/install.sh), which was
# later released in X11R6 (xc/config/util/install.sh) with the
# following copyright and license.
#
# Copyright (C) 1994 X Consortium
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
# sell copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
# Except as contained in this notice, the name of the X Consortium shall not
# be used in advertising or otherwise to promote the sale, use or other deal-
# ings in this Software without prior written authorization from the X Consor-
# tium.
#
#
# FSF changes to this file are in the public domain.
#
# Calling this script install-sh is preferred over install.sh, to prevent
# `make' implicit rules from creating a file called install from it
# when there is no Makefile.
#
# This script is compatible with the BSD install script, but was written
# from scratch. It can only install one file at a time, a restriction
# shared with many OS's install programs.
# set DOITPROG to echo to test this script
# Don't use :- since 4.3BSD and earlier shells don't like it.
doit="${DOITPROG-}"
# put in absolute paths if you don't have them in your path; or use env. vars.
mvprog="${MVPROG-mv}"
cpprog="${CPPROG-cp}"
chmodprog="${CHMODPROG-chmod}"
chownprog="${CHOWNPROG-chown}"
chgrpprog="${CHGRPPROG-chgrp}"
stripprog="${STRIPPROG-strip}"
rmprog="${RMPROG-rm}"
mkdirprog="${MKDIRPROG-mkdir}"
transformbasename=""
transform_arg=""
instcmd="$mvprog"
chmodcmd="$chmodprog 0755"
chowncmd=""
chgrpcmd=""
stripcmd=""
rmcmd="$rmprog -f"
mvcmd="$mvprog"
src=""
dst=""
dir_arg=""
while [ x"$1" != x ]; do
case $1 in
-c) instcmd=$cpprog
shift
continue;;
-d) dir_arg=true
shift
continue;;
-m) chmodcmd="$chmodprog $2"
shift
shift
continue;;
-o) chowncmd="$chownprog $2"
shift
shift
continue;;
-g) chgrpcmd="$chgrpprog $2"
shift
shift
continue;;
-s) stripcmd=$stripprog
shift
continue;;
-t=*) transformarg=`echo $1 | sed 's/-t=//'`
shift
continue;;
-b=*) transformbasename=`echo $1 | sed 's/-b=//'`
shift
continue;;
*) if [ x"$src" = x ]
then
src=$1
else
# this colon is to work around a 386BSD /bin/sh bug
:
dst=$1
fi
shift
continue;;
esac
done
if [ x"$src" = x ]
then
echo "$0: no input file specified" >&2
exit 1
else
:
fi
if [ x"$dir_arg" != x ]; then
dst=$src
src=""
if [ -d "$dst" ]; then
instcmd=:
chmodcmd=""
else
instcmd=$mkdirprog
fi
else
# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
# might cause directories to be created, which would be especially bad
# if $src (and thus $dsttmp) contains '*'.
if [ -f "$src" ] || [ -d "$src" ]
then
:
else
echo "$0: $src does not exist" >&2
exit 1
fi
if [ x"$dst" = x ]
then
echo "$0: no destination specified" >&2
exit 1
else
:
fi
# If destination is a directory, append the input filename; if your system
# does not like double slashes in filenames, you may need to add some logic
if [ -d "$dst" ]
then
dst=$dst/`basename "$src"`
else
:
fi
fi
## this sed command emulates the dirname command
dstdir=`echo "$dst" | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
# Make sure that the destination directory exists.
# this part is taken from Noah Friedman's mkinstalldirs script
# Skip lots of stat calls in the usual case.
if [ ! -d "$dstdir" ]; then
defaultIFS='
'
IFS="${IFS-$defaultIFS}"
oIFS=$IFS
# Some sh's can't handle IFS=/ for some reason.
IFS='%'
set - `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'`
IFS=$oIFS
pathcomp=''
while [ $# -ne 0 ] ; do
pathcomp=$pathcomp$1
shift
if [ ! -d "$pathcomp" ] ;
then
$mkdirprog "$pathcomp"
else
:
fi
pathcomp=$pathcomp/
done
fi
if [ x"$dir_arg" != x ]
then
$doit $instcmd "$dst" &&
if [ x"$chowncmd" != x ]; then $doit $chowncmd "$dst"; else : ; fi &&
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd "$dst"; else : ; fi &&
if [ x"$stripcmd" != x ]; then $doit $stripcmd "$dst"; else : ; fi &&
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd "$dst"; else : ; fi
else
# If we're going to rename the final executable, determine the name now.
if [ x"$transformarg" = x ]
then
dstfile=`basename "$dst"`
else
dstfile=`basename "$dst" $transformbasename |
sed $transformarg`$transformbasename
fi
# don't allow the sed command to completely eliminate the filename
if [ x"$dstfile" = x ]
then
dstfile=`basename "$dst"`
else
:
fi
# Make a couple of temp file names in the proper directory.
dsttmp=$dstdir/_inst.$$_
rmtmp=$dstdir/_rm.$$_
# Trap to clean up temp files at exit.
trap 'status=$?; rm -f "$dsttmp" "$rmtmp" && exit $status' 0
trap '(exit $?); exit' 1 2 13 15
# Move or copy the file name to the temp name
$doit $instcmd "$src" "$dsttmp" &&
# and set any options; do chmod last to preserve setuid bits
# If any of these fail, we abort the whole thing. If we want to
# ignore errors from any of these, just make sure not to ignore
# errors from the above "$doit $instcmd $src $dsttmp" command.
if [ x"$chowncmd" != x ]; then $doit $chowncmd "$dsttmp"; else :;fi &&
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd "$dsttmp"; else :;fi &&
if [ x"$stripcmd" != x ]; then $doit $stripcmd "$dsttmp"; else :;fi &&
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd "$dsttmp"; else :;fi &&
# Now remove or move aside any old file at destination location. We try this
# two ways since rm can't unlink itself on some systems and the destination
# file might be busy for other reasons. In this case, the final cleanup
# might fail but the new file should still install successfully.
{
if [ -f "$dstdir/$dstfile" ]
then
$doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null ||
$doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null ||
{
echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2
(exit 1); exit
}
else
:
fi
} &&
# Now rename the file to the real destination.
$doit $mvcmd "$dsttmp" "$dstdir/$dstfile"
fi &&
# The final little trick to "correctly" pass the exit status to the exit trap.
{
(exit 0); exit
}

1731
app/xcmsdb/loadData.c Normal file

File diff suppressed because it is too large Load Diff

336
app/xcmsdb/missing Normal file
View File

@@ -0,0 +1,336 @@
#! /bin/sh
# Common stub for a few missing GNU programs while installing.
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003 Free Software Foundation, Inc.
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
if test $# -eq 0; then
echo 1>&2 "Try \`$0 --help' for more information"
exit 1
fi
run=:
# In the cases where this matters, `missing' is being run in the
# srcdir already.
if test -f configure.ac; then
configure_ac=configure.ac
else
configure_ac=configure.in
fi
case "$1" in
--run)
# Try to run requested program, and just exit if it succeeds.
run=
shift
"$@" && exit 0
;;
esac
# If it does not exist, or fails to run (possibly an outdated version),
# try to emulate it.
case "$1" in
-h|--h|--he|--hel|--help)
echo "\
$0 [OPTION]... PROGRAM [ARGUMENT]...
Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
error status if there is no known handling for PROGRAM.
Options:
-h, --help display this help and exit
-v, --version output version information and exit
--run try to run the given command, and emulate it if it fails
Supported PROGRAM values:
aclocal touch file \`aclocal.m4'
autoconf touch file \`configure'
autoheader touch file \`config.h.in'
automake touch all \`Makefile.in' files
bison create \`y.tab.[ch]', if possible, from existing .[ch]
flex create \`lex.yy.c', if possible, from existing .c
help2man touch the output file
lex create \`lex.yy.c', if possible, from existing .c
makeinfo touch the output file
tar try tar, gnutar, gtar, then tar without non-portable flags
yacc create \`y.tab.[ch]', if possible, from existing .[ch]"
;;
-v|--v|--ve|--ver|--vers|--versi|--versio|--version)
echo "missing 0.4 - GNU automake"
;;
-*)
echo 1>&2 "$0: Unknown \`$1' option"
echo 1>&2 "Try \`$0 --help' for more information"
exit 1
;;
aclocal*)
if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
# We have it, but it failed.
exit 1
fi
echo 1>&2 "\
WARNING: \`$1' is missing on your system. You should only need it if
you modified \`acinclude.m4' or \`${configure_ac}'. You might want
to install the \`Automake' and \`Perl' packages. Grab them from
any GNU archive site."
touch aclocal.m4
;;
autoconf)
if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
# We have it, but it failed.
exit 1
fi
echo 1>&2 "\
WARNING: \`$1' is missing on your system. You should only need it if
you modified \`${configure_ac}'. You might want to install the
\`Autoconf' and \`GNU m4' packages. Grab them from any GNU
archive site."
touch configure
;;
autoheader)
if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
# We have it, but it failed.
exit 1
fi
echo 1>&2 "\
WARNING: \`$1' is missing on your system. You should only need it if
you modified \`acconfig.h' or \`${configure_ac}'. You might want
to install the \`Autoconf' and \`GNU m4' packages. Grab them
from any GNU archive site."
files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
test -z "$files" && files="config.h"
touch_files=
for f in $files; do
case "$f" in
*:*) touch_files="$touch_files "`echo "$f" |
sed -e 's/^[^:]*://' -e 's/:.*//'`;;
*) touch_files="$touch_files $f.in";;
esac
done
touch $touch_files
;;
automake*)
if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
# We have it, but it failed.
exit 1
fi
echo 1>&2 "\
WARNING: \`$1' is missing on your system. You should only need it if
you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
You might want to install the \`Automake' and \`Perl' packages.
Grab them from any GNU archive site."
find . -type f -name Makefile.am -print |
sed 's/\.am$/.in/' |
while read f; do touch "$f"; done
;;
autom4te)
if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
# We have it, but it failed.
exit 1
fi
echo 1>&2 "\
WARNING: \`$1' is needed, and you do not seem to have it handy on your
system. You might have modified some files without having the
proper tools for further handling them.
You can get \`$1' as part of \`Autoconf' from any GNU
archive site."
file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
if test -f "$file"; then
touch $file
else
test -z "$file" || exec >$file
echo "#! /bin/sh"
echo "# Created by GNU Automake missing as a replacement of"
echo "# $ $@"
echo "exit 0"
chmod +x $file
exit 1
fi
;;
bison|yacc)
echo 1>&2 "\
WARNING: \`$1' is missing on your system. You should only need it if
you modified a \`.y' file. You may need the \`Bison' package
in order for those modifications to take effect. You can get
\`Bison' from any GNU archive site."
rm -f y.tab.c y.tab.h
if [ $# -ne 1 ]; then
eval LASTARG="\${$#}"
case "$LASTARG" in
*.y)
SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
if [ -f "$SRCFILE" ]; then
cp "$SRCFILE" y.tab.c
fi
SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
if [ -f "$SRCFILE" ]; then
cp "$SRCFILE" y.tab.h
fi
;;
esac
fi
if [ ! -f y.tab.h ]; then
echo >y.tab.h
fi
if [ ! -f y.tab.c ]; then
echo 'main() { return 0; }' >y.tab.c
fi
;;
lex|flex)
echo 1>&2 "\
WARNING: \`$1' is missing on your system. You should only need it if
you modified a \`.l' file. You may need the \`Flex' package
in order for those modifications to take effect. You can get
\`Flex' from any GNU archive site."
rm -f lex.yy.c
if [ $# -ne 1 ]; then
eval LASTARG="\${$#}"
case "$LASTARG" in
*.l)
SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
if [ -f "$SRCFILE" ]; then
cp "$SRCFILE" lex.yy.c
fi
;;
esac
fi
if [ ! -f lex.yy.c ]; then
echo 'main() { return 0; }' >lex.yy.c
fi
;;
help2man)
if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
# We have it, but it failed.
exit 1
fi
echo 1>&2 "\
WARNING: \`$1' is missing on your system. You should only need it if
you modified a dependency of a manual page. You may need the
\`Help2man' package in order for those modifications to take
effect. You can get \`Help2man' from any GNU archive site."
file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
if test -z "$file"; then
file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
fi
if [ -f "$file" ]; then
touch $file
else
test -z "$file" || exec >$file
echo ".ab help2man is required to generate this page"
exit 1
fi
;;
makeinfo)
if test -z "$run" && (makeinfo --version) > /dev/null 2>&1; then
# We have makeinfo, but it failed.
exit 1
fi
echo 1>&2 "\
WARNING: \`$1' is missing on your system. You should only need it if
you modified a \`.texi' or \`.texinfo' file, or any other file
indirectly affecting the aspect of the manual. The spurious
call might also be the consequence of using a buggy \`make' (AIX,
DU, IRIX). You might want to install the \`Texinfo' package or
the \`GNU make' package. Grab either from any GNU archive site."
file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
if test -z "$file"; then
file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file`
fi
touch $file
;;
tar)
shift
if test -n "$run"; then
echo 1>&2 "ERROR: \`tar' requires --run"
exit 1
fi
# We have already tried tar in the generic part.
# Look for gnutar/gtar before invocation to avoid ugly error
# messages.
if (gnutar --version > /dev/null 2>&1); then
gnutar "$@" && exit 0
fi
if (gtar --version > /dev/null 2>&1); then
gtar "$@" && exit 0
fi
firstarg="$1"
if shift; then
case "$firstarg" in
*o*)
firstarg=`echo "$firstarg" | sed s/o//`
tar "$firstarg" "$@" && exit 0
;;
esac
case "$firstarg" in
*h*)
firstarg=`echo "$firstarg" | sed s/h//`
tar "$firstarg" "$@" && exit 0
;;
esac
fi
echo 1>&2 "\
WARNING: I can't seem to be able to run \`tar' with the given arguments.
You may want to install GNU tar or Free paxutils, or check the
command line arguments."
exit 1
;;
*)
echo 1>&2 "\
WARNING: \`$1' is needed, and you do not seem to have it handy on your
system. You might have modified some files without having the
proper tools for further handling them. Check the \`README' file,
it often tells you about the needed prerequisites for installing
this package. You may also peek at any GNU archive site, in case
some other package would contain this missing \`$1' program."
exit 1
;;
esac
exit 0

111
app/xcmsdb/mkinstalldirs Normal file
View File

@@ -0,0 +1,111 @@
#! /bin/sh
# mkinstalldirs --- make directory hierarchy
# Author: Noah Friedman <friedman@prep.ai.mit.edu>
# Created: 1993-05-16
# Public domain
errstatus=0
dirmode=""
usage="\
Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..."
# process command line arguments
while test $# -gt 0 ; do
case $1 in
-h | --help | --h*) # -h for help
echo "$usage" 1>&2
exit 0
;;
-m) # -m PERM arg
shift
test $# -eq 0 && { echo "$usage" 1>&2; exit 1; }
dirmode=$1
shift
;;
--) # stop option processing
shift
break
;;
-*) # unknown option
echo "$usage" 1>&2
exit 1
;;
*) # first non-opt arg
break
;;
esac
done
for file
do
if test -d "$file"; then
shift
else
break
fi
done
case $# in
0) exit 0 ;;
esac
case $dirmode in
'')
if mkdir -p -- . 2>/dev/null; then
echo "mkdir -p -- $*"
exec mkdir -p -- "$@"
fi
;;
*)
if mkdir -m "$dirmode" -p -- . 2>/dev/null; then
echo "mkdir -m $dirmode -p -- $*"
exec mkdir -m "$dirmode" -p -- "$@"
fi
;;
esac
for file
do
set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
shift
pathcomp=
for d
do
pathcomp="$pathcomp$d"
case $pathcomp in
-*) pathcomp=./$pathcomp ;;
esac
if test ! -d "$pathcomp"; then
echo "mkdir $pathcomp"
mkdir "$pathcomp" || lasterr=$?
if test ! -d "$pathcomp"; then
errstatus=$lasterr
else
if test ! -z "$dirmode"; then
echo "chmod $dirmode $pathcomp"
lasterr=""
chmod "$dirmode" "$pathcomp" || lasterr=$?
if test ! -z "$lasterr"; then
errstatus=$lasterr
fi
fi
fi
fi
pathcomp="$pathcomp/"
done
done
exit $errstatus
# Local Variables:
# mode: shell-script
# sh-indentation: 2
# End:
# mkinstalldirs ends here

870
app/xcmsdb/xcmsdb.c Normal file
View File

@@ -0,0 +1,870 @@
/* $Xorg: xcmsdb.c,v 1.3 2000/08/17 19:54:13 cpqbld Exp $ */
/*
* (c) Copyright 1990 Tektronix Inc.
* All Rights Reserved
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose and without fee is hereby granted,
* provided that the above copyright notice appear in all copies and that
* both that copyright notice and this permission notice appear in
* supporting documentation, and that the name of Tektronix not be used
* in advertising or publicity pertaining to distribution of the software
* without specific, written prior permission.
*
* Tektronix disclaims all warranties with regard to this software, including
* all implied warranties of merchantability and fitness, in no event shall
* Tektronix be liable for any special, indirect or consequential damages or
* any damages whatsoever resulting from loss of use, data or profits,
* whether in an action of contract, negligence or other tortious action,
* arising out of or in connection with the use or performance of this
* software.
*
*
* NAME
* xcmsdb.c
*
* DESCRIPTION
* Program to load, query or remove the Screen Color
* Characterization Data from the root window of the screen.
*
*/
/* $XFree86: xc/programs/xcmsdb/xcmsdb.c,v 1.5 2001/01/17 23:45:19 dawes Exp $ */
/*
* INCLUDES
*/
#include <stdio.h>
#include <stdlib.h>
#include <X11/Xlib.h>
#include <X11/Xatom.h>
#include <X11/Xos.h>
#include <ctype.h>
#include "SCCDFile.h"
static void QuerySCCDataRGB(Display *dpy, Window root);
static void RemoveSCCData(Display *dpy, Window root, int colorFlag);
static unsigned long _XcmsGetElement(int format, char **pValue,
unsigned long *pCount);
static int _XcmsGetProperty(Display *pDpy, Window w, Atom property,
int *pFormat, unsigned long *pNItems,
unsigned long *pNBytes, char **pValue);
char *ProgramName;
static void
Syntax (void)
{
fprintf (stderr,
"usage: %s [-options ...] [filename]\n\n",
ProgramName);
fprintf (stderr,
"where options include:\n");
fprintf (stderr,
" -display host:dpy[.scrn] display to use\n");
fprintf (stderr,
" -format [ 32 | 16 | 8 ] property format\n");
fprintf (stderr,
" -query query Screen Color Characterization Data\n");
fprintf (stderr,
" -remove remove Screen Color Characterization Data\n");
#ifdef GRAY
fprintf (stderr,
" -color use color as default\n");
fprintf (stderr,
" -gray use gray-scale as default\n");
#endif /* GRAY */
fprintf (stderr,
"\n");
exit (1);
}
static Bool
optionmatch(char *opt, char *arg, int minlen)
{
int arglen;
if (strcmp(opt, arg) == 0) {
return(True);
}
if ((arglen = strlen(arg)) >= (int)strlen(opt) || arglen < minlen) {
return(False);
}
if (strncmp (opt, arg, arglen) == 0) {
return(True);
}
return(False);
}
int
main(int argc, char *argv[])
{
Display *dpy;
int i;
char *displayname = NULL;
char *filename = NULL;
int query = 0;
int remove = 0;
int load = 0;
int color = -1;
int targetFormat = 32;
ProgramName = argv[0];
for (i = 1; i < argc; i++) {
char *arg = argv[i];
if (arg[0] == '-') {
if (arg[1] == '\0') {
filename = NULL;
continue;
} else if (optionmatch ("-help", arg, 1)) {
Syntax ();
/* doesn't return */
} else if (optionmatch ("-display", arg, 1)) {
if (++i >= argc) Syntax ();
displayname = argv[i];
continue;
} else if (optionmatch ("-format", arg, 1)) {
if (++i >= argc) Syntax ();
targetFormat = atoi(argv[i]);
if (targetFormat != 32 && targetFormat != 16 &&
targetFormat != 8) Syntax();
continue;
} else if (optionmatch ("-query", arg, 1)) {
query = 1;
continue;
} else if (optionmatch ("-remove", arg, 1)) {
remove = 1;
continue;
#ifdef GRAY
} else if (optionmatch ("-color", arg, 1)) {
color = 1;
continue;
} else if (optionmatch ("-gray", arg, 1)) {
color = 0;
continue;
#endif /* GRAY */
}
Syntax ();
} else {
load = 1;
filename = arg;
}
}
/* Open display */
if (!(dpy = XOpenDisplay (displayname))) {
fprintf (stderr, "%s: Can't open display '%s'\n",
ProgramName, XDisplayName(displayname));
exit (1);
}
if (load && query) {
load = 0;
}
if (load && remove) {
load = 0;
}
if (!query && !remove) {
LoadSCCData(dpy, DefaultScreen(dpy), filename, targetFormat);
}
if (query) {
if (color != 0)
QuerySCCDataRGB(dpy, RootWindow(dpy, DefaultScreen(dpy)));
#ifdef GRAY
if (color != 1)
QuerySCCDataGray(dpy, RootWindow(dpy, DefaultScreen(dpy)));
#endif /* GRAY */
}
if (remove) {
RemoveSCCData(dpy, RootWindow(dpy, DefaultScreen(dpy)), color);
}
XCloseDisplay(dpy);
exit (0);
/*NOTREACHED*/
}
static Atom
ParseAtom(Display *dpy, char *name, int only_flag)
{
return(XInternAtom(dpy, name, only_flag));
}
/*
* NAME
* PrintTableType0
*
* SYNOPSIS
*/
static void
PrintTableType0(int format, char **pChar, unsigned long *pCount)
/*
* DESCRIPTION
*
* RETURNS
* XcmsFailure if failed.
* XcmsSuccess if succeeded.
*
*/
{
unsigned int nElements;
unsigned short hValue;
XcmsFloat fValue;
nElements = _XcmsGetElement(format, pChar, pCount) + 1;
printf ("\t length:%d\n", nElements);
switch (format) {
case 8:
while (nElements--) {
/* 0xFFFF/0xFF = 0x101 */
hValue = _XcmsGetElement (format, pChar, pCount) * 0x101;
fValue = _XcmsGetElement (format, pChar, pCount)
/ (XcmsFloat)255.0;
printf ("\t\t0x%x\t%8.5f\n", hValue, fValue);
}
break;
case 16:
while (nElements--) {
hValue = _XcmsGetElement (format, pChar, pCount);
fValue = _XcmsGetElement (format, pChar, pCount)
/ (XcmsFloat)65535.0;
printf ("\t\t0x%x\t%8.5f\n", hValue, fValue);
}
break;
case 32:
while (nElements--) {
hValue = _XcmsGetElement (format, pChar, pCount);
fValue = _XcmsGetElement (format, pChar, pCount)
/ (XcmsFloat)4294967295.0;
printf ("\t\t0x%x\t%8.5f\n", hValue, fValue);
}
break;
default:
return;
}
}
/*
* NAME
* PrintTableType1
*
* SYNOPSIS
*/
static void
PrintTableType1(int format, char **pChar, unsigned long *pCount)
/*
* DESCRIPTION
*
* RETURNS
* XcmsFailure if failed.
* XcmsSuccess if succeeded.
*
*/
{
int count;
unsigned int max_index;
unsigned short hValue;
XcmsFloat fValue;
max_index = _XcmsGetElement(format, pChar, pCount);
printf ("\t length:%d\n", max_index + 1);
switch (format) {
case 8:
for (count = 0; count < max_index+1; count++) {
hValue = (count * 65535) / max_index;
fValue = _XcmsGetElement (format, pChar, pCount)
/ (XcmsFloat)255.0;
printf ("\t\t0x%x\t%8.5f\n", hValue, fValue);
}
break;
case 16:
for (count = 0; count < max_index+1; count++) {
hValue = (count * 65535) / max_index;
fValue = _XcmsGetElement (format, pChar, pCount)
/ (XcmsFloat)65535.0;
printf ("\t\t0x%x\t%8.5f\n", hValue, fValue);
}
break;
case 32:
for (count = 0; count < max_index+1; count++) {
hValue = (count * 65535) / max_index;
fValue = _XcmsGetElement (format, pChar, pCount)
/ (XcmsFloat)4294967295.0;
printf ("\t\t0x%x\t%8.5f\n", hValue, fValue);
}
break;
default:
return;
}
}
/*
* NAME
* QuerySCCData - Query for the SCC data on the root window
*
* SYNOPSIS
*/
static void
QuerySCCDataRGB(Display *dpy, Window root)
/*
* DESCRIPTION
*
* RETURNS
* None
*/
{
char *property_return, *pChar;
int i, j;
int count, format, cType, nTables;
unsigned long nitems, nbytes_return;
Atom MatricesAtom, CorrectAtom;
VisualID visualID;
XVisualInfo vinfo_template, *vinfo_ret;
int nvis;
static char *visual_strings[] = {
"StaticGray",
"GrayScale",
"StaticColor",
"PseudoColor",
"TrueColor",
"DirectColor"
};
/*
* Get Matrices
*/
MatricesAtom = ParseAtom (dpy, XDCCC_MATRIX_ATOM_NAME, True);
if (MatricesAtom != None) {
if (_XcmsGetProperty (dpy, root, MatricesAtom, &format, &nitems,
&nbytes_return, &property_return) == XcmsFailure) {
format = 0;
} else if (nitems != 18) {
printf ("Property %s had invalid length of %ld\n",
XDCCC_MATRIX_ATOM_NAME, nitems);
if (property_return) {
XFree (property_return);
}
return;
}
}
if (MatricesAtom == None || !format) {
printf ("Could not find property %s\n", XDCCC_MATRIX_ATOM_NAME);
} else if (format != 32) {
printf ("Data in property %s not in 32 bit format\n",
XDCCC_MATRIX_ATOM_NAME);
} else {
pChar = property_return;
printf ("Screen: %d\n", DefaultScreen(dpy));
printf ("Querying property %s\n", XDCCC_MATRIX_ATOM_NAME);
printf ("\tXYZtoRGB matrix :\n");
for (i = 0; i < 3; i++) {
printf ("\t");
for (j = 0; j < 3; j++) {
printf ("\t%8.5f",
(long)_XcmsGetElement(format, &pChar, &nitems)
/ (XcmsFloat) XDCCC_NUMBER);
}
printf ("\n");
}
printf ("\tRGBtoXYZ matrix :\n");
for (i = 0; i < 3; i++) {
printf ("\t");
for (j = 0; j < 3; j++) {
printf ("\t%8.5f",
(long) _XcmsGetElement(format, &pChar, &nitems)
/ (XcmsFloat) XDCCC_NUMBER);
}
printf ("\n");
}
XFree (property_return);
}
/*
* Get Intensity Tables
*/
CorrectAtom = XInternAtom (dpy, XDCCC_CORRECT_ATOM_NAME, True);
if (CorrectAtom != None) {
if (_XcmsGetProperty (dpy, root, CorrectAtom, &format, &nitems,
&nbytes_return, &property_return) == XcmsFailure) {
format = 0;
} else if (nitems <= 0) {
printf ("Property %s had invalid length of %ld\n",
XDCCC_CORRECT_ATOM_NAME, nitems);
if (property_return) {
XFree (property_return);
}
return;
}
}
if (CorrectAtom == None || !format) {
printf ("Could not find property %s\n", XDCCC_CORRECT_ATOM_NAME);
} else {
printf ("\nQuerying property %s\n", XDCCC_CORRECT_ATOM_NAME);
pChar = property_return;
while (nitems) {
switch (format) {
case 8:
/*
* Must have at least:
* VisualID0
* VisualID1
* VisualID2
* VisualID3
* type
* count
* length
* intensity1
* intensity2
*/
if (nitems < 9) {
goto IntensityTblError;
}
count = 3;
break;
case 16:
/*
* Must have at least:
* VisualID0
* VisualID3
* type
* count
* length
* intensity1
* intensity2
*/
if (nitems < 7) {
goto IntensityTblError;
}
count = 1;
break;
case 32:
/*
* Must have at least:
* VisualID0
* type
* count
* length
* intensity1
* intensity2
*/
if (nitems < 6) {
goto IntensityTblError;
}
count = 0;
break;
default:
goto IntensityTblError;
}
/*
* Get VisualID
*/
visualID = _XcmsGetElement(format, &pChar, &nitems);
/* add the depth, class, and bits info in output */
vinfo_template.visualid = visualID;
vinfo_ret = XGetVisualInfo(dpy, VisualIDMask, &vinfo_template,
&nvis);
while (count--) {
visualID = visualID << format;
visualID |= _XcmsGetElement(format, &pChar, &nitems);
}
if (vinfo_ret != NULL) {
printf
("\n\tVisualID: 0x%lx class: %s depth: %d bits_per_rgb: %d\n",
visualID, visual_strings[vinfo_ret->class],
vinfo_ret->depth, vinfo_ret->bits_per_rgb);
}
else
printf ("\n\tVisualID: 0x%lx\n", visualID);
XFree(vinfo_ret);
cType = _XcmsGetElement(format, &pChar, &nitems);
printf ("\ttype: %d\n", cType);
nTables = _XcmsGetElement(format, &pChar, &nitems);
printf ("\tcount: %d\n", nTables);
switch (cType) {
case 0:
/* Red Table should always exist */
printf ("\tRed Conversion Table:\n");
PrintTableType0(format, &pChar, &nitems);
if (nTables > 1) {
printf ("\tGreen Conversion Table:\n");
PrintTableType0(format, &pChar, &nitems);
printf ("\tBlue Conversion Table:\n");
PrintTableType0(format, &pChar, &nitems);
}
break;
case 1:
/* Red Table should always exist */
printf ("\tRed Conversion Table:\n");
PrintTableType1(format, &pChar, &nitems);
if (nTables > 1) {
printf ("\tGreen Conversion Table:\n");
PrintTableType1(format, &pChar, &nitems);
printf ("\tBlue Conversion Table:\n");
PrintTableType1(format, &pChar, &nitems);
}
break;
default:
goto IntensityTblError;
}
}
XFree (property_return);
}
return;
IntensityTblError:
XFree (property_return);
printf("Fatal error in %s property\n", XDCCC_CORRECT_ATOM_NAME);
}
#ifdef GRAY
/*
* NAME
* QuerySCCDataGray - Query for the SCC data on the root window
*
* SYNOPSIS
*/
int
QuerySCCDataGray(Display *dpy, Window root)
/*
* DESCRIPTION
*
* RETURNS
* None
*/
{
char *property_return, *pChar;
int j;
int count, format, cType;
unsigned long nitems, nbytes_return;
Atom MatricesAtom, CorrectAtom;
VisualID visualID;
MatricesAtom = ParseAtom (dpy, XDCCC_SCREENWHITEPT_ATOM_NAME, True);
if (MatricesAtom != None) {
if (_XcmsGetProperty (dpy, root, MatricesAtom, &format, &nitems,
&nbytes_return, &property_return) == XcmsFailure) {
format = 0;
} else if (nitems != 3) {
printf ("Property %s had invalid length of %d\n",
XDCCC_SCREENWHITEPT_ATOM_NAME, nitems);
if (property_return) {
XFree (property_return);
}
return;
}
}
if (MatricesAtom == None || !format) {
printf ("Could not find property %s\n", XDCCC_SCREENWHITEPT_ATOM_NAME);
} else {
pChar = property_return;
printf ("\nQuerying property %s\n", XDCCC_SCREENWHITEPT_ATOM_NAME);
printf ("\tWhite Point XYZ :\n");
printf ("\t");
for (j = 0; j < 3; j++) {
printf ("\t%8.5lf",
(long) _XcmsGetElement(format, &pChar, &nitems) /
(XcmsFloat) XDCCC_NUMBER);
}
printf ("\n");
XFree (property_return);
}
CorrectAtom = XInternAtom (dpy, XDCCC_GRAY_CORRECT_ATOM_NAME, True);
if (CorrectAtom != None) {
if (_XcmsGetProperty (dpy, root, CorrectAtom, &format, &nitems,
&nbytes_return, &property_return) == XcmsFailure) {
format = 0;
} else if (nitems <= 0) {
printf ("Property %s had invalid length of %d\n",
XDCCC_GRAY_CORRECT_ATOM_NAME, nitems);
if (property_return) {
XFree (property_return);
}
return;
}
}
if (CorrectAtom == None || !format) {
printf ("Could not find property %s\n", XDCCC_GRAY_CORRECT_ATOM_NAME);
} else {
printf ("\nQuerying property %s\n\n", XDCCC_GRAY_CORRECT_ATOM_NAME);
pChar = property_return;
while (nitems) {
switch (format) {
case 8:
/*
* Must have at least:
* VisualID0
* VisualID1
* VisualID2
* VisualID3
* type
* count
* length
* intensity1
* intensity2
*/
if (nitems < 9) {
goto IntensityTblError;
}
count = 3;
break;
case 16:
/*
* Must have at least:
* VisualID0
* VisualID3
* type
* count
* length
* intensity1
* intensity2
*/
if (nitems < 7) {
goto IntensityTblError;
}
count = 1;
break;
case 32:
/*
* Must have at least:
* VisualID0
* type
* count
* length
* intensity1
* intensity2
*/
if (nitems < 6) {
goto IntensityTblError;
}
count = 0;
break;
default:
goto IntensityTblError;
break;
}
/*
* Get VisualID
*/
visualID = _XcmsGetElement(format, &pChar, &nitems);
while (count--) {
visualID = visualID << format;
visualID |= _XcmsGetElement(format, &pChar, &nitems);
}
printf ("\n\tVisualID: 0x%lx\n", visualID);
cType = _XcmsGetElement(format, &pChar, &nitems);
printf ("\ttype: %d\n", cType);
printf ("\tGray Conversion Table:\n");
switch (cType) {
case 0:
PrintTableType0(format, &pChar, &nitems);
break;
case 1:
PrintTableType1(format, &pChar, &nitems);
break;
default:
goto IntensityTblError;
}
}
XFree (property_return);
}
return;
IntensityTblError:
XFree (property_return);
printf("Fatal error in %s property\n", XDCCC_CORRECT_ATOM_NAME);
}
#endif /* GRAY */
/*
* NAME
* RemoveSCCData - Remove for the SCC data on the root window
*
* SYNOPSIS
*/
static void
RemoveSCCData(Display *dpy, Window root, int colorFlag)
/*
* DESCRIPTION
*
* RETURNS
* None
*/
{
unsigned char *ret_prop;
unsigned long ret_len, ret_after;
int ret_format;
Atom MatricesAtom, CorrectAtom, ret_atom;
if (colorFlag != 0) {
MatricesAtom = ParseAtom (dpy, XDCCC_MATRIX_ATOM_NAME, True);
if (MatricesAtom != None) {
XGetWindowProperty (dpy, root, MatricesAtom, 0, 8192, False,
XA_INTEGER, &ret_atom, &ret_format, &ret_len,
&ret_after, &ret_prop);
}
if (MatricesAtom == None || !ret_format) {
printf ("Could not find property %s\n", XDCCC_MATRIX_ATOM_NAME);
} else {
printf ("Deleting property %s\n", XDCCC_MATRIX_ATOM_NAME);
XDeleteProperty (dpy, root, MatricesAtom);
XFree ((char *)ret_prop);
}
CorrectAtom = XInternAtom (dpy, XDCCC_CORRECT_ATOM_NAME, True);
if (CorrectAtom != None) {
XGetWindowProperty (dpy, root, CorrectAtom, 0, 8192, False,
XA_INTEGER, &ret_atom, &ret_format, &ret_len,
&ret_after, &ret_prop);
}
if (CorrectAtom == None || !ret_format) {
printf ("Could not find property %s\n", XDCCC_CORRECT_ATOM_NAME);
} else {
printf ("Deleting property %s\n", XDCCC_CORRECT_ATOM_NAME);
XDeleteProperty (dpy, root, CorrectAtom);
XFree ((char *)ret_prop);
}
}
#ifdef GRAY
if (colorFlag != 1) {
MatricesAtom = ParseAtom (dpy, XDCCC_SCREENWHITEPT_ATOM_NAME, True);
if (MatricesAtom != None) {
XGetWindowProperty (dpy, root, MatricesAtom, 0, 8192, False,
XA_INTEGER, &ret_atom, &ret_format, &ret_len,
&ret_after, &ret_prop);
}
if (MatricesAtom == None || !ret_format) {
printf ("Could not find property %s\n", XDCCC_SCREENWHITEPT_ATOM_NAME);
} else {
printf ("Deleting property %s\n", XDCCC_SCREENWHITEPT_ATOM_NAME);
XDeleteProperty (dpy, root, MatricesAtom);
XFree ((char *)ret_prop);
}
CorrectAtom = XInternAtom (dpy, XDCCC_GRAY_CORRECT_ATOM_NAME, True);
if (CorrectAtom != None) {
XGetWindowProperty (dpy, root, CorrectAtom, 0, 8192, False,
XA_INTEGER, &ret_atom, &ret_format, &ret_len,
&ret_after, &ret_prop);
}
if (CorrectAtom == None || !ret_format) {
printf ("Could not find property %s\n", XDCCC_GRAY_CORRECT_ATOM_NAME);
} else {
printf ("Deleting property %s\n", XDCCC_GRAY_CORRECT_ATOM_NAME);
XDeleteProperty (dpy, root, CorrectAtom);
XFree ((char *)ret_prop);
}
}
#endif /* GRAY */
}
static unsigned long
_XcmsGetElement(int format, char **pValue, unsigned long *pCount)
/*
* DESCRIPTION
* Get the next element from the property and return it.
* Also increment the pointer the amount needed.
*
* Returns
* unsigned long
*/
{
unsigned long value;
switch (format) {
case 32:
value = *((unsigned long *)(*pValue)) & 0xFFFFFFFF;
*pValue += sizeof(unsigned long);
*pCount -= 1;
break;
case 16:
value = *((unsigned short *)(*pValue));
*pValue += sizeof(unsigned short);
*pCount -= 1;
break;
case 8:
value = *((unsigned char *) (*pValue));
*pValue += 1;
*pCount -= 1;
break;
default:
value = 0;
break;
}
return(value);
}
/*
* NAME
* _XcmsGetProperty -- Determine the existance of a property
*
* SYNOPSIS
*/
static int
_XcmsGetProperty(Display *pDpy, Window w, Atom property, int *pFormat,
unsigned long *pNItems, unsigned long *pNBytes,
char **pValue)
/*
* DESCRIPTION
*
* Returns
* 0 if property does not exist.
* 1 if property exists.
*/
{
char *prop_ret;
int format_ret;
long len = 6516;
unsigned long nitems_ret, after_ret;
Atom atom_ret;
while (XGetWindowProperty (pDpy, w, property, 0, len, False,
XA_INTEGER, &atom_ret, &format_ret,
&nitems_ret, &after_ret,
(unsigned char **)&prop_ret)) {
if (after_ret > 0) {
len += nitems_ret * (format_ret >> 3);
XFree (prop_ret);
} else {
break;
}
}
if (format_ret == 0 || nitems_ret == 0) {
/* the property does not exist or is of an unexpected type */
return(XcmsFailure);
}
*pFormat = format_ret;
*pNItems = nitems_ret;
*pNBytes = nitems_ret * (format_ret >> 3);
*pValue = prop_ret;
return(XcmsSuccess);
}

96
app/xcmsdb/xcmsdb.man Normal file
View File

@@ -0,0 +1,96 @@
.\" $Xorg: xcmsdb.man,v 1.4 2001/02/09 02:05:39 xorgcvs Exp $
.\" Copyright 1990, Tektronix Inc.
.\" Copyright 1993, 1998 The Open Group
.\"
.\" Permission to use, copy, modify, distribute, and sell this software and its
.\" documentation for any purpose is hereby granted without fee, provided that
.\" the above copyright notice appear in all copies and that both that
.\" copyright notice and this permission notice appear in supporting
.\" documentation.
.\"
.\" The above copyright notice and this permission notice shall be included in
.\" all copies or substantial portions of the Software.
.\"
.\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
.\" IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
.\" FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
.\" THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
.\" WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
.\" OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
.\" SOFTWARE.
.\"
.\" Except as contained in this notice, the name of The Open Group shall not
.\" be used in advertising or otherwise to promote the sale, use or other
.\" dealing in this Software without prior written authorization from the
.\" The Open Group.
.\"
.\" $XFree86: xc/programs/xcmsdb/xcmsdb.man,v 1.6 2001/01/27 18:21:09 dawes Exp $
.\"
.TH XCMSDB 1 __xorgversion__
.SH NAME
xcmsdb \- Device Color Characterization utility for X Color Management System
.SH SYNOPSIS
.B xcmsdb
[ \fB\-query\fP ] [ \fB\-remove\fP ]
[ \fB\-format\032\fP|\fB16\fP|\fB8\fP ]
[ \fIfilename\fP ]
.SH DESCRIPTION
.I xcmsdb
is used to load, query, or remove Device Color Characterization data
stored in properties on the root window of the screen as specified
in section 7, Device Color Characterization, of the ICCCM.
Device Color Characterization data (also called the Device Profile)
is an integral part of Xlib's X Color Management System (Xcms), necessary
for proper conversion of color specification between device-independent
and device-dependent forms.
Xcms uses 3x3 matrices stored in the XDCCC_LINEAR_RGB_MATRICES property to
convert color specifications between CIEXYZ and RGB Intensity (XcmsRGBi, also
referred to as linear RGB).
Xcms then uses display gamma information stored in the
XDCCC_LINEAR_RGB_CORRECTION property to convert color specifications between
RGBi and RGB device (XcmsRGB, also referred to as device RGB).
.LP
Note that Xcms allows clients to register \fIfunction sets\fP
in addition to its
built-in function set for CRT color monitors. Additional function sets
may store their device profile information in other properties in function
set specific format.
This utility is unaware of these non-standard properties.
.LP
The ASCII readable contents of
.I filename
(or the standard input if no input file is given)
are appropriately transformed for storage in properties, provided the
.B \-query
or
.B \-remove
options are not specified.
.SH "OPTIONS"
.I xcmsdb
program accepts the following options:
.TP 8
.B \-query
This option attempts to read the XDCCC properties off the screen's root
window.
If successful, it transforms the data into a more readable format, then
sends the data to standard out.
.TP 8
.B \-remove
This option attempts to remove the XDCCC properties on the screen's root
window.
.TP 8
\fB\-format\032\fP|\fB16\fP|\fB8\fP
Specifies the property format (32, 16, or 8 bits per entry) for the
XDCCC_LINEAR_RGB_CORRECTION property.
Precision of encoded floating point values increases with the increase
in bits per entry.
The default is 32 bits per entry.
.SH "SEE ALSO"
xprop(1), Xlib documentation
.SH ENVIRONMENT
.TP 8
.B DISPLAY
to figure out which display and screen to use.
.SH AUTHOR
Chuck Adams, Tektronix Inc.
Al Tabayoyon, SynChromatics Inc. (added multi-visual support)