mirror of
https://github.com/openbsd/xenocara.git
synced 2025-12-09 18:59:00 +00:00
Importing from X.Org 7.2RC2
This commit is contained in:
0
app/xlogo/AUTHORS
Normal file
0
app/xlogo/AUTHORS
Normal file
12
app/xlogo/COPYING
Normal file
12
app/xlogo/COPYING
Normal 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
|
||||
41
app/xlogo/ChangeLog
Normal file
41
app/xlogo/ChangeLog
Normal file
@@ -0,0 +1,41 @@
|
||||
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-07 Kevin E. Martin <kem-at-freedesktop-dot-org>
|
||||
|
||||
* Makefile.am:
|
||||
* configure.ac:
|
||||
Change to use the app-defaults default dir configured in libXt.
|
||||
|
||||
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-11-19 Alan Coopersmith <alan.coopersmith@sun.com>
|
||||
|
||||
* configure.ac:
|
||||
Add dependency on xp module when building with Xprint support.
|
||||
|
||||
2005-11-19 Kevin E. Martin <kem-at-freedesktop-dot-org>
|
||||
|
||||
* configure.ac:
|
||||
Update dependencies to work with separate build roots.
|
||||
|
||||
2005-10-18 Kevin E. Martin <kem-at-freedesktop-dot-org>
|
||||
|
||||
* configure.ac:
|
||||
Update package version number for RC1 release.
|
||||
|
||||
0
app/xlogo/INSTALL
Normal file
0
app/xlogo/INSTALL
Normal file
490
app/xlogo/Logo.c
Normal file
490
app/xlogo/Logo.c
Normal file
@@ -0,0 +1,490 @@
|
||||
/* $XdotOrg: xc/programs/xlogo/Logo.c,v 1.2 2004/04/23 19:54:57 eich Exp $ */
|
||||
/* $Xorg: Logo.c,v 1.4 2001/02/09 02:05:54 xorgcvs Exp $ */
|
||||
/*
|
||||
|
||||
Copyright 1988, 1994, 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 dealings in this Software without prior written authorization
|
||||
from The Open Group.
|
||||
|
||||
*/
|
||||
/* $XFree86: xc/programs/xlogo/Logo.c,v 1.6 2002/05/23 23:53:59 keithp Exp $ */
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
#include <X11/StringDefs.h>
|
||||
#include <X11/IntrinsicP.h>
|
||||
#include <X11/Xmu/Drawing.h>
|
||||
#include "LogoP.h"
|
||||
#include <X11/extensions/shape.h>
|
||||
#include <X11/Xos.h>
|
||||
|
||||
#ifdef XRENDER
|
||||
#include "RenderLogo.h"
|
||||
#endif
|
||||
|
||||
static XtResource resources[] = {
|
||||
{XtNshapeWindow, XtCShapeWindow, XtRBoolean, sizeof (Boolean),
|
||||
XtOffsetOf(LogoRec,logo.shape_window), XtRImmediate,
|
||||
(XtPointer) FALSE},
|
||||
#ifdef XRENDER
|
||||
{XtNrender, XtCBoolean, XtRBoolean, sizeof(Boolean),
|
||||
XtOffsetOf(LogoRec,logo.render), XtRImmediate,
|
||||
(XtPointer) FALSE },
|
||||
{XtNsharp, XtCBoolean, XtRBoolean, sizeof(Boolean),
|
||||
XtOffsetOf(LogoRec,logo.sharp), XtRImmediate,
|
||||
(XtPointer) FALSE },
|
||||
{XtNforeground, XtCForeground, XtRXftColor, sizeof(XftColor),
|
||||
XtOffsetOf(LogoRec, logo.fg), XtRString,
|
||||
(XtPointer) XtDefaultForeground},
|
||||
{XtNbackground, XtCForeground, XtRXftColor, sizeof(XftColor),
|
||||
XtOffsetOf(LogoRec, logo.bg), XtRString,
|
||||
(XtPointer) XtDefaultBackground},
|
||||
#else
|
||||
{XtNforeground, XtCForeground, XtRPixel, sizeof(Pixel),
|
||||
XtOffsetOf(LogoRec,logo.fgpixel), XtRString,
|
||||
(XtPointer) XtDefaultForeground},
|
||||
#endif
|
||||
};
|
||||
|
||||
static void ClassInitialize ( void );
|
||||
static void Initialize ( Widget request, Widget new, ArgList args,
|
||||
Cardinal *num_args );
|
||||
static void Destroy ( Widget gw );
|
||||
static void Realize ( Widget gw, XtValueMask *valuemaskp,
|
||||
XSetWindowAttributes *attr );
|
||||
static void Resize ( Widget gw );
|
||||
static void Redisplay ( Widget gw, XEvent *event, Region region );
|
||||
static Boolean SetValues ( Widget gcurrent, Widget grequest, Widget gnew,
|
||||
ArgList args, Cardinal *num_args );
|
||||
|
||||
LogoClassRec logoClassRec = {
|
||||
{ /* core fields */
|
||||
/* superclass */ (WidgetClass) &simpleClassRec,
|
||||
/* class_name */ "Logo",
|
||||
/* widget_size */ sizeof(LogoRec),
|
||||
/* class_initialize */ ClassInitialize,
|
||||
/* class_part_initialize */ NULL,
|
||||
/* class_inited */ FALSE,
|
||||
/* initialize */ Initialize,
|
||||
/* initialize_hook */ NULL,
|
||||
/* realize */ Realize,
|
||||
/* actions */ NULL,
|
||||
/* num_actions */ 0,
|
||||
/* resources */ resources,
|
||||
/* resource_count */ XtNumber(resources),
|
||||
/* xrm_class */ NULLQUARK,
|
||||
/* compress_motion */ TRUE,
|
||||
/* compress_exposure */ TRUE,
|
||||
/* compress_enterleave */ TRUE,
|
||||
/* visible_interest */ FALSE,
|
||||
/* destroy */ Destroy,
|
||||
/* resize */ Resize,
|
||||
/* expose */ Redisplay,
|
||||
/* set_values */ SetValues,
|
||||
/* set_values_hook */ NULL,
|
||||
/* set_values_almost */ XtInheritSetValuesAlmost,
|
||||
/* get_values_hook */ NULL,
|
||||
/* accept_focus */ NULL,
|
||||
/* version */ XtVersion,
|
||||
/* callback_private */ NULL,
|
||||
/* tm_table */ NULL,
|
||||
/* query_geometry */ XtInheritQueryGeometry,
|
||||
/* display_accelerator */ XtInheritDisplayAccelerator,
|
||||
/* extension */ NULL
|
||||
},
|
||||
{ /* simple fields */
|
||||
/* change_sensitive */ XtInheritChangeSensitive
|
||||
},
|
||||
{ /* logo fields */
|
||||
/* ignore */ 0
|
||||
}
|
||||
};
|
||||
|
||||
WidgetClass logoWidgetClass = (WidgetClass) &logoClassRec;
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
* *
|
||||
* private utility routines *
|
||||
* *
|
||||
*****************************************************************************/
|
||||
|
||||
static void
|
||||
create_gcs(LogoWidget w)
|
||||
{
|
||||
XGCValues v;
|
||||
|
||||
#ifdef XRENDER
|
||||
w->logo.fgpixel = w->logo.fg.pixel;
|
||||
#endif
|
||||
|
||||
v.foreground = w->logo.fgpixel;
|
||||
w->logo.foreGC = XtGetGC ((Widget) w, GCForeground, &v);
|
||||
v.foreground = w->core.background_pixel;
|
||||
w->logo.backGC = XtGetGC ((Widget) w, GCForeground, &v);
|
||||
}
|
||||
|
||||
static void
|
||||
check_shape(LogoWidget w)
|
||||
{
|
||||
if (w->logo.shape_window) {
|
||||
int event_base, error_base;
|
||||
|
||||
if (!XShapeQueryExtension (XtDisplay (w), &event_base, &error_base))
|
||||
w->logo.shape_window = FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
/* ARGSUSED */
|
||||
static void
|
||||
unset_shape(LogoWidget w)
|
||||
{
|
||||
XSetWindowAttributes attr;
|
||||
unsigned long mask;
|
||||
Display *dpy = XtDisplay ((Widget) w);
|
||||
Window win = XtWindow ((Widget) w);
|
||||
|
||||
if (w->core.background_pixmap != None &&
|
||||
w->core.background_pixmap != XtUnspecifiedPixmap) {
|
||||
attr.background_pixmap = w->core.background_pixmap;
|
||||
mask = CWBackPixmap;
|
||||
} else {
|
||||
attr.background_pixel = w->core.background_pixel;
|
||||
mask = CWBackPixel;
|
||||
}
|
||||
XChangeWindowAttributes (dpy, win, mask, &attr);
|
||||
XShapeCombineMask (dpy, win, ShapeBounding, 0, 0, None, ShapeSet);
|
||||
if (!w->logo.foreGC) create_gcs (w);
|
||||
w->logo.need_shaping = w->logo.shape_window;
|
||||
}
|
||||
|
||||
static void
|
||||
set_shape(LogoWidget w)
|
||||
{
|
||||
GC ones, zeros;
|
||||
Display *dpy = XtDisplay ((Widget) w);
|
||||
Window win = XtWindow ((Widget) w);
|
||||
unsigned int width = (unsigned int) w->core.width;
|
||||
unsigned int height = (unsigned int) w->core.height;
|
||||
Pixmap pm = XCreatePixmap (dpy, win, width, height, (unsigned int) 1);
|
||||
XGCValues v;
|
||||
|
||||
v.foreground = (Pixel) 1;
|
||||
v.background = (Pixel) 0;
|
||||
ones = XCreateGC (dpy, pm, (GCForeground | GCBackground), &v);
|
||||
v.foreground = (Pixel) 0;
|
||||
v.background = (Pixel) 1;
|
||||
zeros = XCreateGC (dpy, pm, (GCForeground | GCBackground), &v);
|
||||
|
||||
if (pm && ones && zeros) {
|
||||
int x = 0, y = 0;
|
||||
Widget parent;
|
||||
|
||||
XmuDrawLogo (dpy, pm, ones, zeros, 0, 0, width, height);
|
||||
for (parent = (Widget) w; XtParent(parent);
|
||||
parent = XtParent(parent)) {
|
||||
x += parent->core.x + parent->core.border_width;
|
||||
y += parent->core.y + parent->core.border_width;
|
||||
}
|
||||
XShapeCombineMask (dpy, XtWindow (parent), ShapeBounding,
|
||||
x, y, pm, ShapeSet);
|
||||
w->logo.need_shaping = FALSE;
|
||||
} else {
|
||||
unset_shape (w);
|
||||
}
|
||||
if (ones) XFreeGC (dpy, ones);
|
||||
if (zeros) XFreeGC (dpy, zeros);
|
||||
if (pm) XFreePixmap (dpy, pm);
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
* *
|
||||
* class methods *
|
||||
* *
|
||||
*****************************************************************************/
|
||||
|
||||
#ifdef XRENDER
|
||||
|
||||
static void
|
||||
RenderPrepare (LogoWidget w)
|
||||
{
|
||||
if (!w->logo.draw)
|
||||
{
|
||||
w->logo.draw = XftDrawCreate (XtDisplay (w), XtWindow (w),
|
||||
DefaultVisual (XtDisplay (w),
|
||||
DefaultScreen(XtDisplay (w))),
|
||||
w->core.colormap);
|
||||
}
|
||||
}
|
||||
|
||||
XtConvertArgRec xftColorConvertArgs[] = {
|
||||
{XtWidgetBaseOffset, (XtPointer)XtOffsetOf(WidgetRec, core.screen),
|
||||
sizeof(Screen *)},
|
||||
{XtWidgetBaseOffset, (XtPointer)XtOffsetOf(WidgetRec, core.colormap),
|
||||
sizeof(Colormap)}
|
||||
};
|
||||
|
||||
#define donestr(type, value, tstr) \
|
||||
{ \
|
||||
if (toVal->addr != NULL) { \
|
||||
if (toVal->size < sizeof(type)) { \
|
||||
toVal->size = sizeof(type); \
|
||||
XtDisplayStringConversionWarning(dpy, \
|
||||
(char*) fromVal->addr, tstr); \
|
||||
return False; \
|
||||
} \
|
||||
*(type*)(toVal->addr) = (value); \
|
||||
} \
|
||||
else { \
|
||||
static type static_val; \
|
||||
static_val = (value); \
|
||||
toVal->addr = (XPointer)&static_val; \
|
||||
} \
|
||||
toVal->size = sizeof(type); \
|
||||
return True; \
|
||||
}
|
||||
|
||||
static void
|
||||
XmuFreeXftColor (XtAppContext app, XrmValuePtr toVal, XtPointer closure,
|
||||
XrmValuePtr args, Cardinal *num_args)
|
||||
{
|
||||
Screen *screen;
|
||||
Colormap colormap;
|
||||
XftColor *color;
|
||||
|
||||
if (*num_args != 2)
|
||||
{
|
||||
XtAppErrorMsg (app,
|
||||
"freeXftColor", "wrongParameters",
|
||||
"XtToolkitError",
|
||||
"Freeing an XftColor requires screen and colormap arguments",
|
||||
(String *) NULL, (Cardinal *)NULL);
|
||||
return;
|
||||
}
|
||||
|
||||
screen = *((Screen **) args[0].addr);
|
||||
colormap = *((Colormap *) args[1].addr);
|
||||
color = (XftColor *) toVal->addr;
|
||||
XftColorFree (DisplayOfScreen (screen),
|
||||
DefaultVisual (DisplayOfScreen (screen),
|
||||
XScreenNumberOfScreen (screen)),
|
||||
colormap, color);
|
||||
}
|
||||
|
||||
static Boolean
|
||||
XmuCvtStringToXftColor(Display *dpy,
|
||||
XrmValue *args, Cardinal *num_args,
|
||||
XrmValue *fromVal, XrmValue *toVal,
|
||||
XtPointer *converter_data)
|
||||
{
|
||||
char *spec;
|
||||
XRenderColor renderColor;
|
||||
XftColor xftColor;
|
||||
Screen *screen;
|
||||
Colormap colormap;
|
||||
|
||||
if (*num_args != 2)
|
||||
{
|
||||
XtAppErrorMsg (XtDisplayToApplicationContext (dpy),
|
||||
"cvtStringToXftColor", "wrongParameters",
|
||||
"XtToolkitError",
|
||||
"String to render color conversion needs screen and colormap arguments",
|
||||
(String *) NULL, (Cardinal *)NULL);
|
||||
return False;
|
||||
}
|
||||
|
||||
screen = *((Screen **) args[0].addr);
|
||||
colormap = *((Colormap *) args[1].addr);
|
||||
|
||||
spec = (char *) fromVal->addr;
|
||||
if (strcasecmp (spec, XtDefaultForeground) == 0)
|
||||
{
|
||||
renderColor.red = 0;
|
||||
renderColor.green = 0;
|
||||
renderColor.blue = 0;
|
||||
renderColor.alpha = 0xffff;
|
||||
}
|
||||
else if (strcasecmp (spec, XtDefaultBackground) == 0)
|
||||
{
|
||||
renderColor.red = 0xffff;
|
||||
renderColor.green = 0xffff;
|
||||
renderColor.blue = 0xffff;
|
||||
renderColor.alpha = 0xffff;
|
||||
}
|
||||
else if (!XRenderParseColor (dpy, spec, &renderColor))
|
||||
return False;
|
||||
if (!XftColorAllocValue (dpy,
|
||||
DefaultVisual (dpy,
|
||||
XScreenNumberOfScreen (screen)),
|
||||
colormap,
|
||||
&renderColor,
|
||||
&xftColor))
|
||||
return False;
|
||||
|
||||
donestr (XftColor, xftColor, XtRXftColor);
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
static void
|
||||
ClassInitialize(void)
|
||||
{
|
||||
#ifdef XRENDER
|
||||
XtSetTypeConverter (XtRString, XtRXftColor,
|
||||
XmuCvtStringToXftColor,
|
||||
xftColorConvertArgs, XtNumber(xftColorConvertArgs),
|
||||
XtCacheByDisplay, XmuFreeXftColor);
|
||||
#endif
|
||||
}
|
||||
|
||||
/* ARGSUSED */
|
||||
static void
|
||||
Initialize(Widget request, Widget new, ArgList args, Cardinal *num_args)
|
||||
{
|
||||
LogoWidget w = (LogoWidget)new;
|
||||
|
||||
#ifdef XRENDER
|
||||
w->logo.draw = 0;
|
||||
w->logo.fgpixel = w->logo.fg.pixel;
|
||||
#endif
|
||||
if (w->core.width < 1) w->core.width = 100;
|
||||
if (w->core.height < 1) w->core.height = 100;
|
||||
|
||||
w->logo.foreGC = (GC) NULL;
|
||||
w->logo.backGC = (GC) NULL;
|
||||
check_shape (w);
|
||||
w->logo.need_shaping = w->logo.shape_window;
|
||||
}
|
||||
|
||||
static void
|
||||
Destroy(Widget gw)
|
||||
{
|
||||
LogoWidget w = (LogoWidget) gw;
|
||||
if (w->logo.foreGC) {
|
||||
XtReleaseGC (gw, w->logo.foreGC);
|
||||
w->logo.foreGC = (GC) NULL;
|
||||
}
|
||||
if (w->logo.backGC) {
|
||||
XtReleaseGC (gw, w->logo.backGC);
|
||||
w->logo.backGC = (GC) NULL;
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
Realize(Widget gw, XtValueMask *valuemaskp, XSetWindowAttributes *attr)
|
||||
{
|
||||
LogoWidget w = (LogoWidget) gw;
|
||||
|
||||
if (w->logo.shape_window) {
|
||||
attr->background_pixel = w->logo.fgpixel; /* going to shape */
|
||||
*valuemaskp |= CWBackPixel;
|
||||
} else
|
||||
create_gcs (w);
|
||||
(*logoWidgetClass->core_class.superclass->core_class.realize)
|
||||
(gw, valuemaskp, attr);
|
||||
}
|
||||
|
||||
static void
|
||||
Resize(Widget gw)
|
||||
{
|
||||
LogoWidget w = (LogoWidget) gw;
|
||||
|
||||
if (w->logo.shape_window && XtIsRealized(gw)) set_shape (w);
|
||||
}
|
||||
|
||||
/* ARGSUSED */
|
||||
static void
|
||||
Redisplay(Widget gw, XEvent *event, Region region)
|
||||
{
|
||||
LogoWidget w = (LogoWidget) gw;
|
||||
|
||||
if (w->logo.shape_window) {
|
||||
if (w->logo.need_shaping) set_shape (w); /* may change shape flag */
|
||||
}
|
||||
if (!w->logo.shape_window) {
|
||||
#ifdef XRENDER
|
||||
if (w->logo.render)
|
||||
{
|
||||
RenderPrepare (w);
|
||||
|
||||
XClearWindow (XtDisplay(w), XtWindow(w));
|
||||
RenderLogo (XtDisplay(w), PictOpOver,
|
||||
XftDrawSrcPicture (w->logo.draw, &w->logo.fg),
|
||||
XftDrawPicture (w->logo.draw),
|
||||
XRenderFindStandardFormat (XtDisplay (w),
|
||||
w->logo.sharp ?
|
||||
PictStandardA1:
|
||||
PictStandardA8),
|
||||
0, 0, (unsigned int) w->core.width,
|
||||
(unsigned int) w->core.height);
|
||||
}
|
||||
else
|
||||
#endif
|
||||
{
|
||||
XmuDrawLogo (XtDisplay(w), XtWindow(w), w->logo.foreGC, w->logo.backGC,
|
||||
0, 0, (unsigned int) w->core.width,
|
||||
(unsigned int) w->core.height);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* ARGSUSED */
|
||||
static Boolean
|
||||
SetValues (Widget gcurrent, Widget grequest, Widget gnew,
|
||||
ArgList args, Cardinal *num_args)
|
||||
{
|
||||
LogoWidget current = (LogoWidget) gcurrent;
|
||||
LogoWidget new = (LogoWidget) gnew;
|
||||
Boolean redisplay = FALSE;
|
||||
|
||||
if (new->logo.shape_window &&
|
||||
new->logo.shape_window != current->logo.shape_window)
|
||||
check_shape (new); /* validate shape_window */
|
||||
|
||||
if ((new->logo.fgpixel != current->logo.fgpixel) ||
|
||||
(new->core.background_pixel != current->core.background_pixel)) {
|
||||
Destroy (gnew);
|
||||
if (!new->logo.shape_window) create_gcs (new);
|
||||
redisplay = TRUE;
|
||||
}
|
||||
|
||||
if (new->logo.shape_window != current->logo.shape_window) {
|
||||
if (new->logo.shape_window) {
|
||||
Destroy (gnew);
|
||||
if (XtIsRealized(gnew))
|
||||
set_shape (new);
|
||||
else
|
||||
new->logo.need_shaping = True;
|
||||
redisplay = FALSE;
|
||||
} else {
|
||||
if (XtIsRealized(gnew))
|
||||
unset_shape (new); /* creates new GCs */
|
||||
redisplay = TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
return (redisplay);
|
||||
}
|
||||
68
app/xlogo/Logo.h
Normal file
68
app/xlogo/Logo.h
Normal file
@@ -0,0 +1,68 @@
|
||||
/* $Xorg: Logo.h,v 1.4 2001/02/09 02:05:54 xorgcvs Exp $ */
|
||||
/*
|
||||
|
||||
Copyright 1988, 1990, 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 dealings in this Software without prior written authorization
|
||||
from The Open Group.
|
||||
|
||||
*/
|
||||
/* $XFree86$ */
|
||||
|
||||
#ifndef _XawLogo_h
|
||||
#define _XawLogo_h
|
||||
|
||||
/* Parameters:
|
||||
|
||||
Name Class RepType Default Value
|
||||
---- ----- ------- -------------
|
||||
background Background Pixel XtDefaultBackground
|
||||
border BorderColor Pixel XtDefaultForeground
|
||||
borderWidth BorderWidth Dimension 1
|
||||
destroyCallback Callback Pointer NULL
|
||||
foreground Foreground Pixel XtDefaultForeground
|
||||
height Height Dimension 100
|
||||
mappedWhenManaged MappedWhenManaged Boolean True
|
||||
shapeWindow ShapeWindow Boolean False
|
||||
width Width Dimension 100
|
||||
x Position Position 0
|
||||
y Position Position 0
|
||||
|
||||
*/
|
||||
|
||||
#define XtNshapeWindow "shapeWindow"
|
||||
#define XtCShapeWindow "ShapeWindow"
|
||||
|
||||
#define XtNrender "render"
|
||||
#define XtCRender "Render"
|
||||
|
||||
#define XtRXftColor "XftColor"
|
||||
|
||||
#define XtNsharp "sharp"
|
||||
#define XtCSharp "Sharp"
|
||||
|
||||
typedef struct _LogoRec *LogoWidget;
|
||||
typedef struct _LogoClassRec *LogoWidgetClass;
|
||||
|
||||
extern WidgetClass logoWidgetClass;
|
||||
|
||||
#endif /* _XawLogo_h */
|
||||
74
app/xlogo/LogoP.h
Normal file
74
app/xlogo/LogoP.h
Normal file
@@ -0,0 +1,74 @@
|
||||
/* $Xorg: LogoP.h,v 1.4 2001/02/09 02:05:54 xorgcvs Exp $ */
|
||||
/*
|
||||
|
||||
Copyright 1988, 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 dealings in this Software without prior written authorization
|
||||
from The Open Group.
|
||||
|
||||
*/
|
||||
/* $XFree86$ */
|
||||
|
||||
#ifndef _XawLogoP_h
|
||||
#define _XawLogoP_h
|
||||
|
||||
#include "Logo.h"
|
||||
#include <X11/Xaw/SimpleP.h>
|
||||
|
||||
#ifdef XRENDER
|
||||
#include <X11/extensions/Xrender.h>
|
||||
#include <X11/Xft/Xft.h>
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
Pixel fgpixel;
|
||||
GC foreGC;
|
||||
GC backGC;
|
||||
Boolean shape_window;
|
||||
Boolean need_shaping;
|
||||
#ifdef XRENDER
|
||||
Boolean render;
|
||||
Boolean sharp;
|
||||
XftDraw *draw;
|
||||
XRenderPictFormat *mask_format;
|
||||
XftColor fg;
|
||||
XftColor bg;
|
||||
#endif
|
||||
} LogoPart;
|
||||
|
||||
typedef struct _LogoRec {
|
||||
CorePart core;
|
||||
SimplePart simple;
|
||||
LogoPart logo;
|
||||
} LogoRec;
|
||||
|
||||
typedef struct {int dummy;} LogoClassPart;
|
||||
|
||||
typedef struct _LogoClassRec {
|
||||
CoreClassPart core_class;
|
||||
SimpleClassPart simple_class;
|
||||
LogoClassPart logo_class;
|
||||
} LogoClassRec;
|
||||
|
||||
extern LogoClassRec logoClassRec;
|
||||
|
||||
#endif /* _XawLogoP_h */
|
||||
97
app/xlogo/Makefile.am
Normal file
97
app/xlogo/Makefile.am
Normal file
@@ -0,0 +1,97 @@
|
||||
# $Id: Makefile.am,v 1.1.1.1 2006/11/25 20:47:24 matthieu Exp $
|
||||
#
|
||||
# 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 = xlogo
|
||||
|
||||
xlogo_CFLAGS = $(XLOGO_CFLAGS)
|
||||
xlogo_LDADD = $(XLOGO_LIBS)
|
||||
|
||||
xlogo_SOURCES = \
|
||||
Logo.c \
|
||||
Logo.h \
|
||||
LogoP.h \
|
||||
RenderLogo.c \
|
||||
RenderLogo.h \
|
||||
xlogo.c \
|
||||
xlogo.h
|
||||
|
||||
if XAW_USE_XPRINT
|
||||
xlogo_SOURCES += \
|
||||
print.c \
|
||||
print.h
|
||||
endif
|
||||
|
||||
appman_PRE = \
|
||||
xlogo.man
|
||||
|
||||
# App default files (*.ad)
|
||||
|
||||
appdefaultdir = @appdefaultdir@
|
||||
|
||||
|
||||
APPDEFAULTFILES = \
|
||||
XLogo \
|
||||
XLogo-color
|
||||
|
||||
|
||||
SUFFIXES = .ad
|
||||
|
||||
.ad:
|
||||
cp $< $@
|
||||
|
||||
appdefault_DATA = $(APPDEFAULTFILES)
|
||||
|
||||
EXTRA_DIST = $(APPDEFAULTFILES:%=%.ad)
|
||||
|
||||
CLEANFILES = $(APPDEFAULTFILES)
|
||||
|
||||
|
||||
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) < $< > $@
|
||||
767
app/xlogo/Makefile.in
Normal file
767
app/xlogo/Makefile.in
Normal file
@@ -0,0 +1,767 @@
|
||||
# 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@
|
||||
|
||||
# $Id: Makefile.in,v 1.1.1.1 2006/11/25 20:47:29 matthieu Exp $
|
||||
#
|
||||
# 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@
|
||||
@XAW_USE_XPRINT_TRUE@am__append_1 = \
|
||||
@XAW_USE_XPRINT_TRUE@ print.c \
|
||||
@XAW_USE_XPRINT_TRUE@ print.h
|
||||
|
||||
ACLOCAL = @ACLOCAL@
|
||||
ADMIN_MAN_DIR = @ADMIN_MAN_DIR@
|
||||
ADMIN_MAN_SUFFIX = @ADMIN_MAN_SUFFIX@
|
||||
AMDEP_FALSE = @AMDEP_FALSE@
|
||||
AMDEP_TRUE = @AMDEP_TRUE@
|
||||
AMTAR = @AMTAR@
|
||||
APPDEFS_CFLAGS = @APPDEFS_CFLAGS@
|
||||
APPDEFS_LIBS = @APPDEFS_LIBS@
|
||||
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@
|
||||
TMP_XAW_CFLAGS = @TMP_XAW_CFLAGS@
|
||||
TMP_XAW_LIBS = @TMP_XAW_LIBS@
|
||||
VERSION = @VERSION@
|
||||
XAW_USE_XPRINT_FALSE = @XAW_USE_XPRINT_FALSE@
|
||||
XAW_USE_XPRINT_TRUE = @XAW_USE_XPRINT_TRUE@
|
||||
XEXT_CFLAGS = @XEXT_CFLAGS@
|
||||
XEXT_LIBS = @XEXT_LIBS@
|
||||
XFT_CFLAGS = @XFT_CFLAGS@
|
||||
XFT_LIBS = @XFT_LIBS@
|
||||
XLOGO_CFLAGS = @XLOGO_CFLAGS@
|
||||
XLOGO_LIBS = @XLOGO_LIBS@
|
||||
XPRINT_UTIL_CFLAGS = @XPRINT_UTIL_CFLAGS@
|
||||
XPRINT_UTIL_LIBS = @XPRINT_UTIL_LIBS@
|
||||
XRENDER_CFLAGS = @XRENDER_CFLAGS@
|
||||
XRENDER_LIBS = @XRENDER_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@
|
||||
|
||||
|
||||
# App default files (*.ad)
|
||||
appdefaultdir = @appdefaultdir@
|
||||
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 = xlogo
|
||||
|
||||
xlogo_CFLAGS = $(XLOGO_CFLAGS)
|
||||
xlogo_LDADD = $(XLOGO_LIBS)
|
||||
|
||||
xlogo_SOURCES = \
|
||||
Logo.c \
|
||||
Logo.h \
|
||||
LogoP.h \
|
||||
RenderLogo.c \
|
||||
RenderLogo.h \
|
||||
xlogo.c \
|
||||
xlogo.h\
|
||||
$(am__append_1)
|
||||
|
||||
appman_PRE = \
|
||||
xlogo.man
|
||||
|
||||
|
||||
APPDEFAULTFILES = \
|
||||
XLogo \
|
||||
XLogo-color
|
||||
|
||||
|
||||
SUFFIXES = .ad .$(APP_MAN_SUFFIX) .man
|
||||
|
||||
appdefault_DATA = $(APPDEFAULTFILES)
|
||||
|
||||
EXTRA_DIST = $(APPDEFAULTFILES:%=%.ad) $(appman_PRE)
|
||||
|
||||
CLEANFILES = $(APPDEFAULTFILES) $(appman_DATA)
|
||||
|
||||
appmandir = $(APP_MAN_DIR)
|
||||
|
||||
appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@)
|
||||
|
||||
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'
|
||||
|
||||
subdir = .
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
||||
CONFIG_HEADER = config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
bin_PROGRAMS = xlogo$(EXEEXT)
|
||||
PROGRAMS = $(bin_PROGRAMS)
|
||||
|
||||
am__xlogo_SOURCES_DIST = Logo.c Logo.h LogoP.h RenderLogo.c RenderLogo.h \
|
||||
xlogo.c xlogo.h print.c print.h
|
||||
@XAW_USE_XPRINT_TRUE@am__objects_1 = xlogo-print.$(OBJEXT)
|
||||
am_xlogo_OBJECTS = xlogo-Logo.$(OBJEXT) xlogo-RenderLogo.$(OBJEXT) \
|
||||
xlogo-xlogo.$(OBJEXT) $(am__objects_1)
|
||||
xlogo_OBJECTS = $(am_xlogo_OBJECTS)
|
||||
xlogo_DEPENDENCIES =
|
||||
xlogo_LDFLAGS =
|
||||
|
||||
DEFAULT_INCLUDES = -I. -I$(srcdir) -I.
|
||||
depcomp = $(SHELL) $(top_srcdir)/depcomp
|
||||
am__depfiles_maybe = depfiles
|
||||
@AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/xlogo-Logo.Po \
|
||||
@AMDEP_TRUE@ ./$(DEPDIR)/xlogo-RenderLogo.Po \
|
||||
@AMDEP_TRUE@ ./$(DEPDIR)/xlogo-print.Po \
|
||||
@AMDEP_TRUE@ ./$(DEPDIR)/xlogo-xlogo.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 = $(am__xlogo_SOURCES_DIST)
|
||||
DATA = $(appdefault_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 = $(xlogo_SOURCES)
|
||||
|
||||
all: config.h
|
||||
$(MAKE) $(AM_MAKEFLAGS) all-am
|
||||
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .ad .$(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)
|
||||
xlogo$(EXEEXT): $(xlogo_OBJECTS) $(xlogo_DEPENDENCIES)
|
||||
@rm -f xlogo$(EXEEXT)
|
||||
$(LINK) $(xlogo_LDFLAGS) $(xlogo_OBJECTS) $(xlogo_LDADD) $(LIBS)
|
||||
|
||||
mostlyclean-compile:
|
||||
-rm -f *.$(OBJEXT) core *.core
|
||||
|
||||
distclean-compile:
|
||||
-rm -f *.tab.c
|
||||
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xlogo-Logo.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xlogo-RenderLogo.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xlogo-print.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xlogo-xlogo.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`
|
||||
|
||||
xlogo-Logo.o: Logo.c
|
||||
@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xlogo_CFLAGS) $(CFLAGS) -MT xlogo-Logo.o -MD -MP -MF "$(DEPDIR)/xlogo-Logo.Tpo" \
|
||||
@am__fastdepCC_TRUE@ -c -o xlogo-Logo.o `test -f 'Logo.c' || echo '$(srcdir)/'`Logo.c; \
|
||||
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/xlogo-Logo.Tpo" "$(DEPDIR)/xlogo-Logo.Po"; \
|
||||
@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/xlogo-Logo.Tpo"; exit 1; \
|
||||
@am__fastdepCC_TRUE@ fi
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='Logo.c' object='xlogo-Logo.o' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/xlogo-Logo.Po' tmpdepfile='$(DEPDIR)/xlogo-Logo.TPo' @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xlogo_CFLAGS) $(CFLAGS) -c -o xlogo-Logo.o `test -f 'Logo.c' || echo '$(srcdir)/'`Logo.c
|
||||
|
||||
xlogo-Logo.obj: Logo.c
|
||||
@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xlogo_CFLAGS) $(CFLAGS) -MT xlogo-Logo.obj -MD -MP -MF "$(DEPDIR)/xlogo-Logo.Tpo" \
|
||||
@am__fastdepCC_TRUE@ -c -o xlogo-Logo.obj `if test -f 'Logo.c'; then $(CYGPATH_W) 'Logo.c'; else $(CYGPATH_W) '$(srcdir)/Logo.c'; fi`; \
|
||||
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/xlogo-Logo.Tpo" "$(DEPDIR)/xlogo-Logo.Po"; \
|
||||
@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/xlogo-Logo.Tpo"; exit 1; \
|
||||
@am__fastdepCC_TRUE@ fi
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='Logo.c' object='xlogo-Logo.obj' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/xlogo-Logo.Po' tmpdepfile='$(DEPDIR)/xlogo-Logo.TPo' @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xlogo_CFLAGS) $(CFLAGS) -c -o xlogo-Logo.obj `if test -f 'Logo.c'; then $(CYGPATH_W) 'Logo.c'; else $(CYGPATH_W) '$(srcdir)/Logo.c'; fi`
|
||||
|
||||
xlogo-RenderLogo.o: RenderLogo.c
|
||||
@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xlogo_CFLAGS) $(CFLAGS) -MT xlogo-RenderLogo.o -MD -MP -MF "$(DEPDIR)/xlogo-RenderLogo.Tpo" \
|
||||
@am__fastdepCC_TRUE@ -c -o xlogo-RenderLogo.o `test -f 'RenderLogo.c' || echo '$(srcdir)/'`RenderLogo.c; \
|
||||
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/xlogo-RenderLogo.Tpo" "$(DEPDIR)/xlogo-RenderLogo.Po"; \
|
||||
@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/xlogo-RenderLogo.Tpo"; exit 1; \
|
||||
@am__fastdepCC_TRUE@ fi
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='RenderLogo.c' object='xlogo-RenderLogo.o' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/xlogo-RenderLogo.Po' tmpdepfile='$(DEPDIR)/xlogo-RenderLogo.TPo' @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xlogo_CFLAGS) $(CFLAGS) -c -o xlogo-RenderLogo.o `test -f 'RenderLogo.c' || echo '$(srcdir)/'`RenderLogo.c
|
||||
|
||||
xlogo-RenderLogo.obj: RenderLogo.c
|
||||
@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xlogo_CFLAGS) $(CFLAGS) -MT xlogo-RenderLogo.obj -MD -MP -MF "$(DEPDIR)/xlogo-RenderLogo.Tpo" \
|
||||
@am__fastdepCC_TRUE@ -c -o xlogo-RenderLogo.obj `if test -f 'RenderLogo.c'; then $(CYGPATH_W) 'RenderLogo.c'; else $(CYGPATH_W) '$(srcdir)/RenderLogo.c'; fi`; \
|
||||
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/xlogo-RenderLogo.Tpo" "$(DEPDIR)/xlogo-RenderLogo.Po"; \
|
||||
@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/xlogo-RenderLogo.Tpo"; exit 1; \
|
||||
@am__fastdepCC_TRUE@ fi
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='RenderLogo.c' object='xlogo-RenderLogo.obj' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/xlogo-RenderLogo.Po' tmpdepfile='$(DEPDIR)/xlogo-RenderLogo.TPo' @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xlogo_CFLAGS) $(CFLAGS) -c -o xlogo-RenderLogo.obj `if test -f 'RenderLogo.c'; then $(CYGPATH_W) 'RenderLogo.c'; else $(CYGPATH_W) '$(srcdir)/RenderLogo.c'; fi`
|
||||
|
||||
xlogo-xlogo.o: xlogo.c
|
||||
@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xlogo_CFLAGS) $(CFLAGS) -MT xlogo-xlogo.o -MD -MP -MF "$(DEPDIR)/xlogo-xlogo.Tpo" \
|
||||
@am__fastdepCC_TRUE@ -c -o xlogo-xlogo.o `test -f 'xlogo.c' || echo '$(srcdir)/'`xlogo.c; \
|
||||
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/xlogo-xlogo.Tpo" "$(DEPDIR)/xlogo-xlogo.Po"; \
|
||||
@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/xlogo-xlogo.Tpo"; exit 1; \
|
||||
@am__fastdepCC_TRUE@ fi
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='xlogo.c' object='xlogo-xlogo.o' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/xlogo-xlogo.Po' tmpdepfile='$(DEPDIR)/xlogo-xlogo.TPo' @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xlogo_CFLAGS) $(CFLAGS) -c -o xlogo-xlogo.o `test -f 'xlogo.c' || echo '$(srcdir)/'`xlogo.c
|
||||
|
||||
xlogo-xlogo.obj: xlogo.c
|
||||
@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xlogo_CFLAGS) $(CFLAGS) -MT xlogo-xlogo.obj -MD -MP -MF "$(DEPDIR)/xlogo-xlogo.Tpo" \
|
||||
@am__fastdepCC_TRUE@ -c -o xlogo-xlogo.obj `if test -f 'xlogo.c'; then $(CYGPATH_W) 'xlogo.c'; else $(CYGPATH_W) '$(srcdir)/xlogo.c'; fi`; \
|
||||
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/xlogo-xlogo.Tpo" "$(DEPDIR)/xlogo-xlogo.Po"; \
|
||||
@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/xlogo-xlogo.Tpo"; exit 1; \
|
||||
@am__fastdepCC_TRUE@ fi
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='xlogo.c' object='xlogo-xlogo.obj' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/xlogo-xlogo.Po' tmpdepfile='$(DEPDIR)/xlogo-xlogo.TPo' @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xlogo_CFLAGS) $(CFLAGS) -c -o xlogo-xlogo.obj `if test -f 'xlogo.c'; then $(CYGPATH_W) 'xlogo.c'; else $(CYGPATH_W) '$(srcdir)/xlogo.c'; fi`
|
||||
|
||||
xlogo-print.o: print.c
|
||||
@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xlogo_CFLAGS) $(CFLAGS) -MT xlogo-print.o -MD -MP -MF "$(DEPDIR)/xlogo-print.Tpo" \
|
||||
@am__fastdepCC_TRUE@ -c -o xlogo-print.o `test -f 'print.c' || echo '$(srcdir)/'`print.c; \
|
||||
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/xlogo-print.Tpo" "$(DEPDIR)/xlogo-print.Po"; \
|
||||
@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/xlogo-print.Tpo"; exit 1; \
|
||||
@am__fastdepCC_TRUE@ fi
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='print.c' object='xlogo-print.o' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/xlogo-print.Po' tmpdepfile='$(DEPDIR)/xlogo-print.TPo' @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xlogo_CFLAGS) $(CFLAGS) -c -o xlogo-print.o `test -f 'print.c' || echo '$(srcdir)/'`print.c
|
||||
|
||||
xlogo-print.obj: print.c
|
||||
@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xlogo_CFLAGS) $(CFLAGS) -MT xlogo-print.obj -MD -MP -MF "$(DEPDIR)/xlogo-print.Tpo" \
|
||||
@am__fastdepCC_TRUE@ -c -o xlogo-print.obj `if test -f 'print.c'; then $(CYGPATH_W) 'print.c'; else $(CYGPATH_W) '$(srcdir)/print.c'; fi`; \
|
||||
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/xlogo-print.Tpo" "$(DEPDIR)/xlogo-print.Po"; \
|
||||
@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/xlogo-print.Tpo"; exit 1; \
|
||||
@am__fastdepCC_TRUE@ fi
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='print.c' object='xlogo-print.obj' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/xlogo-print.Po' tmpdepfile='$(DEPDIR)/xlogo-print.TPo' @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xlogo_CFLAGS) $(CFLAGS) -c -o xlogo-print.obj `if test -f 'print.c'; then $(CYGPATH_W) 'print.c'; else $(CYGPATH_W) '$(srcdir)/print.c'; fi`
|
||||
uninstall-info-am:
|
||||
appdefaultDATA_INSTALL = $(INSTALL_DATA)
|
||||
install-appdefaultDATA: $(appdefault_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
$(mkinstalldirs) $(DESTDIR)$(appdefaultdir)
|
||||
@list='$(appdefault_DATA)'; for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
f="`echo $$p | sed -e 's|^.*/||'`"; \
|
||||
echo " $(appdefaultDATA_INSTALL) $$d$$p $(DESTDIR)$(appdefaultdir)/$$f"; \
|
||||
$(appdefaultDATA_INSTALL) $$d$$p $(DESTDIR)$(appdefaultdir)/$$f; \
|
||||
done
|
||||
|
||||
uninstall-appdefaultDATA:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(appdefault_DATA)'; for p in $$list; do \
|
||||
f="`echo $$p | sed -e 's|^.*/||'`"; \
|
||||
echo " rm -f $(DESTDIR)$(appdefaultdir)/$$f"; \
|
||||
rm -f $(DESTDIR)$(appdefaultdir)/$$f; \
|
||||
done
|
||||
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)
|
||||
@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)$(appdefaultdir) $(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-appdefaultDATA 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-appdefaultDATA 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-appdefaultDATA 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-appdefaultDATA uninstall-appmanDATA \
|
||||
uninstall-binPROGRAMS uninstall-info-am
|
||||
|
||||
|
||||
.ad:
|
||||
cp $< $@
|
||||
|
||||
.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/xlogo/NEWS
Normal file
0
app/xlogo/NEWS
Normal file
0
app/xlogo/README
Normal file
0
app/xlogo/README
Normal file
165
app/xlogo/RenderLogo.c
Normal file
165
app/xlogo/RenderLogo.c
Normal file
@@ -0,0 +1,165 @@
|
||||
/* $Xorg: DrawLogo.c,v 1.4 2001/02/09 02:03:52 xorgcvs Exp $ */
|
||||
|
||||
/*
|
||||
|
||||
Copyright 1988, 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 dealings
|
||||
in this Software without prior written authorization from The Open Group.
|
||||
|
||||
*/
|
||||
/* $XFree86: xc/programs/xlogo/RenderLogo.c,v 1.3tsi Exp $ */
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
#include <stdio.h>
|
||||
|
||||
#include <X11/Xlib.h>
|
||||
#include <X11/extensions/Xrender.h>
|
||||
|
||||
#include "RenderLogo.h"
|
||||
|
||||
typedef struct _XLineDouble {
|
||||
XPointDouble p1, p2;
|
||||
} XLineDouble;
|
||||
|
||||
static void
|
||||
intersect(XLineDouble *l1, XLineDouble *l2, XPointDouble *intersection);
|
||||
|
||||
/*
|
||||
* Draw the "official" X Window System Logo, designed by Danny Chong
|
||||
*
|
||||
* Written by Ollie Jones, Apollo Computer
|
||||
*
|
||||
* Does some fancy stuff to make the logo look acceptable even
|
||||
* if it is tiny. Also makes the various linear elements of
|
||||
* the logo line up as well as possible considering rasterization.
|
||||
*
|
||||
* Munged to draw anti-aliased logo using Render extension.
|
||||
* Carl Worth, 2002-05-16
|
||||
*/
|
||||
void
|
||||
RenderLogo(Display *dpy, int op, Picture src, Picture dst, XRenderPictFormat *maskFormat,
|
||||
int x, int y, unsigned int width, unsigned int height)
|
||||
{
|
||||
unsigned int size;
|
||||
double thin, thick, gap, d31;
|
||||
XPointDouble poly[6];
|
||||
XLineDouble thick_left, thick_right, thin_left, thin_right, gap_left, gap_right;
|
||||
|
||||
/* for now, do a centered even-sized square, at least for now */
|
||||
size = width;
|
||||
if (height < width)
|
||||
size = height;
|
||||
size &= ~1;
|
||||
x += (width - size) >> 1;
|
||||
y += (height - size) >> 1;
|
||||
|
||||
thin = (size / 11.0);
|
||||
thick = (size / 4.0);
|
||||
gap = thin / 4.0;
|
||||
d31 = thin + thin + gap;
|
||||
|
||||
thick_left.p1.x = x; thick_left.p1.y = y;
|
||||
thick_left.p2.x = x + size - thick; thick_left.p2.y = y + size;
|
||||
|
||||
thick_right.p1.x = x + thick; thick_right.p1.y = y;
|
||||
thick_right.p2.x = x + size; thick_right.p2.y = y + size;
|
||||
|
||||
thin_left.p1.x = x + size-d31; thin_left.p1.y = y;
|
||||
thin_left.p2.x = x + 0; thin_left.p2.y = y + size;
|
||||
|
||||
thin_right.p1.x = x + size; thin_right.p1.y = y;
|
||||
thin_right.p2.x = x + d31; thin_right.p2.y = y + size;
|
||||
|
||||
gap_left.p1.x = x + size-( thin+gap); gap_left.p1.y = y;
|
||||
gap_left.p2.x = x + thin; gap_left.p2.y = y + size;
|
||||
|
||||
gap_right.p1.x = x + size- thin; gap_right.p1.y = y;
|
||||
gap_right.p2.x = x + thin + gap; gap_right.p2.y = y + size;
|
||||
|
||||
poly[0] = thick_left.p1;
|
||||
poly[1] = thick_right.p1;
|
||||
intersect(&thick_right, &gap_left, &poly[2]);
|
||||
poly[3] = gap_left.p2;
|
||||
poly[4] = thin_left.p2;
|
||||
intersect(&thick_left, &thin_left, &poly[5]);
|
||||
|
||||
XRenderCompositeDoublePoly(dpy, op,
|
||||
src, dst, maskFormat,
|
||||
0, 0, 0, 0,
|
||||
poly, 6, 0);
|
||||
|
||||
poly[0] = thin_right.p1;
|
||||
poly[1] = gap_right.p1;
|
||||
intersect(&thick_left, &gap_right, &poly[2]);
|
||||
poly[3] = thick_left.p2;
|
||||
poly[4] = thick_right.p2;
|
||||
intersect(&thick_right, &thin_right, &poly[5]);
|
||||
|
||||
XRenderCompositeDoublePoly(dpy, op,
|
||||
src, dst, maskFormat,
|
||||
0, 0, 0, 0,
|
||||
poly, 6, 0);
|
||||
}
|
||||
|
||||
static double
|
||||
compute_inverse_slope (XLineDouble *l)
|
||||
{
|
||||
return ((l->p2.x - l->p1.x) /
|
||||
(l->p2.y - l->p1.y));
|
||||
}
|
||||
|
||||
static double
|
||||
compute_x_intercept(XLineDouble *l, double inverse_slope)
|
||||
{
|
||||
return (l->p1.x) - inverse_slope * l->p1.y;
|
||||
}
|
||||
|
||||
static void
|
||||
intersect(XLineDouble *l1, XLineDouble *l2, XPointDouble *intersection)
|
||||
{
|
||||
double check;
|
||||
/*
|
||||
* x = m1y + b1
|
||||
* x = m2y + b2
|
||||
* m1y + b1 = m2y + b2
|
||||
* y * (m1 - m2) = b2 - b1
|
||||
* y = (b2 - b1) / (m1 - m2)
|
||||
*/
|
||||
double m1 = compute_inverse_slope (l1);
|
||||
double b1 = compute_x_intercept (l1, m1);
|
||||
double m2 = compute_inverse_slope (l2);
|
||||
double b2 = compute_x_intercept (l2, m2);
|
||||
|
||||
intersection->y = (b2 - b1) / (m1 - m2);
|
||||
intersection->x = m1 * intersection->y + b1;
|
||||
|
||||
check = m2 * intersection->y + b2;
|
||||
if (check >= intersection->x)
|
||||
check -= intersection->x;
|
||||
else
|
||||
check = intersection->x - check;
|
||||
if (check > (1/(double)(1<<16))) {
|
||||
fprintf(stderr, "intersect: intersection is off by %f\n", check);
|
||||
}
|
||||
}
|
||||
|
||||
38
app/xlogo/RenderLogo.h
Normal file
38
app/xlogo/RenderLogo.h
Normal file
@@ -0,0 +1,38 @@
|
||||
/* $Xorg: Logo.h,v 1.4 2001/02/09 02:05:54 xorgcvs Exp $ */
|
||||
/*
|
||||
|
||||
Copyright 1988, 1990, 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 dealings in this Software without prior written authorization
|
||||
from The Open Group.
|
||||
|
||||
*/
|
||||
/* $XFree86$ */
|
||||
|
||||
#ifndef _RenderLogo_h
|
||||
#define _RenderLogo_h
|
||||
|
||||
void
|
||||
RenderLogo(Display *dpy, int op, Picture src, Picture dst, XRenderPictFormat *maskFormat,
|
||||
int x, int y, unsigned int width, unsigned int height);
|
||||
|
||||
#endif /* _RenderLogo_h */
|
||||
5
app/xlogo/XLogo-color.ad
Normal file
5
app/xlogo/XLogo-color.ad
Normal file
@@ -0,0 +1,5 @@
|
||||
! $Xorg: XLogo-co.ad,v 1.3 2000/08/17 19:54:52 cpqbld Exp $
|
||||
#include "XLogo"
|
||||
! MIT colors are Cardinal Red (Pantone 201c) and Silver Grey (Pantone 421c)
|
||||
XLogo*background: rgb:d2/22/32
|
||||
XLogo*foreground: rgb:d7/d7/d7
|
||||
4
app/xlogo/XLogo.ad
Normal file
4
app/xlogo/XLogo.ad
Normal file
@@ -0,0 +1,4 @@
|
||||
XLogo*iconPixmap: xlogo32
|
||||
XLogo*iconMask: xlogo32
|
||||
XLogo*baseTranslations: #override \
|
||||
<Key>q,<Key>Escape: quit()
|
||||
1440
app/xlogo/aclocal.m4
vendored
Normal file
1440
app/xlogo/aclocal.m4
vendored
Normal file
File diff suppressed because it is too large
Load Diff
99
app/xlogo/compile
Normal file
99
app/xlogo/compile
Normal 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/xlogo/config.guess
vendored
Normal file
1411
app/xlogo/config.guess
vendored
Normal file
File diff suppressed because it is too large
Load Diff
25
app/xlogo/config.h.in
Normal file
25
app/xlogo/config.h.in
Normal file
@@ -0,0 +1,25 @@
|
||||
/* 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
|
||||
|
||||
/* Define to 1 to use Xrender & Xft2 to draw logo */
|
||||
#undef XRENDER
|
||||
1500
app/xlogo/config.sub
vendored
Normal file
1500
app/xlogo/config.sub
vendored
Normal file
File diff suppressed because it is too large
Load Diff
5483
app/xlogo/configure
vendored
Normal file
5483
app/xlogo/configure
vendored
Normal file
File diff suppressed because it is too large
Load Diff
77
app/xlogo/configure.ac
Normal file
77
app/xlogo/configure.ac
Normal file
@@ -0,0 +1,77 @@
|
||||
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(xlogo,[1.0.1], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],xlogo)
|
||||
AM_INIT_AUTOMAKE([dist-bzip2])
|
||||
AM_MAINTAINER_MODE
|
||||
|
||||
AM_CONFIG_HEADER(config.h)
|
||||
|
||||
AC_PROG_CC
|
||||
AC_PROG_INSTALL
|
||||
|
||||
# Checks for pkg-config packages
|
||||
XAW_CHECK_XPRINT_SUPPORT(XLOGO)
|
||||
|
||||
if test "x$xaw_use_xprint" = "xyes" ; then
|
||||
PKG_CHECK_MODULES(XPRINT_UTIL, xprintutil xp)
|
||||
|
||||
XLOGO_CFLAGS="$XLOGO_CFLAGS $XPRINT_UTIL_CFLAGS"
|
||||
XLOGO_LIBS="$XLOGO_LIBS $XPRINT_UTIL_LIBS"
|
||||
fi
|
||||
|
||||
# Use render & xft2 to draw logo?
|
||||
|
||||
AC_ARG_WITH(render,
|
||||
AC_HELP_STRING([--with-xrender], [Use Xrender & Xft2 to draw logo]),
|
||||
USE_RENDER="$withval", USE_RENDER="try")
|
||||
|
||||
if test "x$USE_RENDER" = "xtry" ; then
|
||||
PKG_CHECK_EXISTS([xrender xft], USE_RENDER="yes", USE_RENDER="no")
|
||||
fi
|
||||
|
||||
if test "x$USE_RENDER" = "xyes" ; then
|
||||
PKG_CHECK_MODULES(XRENDER, xrender)
|
||||
PKG_CHECK_MODULES(XFT, xft)
|
||||
|
||||
AC_DEFINE(XRENDER, 1, [Define to 1 to use Xrender & Xft2 to draw logo])
|
||||
|
||||
XLOGO_CFLAGS="$XLOGO_CFLAGS $XRENDER_CFLAGS $XFT_CFLAGS"
|
||||
XLOGO_LIBS="$XLOGO_LIBS $XRENDER_LIBS $XFT_LIBS"
|
||||
fi
|
||||
|
||||
PKG_CHECK_MODULES(XEXT, xext)
|
||||
XLOGO_CFLAGS="$XLOGO_CFLAGS $XEXT_CFLAGS"
|
||||
XLOGO_LIBS="$XLOGO_LIBS $XEXT_LIBS"
|
||||
|
||||
AC_SUBST(XLOGO_CFLAGS)
|
||||
AC_SUBST(XLOGO_LIBS)
|
||||
|
||||
PKG_CHECK_MODULES(APPDEFS, xt)
|
||||
appdefaultdir=$(pkg-config --variable=appdefaultdir xt)
|
||||
AC_SUBST(appdefaultdir)
|
||||
|
||||
XORG_MANPAGE_SECTIONS
|
||||
XORG_RELEASE_VERSION
|
||||
|
||||
AC_OUTPUT([Makefile])
|
||||
479
app/xlogo/depcomp
Normal file
479
app/xlogo/depcomp
Normal 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/xlogo/install-sh
Normal file
294
app/xlogo/install-sh
Normal 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
|
||||
}
|
||||
336
app/xlogo/missing
Normal file
336
app/xlogo/missing
Normal 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/xlogo/mkinstalldirs
Normal file
111
app/xlogo/mkinstalldirs
Normal 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
|
||||
260
app/xlogo/print.c
Normal file
260
app/xlogo/print.c
Normal file
@@ -0,0 +1,260 @@
|
||||
/*
|
||||
* $Xorg: print.c,v 1.1 2004/04/30 02:05:54 gisburn Exp $
|
||||
*
|
||||
Copyright 2004 Roland Mainz <roland.mainz@nrubsig.org>
|
||||
|
||||
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 dealings
|
||||
in this Software without prior written authorization from The Open Group.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
#include "xlogo.h"
|
||||
#include "Logo.h"
|
||||
#include "print.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
static Widget
|
||||
CreatePrintShell(Widget videoshell,
|
||||
Screen *pscreen,
|
||||
String printshell_name,
|
||||
ArgList args,
|
||||
Cardinal numargs)
|
||||
{
|
||||
String videoname,
|
||||
videoclass;
|
||||
Widget pappshell,
|
||||
printshell;
|
||||
Display *pdpy = XDisplayOfScreen(pscreen);
|
||||
int dummyc = 0;
|
||||
String dummys = "";
|
||||
XtGetApplicationNameAndClass(XtDisplay(videoshell),
|
||||
&videoname, &videoclass);
|
||||
|
||||
/* XXX: Why is the |dummyc|&&|dummys| stuff needed here ? */
|
||||
XtDisplayInitialize(XtWidgetToApplicationContext(videoshell), pdpy,
|
||||
videoname, videoclass,
|
||||
NULL, 0,
|
||||
&dummyc, &dummys);
|
||||
|
||||
pappshell = XtVaAppCreateShell(videoname, videoclass,
|
||||
applicationShellWidgetClass,
|
||||
pdpy,
|
||||
XtNscreen, pscreen,
|
||||
NULL);
|
||||
printshell = XtCreatePopupShell(printshell_name,
|
||||
xawPrintShellWidgetClass,
|
||||
pappshell, args, numargs);
|
||||
|
||||
|
||||
/* we're mapping/unmapping at start/end page time */
|
||||
XtSetMappedWhenManaged(printshell, False);
|
||||
|
||||
XtRealizeWidget(printshell);
|
||||
|
||||
return printshell;
|
||||
}
|
||||
|
||||
typedef struct
|
||||
{
|
||||
Widget toplevel;
|
||||
Bool isPrinting;
|
||||
Widget printshell;
|
||||
Display *pdpy;
|
||||
Screen *pscreen;
|
||||
XPContext pcontext;
|
||||
void *printtofile_handle;
|
||||
} AppPrintData;
|
||||
|
||||
static AppPrintData apdx;
|
||||
static AppPrintData *apd = &apdx;
|
||||
|
||||
static void
|
||||
PageSetupCB(Widget widget, XtPointer client_data, XtPointer call_data)
|
||||
{
|
||||
Widget pshell = widget;
|
||||
XawPrintShellCallbackStruct *psp = (XawPrintShellCallbackStruct *)call_data;
|
||||
AppPrintData *p = (AppPrintData *)client_data;
|
||||
|
||||
Log(("--> PageSetupCB\n"));
|
||||
|
||||
if (!psp->last_page_in_job) {
|
||||
Widget plogo;
|
||||
Log(("Creating print logo\n"));
|
||||
plogo = XtCreateManagedWidget("xlogo", logoWidgetClass, pshell, NULL, ZERO);
|
||||
|
||||
/* Make sure that the Xt machinery is really using the right screen (assertion) */
|
||||
if (XpGetScreenOfContext(XtDisplay(plogo), p->pcontext) != XtScreen(plogo))
|
||||
Error(("Widget's screen != print screen. BAD.\n"));
|
||||
|
||||
/* XLogo always only prints one page */
|
||||
psp->last_page_in_job = True;
|
||||
}
|
||||
}
|
||||
|
||||
void FinishPrinting(AppPrintData *p)
|
||||
{
|
||||
char *scr;
|
||||
|
||||
if (p->printtofile_handle) {
|
||||
if (XpuWaitForPrintFileChild(p->printtofile_handle) != XPGetDocFinished) {
|
||||
fprintf(stderr, "%s: Error while printing to file.\n", ProgramName);
|
||||
}
|
||||
p->printtofile_handle = NULL;
|
||||
}
|
||||
|
||||
/* Job completed, check if there are any messages from the spooler command */
|
||||
scr = XpGetOneAttribute(p->pdpy, p->pcontext, XPJobAttr, "xp-spooler-command-results");
|
||||
if( scr )
|
||||
{
|
||||
if( strlen(scr) > 0 )
|
||||
{
|
||||
const char *msg = XpuCompoundTextToXmb(p->pdpy, scr);
|
||||
if( msg )
|
||||
{
|
||||
Msg(("Spooler command returned '%s'.\n", msg));
|
||||
XpuFreeXmbString(msg);
|
||||
}
|
||||
else
|
||||
{
|
||||
Msg(("Spooler command returned '%s' (unconverted).\n", scr));
|
||||
}
|
||||
}
|
||||
|
||||
XFree((void *)scr);
|
||||
}
|
||||
|
||||
if (p->printshell) {
|
||||
XtDestroyWidget(p->printshell);
|
||||
p->printshell = NULL;
|
||||
}
|
||||
|
||||
if (p->pdpy) {
|
||||
/* We have to use XpDestroyContext() and XtCloseDisplay() instead
|
||||
* of XpuClosePrinterDisplay() to make libXt happy... */
|
||||
if (p->pcontext != None)
|
||||
XpDestroyContext(p->pdpy, p->pcontext);
|
||||
XtCloseDisplay(p->pdpy);
|
||||
}
|
||||
|
||||
/* "Print once and exit"-mode ? */
|
||||
if (userOptions.printAndExit) {
|
||||
XtAppSetExitFlag(XtWidgetToApplicationContext(p->toplevel));
|
||||
}
|
||||
|
||||
p->toplevel = NULL;
|
||||
p->isPrinting = False;
|
||||
p->pdpy = NULL;
|
||||
p->pscreen = NULL;
|
||||
p->pcontext = None;
|
||||
}
|
||||
|
||||
static
|
||||
void PrintEndJobCB(Widget pshell, XtPointer client_data, XtPointer call_data)
|
||||
{
|
||||
AppPrintData *p = (AppPrintData *)client_data;
|
||||
|
||||
Log(("--> PrintEndJobCB\n"));
|
||||
|
||||
/* Finish printing and destroy print shell (it's legal to destroy Xt
|
||||
* widgets from within it's own callbacks) */
|
||||
FinishPrinting(p);
|
||||
}
|
||||
|
||||
void DoPrint(Widget toplevel, const char *printername, const char *toFile)
|
||||
{
|
||||
XPPrinterList plist; /* list of printers */
|
||||
int plist_count; /* number of entries in |plist|-array */
|
||||
Display *pdpy = NULL;
|
||||
XPContext pcontext = None;
|
||||
long dpi_x = 0L,
|
||||
dpi_y = 0L;
|
||||
|
||||
if (apd->isPrinting) {
|
||||
fprintf(stderr, "%s: Already busy with printing.\n", ProgramName);
|
||||
return;
|
||||
}
|
||||
|
||||
plist = XpuGetPrinterList(printername, &plist_count);
|
||||
if (!plist) {
|
||||
fprintf(stderr, "%s: no printers found for printer spec \"%s\".\n",
|
||||
ProgramName, NULLSTR(printername));
|
||||
return;
|
||||
}
|
||||
|
||||
printername = strdup(plist[0].name);
|
||||
XpuFreePrinterList(plist);
|
||||
|
||||
Log(("Using printer '%s'\n", printername));
|
||||
|
||||
/* Get printer, either by "name" (foobar) or "name@display" (foobar@gaja:5) */
|
||||
if( XpuGetPrinter(printername, &pdpy, &pcontext) != 1 ) {
|
||||
fprintf(stderr, "%s: Cannot open printer '%s'.\n", ProgramName, printername);
|
||||
return;
|
||||
}
|
||||
|
||||
/* Configure the print context (paper size, title etc.)
|
||||
* We must do this before creating any Xt widgets - otherwise they will
|
||||
* make wrong assuptions about fonts, resultions etc. ...
|
||||
*/
|
||||
XpuSetJobTitle(pdpy, pcontext, "Xprint XLogo");
|
||||
|
||||
/* Configuration done, set the context */
|
||||
XpSetContext(pdpy, pcontext);
|
||||
|
||||
/* Get default printer resolution */
|
||||
if (XpuGetResolution(pdpy, pcontext, &dpi_x, &dpi_y) != 1) {
|
||||
fprintf(stderr, "%s: No default resolution for printer '%s'\n", ProgramName, printername);
|
||||
XpuClosePrinterDisplay(pdpy, pcontext);
|
||||
return;
|
||||
}
|
||||
|
||||
apd->toplevel = toplevel;
|
||||
apd->pdpy = pdpy;
|
||||
apd->pcontext = pcontext;
|
||||
apd->pscreen = XpGetScreenOfContext(pdpy, pcontext);
|
||||
|
||||
apd->printshell = CreatePrintShell(toplevel, apd->pscreen, "Print", NULL, 0);
|
||||
|
||||
XtAddCallback(apd->printshell, XawNpageSetupCallback, PageSetupCB, (XtPointer)apd);
|
||||
XtAddCallback(apd->printshell, XawNendJobCallback, PrintEndJobCB, (XtPointer)apd);
|
||||
|
||||
apd->isPrinting = True;
|
||||
|
||||
if (toFile) {
|
||||
printf("%s: Printing to file '%s'...\n", ProgramName, toFile);
|
||||
apd->printtofile_handle = XpuStartJobToFile(pdpy, pcontext, toFile);
|
||||
if (!apd->printtofile_handle) {
|
||||
perror("XpuStartJobToFile failure");
|
||||
apd->isPrinting = False;
|
||||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("%s: Printing to printer '%s'...\n", ProgramName, printername);
|
||||
XpuStartJobToSpooler(pdpy);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
41
app/xlogo/print.h
Normal file
41
app/xlogo/print.h
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* $Xorg: print.h,v 1.1 2004/04/30 02:05:54 gisburn Exp $
|
||||
*
|
||||
Copyright 2004 Roland Mainz <roland.mainz@nrubsig.org>
|
||||
|
||||
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 dealings
|
||||
in this Software without prior written authorization from The Open Group.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef XLOGO_PRINT_H
|
||||
#define XLOGO_PRINT_H 1
|
||||
|
||||
#include <X11/Intrinsic.h>
|
||||
#include <X11/StringDefs.h>
|
||||
#include <X11/Shell.h>
|
||||
#include <X11/Xaw/Print.h>
|
||||
#include <X11/Xaw/Cardinals.h>
|
||||
#include <X11/XprintUtil/xprintutil.h>
|
||||
|
||||
/* Prototypes */
|
||||
void DoPrint(Widget toplevel, const char *printername, const char *toFile);
|
||||
|
||||
#endif /* !XLOGO_PRINT_H */
|
||||
230
app/xlogo/xlogo.c
Normal file
230
app/xlogo/xlogo.c
Normal file
@@ -0,0 +1,230 @@
|
||||
/*
|
||||
* $Xorg: xlogo.c,v 1.4 2001/02/09 02:05:54 xorgcvs Exp $
|
||||
*
|
||||
Copyright 1989, 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 dealings
|
||||
in this Software without prior written authorization from The Open Group.
|
||||
*
|
||||
*/
|
||||
|
||||
/* $XFree86: xc/programs/xlogo/xlogo.c,v 3.7 2001/07/25 15:05:26 dawes Exp $ */
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
#include <X11/Intrinsic.h>
|
||||
#include <X11/StringDefs.h>
|
||||
#include <X11/Shell.h>
|
||||
#include "xlogo.h"
|
||||
#include "Logo.h"
|
||||
#include <X11/Xaw/Cardinals.h>
|
||||
#ifdef INCLUDE_XPRINT_SUPPORT
|
||||
#include "print.h"
|
||||
#endif /* INCLUDE_XPRINT_SUPPORT */
|
||||
#ifdef XKB
|
||||
#include <X11/extensions/XKBbells.h>
|
||||
#endif
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
/* Global vars*/
|
||||
const char *ProgramName; /* program name (from argv[0]) */
|
||||
|
||||
static void quit(Widget w, XEvent *event, String *params, Cardinal *num_params);
|
||||
#ifdef INCLUDE_XPRINT_SUPPORT
|
||||
static void print(Widget w, XEvent *event, String *params, Cardinal *num_params);
|
||||
#endif /* INCLUDE_XPRINT_SUPPORT */
|
||||
|
||||
static XrmOptionDescRec options[] = {
|
||||
{ "-shape", "*shapeWindow", XrmoptionNoArg, (XPointer) "on" },
|
||||
#ifdef XRENDER
|
||||
{"-render", "*render",XrmoptionNoArg, "TRUE"},
|
||||
{"-sharp", "*sharp", XrmoptionNoArg, "TRUE"},
|
||||
#endif
|
||||
{"-v", "Verbose", XrmoptionNoArg, "TRUE"},
|
||||
{"-q", "Quiet", XrmoptionNoArg, "TRUE"},
|
||||
#ifdef INCLUDE_XPRINT_SUPPORT
|
||||
{"-print", "Print", XrmoptionNoArg, "TRUE"},
|
||||
{"-printer", "printer", XrmoptionSepArg, NULL},
|
||||
{"-printfile", "printFile", XrmoptionSepArg, NULL},
|
||||
#endif /* INCLUDE_XPRINT_SUPPORT */
|
||||
};
|
||||
|
||||
static XtActionsRec actions[] = {
|
||||
{"quit", quit },
|
||||
#ifdef INCLUDE_XPRINT_SUPPORT
|
||||
{"print", print}
|
||||
#endif /* INCLUDE_XPRINT_SUPPORT */
|
||||
};
|
||||
|
||||
static Atom wm_delete_window;
|
||||
|
||||
/* See xlogo.h */
|
||||
XLogoResourceData userOptions;
|
||||
|
||||
#define Offset(field) XtOffsetOf(XLogoResourceData, field)
|
||||
|
||||
XtResource resources[] = {
|
||||
{"verbose", "Verbose", XtRBoolean, sizeof(Boolean), Offset(verbose), XtRImmediate, (XtPointer)False},
|
||||
{"quiet", "Quiet", XtRBoolean, sizeof(Boolean), Offset(quiet), XtRImmediate, (XtPointer)False},
|
||||
#ifdef INCLUDE_XPRINT_SUPPORT
|
||||
{"print", "Print", XtRBoolean, sizeof(Boolean), Offset(printAndExit), XtRImmediate, (XtPointer)False},
|
||||
{"printer", "Printer", XtRString, sizeof(String), Offset(printername), XtRImmediate, (XtPointer)NULL},
|
||||
{"printFile", "PrintFile", XtRString, sizeof(String), Offset(printfile), XtRImmediate, (XtPointer)NULL}
|
||||
#endif /* INCLUDE_XPRINT_SUPPORT */
|
||||
};
|
||||
|
||||
|
||||
String fallback_resources[] = {
|
||||
"*iconPixmap: xlogo32",
|
||||
"*iconMask: xlogo32",
|
||||
"*baseTranslations: #override \\"
|
||||
#ifdef INCLUDE_XPRINT_SUPPORT
|
||||
"\t<Key>q: quit()\\n\\"
|
||||
"\t<Key>p: print()",
|
||||
#else /* !INCLUDE_XPRINT_SUPPORT */
|
||||
"\t<Key>q: quit()",
|
||||
#endif /* !INCLUDE_XPRINT_SUPPORT */
|
||||
NULL,
|
||||
};
|
||||
|
||||
static void
|
||||
die(Widget w, XtPointer client_data, XtPointer call_data)
|
||||
{
|
||||
XtAppSetExitFlag(XtWidgetToApplicationContext(w));
|
||||
}
|
||||
|
||||
static void
|
||||
save(Widget w, XtPointer client_data, XtPointer call_data)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
* Report the syntax for calling xlogo.
|
||||
*/
|
||||
|
||||
static void
|
||||
Syntax(Widget toplevel)
|
||||
{
|
||||
Arg arg;
|
||||
SmcConn connection;
|
||||
String reasons[10];
|
||||
int i, n = 0;
|
||||
|
||||
reasons[n++] = "Usage: ";
|
||||
reasons[n++] = (String)ProgramName;
|
||||
reasons[n++] = " [-fg <color>] [-bg <color>] [-rv] [-bw <pixels>] [-bd <color>]\n";
|
||||
reasons[n++] = " [-v] [-q]\n";
|
||||
reasons[n++] = " [-d [<host>]:[<vs>]]\n";
|
||||
reasons[n++] = " [-g [<width>][x<height>][<+-><xoff>[<+-><yoff>]]]\n";
|
||||
#ifdef INCLUDE_XPRINT_SUPPORT
|
||||
reasons[n++] = " [-print] [-printname <name>] [-printfile <file>]\n";
|
||||
#endif /* INCLUDE_XPRINT_SUPPORT */
|
||||
#ifdef XRENDER
|
||||
reasons[n++] = " [-render] [-sharp]\n";
|
||||
#endif /* XRENDER */
|
||||
reasons[n++] = " [-shape]\n\n";
|
||||
|
||||
XtSetArg(arg, XtNconnection, &connection);
|
||||
XtGetValues(toplevel, &arg, (Cardinal)1);
|
||||
if (connection)
|
||||
SmcCloseConnection(connection, n, reasons);
|
||||
else {
|
||||
for (i=0; i < n; i++)
|
||||
printf(reasons[i]);
|
||||
}
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
Widget toplevel;
|
||||
XtAppContext app_con;
|
||||
|
||||
ProgramName = argv[0];
|
||||
|
||||
toplevel = XtOpenApplication(&app_con, "XLogo",
|
||||
options, XtNumber(options),
|
||||
&argc, argv, fallback_resources,
|
||||
sessionShellWidgetClass, NULL, ZERO);
|
||||
if (argc != 1)
|
||||
Syntax(toplevel);
|
||||
|
||||
XtGetApplicationResources(toplevel, (XtPointer)&userOptions, resources,
|
||||
XtNumber(resources), NULL, 0);
|
||||
|
||||
XtAppAddActions(app_con, actions, XtNumber(actions));
|
||||
|
||||
#ifdef INCLUDE_XPRINT_SUPPORT
|
||||
if (userOptions.printAndExit) {
|
||||
XtCallActionProc(toplevel, "print", NULL, NULL, 0);
|
||||
}
|
||||
else
|
||||
#endif /* INCLUDE_XPRINT_SUPPORT */
|
||||
{
|
||||
XtAddCallback(toplevel, XtNsaveCallback, save, NULL);
|
||||
XtAddCallback(toplevel, XtNdieCallback, die, NULL);
|
||||
XtOverrideTranslations
|
||||
(toplevel, XtParseTranslationTable ("<Message>WM_PROTOCOLS: quit()"));
|
||||
XtCreateManagedWidget("xlogo", logoWidgetClass, toplevel, NULL, ZERO);
|
||||
XtRealizeWidget(toplevel);
|
||||
wm_delete_window = XInternAtom(XtDisplay(toplevel), "WM_DELETE_WINDOW",
|
||||
False);
|
||||
(void) XSetWMProtocols (XtDisplay(toplevel), XtWindow(toplevel),
|
||||
&wm_delete_window, 1);
|
||||
}
|
||||
|
||||
XtAppMainLoop(app_con);
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
/*ARGSUSED*/
|
||||
static void
|
||||
quit(Widget w, XEvent *event, String *params, Cardinal *num_params)
|
||||
{
|
||||
Arg arg;
|
||||
|
||||
if (event->type == ClientMessage &&
|
||||
(Atom)event->xclient.data.l[0] != wm_delete_window) {
|
||||
#ifdef XKB
|
||||
XkbStdBell(XtDisplay(w), XtWindow(w), 0, XkbBI_BadValue);
|
||||
#else
|
||||
XBell(XtDisplay(w), 0);
|
||||
#endif
|
||||
} else {
|
||||
/* resign from the session */
|
||||
XtSetArg(arg, XtNjoinSession, False);
|
||||
XtSetValues(w, &arg, ONE);
|
||||
die(w, NULL, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef INCLUDE_XPRINT_SUPPORT
|
||||
/*ARGSUSED*/
|
||||
static void
|
||||
print(Widget w, XEvent *event, String *params, Cardinal *num_params)
|
||||
{
|
||||
DoPrint(w, userOptions.printername, userOptions.printfile);
|
||||
}
|
||||
#endif /* INCLUDE_XPRINT_SUPPORT */
|
||||
53
app/xlogo/xlogo.h
Normal file
53
app/xlogo/xlogo.h
Normal file
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* $Xorg: xlogo.h,v 1.1 2004/04/30 02:05:54 gisburn Exp $
|
||||
*
|
||||
Copyright 2004 Roland Mainz <roland.mainz@nrubsig.org>
|
||||
|
||||
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 dealings
|
||||
in this Software without prior written authorization from The Open Group.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef XLOGO_XLOGO_H
|
||||
#define XLOGO_XLOGO_H 1
|
||||
|
||||
#include <X11/Intrinsic.h>
|
||||
|
||||
/* Turn a NULL pointer string into an empty string */
|
||||
#define NULLSTR(x) (((x)!=NULL)?(x):(""))
|
||||
|
||||
#define Error(x) { printf x ; exit(EXIT_FAILURE); }
|
||||
#define Log(x) { if(userOptions.verbose) printf x; }
|
||||
#define Msg(x) { if((!userOptions.quiet) || userOptions.verbose) printf x; }
|
||||
|
||||
typedef struct {
|
||||
Boolean verbose;
|
||||
Boolean quiet;
|
||||
Boolean printAndExit;
|
||||
String printername;
|
||||
String printfile;
|
||||
} XLogoResourceData, *XLogoResourceDataPtr;
|
||||
|
||||
/* Global vars */
|
||||
extern const char *ProgramName; /* program name (from argv[0]) */
|
||||
extern XLogoResourceData userOptions;
|
||||
|
||||
#endif /* !XLOGO_XLOGO_H */
|
||||
|
||||
93
app/xlogo/xlogo.man
Normal file
93
app/xlogo/xlogo.man
Normal file
@@ -0,0 +1,93 @@
|
||||
.\" $Xorg: xlogo.man,v 1.4 2001/02/09 02:05:54 xorgcvs Exp $
|
||||
.\" Copyright 1988, 1994, 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 dealings in this Software without prior written authorization
|
||||
.\" from The Open Group.
|
||||
.\"
|
||||
.\" $XFree86: xc/programs/xlogo/xlogo.man,v 1.10 2002/10/12 16:06:48 herrb Exp $
|
||||
.\"
|
||||
.TH XLOGO 1 __xorgversion__
|
||||
.SH NAME
|
||||
xlogo - X Window System logo
|
||||
.SH SYNOPSIS
|
||||
.B xlogo
|
||||
[-\fItoolkitoption\fP ...]
|
||||
.SH DESCRIPTION
|
||||
The \fIxlogo\fP program displays the X Window System logo.
|
||||
.SH OPTIONS
|
||||
.I Xlogo
|
||||
accepts all of the standard X Toolkit command line options, as well as the
|
||||
following:
|
||||
.TP 8
|
||||
.B \-render
|
||||
This option indicates that the logo should be drawn with anti-aliased edges using the RENDER extension.
|
||||
.TP 8
|
||||
.B \-sharp
|
||||
If -render is also specified, this forces the edges to be rendered in sharp mode, (ie. 1-bit alpha channel).
|
||||
.TP 8
|
||||
.B \-shape
|
||||
This option indicates that the logo window should be shaped rather than
|
||||
rectangular.
|
||||
.SH RESOURCES
|
||||
The default width and the default height are each 100 pixels.
|
||||
This program uses the \fILogo\fP widget in the Athena widget set. It
|
||||
understands all of the Simple widget resource names and classes as well as:
|
||||
.TP 8
|
||||
.B foreground (\fPclass\fB Foreground)
|
||||
Specifies the color for the logo. The default is depends on whether
|
||||
\fIreverseVideo\fP is specified. If \fIreverseVideo\fP is specified
|
||||
the default is \fIXtDefaultForeground\fP, otherwise the default is
|
||||
\fIXtDefaultBackground\fP.
|
||||
.TP 8
|
||||
.B shapeWindow (\fPclass\fB ShapeWindow)
|
||||
Specifies that the window is shaped to the X logo. The default is False.
|
||||
.SH WIDGETS
|
||||
In order to specify resources, it is useful to know the hierarchy of
|
||||
the widgets which compose \fIxlogo\fR. In the notation below,
|
||||
indentation indicates hierarchical structure. The widget class name
|
||||
is given first, followed by the widget instance name.
|
||||
.sp
|
||||
.nf
|
||||
.TA .5i
|
||||
.ta .5i
|
||||
XLogo xlogo
|
||||
Logo xlogo
|
||||
.fi
|
||||
.sp
|
||||
.SH ENVIRONMENT
|
||||
.TP 8
|
||||
.B DISPLAY
|
||||
to get the default host and display number.
|
||||
.TP 8
|
||||
.B XENVIRONMENT
|
||||
to get the name of a resource file that overrides the global resources
|
||||
stored in the RESOURCE_MANAGER property.
|
||||
.SH FILES
|
||||
.TP
|
||||
.I __apploaddir__/XLogo
|
||||
specifies required resources
|
||||
.SH SEE ALSO
|
||||
X(__miscmansuffix__), xrdb(1)
|
||||
.SH AUTHORS
|
||||
Ollie Jones of Apollo Computer and Jim Fulton of the MIT X Consortium
|
||||
wrote the logo graphics routine, based on a graphic design by Danny
|
||||
Chong and Ross Chapman of Apollo Computer.
|
||||
Reference in New Issue
Block a user