wmlongrun: Add version 0.3.0pre1 to repository.
From http://gentoo.osuosl.org/distfiles/wmlongrun-0.3.0pre1.tar.gz
This commit is contained in:
parent
8d75611daf
commit
778ce8ae45
3
wmlongrun/AUTHORS
Normal file
3
wmlongrun/AUTHORS
Normal file
|
@ -0,0 +1,3 @@
|
|||
Main Author of wmlongrun:
|
||||
Seiichi SATO <ssato@sh.rim.or.jp>
|
||||
|
340
wmlongrun/COPYING
Normal file
340
wmlongrun/COPYING
Normal file
|
@ -0,0 +1,340 @@
|
|||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
||||
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
License is intended to guarantee your freedom to share and change free
|
||||
software--to make sure the software is free for all its users. This
|
||||
General Public License applies to most of the Free Software
|
||||
Foundation's software and to any other program whose authors commit to
|
||||
using it. (Some other Free Software Foundation software is covered by
|
||||
the GNU Library General Public License instead.) You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
this service if you wish), that you receive source code or can get it
|
||||
if you want it, that you can change the software or use pieces of it
|
||||
in new free programs; and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
anyone to deny you these rights or to ask you to surrender the rights.
|
||||
These restrictions translate to certain responsibilities for you if you
|
||||
distribute copies of the software, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must give the recipients all the rights that
|
||||
you have. You must make sure that they, too, receive or can get the
|
||||
source code. And you must show them these terms so they know their
|
||||
rights.
|
||||
|
||||
We protect your rights with two steps: (1) copyright the software, and
|
||||
(2) offer you this license which gives you legal permission to copy,
|
||||
distribute and/or modify the software.
|
||||
|
||||
Also, for each author's protection and ours, we want to make certain
|
||||
that everyone understands that there is no warranty for this free
|
||||
software. If the software is modified by someone else and passed on, we
|
||||
want its recipients to know that what they have is not the original, so
|
||||
that any problems introduced by others will not reflect on the original
|
||||
authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software
|
||||
patents. We wish to avoid the danger that redistributors of a free
|
||||
program will individually obtain patent licenses, in effect making the
|
||||
program proprietary. To prevent this, we have made it clear that any
|
||||
patent must be licensed for everyone's free use or not licensed at all.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License applies to any program or other work which contains
|
||||
a notice placed by the copyright holder saying it may be distributed
|
||||
under the terms of this General Public License. The "Program", below,
|
||||
refers to any such program or work, and a "work based on the Program"
|
||||
means either the Program or any derivative work under copyright law:
|
||||
that is to say, a work containing the Program or a portion of it,
|
||||
either verbatim or with modifications and/or translated into another
|
||||
language. (Hereinafter, translation is included without limitation in
|
||||
the term "modification".) Each licensee is addressed as "you".
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running the Program is not restricted, and the output from the Program
|
||||
is covered only if its contents constitute a work based on the
|
||||
Program (independent of having been made by running the Program).
|
||||
Whether that is true depends on what the Program does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Program's
|
||||
source code as you receive it, in any medium, provided that you
|
||||
conspicuously and appropriately publish on each copy an appropriate
|
||||
copyright notice and disclaimer of warranty; keep intact all the
|
||||
notices that refer to this License and to the absence of any warranty;
|
||||
and give any other recipients of the Program a copy of this License
|
||||
along with the Program.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and
|
||||
you may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Program or any portion
|
||||
of it, thus forming a work based on the Program, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) You must cause the modified files to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
b) You must cause any work that you distribute or publish, that in
|
||||
whole or in part contains or is derived from the Program or any
|
||||
part thereof, to be licensed as a whole at no charge to all third
|
||||
parties under the terms of this License.
|
||||
|
||||
c) If the modified program normally reads commands interactively
|
||||
when run, you must cause it, when started running for such
|
||||
interactive use in the most ordinary way, to print or display an
|
||||
announcement including an appropriate copyright notice and a
|
||||
notice that there is no warranty (or else, saying that you provide
|
||||
a warranty) and that users may redistribute the program under
|
||||
these conditions, and telling the user how to view a copy of this
|
||||
License. (Exception: if the Program itself is interactive but
|
||||
does not normally print such an announcement, your work based on
|
||||
the Program is not required to print an announcement.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Program,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Program, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Program.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Program
|
||||
with the Program (or with a work based on the Program) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may copy and distribute the Program (or a work based on it,
|
||||
under Section 2) in object code or executable form under the terms of
|
||||
Sections 1 and 2 above provided that you also do one of the following:
|
||||
|
||||
a) Accompany it with the complete corresponding machine-readable
|
||||
source code, which must be distributed under the terms of Sections
|
||||
1 and 2 above on a medium customarily used for software interchange; or,
|
||||
|
||||
b) Accompany it with a written offer, valid for at least three
|
||||
years, to give any third party, for a charge no more than your
|
||||
cost of physically performing source distribution, a complete
|
||||
machine-readable copy of the corresponding source code, to be
|
||||
distributed under the terms of Sections 1 and 2 above on a medium
|
||||
customarily used for software interchange; or,
|
||||
|
||||
c) Accompany it with the information you received as to the offer
|
||||
to distribute corresponding source code. (This alternative is
|
||||
allowed only for noncommercial distribution and only if you
|
||||
received the program in object code or executable form with such
|
||||
an offer, in accord with Subsection b above.)
|
||||
|
||||
The source code for a work means the preferred form of the work for
|
||||
making modifications to it. For an executable work, complete source
|
||||
code means all the source code for all modules it contains, plus any
|
||||
associated interface definition files, plus the scripts used to
|
||||
control compilation and installation of the executable. However, as a
|
||||
special exception, the source code distributed need not include
|
||||
anything that is normally distributed (in either source or binary
|
||||
form) with the major components (compiler, kernel, and so on) of the
|
||||
operating system on which the executable runs, unless that component
|
||||
itself accompanies the executable.
|
||||
|
||||
If distribution of executable or object code is made by offering
|
||||
access to copy from a designated place, then offering equivalent
|
||||
access to copy the source code from the same place counts as
|
||||
distribution of the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
4. You may not copy, modify, sublicense, or distribute the Program
|
||||
except as expressly provided under this License. Any attempt
|
||||
otherwise to copy, modify, sublicense or distribute the Program is
|
||||
void, and will automatically terminate your rights under this License.
|
||||
However, parties who have received copies, or rights, from you under
|
||||
this License will not have their licenses terminated so long as such
|
||||
parties remain in full compliance.
|
||||
|
||||
5. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Program or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Program (or any work based on the
|
||||
Program), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Program or works based on it.
|
||||
|
||||
6. Each time you redistribute the Program (or any work based on the
|
||||
Program), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute or modify the Program subject to
|
||||
these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties to
|
||||
this License.
|
||||
|
||||
7. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Program at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Program by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Program.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under
|
||||
any particular circumstance, the balance of the section is intended to
|
||||
apply and the section as a whole is intended to apply in other
|
||||
circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system, which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
8. If the distribution and/or use of the Program is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Program under this License
|
||||
may add an explicit geographical distribution limitation excluding
|
||||
those countries, so that distribution is permitted only in or among
|
||||
countries not thus excluded. In such case, this License incorporates
|
||||
the limitation as if written in the body of this License.
|
||||
|
||||
9. The Free Software Foundation may publish revised and/or new versions
|
||||
of the General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program
|
||||
specifies a version number of this License which applies to it and "any
|
||||
later version", you have the option of following the terms and conditions
|
||||
either of that version or of any later version published by the Free
|
||||
Software Foundation. If the Program does not specify a version number of
|
||||
this License, you may choose any version ever published by the Free Software
|
||||
Foundation.
|
||||
|
||||
10. If you wish to incorporate parts of the Program into other free
|
||||
programs whose distribution conditions are different, write to the author
|
||||
to ask for permission. For software which is copyrighted by the Free
|
||||
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||
make exceptions for this. Our decision will be guided by the two goals
|
||||
of preserving the free status of all derivatives of our free software and
|
||||
of promoting the sharing and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||
REPAIR OR CORRECTION.
|
||||
|
||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
convey the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
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 of the License, 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
|
||||
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program is interactive, make it output a short notice like this
|
||||
when it starts in an interactive mode:
|
||||
|
||||
Gnomovision version 69, Copyright (C) year name of author
|
||||
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, the commands you use may
|
||||
be called something other than `show w' and `show c'; they could even be
|
||||
mouse-clicks or menu items--whatever suits your program.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the program, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
||||
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||
|
||||
<signature of Ty Coon>, 1 April 1989
|
||||
Ty Coon, President of Vice
|
||||
|
||||
This General Public License does not permit incorporating your program into
|
||||
proprietary programs. If your program is a subroutine library, you may
|
||||
consider it more useful to permit linking proprietary applications with the
|
||||
library. If this is what you want to do, use the GNU Library General
|
||||
Public License instead of this License.
|
34
wmlongrun/ChangeLog
Normal file
34
wmlongrun/ChangeLog
Normal file
|
@ -0,0 +1,34 @@
|
|||
2002 March 23
|
||||
* version 0.2.0 released
|
||||
* longrun_linux.c longrun_freebsd.c: renamed get_longrun_stat() as
|
||||
longrun_get_stat()
|
||||
|
||||
2002 March 14
|
||||
* dockapp.c: rewrote (taken from wmmemmon)
|
||||
* backdrop_on.xpm, backdrop_off.xpm: changed bar of guage narrowly
|
||||
* main.c: code cleanup/review
|
||||
|
||||
2002 March 13
|
||||
* dropped the GNU coding standards:)
|
||||
* longrun_freebsd.c: fixed MIB for sysctl ('hw.crusoe.longrun')
|
||||
* backdrop_off.xpm: changed color of background
|
||||
* made Non-GNU make fixes
|
||||
* renamed wmlongrun.c to main.c
|
||||
* added manpage
|
||||
|
||||
2002 January 05
|
||||
* removed setgid flag under FreeBSD
|
||||
|
||||
2001 November 06
|
||||
* made small color adjustment for back-light
|
||||
|
||||
2001 October 16
|
||||
* made small modifications to dockapp.c
|
||||
(freeing the memory that is used for wmHints, removing d_width/d_height, and
|
||||
adding a argument for event-mask to DA_Initialize())
|
||||
|
||||
2001 October 30
|
||||
* added FreeBSD support
|
||||
|
||||
2001 September 20
|
||||
* version 0.1.0 released.(initial release)
|
71
wmlongrun/INSTALL
Normal file
71
wmlongrun/INSTALL
Normal file
|
@ -0,0 +1,71 @@
|
|||
|
||||
Supported Platforms:
|
||||
====================
|
||||
|
||||
- GNU/Linux (kernel 2.4.x / 2.2.18 or later)
|
||||
- FreeBSD (5.0-CURRENT / 4.4-RELEASE or later)
|
||||
|
||||
Patches to make it work on other platforms are welcome.
|
||||
|
||||
|
||||
Requirements:
|
||||
============
|
||||
- Basic obvious stuff
|
||||
If you will build WMLongRun, make sure you have gcc (or some Other ANSI
|
||||
C compiler).the X header files installed.
|
||||
|
||||
- X11R6.x
|
||||
WMLongRun can NOT be compiled in older versions of X, like X11R5 or
|
||||
X11R4. Upgrading the client libraries (Xlib, Xext) will help if you
|
||||
can't upgrade the server.
|
||||
|
||||
- libXPM 4.7 or newer
|
||||
Older versions may not work.
|
||||
Available at ftp://sunsite.unc.edu/pub/Linux/libs/X/
|
||||
|
||||
- CPUID/MSR drivers. (GNU/Linux)
|
||||
To run WMLongRun under GNU/Linux, you will need CPUID/MSR drivers.
|
||||
These drivers have been a part of the kernel distribution since version
|
||||
2.2.18. (2.4.x kernel has already included support for CPUID/MSR.) Make
|
||||
sure your kernel was compiled with 'CONFIG_X86_CPUID=y' and
|
||||
'CONFIG_X86_MSR=y'. If the CPUID/MSR drivers are not already built, you
|
||||
will need to configure and build a new kernel. You can either build the
|
||||
CPUID/MSR drivers into the kernel or build them as kernel loadable
|
||||
modules.
|
||||
|
||||
- CPUID/MSR character devices (GNU/Linux)
|
||||
To get the information of the LongRun settings and status, you may need
|
||||
to make the special character files in the /dev directory. Please type
|
||||
as following to see if these devices already exist.
|
||||
|
||||
$ ls -l /dev/cpu/0/*
|
||||
crw------- 1 root root 203, 0 Sep 27 00:16 /dev/cpu/0/cpuid
|
||||
cr--r--r-- 1 root root 202, 0 Sep 27 00:16 /dev/cpu/0/msr
|
||||
|
||||
If not, you will need to create them. There is a MAKEDEV-cpuid-msr
|
||||
script in the source distribution of WMLongRun which will create
|
||||
the CPUID/MSR devices for you. You can also do it yourself.
|
||||
As root, type:
|
||||
|
||||
$ mkdir -m 0755 -p /dev/cpu/0
|
||||
$ mknod /dev/cpu/0/msr -m 0600 c 202 0
|
||||
$ mknod /dev/cpu/0/cpuid -m 0444 c 203 0
|
||||
|
||||
|
||||
Installation:
|
||||
=============
|
||||
|
||||
1: tar -zxvf wmlongrun-<version>.tar.gz
|
||||
2: cd wmlongrun-<version>
|
||||
3: ./configure
|
||||
4: make
|
||||
5: su root
|
||||
6: make install (or 'make install-strip')
|
||||
7: wmlongrun &
|
||||
|
||||
NOTES:
|
||||
- WMLongRun is installed as a setuid-root program on GNU/Linux. A setuid
|
||||
program with a graphical user interface is NOT secure. Please use at your own
|
||||
risk.
|
||||
- Non-GNU make may not work.
|
||||
e.g.) it doesn't work on FreeBSD when you run 'make clean'.
|
7
wmlongrun/MAKEDEV-cpuid-msr
Executable file
7
wmlongrun/MAKEDEV-cpuid-msr
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
msr_major=202
|
||||
cpuid_major=203
|
||||
mkdir -m 0755 -p /dev/cpu/0
|
||||
mknod /dev/cpu/0/msr -m 0600 c $msr_major 0
|
||||
mknod /dev/cpu/0/cpuid -m 0444 c $cpuid_major 0
|
4
wmlongrun/Makefile.am
Normal file
4
wmlongrun/Makefile.am
Normal file
|
@ -0,0 +1,4 @@
|
|||
|
||||
SUBDIRS = src doc
|
||||
|
||||
EXTRA_DIST = MAKEDEV-cpuid-msr
|
363
wmlongrun/Makefile.in
Normal file
363
wmlongrun/Makefile.in
Normal file
|
@ -0,0 +1,363 @@
|
|||
# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
|
||||
|
||||
# Copyright (C) 1994, 1995-8, 1999, 2001 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.
|
||||
|
||||
|
||||
SHELL = @SHELL@
|
||||
|
||||
srcdir = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
VPATH = @srcdir@
|
||||
prefix = @prefix@
|
||||
exec_prefix = @exec_prefix@
|
||||
|
||||
bindir = @bindir@
|
||||
sbindir = @sbindir@
|
||||
libexecdir = @libexecdir@
|
||||
datadir = @datadir@
|
||||
sysconfdir = @sysconfdir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
localstatedir = @localstatedir@
|
||||
libdir = @libdir@
|
||||
infodir = @infodir@
|
||||
mandir = @mandir@
|
||||
includedir = @includedir@
|
||||
oldincludedir = /usr/include
|
||||
|
||||
DESTDIR =
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
|
||||
top_builddir = .
|
||||
|
||||
ACLOCAL = @ACLOCAL@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
transform = @program_transform_name@
|
||||
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
host_alias = @host_alias@
|
||||
host_triplet = @host@
|
||||
CC = @CC@
|
||||
DFLAGS = @DFLAGS@
|
||||
HEADER_SEARCH_PATH = @HEADER_SEARCH_PATH@
|
||||
LIBRARY_SEARCH_PATH = @LIBRARY_SEARCH_PATH@
|
||||
LIBS = @LIBS@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
OS = @OS@
|
||||
PACKAGE = @PACKAGE@
|
||||
SETUID_FLAGS = @SETUID_FLAGS@
|
||||
VERSION = @VERSION@
|
||||
XCFLAGS = @XCFLAGS@
|
||||
XLFLAGS = @XLFLAGS@
|
||||
XLIBS = @XLIBS@
|
||||
X_EXTRA_LIBS = @X_EXTRA_LIBS@
|
||||
X_LIBRARY_PATH = @X_LIBRARY_PATH@
|
||||
|
||||
SUBDIRS = src doc
|
||||
|
||||
EXTRA_DIST = MAKEDEV-cpuid-msr
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
||||
CONFIG_HEADER = config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
DIST_COMMON = README ./stamp-h.in AUTHORS COPYING ChangeLog INSTALL \
|
||||
Makefile.am Makefile.in NEWS TODO acconfig.h acinclude.m4 aclocal.m4 \
|
||||
config.guess config.h.in config.sub configure configure.in install-sh \
|
||||
missing mkinstalldirs
|
||||
|
||||
|
||||
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
|
||||
|
||||
TAR = tar
|
||||
GZIP_ENV = --best
|
||||
all: all-redirect
|
||||
.SUFFIXES:
|
||||
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
|
||||
cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps Makefile
|
||||
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
cd $(top_builddir) \
|
||||
&& CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||
|
||||
$(ACLOCAL_M4): configure.in acinclude.m4
|
||||
cd $(srcdir) && $(ACLOCAL)
|
||||
|
||||
config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
$(SHELL) ./config.status --recheck
|
||||
$(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
|
||||
cd $(srcdir) && $(AUTOCONF)
|
||||
|
||||
config.h: stamp-h
|
||||
@if test ! -f $@; then \
|
||||
rm -f stamp-h; \
|
||||
$(MAKE) stamp-h; \
|
||||
else :; fi
|
||||
stamp-h: $(srcdir)/config.h.in $(top_builddir)/config.status
|
||||
cd $(top_builddir) \
|
||||
&& CONFIG_FILES= CONFIG_HEADERS=config.h \
|
||||
$(SHELL) ./config.status
|
||||
@echo timestamp > stamp-h 2> /dev/null
|
||||
$(srcdir)/config.h.in: $(srcdir)/stamp-h.in
|
||||
@if test ! -f $@; then \
|
||||
rm -f $(srcdir)/stamp-h.in; \
|
||||
$(MAKE) $(srcdir)/stamp-h.in; \
|
||||
else :; fi
|
||||
$(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) acconfig.h
|
||||
cd $(top_srcdir) && $(AUTOHEADER)
|
||||
@echo timestamp > $(srcdir)/stamp-h.in 2> /dev/null
|
||||
|
||||
mostlyclean-hdr:
|
||||
|
||||
clean-hdr:
|
||||
|
||||
distclean-hdr:
|
||||
-rm -f config.h
|
||||
|
||||
maintainer-clean-hdr:
|
||||
|
||||
# This directory's subdirectories are mostly independent; you can cd
|
||||
# into them and run `make' without going through this Makefile.
|
||||
# To change the values of `make' variables: instead of editing Makefiles,
|
||||
# (1) if the variable is set in `config.status', edit `config.status'
|
||||
# (which will cause the Makefiles to be regenerated when you run `make');
|
||||
# (2) otherwise, pass the desired values on the `make' command line.
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
all-recursive install-data-recursive install-exec-recursive \
|
||||
installdirs-recursive install-recursive uninstall-recursive \
|
||||
check-recursive installcheck-recursive info-recursive dvi-recursive:
|
||||
@set fnord $(MAKEFLAGS); amf=$$2; \
|
||||
dot_seen=no; \
|
||||
target=`echo $@ | sed s/-recursive//`; \
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
echo "Making $$target in $$subdir"; \
|
||||
if test "$$subdir" = "."; then \
|
||||
dot_seen=yes; \
|
||||
local_target="$$target-am"; \
|
||||
else \
|
||||
local_target="$$target"; \
|
||||
fi; \
|
||||
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
|
||||
done; \
|
||||
if test "$$dot_seen" = "no"; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
|
||||
fi; test -z "$$fail"
|
||||
|
||||
mostlyclean-recursive clean-recursive distclean-recursive \
|
||||
maintainer-clean-recursive:
|
||||
@set fnord $(MAKEFLAGS); amf=$$2; \
|
||||
dot_seen=no; \
|
||||
rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
rev="$$subdir $$rev"; \
|
||||
test "$$subdir" != "." || dot_seen=yes; \
|
||||
done; \
|
||||
test "$$dot_seen" = "no" && rev=". $$rev"; \
|
||||
target=`echo $@ | sed s/-recursive//`; \
|
||||
for subdir in $$rev; do \
|
||||
echo "Making $$target in $$subdir"; \
|
||||
if test "$$subdir" = "."; then \
|
||||
local_target="$$target-am"; \
|
||||
else \
|
||||
local_target="$$target"; \
|
||||
fi; \
|
||||
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
|
||||
done && test -z "$$fail"
|
||||
tags-recursive:
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
|
||||
done
|
||||
|
||||
tags: TAGS
|
||||
|
||||
ID: $(HEADERS) $(SOURCES) $(LISP)
|
||||
list='$(SOURCES) $(HEADERS)'; \
|
||||
unique=`for i in $$list; do echo $$i; done | \
|
||||
awk ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
here=`pwd` && cd $(srcdir) \
|
||||
&& mkid -f$$here/ID $$unique $(LISP)
|
||||
|
||||
TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
|
||||
fi; \
|
||||
done; \
|
||||
list='$(SOURCES) $(HEADERS)'; \
|
||||
unique=`for i in $$list; do echo $$i; done | \
|
||||
awk ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \
|
||||
|| (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP))
|
||||
|
||||
mostlyclean-tags:
|
||||
|
||||
clean-tags:
|
||||
|
||||
distclean-tags:
|
||||
-rm -f TAGS ID
|
||||
|
||||
maintainer-clean-tags:
|
||||
|
||||
distdir = $(PACKAGE)-$(VERSION)
|
||||
top_distdir = $(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
|
||||
-rm -rf $(distdir)
|
||||
GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
|
||||
mkdir $(distdir)/=build
|
||||
mkdir $(distdir)/=inst
|
||||
dc_install_base=`cd $(distdir)/=inst && pwd`; \
|
||||
cd $(distdir)/=build \
|
||||
&& ../configure --srcdir=.. --prefix=$$dc_install_base \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) check \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) install \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) installcheck \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) dist
|
||||
-rm -rf $(distdir)
|
||||
@banner="$(distdir).tar.gz is ready for distribution"; \
|
||||
dashes=`echo "$$banner" | sed s/./=/g`; \
|
||||
echo "$$dashes"; \
|
||||
echo "$$banner"; \
|
||||
echo "$$dashes"
|
||||
dist: distdir
|
||||
-chmod -R a+r $(distdir)
|
||||
GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
|
||||
-rm -rf $(distdir)
|
||||
dist-all: distdir
|
||||
-chmod -R a+r $(distdir)
|
||||
GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
|
||||
-rm -rf $(distdir)
|
||||
distdir: $(DISTFILES)
|
||||
-rm -rf $(distdir)
|
||||
mkdir $(distdir)
|
||||
-chmod 777 $(distdir)
|
||||
@for file in $(DISTFILES); do \
|
||||
d=$(srcdir); \
|
||||
if test -d $$d/$$file; then \
|
||||
cp -pr $$d/$$file $(distdir)/$$file; \
|
||||
else \
|
||||
test -f $(distdir)/$$file \
|
||||
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|
||||
|| cp -p $$d/$$file $(distdir)/$$file || :; \
|
||||
fi; \
|
||||
done
|
||||
for subdir in $(SUBDIRS); do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
test -d $(distdir)/$$subdir \
|
||||
|| mkdir $(distdir)/$$subdir \
|
||||
|| exit 1; \
|
||||
chmod 777 $(distdir)/$$subdir; \
|
||||
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
info-am:
|
||||
info: info-recursive
|
||||
dvi-am:
|
||||
dvi: dvi-recursive
|
||||
check-am: all-am
|
||||
check: check-recursive
|
||||
installcheck-am:
|
||||
installcheck: installcheck-recursive
|
||||
all-recursive-am: config.h
|
||||
$(MAKE) $(AM_MAKEFLAGS) all-recursive
|
||||
|
||||
install-exec-am:
|
||||
install-exec: install-exec-recursive
|
||||
|
||||
install-data-am:
|
||||
install-data: install-data-recursive
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
install: install-recursive
|
||||
uninstall-am:
|
||||
uninstall: uninstall-recursive
|
||||
all-am: Makefile config.h
|
||||
all-redirect: all-recursive-am
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
|
||||
installdirs: installdirs-recursive
|
||||
installdirs-am:
|
||||
|
||||
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-rm -f Makefile $(CONFIG_CLEAN_FILES)
|
||||
-rm -f config.cache config.log stamp-h stamp-h[0-9]*
|
||||
|
||||
maintainer-clean-generic:
|
||||
mostlyclean-am: mostlyclean-hdr mostlyclean-tags mostlyclean-generic
|
||||
|
||||
mostlyclean: mostlyclean-recursive
|
||||
|
||||
clean-am: clean-hdr clean-tags clean-generic mostlyclean-am
|
||||
|
||||
clean: clean-recursive
|
||||
|
||||
distclean-am: distclean-hdr distclean-tags distclean-generic clean-am
|
||||
|
||||
distclean: distclean-recursive
|
||||
-rm -f config.status
|
||||
|
||||
maintainer-clean-am: maintainer-clean-hdr maintainer-clean-tags \
|
||||
maintainer-clean-generic distclean-am
|
||||
@echo "This command is intended for maintainers to use;"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
|
||||
maintainer-clean: maintainer-clean-recursive
|
||||
-rm -f config.status
|
||||
|
||||
.PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \
|
||||
install-data-recursive uninstall-data-recursive install-exec-recursive \
|
||||
uninstall-exec-recursive installdirs-recursive uninstalldirs-recursive \
|
||||
all-recursive check-recursive installcheck-recursive info-recursive \
|
||||
dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \
|
||||
maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
|
||||
distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
|
||||
dvi-am dvi check check-am installcheck-am installcheck all-recursive-am \
|
||||
install-exec-am install-exec install-data-am install-data install-am \
|
||||
install uninstall-am uninstall all-redirect all-am all installdirs-am \
|
||||
installdirs mostlyclean-generic distclean-generic clean-generic \
|
||||
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
|
||||
|
||||
|
||||
# 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:
|
1
wmlongrun/NEWS
Normal file
1
wmlongrun/NEWS
Normal file
|
@ -0,0 +1 @@
|
|||
see ChangeLog
|
69
wmlongrun/README
Normal file
69
wmlongrun/README
Normal file
|
@ -0,0 +1,69 @@
|
|||
WMLongRun - A dockapp to monitor the LongRun(tm) status on Crusoe
|
||||
|
||||
General Information
|
||||
===================
|
||||
WMLongRun is a program to monitor for LongRun. It displays the current
|
||||
LongRun(tm) settings and status: the frequency, the LongRun(tm) flags
|
||||
(performance or economy), and the performance level (expressed as a percentile).
|
||||
|
||||
It is a dockapp (dockable application) that is supported by X window managers
|
||||
such as Window Maker, AfterStep, BlackBox, and Enlightenment. It has two user
|
||||
interfaces: an LCD look-alike user interface and an LED-interface. If you select
|
||||
the LCD-interfaces, the back-light may be turned on/off by clicking the mouse
|
||||
button over the application.
|
||||
|
||||
It runs on GNU/Linux / FreeBSD.
|
||||
|
||||
|
||||
Installation
|
||||
============
|
||||
See the file 'INSTALL' for instructions.
|
||||
|
||||
|
||||
Copyright
|
||||
=========
|
||||
GPL applies all portions of the code I wrote. Please see COPYING file.
|
||||
|
||||
|
||||
Usage
|
||||
=====
|
||||
* To turn on/off back-light, click the mouse button over the application.
|
||||
* To see the following help messages, type 'wmlongrun --help'.
|
||||
|
||||
$ wmlongrun [OPTIONS]
|
||||
-d, --display <string> display to use
|
||||
-bl, --backlight turn on back-light
|
||||
-lc, --light-color <color> back-light color (rgb:6E/C6/3B is default)
|
||||
-i, --interval <number> number of secs between updates (1 is default)
|
||||
-cd, --cpuid-device <device> CPUID device ('/dev/cpu/0/cpuid' is default)
|
||||
-md, --msr-device <device> MSR device ('/dev/cpu/0/msr' is default)
|
||||
-l, --led run the application with LED interface
|
||||
-h, --help show this help text and exit
|
||||
-v, --version show program version and exit
|
||||
-w, --windowed run the application in windowed mode
|
||||
-bw, --broken-wm activate broken window manager fix
|
||||
|
||||
NOTE:
|
||||
'-cd, --cpuid-device','-md, --msr-device' are options for GNU/Linux.
|
||||
|
||||
For AfterStep users
|
||||
===================
|
||||
Add this line to your ~/GNUstep/Library/AfterStep/wharf:
|
||||
|
||||
*Wharf wmlongrun - Swallow "wmlongrun" wmlongrun -w &
|
||||
|
||||
|
||||
For Enlightenment users
|
||||
=======================
|
||||
'-bw, --broken-wm' option will help you.
|
||||
|
||||
|
||||
Bug reports
|
||||
===========
|
||||
Please send e-mail to ssato@sh.rim.or.jp
|
||||
|
||||
|
||||
URL
|
||||
===
|
||||
http://www.sh.rim.or.jp/~ssato/dockapp/index.shtml#wmlongrun
|
||||
|
8
wmlongrun/TODO
Normal file
8
wmlongrun/TODO
Normal file
|
@ -0,0 +1,8 @@
|
|||
* optimize drawing-routines (gdk-pixbuf? MIT-SHM?)
|
||||
* display the current voltage
|
||||
|
||||
|
||||
---
|
||||
* FreeBSD support (done)
|
||||
* Non-GNU make fixes (done)
|
||||
* man page (done)
|
5
wmlongrun/acconfig.h
Normal file
5
wmlongrun/acconfig.h
Normal file
|
@ -0,0 +1,5 @@
|
|||
/* use Linux specific code */
|
||||
#undef LINUX
|
||||
|
||||
/* use FreeBSD specific code */
|
||||
#undef FREEBSD
|
27
wmlongrun/acinclude.m4
Normal file
27
wmlongrun/acinclude.m4
Normal file
|
@ -0,0 +1,27 @@
|
|||
#!/bin/sh
|
||||
|
||||
# $Id: acinclude.m4,v 1.3 1999/07/24 22:01:51 daeron Exp $
|
||||
|
||||
dnl
|
||||
dnl DA_CHECK_LIB(NAME, FUNCTION, EXTRALIBS)
|
||||
dnl
|
||||
AC_DEFUN(DA_CHECK_LIB,
|
||||
[
|
||||
LDFLAGS_old="$LDFLAGS"
|
||||
LDFLAGS="$LDFLAGS $lib_search_path"
|
||||
AC_CHECK_LIB([$1],[$2],yes=yes,no=no,[$3])
|
||||
LDFLAGS="$LDFLAGS_old"
|
||||
])
|
||||
|
||||
|
||||
dnl
|
||||
dnl DA_CHECK_HEADER(NAME)
|
||||
dnl
|
||||
AC_DEFUN(DA_CHECK_HEADER,
|
||||
[
|
||||
CPPFLAGS_old="$CPPFLAGS"
|
||||
CPPFLAGS="$CPPFLAGS $inc_search_path"
|
||||
AC_CHECK_HEADER([$1])
|
||||
CPPFLAGS="$CPPFLAGS_old"
|
||||
])
|
||||
|
185
wmlongrun/aclocal.m4
vendored
Normal file
185
wmlongrun/aclocal.m4
vendored
Normal file
|
@ -0,0 +1,185 @@
|
|||
dnl aclocal.m4 generated automatically by aclocal 1.4-p6
|
||||
|
||||
dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
|
||||
dnl This file is free software; the Free Software Foundation
|
||||
dnl gives unlimited permission to copy and/or distribute it,
|
||||
dnl with or without modifications, as long as this notice is preserved.
|
||||
|
||||
dnl This program is distributed in the hope that it will be useful,
|
||||
dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
dnl PARTICULAR PURPOSE.
|
||||
|
||||
#!/bin/sh
|
||||
|
||||
# $Id: acinclude.m4,v 1.3 1999/07/24 22:01:51 daeron Exp $
|
||||
|
||||
dnl
|
||||
dnl DA_CHECK_LIB(NAME, FUNCTION, EXTRALIBS)
|
||||
dnl
|
||||
AC_DEFUN(DA_CHECK_LIB,
|
||||
[
|
||||
LDFLAGS_old="$LDFLAGS"
|
||||
LDFLAGS="$LDFLAGS $lib_search_path"
|
||||
AC_CHECK_LIB([$1],[$2],yes=yes,no=no,[$3])
|
||||
LDFLAGS="$LDFLAGS_old"
|
||||
])
|
||||
|
||||
|
||||
dnl
|
||||
dnl DA_CHECK_HEADER(NAME)
|
||||
dnl
|
||||
AC_DEFUN(DA_CHECK_HEADER,
|
||||
[
|
||||
CPPFLAGS_old="$CPPFLAGS"
|
||||
CPPFLAGS="$CPPFLAGS $inc_search_path"
|
||||
AC_CHECK_HEADER([$1])
|
||||
CPPFLAGS="$CPPFLAGS_old"
|
||||
])
|
||||
|
||||
|
||||
# Do all the work for Automake. This macro actually does too much --
|
||||
# some checks are only needed if your package does certain things.
|
||||
# But this isn't really a big deal.
|
||||
|
||||
# serial 1
|
||||
|
||||
dnl Usage:
|
||||
dnl AM_INIT_AUTOMAKE(package,version, [no-define])
|
||||
|
||||
AC_DEFUN([AM_INIT_AUTOMAKE],
|
||||
[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
|
||||
AC_REQUIRE([AC_PROG_INSTALL])
|
||||
PACKAGE=[$1]
|
||||
AC_SUBST(PACKAGE)
|
||||
VERSION=[$2]
|
||||
AC_SUBST(VERSION)
|
||||
dnl test to see if srcdir already configured
|
||||
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
|
||||
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
|
||||
fi
|
||||
ifelse([$3],,
|
||||
AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
|
||||
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
|
||||
AC_REQUIRE([AM_SANITY_CHECK])
|
||||
AC_REQUIRE([AC_ARG_PROGRAM])
|
||||
dnl FIXME This is truly gross.
|
||||
missing_dir=`cd $ac_aux_dir && pwd`
|
||||
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}, $missing_dir)
|
||||
AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
|
||||
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}, $missing_dir)
|
||||
AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
|
||||
AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
|
||||
AC_REQUIRE([AC_PROG_MAKE_SET])])
|
||||
|
||||
# Copyright 2002 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
|
||||
|
||||
# AM_AUTOMAKE_VERSION(VERSION)
|
||||
# ----------------------------
|
||||
# Automake X.Y traces this macro to ensure aclocal.m4 has been
|
||||
# generated from the m4 files accompanying Automake X.Y.
|
||||
AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.4"])
|
||||
|
||||
# AM_SET_CURRENT_AUTOMAKE_VERSION
|
||||
# -------------------------------
|
||||
# Call AM_AUTOMAKE_VERSION so it can be traced.
|
||||
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
|
||||
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
|
||||
[AM_AUTOMAKE_VERSION([1.4-p6])])
|
||||
|
||||
#
|
||||
# Check to make sure that the build environment is sane.
|
||||
#
|
||||
|
||||
AC_DEFUN([AM_SANITY_CHECK],
|
||||
[AC_MSG_CHECKING([whether build environment is sane])
|
||||
# Just in case
|
||||
sleep 1
|
||||
echo timestamp > conftestfile
|
||||
# Do `set' in a subshell so we don't clobber the current shell's
|
||||
# arguments. Must try -L first in case configure is actually a
|
||||
# symlink; some systems play weird games with the mod time of symlinks
|
||||
# (eg FreeBSD returns the mod time of the symlink's containing
|
||||
# directory).
|
||||
if (
|
||||
set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
|
||||
if test "[$]*" = "X"; then
|
||||
# -L didn't work.
|
||||
set X `ls -t $srcdir/configure conftestfile`
|
||||
fi
|
||||
if test "[$]*" != "X $srcdir/configure conftestfile" \
|
||||
&& test "[$]*" != "X conftestfile $srcdir/configure"; then
|
||||
|
||||
# If neither matched, then we have a broken ls. This can happen
|
||||
# if, for instance, CONFIG_SHELL is bash and it inherits a
|
||||
# broken ls alias from the environment. This has actually
|
||||
# happened. Such a system could not be considered "sane".
|
||||
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
|
||||
alias in your environment])
|
||||
fi
|
||||
|
||||
test "[$]2" = conftestfile
|
||||
)
|
||||
then
|
||||
# Ok.
|
||||
:
|
||||
else
|
||||
AC_MSG_ERROR([newly created file is older than distributed files!
|
||||
Check your system clock])
|
||||
fi
|
||||
rm -f conftest*
|
||||
AC_MSG_RESULT(yes)])
|
||||
|
||||
dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
|
||||
dnl The program must properly implement --version.
|
||||
AC_DEFUN([AM_MISSING_PROG],
|
||||
[AC_MSG_CHECKING(for working $2)
|
||||
# Run test in a subshell; some versions of sh will print an error if
|
||||
# an executable is not found, even if stderr is redirected.
|
||||
# Redirect stdin to placate older versions of autoconf. Sigh.
|
||||
if ($2 --version) < /dev/null > /dev/null 2>&1; then
|
||||
$1=$2
|
||||
AC_MSG_RESULT(found)
|
||||
else
|
||||
$1="$3/missing $2"
|
||||
AC_MSG_RESULT(missing)
|
||||
fi
|
||||
AC_SUBST($1)])
|
||||
|
||||
# Like AC_CONFIG_HEADER, but automatically create stamp file.
|
||||
|
||||
AC_DEFUN([AM_CONFIG_HEADER],
|
||||
[AC_PREREQ([2.12])
|
||||
AC_CONFIG_HEADER([$1])
|
||||
dnl When config.status generates a header, we must update the stamp-h file.
|
||||
dnl This file resides in the same directory as the config header
|
||||
dnl that is generated. We must strip everything past the first ":",
|
||||
dnl and everything past the last "/".
|
||||
AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
|
||||
ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
|
||||
<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
|
||||
<<am_indx=1
|
||||
for am_file in <<$1>>; do
|
||||
case " <<$>>CONFIG_HEADERS " in
|
||||
*" <<$>>am_file "*<<)>>
|
||||
echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
|
||||
;;
|
||||
esac
|
||||
am_indx=`expr "<<$>>am_indx" + 1`
|
||||
done<<>>dnl>>)
|
||||
changequote([,]))])
|
||||
|
1320
wmlongrun/config.guess
vendored
Executable file
1320
wmlongrun/config.guess
vendored
Executable file
File diff suppressed because it is too large
Load diff
38
wmlongrun/config.h.in
Normal file
38
wmlongrun/config.h.in
Normal file
|
@ -0,0 +1,38 @@
|
|||
/* config.h.in. Generated automatically from configure.in by autoheader 2.13. */
|
||||
|
||||
/* Define if you have the ANSI C header files. */
|
||||
#undef STDC_HEADERS
|
||||
|
||||
/* Define if the X Window System is missing or not being used. */
|
||||
#undef X_DISPLAY_MISSING
|
||||
|
||||
/* use Linux specific code */
|
||||
#undef LINUX
|
||||
|
||||
/* Define if you have the select function. */
|
||||
#undef HAVE_SELECT
|
||||
|
||||
/* Define if you have the <fcntl.h> header file. */
|
||||
#undef HAVE_FCNTL_H
|
||||
|
||||
/* Define if you have the <string.h> header file. */
|
||||
#undef HAVE_STRING_H
|
||||
|
||||
/* Define if you have the <sys/time.h> header file. */
|
||||
#undef HAVE_SYS_TIME_H
|
||||
|
||||
/* Define if you have the <unistd.h> header file. */
|
||||
#undef HAVE_UNISTD_H
|
||||
|
||||
/* Define if you have the Xext library (-lXext). */
|
||||
#undef HAVE_LIBXEXT
|
||||
|
||||
/* Define if you have the Xpm library (-lXpm). */
|
||||
#undef HAVE_LIBXPM
|
||||
|
||||
/* Name of package */
|
||||
#undef PACKAGE
|
||||
|
||||
/* Version number of package */
|
||||
#undef VERSION
|
||||
|
1443
wmlongrun/config.sub
vendored
Executable file
1443
wmlongrun/config.sub
vendored
Executable file
File diff suppressed because it is too large
Load diff
2874
wmlongrun/configure
vendored
Executable file
2874
wmlongrun/configure
vendored
Executable file
File diff suppressed because it is too large
Load diff
129
wmlongrun/configure.in
Normal file
129
wmlongrun/configure.in
Normal file
|
@ -0,0 +1,129 @@
|
|||
dnl Process this file with autoconf to produce a configure script.
|
||||
AC_INIT(src/main.c)
|
||||
|
||||
AM_INIT_AUTOMAKE(wmlongrun, 0.3.0pre1)
|
||||
AM_CONFIG_HEADER(config.h)
|
||||
|
||||
dnl Checks for programs.
|
||||
AC_PROG_CC
|
||||
AC_PROG_INSTALL
|
||||
|
||||
dnl Checks for header files.
|
||||
AC_HEADER_STDC
|
||||
|
||||
dnl
|
||||
dnl Specify paths to look for libraries and headers
|
||||
dnl ===============================================
|
||||
AC_ARG_WITH(libs-from,
|
||||
[ --with-libs-from pass compiler flags to look for libraries],
|
||||
[lib_search_path="$withval $lib_search_path"])
|
||||
|
||||
AC_ARG_WITH(incs-from,
|
||||
[ --with-incs-from pass compiler flags to look for header files],
|
||||
[inc_search_path="$withval $inc_search_path"])
|
||||
|
||||
|
||||
dnl ===========================================
|
||||
dnl Stuff that uses X
|
||||
dnl ===========================================
|
||||
|
||||
AC_PATH_XTRA
|
||||
|
||||
X_LIBRARY_PATH=$x_libraries
|
||||
|
||||
XCFLAGS="$X_CFLAGS"
|
||||
|
||||
XLFLAGS="$X_LIBS"
|
||||
|
||||
XLIBS="-lX11 $X_EXTRA_LIBS"
|
||||
|
||||
|
||||
lib_search_path="$lib_search_path $XLFLAGS -L/usr/local/lib"
|
||||
inc_search_path="$inc_search_path $XCFLAGS -I/usr/local/include"
|
||||
|
||||
AC_SUBST(X_LIBRARY_PATH)
|
||||
|
||||
AC_CHECK_LIB(Xext, XShapeCombineMask,,
|
||||
[echo "The shape extension stuff could not be found in the X client
|
||||
libraries"
|
||||
exit 1],
|
||||
$X_LIBS $X_EXTRA_LIBS -lX11)
|
||||
|
||||
AC_CHECK_LIB(Xpm, XpmCreatePixmapFromData,,
|
||||
[echo "The libXpm library was not found, but is necessary to build this
|
||||
library"
|
||||
exit 1],
|
||||
$X_LIBS $X_EXTRA_LIBS -lX11)
|
||||
|
||||
AC_SUBST(XCFLAGS)
|
||||
AC_SUBST(XLFLAGS)
|
||||
AC_SUBST(XLIBS)
|
||||
|
||||
AC_SUBST(X_EXTRA_LIBS)
|
||||
|
||||
dnl ===============================================
|
||||
dnl End of stuff that uses X
|
||||
dnl ===============================================
|
||||
|
||||
dnl =========
|
||||
dnl Debugging
|
||||
dnl =========
|
||||
AC_ARG_ENABLE(debug,
|
||||
[ --enable-debug enable debugging ],,enable_debug=no)
|
||||
if test "$enable_debug" = yes; then
|
||||
DFLAGS="-Wall -g -ansi -pedantic"
|
||||
fi
|
||||
AC_SUBST(DFLAGS)
|
||||
|
||||
dnl ============
|
||||
dnl Check for OS
|
||||
dnl ============
|
||||
|
||||
AC_CANONICAL_HOST
|
||||
|
||||
arch=""
|
||||
case ${host_os} in
|
||||
linux*)
|
||||
SETUID_FLAGS="-m 4755 -o root -g root"
|
||||
OS=linux
|
||||
AC_DEFINE(LINUX)
|
||||
;;
|
||||
freebsd*)
|
||||
OS=freebsd
|
||||
dnl AC_DEFINE(FREEBSD)
|
||||
;;
|
||||
*)
|
||||
echo ""
|
||||
echo "${host_os} is NOT supported"
|
||||
echo ""
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
AC_SUBST(OS)
|
||||
AC_SUBST(SETUID_FLAGS)
|
||||
AC_SUBST(LIBS)
|
||||
|
||||
|
||||
dnl =============================
|
||||
dnl Checks for library functions.
|
||||
dnl =============================
|
||||
|
||||
LIBRARY_SEARCH_PATH="$lib_search_path"
|
||||
HEADER_SEARCH_PATH="$inc_search_path"
|
||||
|
||||
AC_SUBST(LIBRARY_SEARCH_PATH)
|
||||
AC_SUBST(HEADER_SEARCH_PATH)
|
||||
|
||||
|
||||
dnl Checks for header files.
|
||||
AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h)
|
||||
AC_CHECK_HEADERS(string.h,, [
|
||||
AC_CHECK_HEADERS(strings.h,,)])
|
||||
|
||||
dnl Checks for typedefs, structures, and compiler characteristics.
|
||||
AC_CHECK_FUNCS(select)
|
||||
|
||||
dnl Checks for library functions.
|
||||
|
||||
AC_OUTPUT(Makefile src/Makefile doc/Makefile)
|
5
wmlongrun/doc/Makefile.am
Normal file
5
wmlongrun/doc/Makefile.am
Normal file
|
@ -0,0 +1,5 @@
|
|||
|
||||
man_MANS = wmlongrun.1
|
||||
|
||||
EXTRA_DIST = $(man_MANS)
|
||||
|
226
wmlongrun/doc/Makefile.in
Normal file
226
wmlongrun/doc/Makefile.in
Normal file
|
@ -0,0 +1,226 @@
|
|||
# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
|
||||
|
||||
# Copyright (C) 1994, 1995-8, 1999, 2001 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.
|
||||
|
||||
|
||||
SHELL = @SHELL@
|
||||
|
||||
srcdir = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
VPATH = @srcdir@
|
||||
prefix = @prefix@
|
||||
exec_prefix = @exec_prefix@
|
||||
|
||||
bindir = @bindir@
|
||||
sbindir = @sbindir@
|
||||
libexecdir = @libexecdir@
|
||||
datadir = @datadir@
|
||||
sysconfdir = @sysconfdir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
localstatedir = @localstatedir@
|
||||
libdir = @libdir@
|
||||
infodir = @infodir@
|
||||
mandir = @mandir@
|
||||
includedir = @includedir@
|
||||
oldincludedir = /usr/include
|
||||
|
||||
DESTDIR =
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
|
||||
top_builddir = ..
|
||||
|
||||
ACLOCAL = @ACLOCAL@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
transform = @program_transform_name@
|
||||
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
host_alias = @host_alias@
|
||||
host_triplet = @host@
|
||||
CC = @CC@
|
||||
DFLAGS = @DFLAGS@
|
||||
HEADER_SEARCH_PATH = @HEADER_SEARCH_PATH@
|
||||
LIBRARY_SEARCH_PATH = @LIBRARY_SEARCH_PATH@
|
||||
LIBS = @LIBS@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
OS = @OS@
|
||||
PACKAGE = @PACKAGE@
|
||||
SETUID_FLAGS = @SETUID_FLAGS@
|
||||
VERSION = @VERSION@
|
||||
XCFLAGS = @XCFLAGS@
|
||||
XLFLAGS = @XLFLAGS@
|
||||
XLIBS = @XLIBS@
|
||||
X_EXTRA_LIBS = @X_EXTRA_LIBS@
|
||||
X_LIBRARY_PATH = @X_LIBRARY_PATH@
|
||||
|
||||
man_MANS = wmlongrun.1
|
||||
|
||||
EXTRA_DIST = $(man_MANS)
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
||||
CONFIG_HEADER = ../config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
man1dir = $(mandir)/man1
|
||||
MANS = $(man_MANS)
|
||||
|
||||
NROFF = nroff
|
||||
DIST_COMMON = Makefile.am Makefile.in
|
||||
|
||||
|
||||
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
|
||||
|
||||
TAR = tar
|
||||
GZIP_ENV = --best
|
||||
all: all-redirect
|
||||
.SUFFIXES:
|
||||
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
|
||||
cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps doc/Makefile
|
||||
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
cd $(top_builddir) \
|
||||
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||
|
||||
|
||||
install-man1:
|
||||
$(mkinstalldirs) $(DESTDIR)$(man1dir)
|
||||
@list='$(man1_MANS)'; \
|
||||
l2='$(man_MANS)'; for i in $$l2; do \
|
||||
case "$$i" in \
|
||||
*.1*) list="$$list $$i" ;; \
|
||||
esac; \
|
||||
done; \
|
||||
for i in $$list; do \
|
||||
if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
|
||||
else file=$$i; fi; \
|
||||
ext=`echo $$i | sed -e 's/^.*\\.//'`; \
|
||||
inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
|
||||
inst=`echo $$inst | sed '$(transform)'`.$$ext; \
|
||||
echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst"; \
|
||||
$(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst; \
|
||||
done
|
||||
|
||||
uninstall-man1:
|
||||
@list='$(man1_MANS)'; \
|
||||
l2='$(man_MANS)'; for i in $$l2; do \
|
||||
case "$$i" in \
|
||||
*.1*) list="$$list $$i" ;; \
|
||||
esac; \
|
||||
done; \
|
||||
for i in $$list; do \
|
||||
ext=`echo $$i | sed -e 's/^.*\\.//'`; \
|
||||
inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
|
||||
inst=`echo $$inst | sed '$(transform)'`.$$ext; \
|
||||
echo " rm -f $(DESTDIR)$(man1dir)/$$inst"; \
|
||||
rm -f $(DESTDIR)$(man1dir)/$$inst; \
|
||||
done
|
||||
install-man: $(MANS)
|
||||
@$(NORMAL_INSTALL)
|
||||
$(MAKE) $(AM_MAKEFLAGS) install-man1
|
||||
uninstall-man:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
$(MAKE) $(AM_MAKEFLAGS) uninstall-man1
|
||||
tags: TAGS
|
||||
TAGS:
|
||||
|
||||
|
||||
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
|
||||
|
||||
subdir = doc
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
@for file in $(DISTFILES); do \
|
||||
d=$(srcdir); \
|
||||
if test -d $$d/$$file; then \
|
||||
cp -pr $$d/$$file $(distdir)/$$file; \
|
||||
else \
|
||||
test -f $(distdir)/$$file \
|
||||
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|
||||
|| cp -p $$d/$$file $(distdir)/$$file || :; \
|
||||
fi; \
|
||||
done
|
||||
info-am:
|
||||
info: info-am
|
||||
dvi-am:
|
||||
dvi: dvi-am
|
||||
check-am: all-am
|
||||
check: check-am
|
||||
installcheck-am:
|
||||
installcheck: installcheck-am
|
||||
install-exec-am:
|
||||
install-exec: install-exec-am
|
||||
|
||||
install-data-am: install-man
|
||||
install-data: install-data-am
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
install: install-am
|
||||
uninstall-am: uninstall-man
|
||||
uninstall: uninstall-am
|
||||
all-am: Makefile $(MANS)
|
||||
all-redirect: all-am
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
|
||||
installdirs:
|
||||
$(mkinstalldirs) $(DESTDIR)$(mandir)/man1
|
||||
|
||||
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-rm -f Makefile $(CONFIG_CLEAN_FILES)
|
||||
-rm -f config.cache config.log stamp-h stamp-h[0-9]*
|
||||
|
||||
maintainer-clean-generic:
|
||||
mostlyclean-am: mostlyclean-generic
|
||||
|
||||
mostlyclean: mostlyclean-am
|
||||
|
||||
clean-am: clean-generic mostlyclean-am
|
||||
|
||||
clean: clean-am
|
||||
|
||||
distclean-am: distclean-generic clean-am
|
||||
|
||||
distclean: distclean-am
|
||||
|
||||
maintainer-clean-am: maintainer-clean-generic distclean-am
|
||||
@echo "This command is intended for maintainers to use;"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
|
||||
maintainer-clean: maintainer-clean-am
|
||||
|
||||
.PHONY: install-man1 uninstall-man1 install-man uninstall-man tags \
|
||||
distdir info-am info dvi-am dvi check check-am installcheck-am \
|
||||
installcheck install-exec-am install-exec install-data-am install-data \
|
||||
install-am install uninstall-am uninstall all-redirect all-am all \
|
||||
installdirs mostlyclean-generic distclean-generic clean-generic \
|
||||
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
|
||||
|
||||
|
||||
# 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:
|
82
wmlongrun/doc/wmlongrun.1
Normal file
82
wmlongrun/doc/wmlongrun.1
Normal file
|
@ -0,0 +1,82 @@
|
|||
.\" Hey, EMACS: -*- nroff -*-
|
||||
.\" First parameter, NAME, should be all caps
|
||||
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
|
||||
.\" other parameters are allowed: see man(7), man(1)
|
||||
.TH WMLONGRUN 1 "March 13, 2002"
|
||||
.\" Please adjust this date whenever revising the manpage.
|
||||
.\"
|
||||
.\" Some roff macros, for reference:
|
||||
.\" .nh disable hyphenation
|
||||
.\" .hy enable hyphenation
|
||||
.\" .ad l left justify
|
||||
.\" .ad b justify to both left and right margins
|
||||
.\" .nf disable filling
|
||||
.\" .fi enable filling
|
||||
.\" .br insert line break
|
||||
.\" .sp <n> insert n+1 empty lines
|
||||
.\" for manpage-specific macros, see man(7)
|
||||
.SH NAME
|
||||
wmlongrun \- A dockapp to monitor the LongRun(tm) status on Crusoe(tm)
|
||||
processors.
|
||||
.SH SYNOPSIS
|
||||
.B wmlongrun [options]
|
||||
.SH DESCRIPTION
|
||||
This manual page documents briefly the
|
||||
.B wmlongrun
|
||||
command.
|
||||
.PP
|
||||
.\" TeX users may be more comfortable with the \fB<whatever>\fP and
|
||||
.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
|
||||
.\" respectively.
|
||||
\fBWMLongRun\fP is a program to monitor for LongRun(tm). It displays the current
|
||||
LongRun(tm) settings and status: the frequency, the LongRun(tm) flags
|
||||
(performance or economy), and the performance level (expressed as a percentile).
|
||||
|
||||
It is a dockapp (dockable application) that is supported by X window managers
|
||||
such as Window Maker, AfterStep, BlackBox, and Enlightenment. It has two user
|
||||
interfaces: an LCD look-alike user interface and an LED-interface. If you
|
||||
select the LCD-interfaces, the back-light may be turned on/off by clicking the
|
||||
mouse button over the application.
|
||||
|
||||
.SH OPTIONS
|
||||
This program follows the usual GNU command line syntax, with long options
|
||||
starting with two dashes (`\-'). A summary of options is included below.
|
||||
.TP
|
||||
.B \-d, \-\-display <string>
|
||||
Attempt to open a window on the named X display. In the absence of this option,
|
||||
the display specified by the
|
||||
.B DISPLAY
|
||||
environment variable is used.
|
||||
.TP
|
||||
.B \-bl, \-\-backlight
|
||||
turn on back-light.
|
||||
.TP
|
||||
.B \-lc, \-\-light-color <color>
|
||||
back-light color. (rgb:6E/C6/3B is default)
|
||||
.TP
|
||||
.B \-i, \-\-interval <number>
|
||||
number of secs between updates. (1 is default)
|
||||
.TP
|
||||
.B \-cd, \-\-cpuid\-device <device>
|
||||
specify Linux CPUID device ('/dev/cpu/0/cpuid' is default)
|
||||
.TP
|
||||
.B \-md, \-\-msr\-device <device>
|
||||
specify Linux MSR device ('/dev/cpu/0/msr' is default)
|
||||
.TP
|
||||
.B \-l, \-\-led
|
||||
run the application with LED interface
|
||||
.TP
|
||||
.B \-h, \-\-help
|
||||
show help text and exit.
|
||||
.TP
|
||||
.B \-v, \-\-version
|
||||
show program version and exit.
|
||||
.TP
|
||||
.B \-w, \-\-windowed
|
||||
run the application in windowed mode
|
||||
.TP
|
||||
.B \-bw, \-\-broken\-wm
|
||||
activate broken window manager fix
|
||||
|
||||
.SH AUTHOR
|
||||
Seiichi SATO <ssato@sh.rim.or.jp>.
|
251
wmlongrun/install-sh
Executable file
251
wmlongrun/install-sh
Executable file
|
@ -0,0 +1,251 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# install - install a program, script, or datafile
|
||||
# This comes from X11R5 (mit/util/scripts/install.sh).
|
||||
#
|
||||
# Copyright 1991 by the Massachusetts Institute of Technology
|
||||
#
|
||||
# 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 M.I.T. not be used in advertising or
|
||||
# publicity pertaining to distribution of the software without specific,
|
||||
# written prior permission. M.I.T. makes no representations about the
|
||||
# suitability of this software for any purpose. It is provided "as is"
|
||||
# without express or implied warranty.
|
||||
#
|
||||
# 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 "install: no input file specified"
|
||||
exit 1
|
||||
else
|
||||
true
|
||||
fi
|
||||
|
||||
if [ x"$dir_arg" != x ]; then
|
||||
dst=$src
|
||||
src=""
|
||||
|
||||
if [ -d $dst ]; then
|
||||
instcmd=:
|
||||
chmodcmd=""
|
||||
else
|
||||
instcmd=mkdir
|
||||
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 -o -d $src ]
|
||||
then
|
||||
true
|
||||
else
|
||||
echo "install: $src does not exist"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ x"$dst" = x ]
|
||||
then
|
||||
echo "install: no destination specified"
|
||||
exit 1
|
||||
else
|
||||
true
|
||||
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
|
||||
true
|
||||
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
|
||||
true
|
||||
fi
|
||||
|
||||
pathcomp="${pathcomp}/"
|
||||
done
|
||||
fi
|
||||
|
||||
if [ x"$dir_arg" != x ]
|
||||
then
|
||||
$doit $instcmd $dst &&
|
||||
|
||||
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
|
||||
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&
|
||||
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi &&
|
||||
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; 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
|
||||
true
|
||||
fi
|
||||
|
||||
# Make a temp file name in the proper directory.
|
||||
|
||||
dsttmp=$dstdir/#inst.$$#
|
||||
|
||||
# Move or copy the file name to the temp name
|
||||
|
||||
$doit $instcmd $src $dsttmp &&
|
||||
|
||||
trap "rm -f ${dsttmp}" 0 &&
|
||||
|
||||
# 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 true;fi &&
|
||||
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi &&
|
||||
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi &&
|
||||
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi &&
|
||||
|
||||
# Now rename the file to the real destination.
|
||||
|
||||
$doit $rmcmd -f $dstdir/$dstfile &&
|
||||
$doit $mvcmd $dsttmp $dstdir/$dstfile
|
||||
|
||||
fi &&
|
||||
|
||||
|
||||
exit 0
|
198
wmlongrun/missing
Executable file
198
wmlongrun/missing
Executable file
|
@ -0,0 +1,198 @@
|
|||
#! /bin/sh
|
||||
# Common stub for a few missing GNU programs while installing.
|
||||
# Copyright (C) 1996, 1997, 2001, 2002 Free Software Foundation, Inc.
|
||||
# Franc,ois 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.
|
||||
|
||||
if test $# -eq 0; then
|
||||
echo 1>&2 "Try \`$0 --help' for more information"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# In the cases where this matters, `missing' is being run in the
|
||||
# srcdir already.
|
||||
if test -f configure.in; then
|
||||
configure_ac=configure.ac
|
||||
else
|
||||
configure_ac=configure.in
|
||||
fi
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
lex create \`lex.yy.c', if possible, from existing .c
|
||||
makeinfo touch the output file
|
||||
yacc create \`y.tab.[ch]', if possible, from existing .[ch]"
|
||||
;;
|
||||
|
||||
-v|--v|--ve|--ver|--vers|--versi|--versio|--version)
|
||||
echo "missing - GNU libit 0.0"
|
||||
;;
|
||||
|
||||
-*)
|
||||
echo 1>&2 "$0: Unknown \`$1' option"
|
||||
echo 1>&2 "Try \`$0 --help' for more information"
|
||||
exit 1
|
||||
;;
|
||||
|
||||
aclocal*)
|
||||
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)
|
||||
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)
|
||||
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*)
|
||||
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
|
||||
;;
|
||||
|
||||
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
|
||||
;;
|
||||
|
||||
makeinfo)
|
||||
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
|
||||
;;
|
||||
|
||||
*)
|
||||
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 prerequirements 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
|
40
wmlongrun/mkinstalldirs
Executable file
40
wmlongrun/mkinstalldirs
Executable file
|
@ -0,0 +1,40 @@
|
|||
#! /bin/sh
|
||||
# mkinstalldirs --- make directory hierarchy
|
||||
# Author: Noah Friedman <friedman@prep.ai.mit.edu>
|
||||
# Created: 1993-05-16
|
||||
# Public domain
|
||||
|
||||
# $Id: mkinstalldirs,v 1.13 1999/01/05 03:18:55 bje Exp $
|
||||
|
||||
errstatus=0
|
||||
|
||||
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
|
||||
fi
|
||||
fi
|
||||
|
||||
pathcomp="$pathcomp/"
|
||||
done
|
||||
done
|
||||
|
||||
exit $errstatus
|
||||
|
||||
# mkinstalldirs ends here
|
33
wmlongrun/src/Makefile.am
Normal file
33
wmlongrun/src/Makefile.am
Normal file
|
@ -0,0 +1,33 @@
|
|||
bin_PROGRAMS = wmlongrun
|
||||
|
||||
wmlongrun_SOURCES = \
|
||||
longrun_@OS@.c \
|
||||
longrun.h \
|
||||
main.c \
|
||||
dockapp.c \
|
||||
dockapp.h \
|
||||
common.h \
|
||||
backdrop_off.xpm \
|
||||
backdrop_on.xpm \
|
||||
backdrop_led.xpm \
|
||||
parts.xpm
|
||||
|
||||
EXTRA_wmlongrun_SOURCES = \
|
||||
longrun_linux.c \
|
||||
longrun_freebsd.c
|
||||
|
||||
CPPFLAGS = \
|
||||
@CPPFLAGS@ \
|
||||
@DFLAGS@
|
||||
|
||||
INCLUDES = \
|
||||
@HEADER_SEARCH_PATH@
|
||||
|
||||
wmlongrun_LDADD = \
|
||||
@LIBRARY_SEARCH_PATH@ \
|
||||
@XLIBS@
|
||||
|
||||
INSTALL_PROGRAM = \
|
||||
@INSTALL_PROGRAM@ \
|
||||
@SETUID_FLAGS@ \
|
||||
$(AM_INSTALL_PROGRAM_FLAGS)
|
300
wmlongrun/src/Makefile.in
Normal file
300
wmlongrun/src/Makefile.in
Normal file
|
@ -0,0 +1,300 @@
|
|||
# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
|
||||
|
||||
# Copyright (C) 1994, 1995-8, 1999, 2001 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.
|
||||
|
||||
|
||||
SHELL = @SHELL@
|
||||
|
||||
srcdir = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
VPATH = @srcdir@
|
||||
prefix = @prefix@
|
||||
exec_prefix = @exec_prefix@
|
||||
|
||||
bindir = @bindir@
|
||||
sbindir = @sbindir@
|
||||
libexecdir = @libexecdir@
|
||||
datadir = @datadir@
|
||||
sysconfdir = @sysconfdir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
localstatedir = @localstatedir@
|
||||
libdir = @libdir@
|
||||
infodir = @infodir@
|
||||
mandir = @mandir@
|
||||
includedir = @includedir@
|
||||
oldincludedir = /usr/include
|
||||
|
||||
DESTDIR =
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
|
||||
top_builddir = ..
|
||||
|
||||
ACLOCAL = @ACLOCAL@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
transform = @program_transform_name@
|
||||
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
host_alias = @host_alias@
|
||||
host_triplet = @host@
|
||||
CC = @CC@
|
||||
DFLAGS = @DFLAGS@
|
||||
HEADER_SEARCH_PATH = @HEADER_SEARCH_PATH@
|
||||
LIBRARY_SEARCH_PATH = @LIBRARY_SEARCH_PATH@
|
||||
LIBS = @LIBS@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
OS = @OS@
|
||||
PACKAGE = @PACKAGE@
|
||||
SETUID_FLAGS = @SETUID_FLAGS@
|
||||
VERSION = @VERSION@
|
||||
XCFLAGS = @XCFLAGS@
|
||||
XLFLAGS = @XLFLAGS@
|
||||
XLIBS = @XLIBS@
|
||||
X_EXTRA_LIBS = @X_EXTRA_LIBS@
|
||||
X_LIBRARY_PATH = @X_LIBRARY_PATH@
|
||||
|
||||
bin_PROGRAMS = wmlongrun
|
||||
|
||||
wmlongrun_SOURCES = longrun_@OS@.c longrun.h main.c dockapp.c dockapp.h common.h backdrop_off.xpm backdrop_on.xpm backdrop_led.xpm parts.xpm
|
||||
|
||||
|
||||
EXTRA_wmlongrun_SOURCES = longrun_linux.c longrun_freebsd.c
|
||||
|
||||
|
||||
CPPFLAGS = @CPPFLAGS@ @DFLAGS@
|
||||
|
||||
|
||||
INCLUDES = @HEADER_SEARCH_PATH@
|
||||
|
||||
|
||||
wmlongrun_LDADD = @LIBRARY_SEARCH_PATH@ @XLIBS@
|
||||
|
||||
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@ @SETUID_FLAGS@ $(AM_INSTALL_PROGRAM_FLAGS)
|
||||
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
||||
CONFIG_HEADER = ../config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
PROGRAMS = $(bin_PROGRAMS)
|
||||
|
||||
|
||||
DEFS = @DEFS@ -I. -I$(srcdir) -I..
|
||||
LDFLAGS = @LDFLAGS@
|
||||
X_CFLAGS = @X_CFLAGS@
|
||||
X_LIBS = @X_LIBS@
|
||||
X_PRE_LIBS = @X_PRE_LIBS@
|
||||
wmlongrun_OBJECTS = longrun_@OS@.o main.o dockapp.o
|
||||
wmlongrun_DEPENDENCIES =
|
||||
wmlongrun_LDFLAGS =
|
||||
CFLAGS = @CFLAGS@
|
||||
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||
CCLD = $(CC)
|
||||
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
|
||||
DIST_COMMON = Makefile.am Makefile.in
|
||||
|
||||
|
||||
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
|
||||
|
||||
TAR = tar
|
||||
GZIP_ENV = --best
|
||||
SOURCES = $(wmlongrun_SOURCES) $(EXTRA_wmlongrun_SOURCES)
|
||||
OBJECTS = $(wmlongrun_OBJECTS)
|
||||
|
||||
all: all-redirect
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .S .c .o .s
|
||||
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
|
||||
cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/Makefile
|
||||
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
cd $(top_builddir) \
|
||||
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||
|
||||
|
||||
mostlyclean-binPROGRAMS:
|
||||
|
||||
clean-binPROGRAMS:
|
||||
-test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
|
||||
|
||||
distclean-binPROGRAMS:
|
||||
|
||||
maintainer-clean-binPROGRAMS:
|
||||
|
||||
install-binPROGRAMS: $(bin_PROGRAMS)
|
||||
@$(NORMAL_INSTALL)
|
||||
$(mkinstalldirs) $(DESTDIR)$(bindir)
|
||||
@list='$(bin_PROGRAMS)'; for p in $$list; do \
|
||||
if test -f $$p; then \
|
||||
echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
|
||||
$(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
|
||||
else :; fi; \
|
||||
done
|
||||
|
||||
uninstall-binPROGRAMS:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
list='$(bin_PROGRAMS)'; for p in $$list; do \
|
||||
rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
|
||||
done
|
||||
|
||||
.c.o:
|
||||
$(COMPILE) -c $<
|
||||
|
||||
.s.o:
|
||||
$(COMPILE) -c $<
|
||||
|
||||
.S.o:
|
||||
$(COMPILE) -c $<
|
||||
|
||||
mostlyclean-compile:
|
||||
-rm -f *.o core *.core
|
||||
|
||||
clean-compile:
|
||||
|
||||
distclean-compile:
|
||||
-rm -f *.tab.c
|
||||
|
||||
maintainer-clean-compile:
|
||||
|
||||
wmlongrun: $(wmlongrun_OBJECTS) $(wmlongrun_DEPENDENCIES)
|
||||
@rm -f wmlongrun
|
||||
$(LINK) $(wmlongrun_LDFLAGS) $(wmlongrun_OBJECTS) $(wmlongrun_LDADD) $(LIBS)
|
||||
|
||||
tags: TAGS
|
||||
|
||||
ID: $(HEADERS) $(SOURCES) $(LISP)
|
||||
list='$(SOURCES) $(HEADERS)'; \
|
||||
unique=`for i in $$list; do echo $$i; done | \
|
||||
awk ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
here=`pwd` && cd $(srcdir) \
|
||||
&& mkid -f$$here/ID $$unique $(LISP)
|
||||
|
||||
TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
list='$(SOURCES) $(HEADERS)'; \
|
||||
unique=`for i in $$list; do echo $$i; done | \
|
||||
awk ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
|
||||
|| (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
|
||||
|
||||
mostlyclean-tags:
|
||||
|
||||
clean-tags:
|
||||
|
||||
distclean-tags:
|
||||
-rm -f TAGS ID
|
||||
|
||||
maintainer-clean-tags:
|
||||
|
||||
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
|
||||
|
||||
subdir = src
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
@for file in $(DISTFILES); do \
|
||||
d=$(srcdir); \
|
||||
if test -d $$d/$$file; then \
|
||||
cp -pr $$d/$$file $(distdir)/$$file; \
|
||||
else \
|
||||
test -f $(distdir)/$$file \
|
||||
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|
||||
|| cp -p $$d/$$file $(distdir)/$$file || :; \
|
||||
fi; \
|
||||
done
|
||||
info-am:
|
||||
info: info-am
|
||||
dvi-am:
|
||||
dvi: dvi-am
|
||||
check-am: all-am
|
||||
check: check-am
|
||||
installcheck-am:
|
||||
installcheck: installcheck-am
|
||||
install-exec-am: install-binPROGRAMS
|
||||
install-exec: install-exec-am
|
||||
|
||||
install-data-am:
|
||||
install-data: install-data-am
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
install: install-am
|
||||
uninstall-am: uninstall-binPROGRAMS
|
||||
uninstall: uninstall-am
|
||||
all-am: Makefile $(PROGRAMS)
|
||||
all-redirect: all-am
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
|
||||
installdirs:
|
||||
$(mkinstalldirs) $(DESTDIR)$(bindir)
|
||||
|
||||
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-rm -f Makefile $(CONFIG_CLEAN_FILES)
|
||||
-rm -f config.cache config.log stamp-h stamp-h[0-9]*
|
||||
|
||||
maintainer-clean-generic:
|
||||
mostlyclean-am: mostlyclean-binPROGRAMS mostlyclean-compile \
|
||||
mostlyclean-tags mostlyclean-generic
|
||||
|
||||
mostlyclean: mostlyclean-am
|
||||
|
||||
clean-am: clean-binPROGRAMS clean-compile clean-tags clean-generic \
|
||||
mostlyclean-am
|
||||
|
||||
clean: clean-am
|
||||
|
||||
distclean-am: distclean-binPROGRAMS distclean-compile distclean-tags \
|
||||
distclean-generic clean-am
|
||||
|
||||
distclean: distclean-am
|
||||
|
||||
maintainer-clean-am: maintainer-clean-binPROGRAMS \
|
||||
maintainer-clean-compile maintainer-clean-tags \
|
||||
maintainer-clean-generic distclean-am
|
||||
@echo "This command is intended for maintainers to use;"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
|
||||
maintainer-clean: maintainer-clean-am
|
||||
|
||||
.PHONY: mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \
|
||||
maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \
|
||||
mostlyclean-compile distclean-compile clean-compile \
|
||||
maintainer-clean-compile tags mostlyclean-tags distclean-tags \
|
||||
clean-tags maintainer-clean-tags distdir info-am info dvi-am dvi check \
|
||||
check-am installcheck-am installcheck install-exec-am install-exec \
|
||||
install-data-am install-data install-am install uninstall-am uninstall \
|
||||
all-redirect all-am all installdirs mostlyclean-generic \
|
||||
distclean-generic clean-generic maintainer-clean-generic clean \
|
||||
mostlyclean distclean maintainer-clean
|
||||
|
||||
|
||||
# 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:
|
125
wmlongrun/src/backdrop_led.xpm
Normal file
125
wmlongrun/src/backdrop_led.xpm
Normal file
|
@ -0,0 +1,125 @@
|
|||
/* XPM */
|
||||
static char * backdrop_led_xpm[] = {
|
||||
"58 58 64 1",
|
||||
" c None",
|
||||
". c #000000",
|
||||
"+ c #646464",
|
||||
"@ c #202020",
|
||||
"# c #C7C7C7",
|
||||
"$ c #004941",
|
||||
"% c #188A86",
|
||||
"& c #20B2AE",
|
||||
"* c #273B00",
|
||||
"= c #293B00",
|
||||
"- c #2A3A00",
|
||||
"; c #2B3A00",
|
||||
"> c #2C3900",
|
||||
", c #2D3800",
|
||||
"' c #2E3800",
|
||||
") c #2F3700",
|
||||
"! c #303600",
|
||||
"~ c #313600",
|
||||
"{ c #323500",
|
||||
"] c #333400",
|
||||
"^ c #343400",
|
||||
"/ c #353300",
|
||||
"( c #363200",
|
||||
"_ c #373200",
|
||||
": c #383100",
|
||||
"< c #393000",
|
||||
"[ c #3A3000",
|
||||
"} c #3B2F00",
|
||||
"| c #3C2E00",
|
||||
"1 c #3D2E00",
|
||||
"2 c #3E2D00",
|
||||
"3 c #3F2C00",
|
||||
"4 c #402C00",
|
||||
"5 c #412B00",
|
||||
"6 c #422A00",
|
||||
"7 c #432A00",
|
||||
"8 c #452900",
|
||||
"9 c #462900",
|
||||
"0 c #472800",
|
||||
"a c #482700",
|
||||
"b c #492700",
|
||||
"c c #4A2600",
|
||||
"d c #4B2500",
|
||||
"e c #4C2500",
|
||||
"f c #4D2400",
|
||||
"g c #4E2300",
|
||||
"h c #4F2300",
|
||||
"i c #502200",
|
||||
"j c #512100",
|
||||
"k c #522100",
|
||||
"l c #532000",
|
||||
"m c #541F00",
|
||||
"n c #551F00",
|
||||
"o c #561E00",
|
||||
"p c #571D00",
|
||||
"q c #581D00",
|
||||
"r c #591C00",
|
||||
"s c #5A1B00",
|
||||
"t c #5B1B00",
|
||||
"u c #5C1A00",
|
||||
"v c #5D1900",
|
||||
"w c #5E1900",
|
||||
"x c #5F1800",
|
||||
"y c #601700",
|
||||
".........................................................+",
|
||||
".@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@.#",
|
||||
".@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#",
|
||||
".@@@@$$$$$$$$$$$$$$$$$$$$@@@@@@@$$$$$$$$$$$$$$$$$$$$@@@@@#",
|
||||
".@@@$$$$$$$$$$$$$$$$$$$$$$@@@@@$$$$$$$$$$$$$$$$$$$$$$@@@@#",
|
||||
".@@$$$@@@@$$$@@@@$$$@@@@$$$@@@$$@@@@@$$$@@@@$$@$@@@$$$@@@#",
|
||||
".@@$$@@$$@@$@@$$@@$@@$$@@$$@@@$$@@$$@@$@@$$@@$@@@$@@$$@@@#",
|
||||
".@@$$@@$$@@$@@$$$$$@@$$@@$$@@@$$@@$$@@$@@$$@@$@@$$@@$$@@@#",
|
||||
".@@$$@@@@@@$@@$$$$$@@$$@@$$@@@$$@@$$@@$@@@@@@$@@$$$$$$@@@#",
|
||||
".@@$$@@$$$$$@@$$$$$@@$$@@$$@@@$$@@@@@$$@@$$$$$@@$$$$$$@@@#",
|
||||
".@@$$@@$$$$$@@$$@@$@@$$@@$$@@@$$@@$$$$$@@$$$$$@@$$$$$$@@@#",
|
||||
".@@$$$@@@@@$$@@@@$$$@@@@$$$@@@$$@@$$$$$$@@@@@$@@$$$$$$@@@#",
|
||||
".@@@$$$$$$$$$$$$$$$$$$$$$$@@@@@$$$$$$$$$$$$$$$$$$$$$$@@@@#",
|
||||
".@@@@$$$$$$$$$$$$$$$$$$$$@@@@@@@$$$$$$$$$$$$$$$$$$$$@@@@@#",
|
||||
".@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#",
|
||||
".@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#",
|
||||
"+#########################################################",
|
||||
" ",
|
||||
" ",
|
||||
".........................................................+",
|
||||
".@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#",
|
||||
".@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#",
|
||||
".@@@@$$$$$@@@@$$$$$@@@@$$$$$@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#",
|
||||
".@@@$@@@@@$@@$@@@@@$@@$@@@@@$@@@@@@@@@@@@@@@@@@@@@@@@@@@@#",
|
||||
".@@@$@@@@@$@@$@@@@@$@@$@@@@@$@@@@@@@@@@@@@@@@@@@@@@@@@@@@#",
|
||||
".@@@$@@@@@$@@$@@@@@$@@$@@@@@$@@@@@@@@@@@@@@@@@@@@@@@@@@@@#",
|
||||
".@@@$@@@@@$@@$@@@@@$@@$@@@@@$@@%$$$$$%@@%$$$$%@@$$$$@@@@@#",
|
||||
".@@@$@@@@@$@@$@@@@@$@@$@@@@@$@@&@@@@@&@@&@@@@&@$@@@@$@@@@#",
|
||||
".@@@@$$$$$@@@@$$$$$@@@@$$$$$@@@&&@@@&&@@&@@@@&@$@@@@$@@@@#",
|
||||
".@@@$@@@@@$@@$@@@@@$@@$@@@@@$@@&@&@&@&@@&@@@@&@$@@@@$@@@@#",
|
||||
".@@@$@@@@@$@@$@@@@@$@@$@@@@@$@@&@@&@@&@@%&&&&%@%&&&&%@@@@#",
|
||||
".@@@$@@@@@$@@$@@@@@$@@$@@@@@$@@%$$&$$%@@%@@@@%@$@@&@$@@@@#",
|
||||
".@@@$@@@@@$@@$@@@@@$@@$@@@@@$@@&@@@@@&@@&@@@@&@$@&@@$@@@@#",
|
||||
".@@@$@@@@@$@@$@@@@@$@@$@@@@@$@@&@@@@@&@@&@@@@&@$&@@@$@@@@#",
|
||||
".@@@@$$$$$@@@@$$$$$@@@@$$$$$@@@&$$$$$&@@%$$$$%@%&&&&%@@@@#",
|
||||
".@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#",
|
||||
".@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#",
|
||||
"+#########################################################",
|
||||
" ",
|
||||
" ",
|
||||
".........................................................+",
|
||||
".*=-;>,')!~{]^/(_:<[}|1234567890abcdefghijklmnopqrstuvwxy#",
|
||||
".*=-;>,')!~{]^/(_:<[}|1234567890abcdefghijklmnopqrstuvwxy#",
|
||||
".*=-;>,')!~{]^/(_:<[}|1234567890abcdefghijklmnopqrstuvwxy#",
|
||||
".*=-;>,')!~{]^/(_:<[}|1234567890abcdefghijklmnopqrstuvwxy#",
|
||||
".*=-;>,')!~{]^/(_:<[}|1234567890abcdefghijklmnopqrstuvwxy#",
|
||||
".*=-;>,')!~{]^/(_:<[}|1234567890abcdefghijklmnopqrstuvwxy#",
|
||||
".*=-;>,')!~{]^/(_:<[}|1234567890abcdefghijklmnopqrstuvwxy#",
|
||||
".*=-;>,')!~{]^/(_:<[}|1234567890abcdefghijklmnopqrstuvwxy#",
|
||||
".*=-;>,')!~{]^/(_:<[}|1234567890abcdefghijklmnopqrstuvwxy#",
|
||||
".*=-;>,')!~{]^/(_:<[}|1234567890abcdefghijklmnopqrstuvwxy#",
|
||||
".*=-;>,')!~{]^/(_:<[}|1234567890abcdefghijklmnopqrstuvwxy#",
|
||||
".*=-;>,')!~{]^/(_:<[}|1234567890abcdefghijklmnopqrstuvwxy#",
|
||||
".*=-;>,')!~{]^/(_:<[}|1234567890abcdefghijklmnopqrstuvwxy#",
|
||||
".*=-;>,')!~{]^/(_:<[}|1234567890abcdefghijklmnopqrstuvwxy#",
|
||||
".*=-;>,')!~{]^/(_:<[}|1234567890abcdefghijklmnopqrstuvwxy#",
|
||||
".*=-;>,')!~{]^/(_:<[}|1234567890abcdefghijklmnopqrstuvwxy#",
|
||||
"+#########################################################"};
|
71
wmlongrun/src/backdrop_off.xpm
Normal file
71
wmlongrun/src/backdrop_off.xpm
Normal file
|
@ -0,0 +1,71 @@
|
|||
/* XPM */
|
||||
static char * backdrop_off_xpm[] = {
|
||||
"58 58 10 1",
|
||||
" c None",
|
||||
". c #020202",
|
||||
"+ c #0A0A0A",
|
||||
"@ c #484C46",
|
||||
"# c #DEDEDE",
|
||||
"$ c #7C827C",
|
||||
"% c #8E968A",
|
||||
"& c #767C6F",
|
||||
"* c #3E463E",
|
||||
"= c #5E665A",
|
||||
" ...................................................... ",
|
||||
" .++++++++++++++++++++++++++++++++++++++++++++++++++++++. ",
|
||||
".++@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@.#",
|
||||
".+@@$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$.#",
|
||||
".+@$$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%.#",
|
||||
".+@$%%%&&&&&&&&&&&&&&&&&&&&%%%%%%&&&&&&&&&&&&&&&&&&&&%%%.#",
|
||||
".+@$%%&&&&&&&&&&&&&&&&&&&&&&%%%%&&&&&&&&&&&&&&&&&&&&&&%%.#",
|
||||
".+@$%&&&%%%%&&&%%%%&&&%%%%&&&%%&&%%%%%&&&%%%%&&%&%%%&&&%.#",
|
||||
".+@$%&&%%&&%%&%%&&%%&%%&&%%&&%%&&%%&&%%&%%&&%%&%%%&%%&&%.#",
|
||||
".+@$%&&%%&&%%&%%&&&&&%%&&%%&&%%&&%%&&%%&%%&&%%&%%&&%%&&%.#",
|
||||
".+@$%&&%%%%%%&%%&&&&&%%&&%%&&%%&&%%&&%%&%%%%%%&%%&&&&&&%.#",
|
||||
".+@$%&&%%&&&&&%%&&&&&%%&&%%&&%%&&%%%%%&&%%&&&&&%%&&&&&&%.#",
|
||||
".+@$%&&%%&&&&&%%&&%%&%%&&%%&&%%&&%%&&&&&%%&&&&&%%&&&&&&%.#",
|
||||
".+@$%&&&%%%%%&&%%%%&&&%%%%&&&%%&&%%&&&&&&%%%%%&%%&&&&&&%.#",
|
||||
".+@$%%&&&&&&&&&&&&&&&&&&&&&&%%%%&&&&&&&&&&&&&&&&&&&&&&%%.#",
|
||||
".+@$%%%&&&&&&&&&&&&&&&&&&&&%%%%%%&&&&&&&&&&&&&&&&&&&&%%%.#",
|
||||
".+@$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%.#",
|
||||
".+@$%*************************************************%%.#",
|
||||
".+@$%*************************************************=%.#",
|
||||
".+@$%%=================================================%.#",
|
||||
".+@$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%.#",
|
||||
".+@$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%.#",
|
||||
".+@$%%%&&&&&%%%%&&&&&%%%%&&&&&%%%%%%%%%%%%%%%%%%%%%%%%%%.#",
|
||||
".+@$%%&%%%%%&%%&%%%%%&%%&%%%%%&%%%%%%%%%%%%%%%%%%%%%%%%%.#",
|
||||
".+@$%%&%%%%%&%%&%%%%%&%%&%%%%%&%%%%%%%%%%%%%%%%%%%%%%%%%.#",
|
||||
".+@$%%&%%%%%&%%&%%%%%&%%&%%%%%&%%%%%%%%%%%%%%%%%%%%%%%%%.#",
|
||||
".+@$%%&%%%%%&%%&%%%%%&%%&%%%%%&%%%%%%%%%%%%%%%%%%%%%%%%%.#",
|
||||
".+@$%%&%%%%%&%%&%%%%%&%%&%%%%%&%%.%%%%%.%%.%%%.%%%%%%%%%.#",
|
||||
".+@$%%%&&&&&%%%%&&&&&%%%%&&&&&%%%..%%%..%%.%%%.%%%%%%%%%.#",
|
||||
".+@$%%&%%%%%&%%&%%%%%&%%&%%%%%&%%.%.%.%.%%.%%%.%%%%%%%%%.#",
|
||||
".+@$%%&%%%%%&%%&%%%%%&%%&%%%%%&%%.%%.%%.%%.%%%.%%.....%%.#",
|
||||
".+@$%%&%%%%%&%%&%%%%%&%%&%%%%%&%%.%%.%%.%%.....%%%%%.%%%.#",
|
||||
".+@$%%&%%%%%&%%&%%%%%&%%&%%%%%&%%.%%%%%.%%.%%%.%%%%.%%%%.#",
|
||||
".+@$%%&%%%%%&%%&%%%%%&%%&%%%%%&%%.%%%%%.%%.%%%.%%%.%%%%%.#",
|
||||
".+@$%%%&&&&&%%%%&&&&&%%%%&&&&&%%%.%%%%%.%%.%%%.%%.....%%.#",
|
||||
".+@$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%.#",
|
||||
".+@$%*************************************************%%.#",
|
||||
".+@$%*************************************************=%.#",
|
||||
".+@$%%=================================================%.#",
|
||||
".+@$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%.#",
|
||||
".+@$%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%%.#",
|
||||
".+@$%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%%.#",
|
||||
".+@$%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%%.#",
|
||||
".+@$%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%%.#",
|
||||
".+@$%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%%.#",
|
||||
".+@$%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%%.#",
|
||||
".+@$%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%%.#",
|
||||
".+@$%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%%.#",
|
||||
".+@$%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%%.#",
|
||||
".+@$%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%%.#",
|
||||
".+@$%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%%.#",
|
||||
".+@$%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%%.#",
|
||||
".+@$%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%%.#",
|
||||
".+@$%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%%.#",
|
||||
".+@$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%.#",
|
||||
".+@$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%..#",
|
||||
" .......................................................# ",
|
||||
" ###################################################### "};
|
68
wmlongrun/src/backdrop_on.xpm
Normal file
68
wmlongrun/src/backdrop_on.xpm
Normal file
|
@ -0,0 +1,68 @@
|
|||
/* XPM */
|
||||
static char * backdrop_on_xpm[] = {
|
||||
"58 58 7 1",
|
||||
" c None",
|
||||
". c #020202",
|
||||
"+ c #6EC63B s Back0",
|
||||
"@ c #DEDEDE",
|
||||
"# c #6CB237 s Back1",
|
||||
"$ c #3E463E",
|
||||
"% c #000000",
|
||||
" ...................................................... ",
|
||||
" .++++++++++++++++++++++++++++++++++++++++++++++++++++++. ",
|
||||
".++++++++++++++++++++++++++++++++++++++++++++++++++++++++@",
|
||||
".++++++++++++++++++++++++++++++++++++++++++++++++++++++++@",
|
||||
".++++++++++++++++++++++++++++++++++++++++++++++++++++++++@",
|
||||
".++++++####################++++++####################++++@",
|
||||
".+++++######################++++######################+++@",
|
||||
".++++###++++###++++###++++###++##+++++###++++##+#+++###++@",
|
||||
".++++##++##++#++##++#++##++##++##++##++#++##++#+++#++##++@",
|
||||
".++++##++##++#++#####++##++##++##++##++#++##++#++##++##++@",
|
||||
".++++##++++++#++#####++##++##++##++##++#++++++#++######++@",
|
||||
".++++##++#####++#####++##++##++##+++++##++#####++######++@",
|
||||
".++++##++#####++##++#++##++##++##++#####++#####++######++@",
|
||||
".++++###+++++##++++###++++###++##++######+++++#++######++@",
|
||||
".+++++######################++++######################+++@",
|
||||
".++++++####################++++++####################++++@",
|
||||
".++++++++++++++++++++++++++++++++++++++++++++++++++++++++@",
|
||||
".++++$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$+++@",
|
||||
".++++$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$#++@",
|
||||
".+++++#################################################++@",
|
||||
".++++++++++++++++++++++++++++++++++++++++++++++++++++++++@",
|
||||
".++++++++++++++++++++++++++++++++++++++++++++++++++++++++@",
|
||||
".++++++#####++++#####++++#####+++++++++++++++++++++++++++@",
|
||||
".+++++#+++++#++#+++++#++#+++++#++++++++++++++++++++++++++@",
|
||||
".+++++#+++++#++#+++++#++#+++++#++++++++++++++++++++++++++@",
|
||||
".+++++#+++++#++#+++++#++#+++++#++++++++++++++++++++++++++@",
|
||||
".+++++#+++++#++#+++++#++#+++++#++++++++++++++++++++++++++@",
|
||||
".+++++#+++++#++#+++++#++#+++++#++.+++++.++.+++.++++++++++@",
|
||||
".++++++#####++++#####++++#####+++..+++..++.+++.++++++++++@",
|
||||
".+++++#+++++#++#+++++#++#+++++#++.+.+.+.++.+++.++++++++++@",
|
||||
".+++++#+++++#++#+++++#++#+++++#++.++.++.++.+++.++.....+++@",
|
||||
".+++++#+++++#++#+++++#++#+++++#++.++.++.++.....+++++.++++@",
|
||||
".+++++#+++++#++#+++++#++#+++++#++.+++++.++.+++.++++.+++++@",
|
||||
".+++++#+++++#++#+++++#++#+++++#++.+++++.++.+++.+++.++++++@",
|
||||
".++++++#####++++#####++++#####+++.+++++.++.+++.++.....+++@",
|
||||
".++++++++++++++++++++++++++++++++++++++++++++++++++++++++@",
|
||||
".++++$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$+++@",
|
||||
".++++$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$#++@",
|
||||
".+++++#################################################++@",
|
||||
".++++++++++++++++++++++++++++++++++++++++++++++++++++++++@",
|
||||
".++++#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+++@",
|
||||
".++++#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+++@",
|
||||
".++++#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+++@",
|
||||
".++++#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+++@",
|
||||
".++++#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+++@",
|
||||
".++++#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+++@",
|
||||
".++++#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+++@",
|
||||
".++++#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+++@",
|
||||
".++++#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+++@",
|
||||
".++++#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+++@",
|
||||
".++++#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+++@",
|
||||
".++++#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+++@",
|
||||
".++++#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+++@",
|
||||
".++++#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+++@",
|
||||
".++++++++++++++++++++++++++++++++++++++++++++++++++++++++@",
|
||||
".++++++++++++++++++++++++++++++++++++++++++++++++++++++++@",
|
||||
" %++++++++++++++++++++++++++++++++++++++++++++++++++++++@ ",
|
||||
" @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ "};
|
11
wmlongrun/src/common.h
Normal file
11
wmlongrun/src/common.h
Normal file
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
* common.h - common header file of WMLongRun
|
||||
*
|
||||
* Copyright (c) 2001 Seiichi SATO <ssato@sh.rim.or.jp>
|
||||
*
|
||||
* licensed under the GPL
|
||||
*/
|
||||
|
||||
#define LONGRUN_FLAGS_UNKNOWN 0
|
||||
#define LONGRUN_FLAGS_PEFORMANCE 1
|
||||
#define LONGRUN_FLAGS_ECONOMY 2
|
391
wmlongrun/src/dockapp.c
Normal file
391
wmlongrun/src/dockapp.c
Normal file
|
@ -0,0 +1,391 @@
|
|||
/*
|
||||
* Copyright (c) 1999 Alfredo K. Kojima
|
||||
* Copyright (c) 2001, 2002 Seiichi SATO <ssato@sh.rim.or.jp>
|
||||
*
|
||||
* 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
|
||||
* AUTHOR 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.
|
||||
|
||||
* This code is based on libdockapp-0.4.0
|
||||
* modified by Seiichi SATO <ssato@sh.rim.or.jp>
|
||||
*/
|
||||
|
||||
#include "dockapp.h"
|
||||
|
||||
#define WINDOWED_SIZE_W 64
|
||||
#define WINDOWED_SIZE_H 64
|
||||
|
||||
/* global */
|
||||
Display *display = NULL;
|
||||
Bool dockapp_iswindowed = False;
|
||||
Bool dockapp_isbrokenwm = False;
|
||||
|
||||
/* private */
|
||||
static Window window = None;
|
||||
static Window icon_window = None;
|
||||
static GC gc = NULL;
|
||||
static int depth = 0;
|
||||
static Atom delete_win;
|
||||
static int width, height;
|
||||
static int offset_w, offset_h;
|
||||
|
||||
void
|
||||
dockapp_open_window(char *display_specified, char *appname,
|
||||
unsigned w, unsigned h, int argc, char **argv)
|
||||
{
|
||||
XClassHint *classhint;
|
||||
XWMHints *wmhints;
|
||||
Status stat;
|
||||
XTextProperty title;
|
||||
XSizeHints sizehints;
|
||||
Window root;
|
||||
int ww, wh;
|
||||
|
||||
/* Open Connection to X Server */
|
||||
display = XOpenDisplay(display_specified);
|
||||
if (!display) {
|
||||
fprintf(stderr, "%s: could not open display %s!\n", argv[0],
|
||||
XDisplayName(display_specified));
|
||||
exit(1);
|
||||
}
|
||||
root = DefaultRootWindow(display);
|
||||
|
||||
width = w;
|
||||
height = h;
|
||||
|
||||
if (dockapp_iswindowed) {
|
||||
offset_w = (WINDOWED_SIZE_W - w) / 2;
|
||||
offset_h = (WINDOWED_SIZE_H - h) / 2;
|
||||
ww = WINDOWED_SIZE_W;
|
||||
wh = WINDOWED_SIZE_H;
|
||||
} else {
|
||||
offset_w = offset_h = 0;
|
||||
ww = w;
|
||||
wh = h;
|
||||
}
|
||||
|
||||
/* Create Windows */
|
||||
icon_window = XCreateSimpleWindow(display, root, 0, 0, ww, wh, 0, 0, 0);
|
||||
if (dockapp_isbrokenwm) {
|
||||
window = XCreateSimpleWindow(display, root, 0, 0, ww, wh, 0, 0, 0);
|
||||
} else {
|
||||
window = XCreateSimpleWindow(display, root, 0, 0, 1, 1, 0, 0, 0);
|
||||
}
|
||||
|
||||
/* Set ClassHint */
|
||||
classhint = XAllocClassHint();
|
||||
if (classhint == NULL) {
|
||||
fprintf(stderr, "%s: can't allocate memory for wm hints!\n", argv[0]);
|
||||
exit(1);
|
||||
}
|
||||
classhint->res_class = "DockApp";
|
||||
classhint->res_name = appname;
|
||||
XSetClassHint(display, window, classhint);
|
||||
XFree(classhint);
|
||||
|
||||
/* Set WMHints */
|
||||
wmhints = XAllocWMHints();
|
||||
if (wmhints == NULL) {
|
||||
fprintf(stderr, "%s: can't allocate memory for wm hints!\n", argv[0]);
|
||||
exit(1);
|
||||
}
|
||||
wmhints->flags = IconWindowHint | WindowGroupHint;
|
||||
if (!dockapp_iswindowed) {
|
||||
wmhints->flags |= StateHint;
|
||||
wmhints->initial_state = WithdrawnState;
|
||||
}
|
||||
wmhints->window_group = window;
|
||||
wmhints->icon_window = icon_window;
|
||||
XSetWMHints(display, window, wmhints);
|
||||
XFree(wmhints);
|
||||
|
||||
/* Set WM Protocols */
|
||||
delete_win = XInternAtom(display, "WM_DELETE_WINDOW", False);
|
||||
XSetWMProtocols (display, icon_window, &delete_win, 1);
|
||||
|
||||
/* Set Size Hints */
|
||||
sizehints.flags = USSize;
|
||||
if (!dockapp_iswindowed) {
|
||||
sizehints.flags |= USPosition;
|
||||
sizehints.x = sizehints.y = 0;
|
||||
} else {
|
||||
sizehints.flags |= PMinSize | PMaxSize;
|
||||
sizehints.min_width = sizehints.max_width = WINDOWED_SIZE_W;
|
||||
sizehints.min_height = sizehints.max_height = WINDOWED_SIZE_H;
|
||||
}
|
||||
sizehints.width = ww;
|
||||
sizehints.height = wh;
|
||||
XSetWMNormalHints(display, icon_window, &sizehints);
|
||||
|
||||
/* Set WindowTitle for AfterStep Wharf */
|
||||
stat = XStringListToTextProperty(&appname, 1, &title);
|
||||
XSetWMName(display, window, &title);
|
||||
XSetWMName(display, icon_window, &title);
|
||||
|
||||
/* Set Command to start the app so it can be docked properly */
|
||||
XSetCommand(display, window, argv, argc);
|
||||
|
||||
depth = DefaultDepth(display, DefaultScreen(display));
|
||||
gc = DefaultGC(display, DefaultScreen(display));
|
||||
|
||||
XFlush(display);
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
dockapp_set_eventmask(long mask)
|
||||
{
|
||||
XSelectInput(display, icon_window, mask);
|
||||
XSelectInput(display, window, mask);
|
||||
}
|
||||
|
||||
|
||||
static Pixmap
|
||||
create_bg_pixmap(void)
|
||||
{
|
||||
Pixmap bg;
|
||||
|
||||
bg = XCreatePixmap(display, icon_window, WINDOWED_SIZE_W, WINDOWED_SIZE_H,
|
||||
depth);
|
||||
XSetForeground(display, gc, dockapp_getcolor("rgb:ae/aa/ae"));
|
||||
XFillRectangle(display, bg, gc, 0, 0, WINDOWED_SIZE_W, WINDOWED_SIZE_H);
|
||||
XSetForeground(display, gc, dockapp_getcolor("rgb:ff/ff/ff"));
|
||||
XDrawLine(display, bg, gc, 0, 0, 0, 63);
|
||||
XDrawLine(display, bg, gc, 1, 0, 1, 62);
|
||||
XDrawLine(display, bg, gc, 2, 0, 63, 0);
|
||||
XDrawLine(display, bg, gc, 2, 1, 62, 1);
|
||||
XSetForeground(display, gc, dockapp_getcolor("rgb:52/55/52"));
|
||||
XDrawLine(display, bg, gc, 1, 63, 63, 63);
|
||||
XDrawLine(display, bg, gc, 2, 62, 63, 62);
|
||||
XDrawLine(display, bg, gc, 63, 1, 63, 61);
|
||||
XDrawLine(display, bg, gc, 62, 2, 62, 61);
|
||||
|
||||
return bg;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
dockapp_set_background(Pixmap pixmap)
|
||||
{
|
||||
if (dockapp_iswindowed) {
|
||||
Pixmap bg;
|
||||
bg = create_bg_pixmap();
|
||||
XCopyArea(display, pixmap, bg, gc, 0, 0, width, height,
|
||||
offset_w, offset_w);
|
||||
XSetWindowBackgroundPixmap(display, icon_window, bg);
|
||||
XSetWindowBackgroundPixmap(display, window, bg);
|
||||
XFreePixmap(display, bg);
|
||||
} else {
|
||||
XSetWindowBackgroundPixmap(display, icon_window, pixmap);
|
||||
XSetWindowBackgroundPixmap(display, window, pixmap);
|
||||
}
|
||||
XClearWindow(display, icon_window);
|
||||
XFlush(display);
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
dockapp_show(void)
|
||||
{
|
||||
if (!dockapp_iswindowed)
|
||||
XMapRaised(display, window);
|
||||
else
|
||||
XMapRaised(display, icon_window);
|
||||
|
||||
XFlush(display);
|
||||
}
|
||||
|
||||
|
||||
Bool
|
||||
dockapp_xpm2pixmap(char **data, Pixmap *pixmap, Pixmap *mask,
|
||||
XpmColorSymbol * colorSymbol, unsigned int nsymbols)
|
||||
{
|
||||
XpmAttributes xpmAttr;
|
||||
xpmAttr.valuemask = XpmCloseness;
|
||||
xpmAttr.closeness = 40000;
|
||||
|
||||
if (nsymbols) {
|
||||
xpmAttr.colorsymbols = colorSymbol;
|
||||
xpmAttr.numsymbols = nsymbols;
|
||||
xpmAttr.valuemask |= XpmColorSymbols;
|
||||
}
|
||||
|
||||
if (XpmCreatePixmapFromData(display, icon_window, data, pixmap, mask, &xpmAttr) != 0)
|
||||
return False;
|
||||
|
||||
return True;
|
||||
}
|
||||
|
||||
|
||||
Pixmap
|
||||
dockapp_XCreatePixmap(int w, int h)
|
||||
{
|
||||
return (XCreatePixmap(display, icon_window, w, h, depth));
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
dockapp_setshape(Pixmap mask, int x_ofs, int y_ofs)
|
||||
{
|
||||
XShapeCombineMask(display, icon_window, ShapeBounding, -x_ofs, -y_ofs,
|
||||
mask, ShapeSet);
|
||||
XShapeCombineMask(display, window, ShapeBounding, -x_ofs, -y_ofs,
|
||||
mask, ShapeSet);
|
||||
XFlush(display);
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
dockapp_copyarea(Pixmap src, Pixmap dist, int x_src, int y_src, int w, int h,
|
||||
int x_dist, int y_dist)
|
||||
{
|
||||
XCopyArea(display, src, dist, gc, x_src, y_src, w, h, x_dist, y_dist);
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
dockapp_copy2window (Pixmap src)
|
||||
{
|
||||
if (dockapp_isbrokenwm) {
|
||||
XCopyArea(display, src, window, gc, 0, 0, width, height, offset_w,
|
||||
offset_h);
|
||||
} else {
|
||||
XCopyArea(display, src, icon_window, gc, 0, 0, width, height, offset_w,
|
||||
offset_h);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Bool
|
||||
dockapp_nextevent_or_timeout(XEvent *event, unsigned long miliseconds)
|
||||
{
|
||||
struct timeval timeout;
|
||||
fd_set rset;
|
||||
|
||||
XSync(display, False);
|
||||
if (XPending(display)) {
|
||||
XNextEvent(display, event);
|
||||
return True;
|
||||
}
|
||||
|
||||
timeout.tv_sec = miliseconds / 1000;
|
||||
timeout.tv_usec = (miliseconds % 1000) * 1000;
|
||||
|
||||
FD_ZERO(&rset);
|
||||
FD_SET(ConnectionNumber(display), &rset);
|
||||
if (select(ConnectionNumber(display)+1, &rset, NULL, NULL, &timeout) > 0) {
|
||||
XNextEvent(display, event);
|
||||
if (event->type == ClientMessage) {
|
||||
if (event->xclient.data.l[0] == delete_win) {
|
||||
XDestroyWindow(display,event->xclient.window);
|
||||
XCloseDisplay(display);
|
||||
exit(0);
|
||||
}
|
||||
}
|
||||
if (dockapp_iswindowed) {
|
||||
event->xbutton.x -= offset_w;
|
||||
event->xbutton.y -= offset_h;
|
||||
}
|
||||
return True;
|
||||
}
|
||||
|
||||
return False;
|
||||
}
|
||||
|
||||
|
||||
unsigned long
|
||||
dockapp_getcolor(char *color_name)
|
||||
{
|
||||
XColor color;
|
||||
|
||||
if (!XParseColor(display, DefaultColormap(display, DefaultScreen(display)),
|
||||
color_name, &color))
|
||||
fprintf(stderr, "can't parse color %s\n", color_name), exit(1);
|
||||
|
||||
if (!XAllocColor(display, DefaultColormap(display, DefaultScreen(display)),
|
||||
&color)) {
|
||||
fprintf(stderr, "can't allocate color %s. Using black\n", color_name);
|
||||
return BlackPixel(display, DefaultScreen(display));
|
||||
}
|
||||
|
||||
return color.pixel;
|
||||
}
|
||||
|
||||
|
||||
unsigned long
|
||||
dockapp_blendedcolor(char *color_name, int r, int g, int b, float fac)
|
||||
{
|
||||
XColor color;
|
||||
|
||||
if ((r < -255 || r > 255)||(g < -255 || g > 255)||(b < -255 || b > 255)){
|
||||
fprintf(stderr, "r:%d,g:%d,b:%d (r,g,b must be 0 to 255)", r, g, b);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
r *= 255;
|
||||
g *= 255;
|
||||
b *= 255;
|
||||
|
||||
if (!XParseColor(display, DefaultColormap(display, DefaultScreen(display)),
|
||||
color_name, &color))
|
||||
fprintf(stderr, "can't parse color %s\n", color_name), exit(1);
|
||||
|
||||
if (!XAllocColor(display, DefaultColormap(display, DefaultScreen(display)),
|
||||
&color)) {
|
||||
fprintf(stderr, "can't allocate color %s. Using black\n", color_name);
|
||||
return BlackPixel(display, DefaultScreen(display));
|
||||
}
|
||||
|
||||
if (DefaultDepth(display, DefaultScreen(display)) < 16)
|
||||
return color.pixel;
|
||||
|
||||
/* red */
|
||||
if (color.red + r > 0xffff) {
|
||||
color.red = 0xffff;
|
||||
} else if (color.red + r < 0) {
|
||||
color.red = 0;
|
||||
} else {
|
||||
color.red = (unsigned short)(fac * color.red + r);
|
||||
}
|
||||
|
||||
/* green */
|
||||
if (color.green + g > 0xffff) {
|
||||
color.green = 0xffff;
|
||||
} else if (color.green + g < 0) {
|
||||
color.green = 0;
|
||||
} else {
|
||||
color.green = (unsigned short)(fac * color.green + g);
|
||||
}
|
||||
|
||||
/* blue */
|
||||
if (color.blue + b > 0xffff) {
|
||||
color.blue = 0xffff;
|
||||
} else if (color.blue + b < 0) {
|
||||
color.blue = 0;
|
||||
} else {
|
||||
color.blue = (unsigned short)(fac * color.blue + b);
|
||||
}
|
||||
|
||||
color.flags = DoRed | DoGreen | DoBlue;
|
||||
|
||||
if (!XAllocColor(display, DefaultColormap(display, DefaultScreen(display)),
|
||||
&color)) {
|
||||
fprintf(stderr, "can't allocate color %s. Using black\n", color_name);
|
||||
return BlackPixel(display, DefaultScreen(display));
|
||||
}
|
||||
|
||||
return color.pixel;
|
||||
}
|
96
wmlongrun/src/dockapp.h
Normal file
96
wmlongrun/src/dockapp.h
Normal file
|
@ -0,0 +1,96 @@
|
|||
/*
|
||||
* Copyright (c) 1999 Alfredo K. Kojima
|
||||
* Copyright (c) 2001, 2002 Seiichi SATO <ssato@sh.rim.or.jp>
|
||||
*
|
||||
* 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
|
||||
* AUTHOR 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.
|
||||
|
||||
* This code is based on libdockapp-0.4.0
|
||||
* modified by Seiichi SATO <ssato@sh.rim.or.jp>
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <X11/Xlib.h>
|
||||
#include <X11/xpm.h>
|
||||
#include <X11/extensions/shape.h>
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#if STDC_HEADERS
|
||||
# include <stdlib.h>
|
||||
# include <stddef.h>
|
||||
#else
|
||||
# if HAVE_STDLIB_H
|
||||
# include <stdlib.h>
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if HAVE_STRING_H
|
||||
# if !STDC_HEADERS && HAVE_MEMORY_H
|
||||
# include <memory.h>
|
||||
# endif
|
||||
# include <string.h>
|
||||
#endif
|
||||
#if HAVE_STRINGS_H
|
||||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#if HAVE_SELECT
|
||||
# include <sys/select.h>
|
||||
#endif
|
||||
|
||||
#if TIME_WITH_SYS_TIME
|
||||
# include <sys/time.h>
|
||||
# include <time.h>
|
||||
#else
|
||||
# if HAVE_SYS_TIME_H
|
||||
# include <sys/time.h>
|
||||
# else
|
||||
# include <time.h>
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if HAVE_UNISTD_H
|
||||
# include <unistd.h>
|
||||
#else
|
||||
/* We are in trouble. */
|
||||
#endif
|
||||
|
||||
extern Display *display;
|
||||
extern Bool dockapp_iswindowed;
|
||||
extern Bool dockapp_isbrokenwm;
|
||||
|
||||
|
||||
void dockapp_open_window(char *display_specified, char *appname,
|
||||
unsigned w, unsigned h, int argc, char **argv);
|
||||
void dockapp_set_eventmask(long mask);
|
||||
void dockapp_set_background(Pixmap pixmap);
|
||||
void dockapp_show(void);
|
||||
Bool dockapp_xpm2pixmap(char **data, Pixmap * pixmap, Pixmap * mask,
|
||||
XpmColorSymbol * colorSymbol,
|
||||
unsigned int nsymbols);
|
||||
Pixmap dockapp_XCreatePixmap(int w, int h);
|
||||
void dockapp_setshape(Pixmap mask, int x_ofs, int y_ofs);
|
||||
void dockapp_copyarea(Pixmap src, Pixmap dist, int x_src, int y_src,
|
||||
int w, int h, int x_dist, int y_dist);
|
||||
void dockapp_copy2window(Pixmap src);
|
||||
Bool dockapp_nextevent_or_timeout(XEvent * event, unsigned long miliseconds);
|
||||
unsigned long dockapp_getcolor(char *color);
|
||||
unsigned long dockapp_blendedcolor(char *color, int r, int g, int b, float fac);
|
10
wmlongrun/src/longrun.h
Normal file
10
wmlongrun/src/longrun.h
Normal file
|
@ -0,0 +1,10 @@
|
|||
/*
|
||||
* longrun.h - longrun module header file
|
||||
*
|
||||
* Copyright (c) 2001 Seiichi SATO <ssato@sh.rim.or.jp>
|
||||
*
|
||||
* licensed under the GPL
|
||||
*/
|
||||
|
||||
void longrun_init(char *cpuid_dev, char *msr_dev);
|
||||
void longrun_get_stat(int *percent, int *flags, int *mhz, int *voltz);
|
80
wmlongrun/src/longrun_freebsd.c
Normal file
80
wmlongrun/src/longrun_freebsd.c
Normal file
|
@ -0,0 +1,80 @@
|
|||
/*
|
||||
* longrun_freebsd.c - module to get LongRun(TM) status, for FreeBSD
|
||||
*
|
||||
* Copyright(C) 2001,2002 Seiichi SATO <ssato@sh.rim.or.jp>
|
||||
*
|
||||
* licensed under the GPL
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#if defined(HAVE_STRING_H)
|
||||
#include <string.h>
|
||||
#elif defined(HAVE_STRINGS_H)
|
||||
#include <strings.h>
|
||||
#endif
|
||||
#include <unistd.h>
|
||||
#include <err.h>
|
||||
#include <sys/sysctl.h>
|
||||
#include <sys/file.h>
|
||||
#include "longrun.h"
|
||||
#include "common.h"
|
||||
|
||||
#define LONGRUN_MODE_MINFREQUENCY 0x00
|
||||
#define LONGRUN_MODE_ECONOMY 0x01
|
||||
#define LONGRUN_MODE_PERFORMANCE 0x02
|
||||
#define LONGRUN_MODE_MAXFREQUENCY 0x03
|
||||
|
||||
void
|
||||
longrun_init(char *dummy, char *dummy2)
|
||||
{
|
||||
/* You don't need initialization under FreeBSD */
|
||||
}
|
||||
|
||||
/*
|
||||
* percent: performance level (0 to 100)
|
||||
* flags: performance/economy/unknown
|
||||
* mhz: frequency
|
||||
* volts: voltage
|
||||
*/
|
||||
void
|
||||
longrun_get_stat(int *percent, int *flags, int *mhz, int *voltz)
|
||||
{
|
||||
u_int ret_val;
|
||||
size_t len;
|
||||
|
||||
*percent = *mhz = *voltz = *flags = 0;
|
||||
|
||||
/* level */
|
||||
len = sizeof(ret_val);
|
||||
if (sysctlbyname("hw.crusoe.percentage", &ret_val, &len, NULL, 0) == 0)
|
||||
*percent = (int) ret_val;
|
||||
|
||||
/* frequency */
|
||||
if (sysctlbyname("hw.crusoe.frequency", &ret_val, &len, NULL, 0) == 0)
|
||||
*mhz = (int) ret_val;
|
||||
|
||||
/* voltage */
|
||||
if (sysctlbyname("hw.crusoe.voltage", &ret_val, &len, NULL, 0) == 0)
|
||||
*voltz = (int) ret_val;
|
||||
|
||||
/* flags */
|
||||
if (sysctlbyname("hw.crusoe.longrun", &ret_val, &len, NULL, 0) == 0) {
|
||||
switch (ret_val) {
|
||||
case LONGRUN_MODE_MINFREQUENCY:
|
||||
case LONGRUN_MODE_ECONOMY:
|
||||
*flags = LONGRUN_FLAGS_ECONOMY;
|
||||
break;
|
||||
case LONGRUN_MODE_PERFORMANCE:
|
||||
case LONGRUN_MODE_MAXFREQUENCY:
|
||||
*flags = LONGRUN_FLAGS_PEFORMANCE;
|
||||
break;
|
||||
default:
|
||||
*flags = LONGRUN_FLAGS_UNKNOWN;
|
||||
}
|
||||
}
|
||||
}
|
199
wmlongrun/src/longrun_linux.c
Normal file
199
wmlongrun/src/longrun_linux.c
Normal file
|
@ -0,0 +1,199 @@
|
|||
/*
|
||||
* longrun_linux.c - module to get LongRun(TM) status, for GNU/Linux
|
||||
*
|
||||
* Copyright(C) 2001 Transmeta Corporation
|
||||
* Copyright(C) 2001 Seiichi SATO <ssato@sh.rim.or.jp>
|
||||
*
|
||||
* licensed under the GPL
|
||||
*/
|
||||
#undef USE_PREAD
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
#ifdef USE_PREAD
|
||||
#define __USE_UNIX98 /* for pread/pwrite */
|
||||
#endif
|
||||
#include <unistd.h>
|
||||
#include "common.h"
|
||||
|
||||
#define MSR_DEVICE "/dev/cpu/0/msr"
|
||||
#define MSR_TMx86_LONGRUN 0x80868010
|
||||
#define MSR_TMx86_LONGRUN_FLAGS 0x80868011
|
||||
|
||||
#define LONGRUN_MASK(x) ((x) & 0x0000007f)
|
||||
#define LONGRUN_RESERVED(x) ((x) & 0xffffff80)
|
||||
#define LONGRUN_WRITE(x, y) (LONGRUN_RESERVED(x) | LONGRUN_MASK(y))
|
||||
|
||||
#define CPUID_DEVICE "/dev/cpu/0/cpuid"
|
||||
#define CPUID_TMx86_VENDOR_ID 0x80860000
|
||||
#define CPUID_TMx86_PROCESSOR_INFO 0x80860001
|
||||
#define CPUID_TMx86_LONGRUN_STATUS 0x80860007
|
||||
#define CPUID_TMx86_FEATURE_LONGRUN(x) ((x) & 0x02)
|
||||
|
||||
static int cpuid_fd; /* CPUID file descriptor */
|
||||
static char *cpuid_device; /* CPUID device name */
|
||||
static int msr_fd; /* MSR file descriptor */
|
||||
static char *msr_device; /* MSR device name */
|
||||
|
||||
static void
|
||||
read_cpuid(long address, int *eax, int *ebx, int *ecx, int *edx)
|
||||
{
|
||||
uint32_t data[4];
|
||||
|
||||
#ifdef USE_PREAD
|
||||
if (pread(cpuid_fd, &data, 16, address) != 16) {
|
||||
perror("pread");
|
||||
#else
|
||||
if (lseek(cpuid_fd, address, SEEK_SET) != address) {
|
||||
perror("lseek");
|
||||
exit(1);
|
||||
}
|
||||
if (read(cpuid_fd, &data, 16) != 16) {
|
||||
perror("read");
|
||||
#endif
|
||||
exit(1);
|
||||
}
|
||||
|
||||
if (eax)
|
||||
*eax = data[0];
|
||||
if (ebx)
|
||||
*ebx = data[1];
|
||||
if (ecx)
|
||||
*ecx = data[2];
|
||||
if (edx)
|
||||
*edx = data[3];
|
||||
}
|
||||
|
||||
/* note: if an output is NULL, then don't set it */
|
||||
static void
|
||||
read_msr(long address, int *lower, int *upper)
|
||||
{
|
||||
uint32_t data[2];
|
||||
|
||||
#ifdef USE_PREAD
|
||||
if (pread(msr_fd, &data, 8, address) != 8) {
|
||||
perror("pread");
|
||||
#else
|
||||
if (lseek(msr_fd, address, SEEK_SET) != address) {
|
||||
perror("lseek");
|
||||
exit(1);
|
||||
}
|
||||
if (read(msr_fd, &data, 8) != 8) {
|
||||
perror("read");
|
||||
#endif
|
||||
exit(1);
|
||||
}
|
||||
|
||||
if (lower)
|
||||
*lower = data[0];
|
||||
if (upper)
|
||||
*upper = data[1];
|
||||
}
|
||||
|
||||
void
|
||||
longrun_init(char *cpuid_dev, char *msr_dev)
|
||||
{
|
||||
int eax, ebx, ecx, edx;
|
||||
|
||||
/* set CPUID device */
|
||||
cpuid_device = CPUID_DEVICE;
|
||||
if (cpuid_dev)
|
||||
cpuid_device = cpuid_dev;
|
||||
|
||||
/* set MSR device */
|
||||
msr_device = MSR_DEVICE;
|
||||
if (msr_dev)
|
||||
msr_device = msr_dev;
|
||||
|
||||
/* open CPUID device */
|
||||
if ((cpuid_fd = open(cpuid_device, O_RDONLY)) < 0) {
|
||||
fprintf(stderr, "error opening %s\n", cpuid_device);
|
||||
if (errno == ENODEV)
|
||||
fprintf(stderr,
|
||||
"make sure your kernel was compiled with CONFIG_X86_CPUID=y\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
/* open MSR device */
|
||||
if ((msr_fd = open(msr_device, O_RDONLY)) < 0) {
|
||||
fprintf(stderr, "error opening %s\n", msr_device);
|
||||
if (errno == ENODEV)
|
||||
fprintf(stderr,
|
||||
"make sure your kernel was compiled with CONFIG_X86_MSR=y\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
/* test for "TransmetaCPU" */
|
||||
read_cpuid(CPUID_TMx86_VENDOR_ID, &eax, &ebx, &ecx, &edx);
|
||||
if (ebx != 0x6e617254 || ecx != 0x55504361 || edx != 0x74656d73) {
|
||||
fprintf(stderr, "not a Transmeta x86 CPU\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
/* test for LongRun feature flag */
|
||||
read_cpuid(CPUID_TMx86_PROCESSOR_INFO, &eax, &ebx, &ecx, &edx);
|
||||
if (!CPUID_TMx86_FEATURE_LONGRUN(edx)) {
|
||||
printf("LongRun: unsupported\n");
|
||||
exit(0);
|
||||
}
|
||||
|
||||
/* close device */
|
||||
close(cpuid_fd);
|
||||
close(msr_fd);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* percent: performance level (0 to 100)
|
||||
* flags: performance/economy/unknown
|
||||
* mhz: frequency
|
||||
* volts: voltage
|
||||
*/
|
||||
void
|
||||
longrun_get_stat(int *percent, int *flags, int *mhz, int *voltz)
|
||||
{
|
||||
int eax, ebx, ecx;
|
||||
|
||||
/* open CPUID device */
|
||||
if ((cpuid_fd = open(cpuid_device, O_RDWR)) < 0) {
|
||||
fprintf(stderr, "error opening %s\n", cpuid_device);
|
||||
if (errno == ENODEV)
|
||||
fprintf(stderr,
|
||||
"make sure your kernel was compiled with CONFIG_X86_CPUID=y\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
/* open MSR device */
|
||||
if ((msr_fd = open(msr_device, O_RDWR)) < 0) {
|
||||
fprintf(stderr, "error opening %s\n", msr_device);
|
||||
if (errno == ENODEV)
|
||||
fprintf(stderr,
|
||||
"make sure your kernel was compiled with CONFIG_X86_MSR=y\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
/* frequency, voltage, performance level, */
|
||||
read_cpuid(CPUID_TMx86_LONGRUN_STATUS, &eax, &ebx, &ecx, 0);
|
||||
*mhz = eax;
|
||||
*voltz = ebx;
|
||||
*percent = ecx;
|
||||
|
||||
/* flags */
|
||||
read_msr(MSR_TMx86_LONGRUN_FLAGS, flags, NULL);
|
||||
*flags =
|
||||
(*flags & 1) ? LONGRUN_FLAGS_PEFORMANCE : LONGRUN_FLAGS_ECONOMY;
|
||||
|
||||
/* close device */
|
||||
close(cpuid_fd);
|
||||
close(msr_fd);
|
||||
}
|
326
wmlongrun/src/main.c
Normal file
326
wmlongrun/src/main.c
Normal file
|
@ -0,0 +1,326 @@
|
|||
/*
|
||||
* WMLongRun - A dockapp to monitor LongRun status
|
||||
* Copyright (C) 2001,2002 Seiichi SATO <ssato@sh.rim.or.jp>
|
||||
|
||||
* 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 of the License, 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#if defined(HAVE_STRING_H)
|
||||
#include <string.h>
|
||||
#elif defined(HAVE_STRINGS_H)
|
||||
#include <strings.h>
|
||||
#endif
|
||||
#include <unistd.h>
|
||||
#include <time.h>
|
||||
#include <signal.h>
|
||||
#include <sys/time.h>
|
||||
#include "dockapp.h"
|
||||
#include "longrun.h"
|
||||
#include "common.h"
|
||||
#include "backdrop_on.xpm"
|
||||
#include "backdrop_off.xpm"
|
||||
#include "backdrop_led.xpm"
|
||||
#include "parts.xpm"
|
||||
|
||||
#define SIZE 58
|
||||
#define WINDOWED_BG " \tc #AEAAAE"
|
||||
|
||||
typedef enum { LIGHTON, LIGHTOFF} light;
|
||||
|
||||
Pixmap pixmap;
|
||||
Pixmap backdrop_on;
|
||||
Pixmap backdrop_off;
|
||||
Pixmap backdrop_led;
|
||||
Pixmap parts;
|
||||
Pixmap mask;
|
||||
static char *display_name = "";
|
||||
static char *light_color = NULL;
|
||||
static unsigned update_interval = 500;
|
||||
static light backlight = LIGHTOFF;
|
||||
static Bool is_led_style = False;
|
||||
|
||||
static char *cpuid_dev = NULL;
|
||||
static char *msr_dev = NULL;
|
||||
|
||||
/* prototypes */
|
||||
static void switch_light(void);
|
||||
static void update(void);
|
||||
static void parse_arguments(int argc, char **argv);
|
||||
static void print_help(char *prog);
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
XEvent event;
|
||||
XpmColorSymbol colors[2] = { {"Back0", NULL, 0}, {"Back1", NULL, 0} };
|
||||
int ncolor = 0;
|
||||
|
||||
/* Parse CommandLine */
|
||||
parse_arguments(argc, argv);
|
||||
|
||||
/* Initialize Application */
|
||||
dockapp_open_window(display_name, PACKAGE, SIZE, SIZE, argc, argv);
|
||||
dockapp_set_eventmask(ButtonPressMask);
|
||||
|
||||
if (light_color) {
|
||||
colors[0].pixel = dockapp_getcolor(light_color);
|
||||
colors[1].pixel = dockapp_blendedcolor(light_color, -24, -24, -24, 1.0);
|
||||
ncolor = 2;
|
||||
}
|
||||
|
||||
/* change raw xpm data to pixmap */
|
||||
if (dockapp_iswindowed)
|
||||
backdrop_on_xpm[1] = backdrop_off_xpm[1] = WINDOWED_BG;
|
||||
if (!is_led_style) {
|
||||
dockapp_xpm2pixmap(backdrop_on_xpm, &backdrop_on, &mask, colors,ncolor);
|
||||
dockapp_xpm2pixmap(backdrop_off_xpm, &backdrop_off, NULL, NULL, 0);
|
||||
} else {
|
||||
dockapp_xpm2pixmap(backdrop_led_xpm, &backdrop_led, &mask, colors, ncolor);
|
||||
}
|
||||
dockapp_xpm2pixmap(parts_xpm, &parts, NULL, colors, ncolor);
|
||||
/* shape window */
|
||||
if (!dockapp_iswindowed)
|
||||
dockapp_setshape(mask, 0, 0);
|
||||
if (mask) XFreePixmap(display, mask);
|
||||
/* pixmap: draw area */
|
||||
pixmap = dockapp_XCreatePixmap(SIZE, SIZE);
|
||||
|
||||
/* Initialize pixmap */
|
||||
longrun_init(cpuid_dev, msr_dev);
|
||||
update();
|
||||
dockapp_set_background(pixmap);
|
||||
dockapp_show();
|
||||
|
||||
/* Main loop */
|
||||
for (;;) {
|
||||
if (dockapp_nextevent_or_timeout(&event, update_interval)) {
|
||||
/* Next Event */
|
||||
switch(event.type) {
|
||||
case ButtonPress:
|
||||
if (!is_led_style) { /* led does not have back-light */
|
||||
switch_light();
|
||||
update();
|
||||
}
|
||||
break;
|
||||
default: /* make gcc happy */
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
/* Time Out */
|
||||
update();
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* called when mouse button pressed */
|
||||
static void switch_light(void)
|
||||
{
|
||||
switch (backlight) {
|
||||
case LIGHTOFF:
|
||||
backlight = LIGHTON;
|
||||
break;
|
||||
case LIGHTON:
|
||||
backlight = LIGHTOFF;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static void update(void)
|
||||
{
|
||||
static int percent; /* LongRun performance level */
|
||||
static int flags; /* LongRun flags */
|
||||
static int mhz; /* LongRun frequency */
|
||||
static int voltz; /* LongRun voltage */
|
||||
|
||||
int digit1 = 0, digit10 = 0, digit100 = 0;
|
||||
|
||||
longrun_get_stat(&percent, &flags, &mhz, &voltz);
|
||||
|
||||
digit100 = mhz / 100;
|
||||
digit10 = (mhz - digit100 * 100) / 10;
|
||||
digit1 = mhz - digit100 * 100 - digit10 * 10;
|
||||
|
||||
/* LCD interface */
|
||||
if (!is_led_style) {
|
||||
int y_lrmode = 0, y_gauge = 0, y_digit = 0;
|
||||
|
||||
/* clear */
|
||||
switch (backlight) {
|
||||
case LIGHTON:
|
||||
dockapp_copyarea(backdrop_on, pixmap, 0, 0, 58, 58, 0, 0);
|
||||
y_lrmode = 11;
|
||||
y_gauge = 14;
|
||||
y_digit = 13;
|
||||
break;
|
||||
case LIGHTOFF:
|
||||
dockapp_copyarea(backdrop_off, pixmap, 0, 0, 58, 58, 0, 0);
|
||||
break;
|
||||
}
|
||||
|
||||
/* longrun flags (performance or economy) */
|
||||
switch (flags) {
|
||||
case LONGRUN_FLAGS_PEFORMANCE:
|
||||
dockapp_copyarea(parts, pixmap, 24, y_lrmode, 24, 11, 31, 5);
|
||||
break;
|
||||
case LONGRUN_FLAGS_ECONOMY:
|
||||
dockapp_copyarea(parts, pixmap, 0, y_lrmode, 24, 11, 5, 5);
|
||||
break;
|
||||
default:
|
||||
break; /* make gcc happy */
|
||||
}
|
||||
|
||||
/* draw digit (frequency) */
|
||||
dockapp_copyarea(parts, pixmap, digit100*7,y_digit+33, 7,13, 6,22);
|
||||
dockapp_copyarea(parts, pixmap, digit10*7,y_digit+33, 7,13, 15,22);
|
||||
dockapp_copyarea(parts, pixmap, digit1*7,y_digit+33, 7,13, 24,22);
|
||||
|
||||
/* draw level gauge */
|
||||
dockapp_copyarea(parts, pixmap, 0,y_gauge+72, 49*percent/100,14,5,40);
|
||||
}
|
||||
|
||||
/* LED interface */
|
||||
else {
|
||||
dockapp_copyarea(backdrop_led, pixmap, 0, 0, 58, 58, 0, 0);
|
||||
/* longrun flags (performance or economy) */
|
||||
switch (flags) {
|
||||
case LONGRUN_FLAGS_PEFORMANCE:
|
||||
dockapp_copyarea(parts, pixmap, 24, 22, 24, 11, 30, 3);
|
||||
break;
|
||||
case LONGRUN_FLAGS_ECONOMY:
|
||||
dockapp_copyarea(parts, pixmap, 0, 22, 24, 11, 3, 3);
|
||||
break;
|
||||
default:
|
||||
break; /* make gcc happy */
|
||||
}
|
||||
|
||||
/* draw digit (frequency) */
|
||||
dockapp_copyarea(parts, pixmap, digit100*7,59, 7,13, 4,22);
|
||||
dockapp_copyarea(parts, pixmap, digit10*7,59, 7,13, 13,22);
|
||||
dockapp_copyarea(parts, pixmap, digit1*7,59, 7,13, 22,22);
|
||||
|
||||
/* draw level gauge */
|
||||
dockapp_copyarea(parts, pixmap, 0, 100, 56 * percent / 100, 16, 1, 41);
|
||||
}
|
||||
|
||||
/* show */
|
||||
dockapp_copy2window(pixmap);
|
||||
}
|
||||
|
||||
static void parse_arguments(int argc, char **argv)
|
||||
{
|
||||
int i;
|
||||
for (i = 1; i < argc; i++) {
|
||||
if (!strcmp(argv[i], "--help") || !strcmp(argv[i], "-h"))
|
||||
print_help(argv[0]), exit(0);
|
||||
|
||||
else if (!strcmp(argv[i], "--version") || !strcmp(argv[i], "-v"))
|
||||
printf("%s version %s\n", PACKAGE, VERSION), exit(0);
|
||||
|
||||
else if (!strcmp(argv[i], "--display") || !strcmp(argv[i], "-d")) {
|
||||
display_name = argv[i + 1];
|
||||
i++;
|
||||
}
|
||||
|
||||
else if (!strcmp(argv[i], "--backlight")
|
||||
|| !strcmp(argv[i], "-bl"))
|
||||
backlight = LIGHTON;
|
||||
|
||||
else if (!strcmp(argv[i], "--light-color")
|
||||
|| !strcmp(argv[i], "-lc")) {
|
||||
if (argc == i + 1)
|
||||
fprintf(stderr,
|
||||
"%s: error parsing argument for option %s\n",
|
||||
argv[0], argv[i]), exit(1);
|
||||
light_color = argv[i + 1];
|
||||
i++;
|
||||
}
|
||||
|
||||
else if (!strcmp(argv[i], "--interval") || !strcmp(argv[i], "-i")) {
|
||||
int integer;
|
||||
if (argc == i + 1)
|
||||
fprintf(stderr,
|
||||
"%s: error parsing argument for option %s\n",
|
||||
argv[0], argv[i]), exit(1);
|
||||
if (sscanf(argv[i + 1], "%i", &integer) != 1)
|
||||
fprintf(stderr,
|
||||
"%s: error parsing argument for option %s\n",
|
||||
argv[0], argv[i]), exit(1);
|
||||
if (integer < 1)
|
||||
fprintf(stderr, "%s: argument %s must be >=1\n",
|
||||
argv[0], argv[i]), exit(1);
|
||||
update_interval = integer;
|
||||
i++;
|
||||
}
|
||||
|
||||
else if (!strcmp(argv[i], "--led") || !strcmp(argv[i], "-l"))
|
||||
is_led_style = True;
|
||||
|
||||
else if (!strcmp(argv[i], "--windowed")
|
||||
|| !strcmp(argv[i], "-w"))
|
||||
dockapp_iswindowed = True;
|
||||
|
||||
else if (!strcmp(argv[i], "--broken-wm")
|
||||
|| !strcmp(argv[i], "-bw"))
|
||||
dockapp_isbrokenwm = True;
|
||||
|
||||
#ifdef LINUX
|
||||
else if (!strcmp(argv[i], "--cpuid-device")
|
||||
|| !strcmp(argv[i], "-cd")) {
|
||||
cpuid_dev = argv[i + 1];
|
||||
i++;
|
||||
}
|
||||
else if (!strcmp(argv[i], "--msr-device")
|
||||
|| !strcmp(argv[i], "-md")) {
|
||||
msr_dev = argv[i + 1];
|
||||
i++;
|
||||
}
|
||||
#endif
|
||||
|
||||
else {
|
||||
fprintf(stderr, "%s: unrecognized option '%s'\n", argv[0],
|
||||
argv[i]);
|
||||
print_help(argv[0]), exit(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void print_help(char *prog)
|
||||
{
|
||||
printf("Usage : %s [OPTIONS]\n", prog);
|
||||
printf
|
||||
("WMLongRun - A dockapp to monitor the LongRun(tm) status on Crusoe(tm) processors.\n");
|
||||
printf(" -d, --display <string> display to use\n");
|
||||
printf(" -bl, --backlight turn on back-light\n");
|
||||
printf(" -lc, --light-color <string> back-light color(rgb:6E/C6/3B is default)\n");
|
||||
printf(" -i, --interval <number> number of milliseconds between updates\n");
|
||||
printf(" (500 is default)\n");
|
||||
#ifdef LINUX
|
||||
printf(" -cd, --cpuid-device <device> CPUID device ('/dev/cpu/0/cpuid' is default)\n");
|
||||
printf(" -md, --msr-device <device> MSR device ('/dev/cpu/0/msr' is default)\n");
|
||||
#endif
|
||||
printf(" -l, --led run the application with LED interface\n");
|
||||
printf(" -h, --help show this help text and exit\n");
|
||||
printf(" -v, --version show program version and exit\n");
|
||||
printf(" -w, --windowed run the application in windowed mode\n");
|
||||
printf(" -bw, --broken-wm activate broken window manager fix\n");
|
||||
}
|
190
wmlongrun/src/parts.xpm
Normal file
190
wmlongrun/src/parts.xpm
Normal file
|
@ -0,0 +1,190 @@
|
|||
/* XPM */
|
||||
static char * parts_xpm[] = {
|
||||
"70 118 69 1",
|
||||
" c None",
|
||||
". c #8E968A",
|
||||
"+ c #000000",
|
||||
"@ c #6EC63B s Back0",
|
||||
"# c #202020",
|
||||
"$ c #20B2AE",
|
||||
"% c #767C6F",
|
||||
"& c #5E665A",
|
||||
"* c #6E766E",
|
||||
"= c #6CB237 s Back1",
|
||||
"- c #004941",
|
||||
"; c #188A86",
|
||||
"> c #020202",
|
||||
", c #1FD200",
|
||||
"' c #22D000",
|
||||
") c #25CD00",
|
||||
"! c #28CA00",
|
||||
"~ c #2BC700",
|
||||
"{ c #2EC400",
|
||||
"] c #31C100",
|
||||
"^ c #34BE00",
|
||||
"/ c #37BB00",
|
||||
"( c #3AB800",
|
||||
"_ c #3DB500",
|
||||
": c #40B200",
|
||||
"< c #43B000",
|
||||
"[ c #46AD00",
|
||||
"} c #49AA00",
|
||||
"| c #4CA700",
|
||||
"1 c #4FA400",
|
||||
"2 c #52A100",
|
||||
"3 c #559E00",
|
||||
"4 c #589B00",
|
||||
"5 c #5B9800",
|
||||
"6 c #5E9500",
|
||||
"7 c #619200",
|
||||
"8 c #649000",
|
||||
"9 c #678D00",
|
||||
"0 c #6A8A00",
|
||||
"a c #6D8700",
|
||||
"b c #708400",
|
||||
"c c #738100",
|
||||
"d c #767E00",
|
||||
"e c #797B00",
|
||||
"f c #7C7800",
|
||||
"g c #7F7500",
|
||||
"h c #827200",
|
||||
"i c #857000",
|
||||
"j c #886D00",
|
||||
"k c #8B6A00",
|
||||
"l c #8E6700",
|
||||
"m c #916400",
|
||||
"n c #946100",
|
||||
"o c #975E00",
|
||||
"p c #9A5B00",
|
||||
"q c #9D5800",
|
||||
"r c #A05500",
|
||||
"s c #A35200",
|
||||
"t c #A65000",
|
||||
"u c #A94D00",
|
||||
"v c #AC4A00",
|
||||
"w c #AF4700",
|
||||
"x c #B24400",
|
||||
"y c #B54100",
|
||||
"z c #B83E00",
|
||||
"A c #BB3B00",
|
||||
"B c #BE3800",
|
||||
"C c #C13500",
|
||||
"D c #C43200",
|
||||
"..++++++++++++++++++++....++++++++++++++++++++.. ",
|
||||
".++++++++++++++++++++++..++++++++++++++++++++++. ",
|
||||
"+++....+++....+++....+++++.....+++....++.+...+++ ",
|
||||
"++..++..+..++..+..++..++++..++..+..++..+...+..++ ",
|
||||
"++..++..+..+++++..++..++++..++..+..++..+..++..++ ",
|
||||
"++......+..+++++..++..++++..++..+......+..++++++ ",
|
||||
"++..+++++..+++++..++..++++.....++..+++++..++++++ ",
|
||||
"++..+++++..++..+..++..++++..+++++..+++++..++++++ ",
|
||||
"+++.....++....+++....+++++..++++++.....+..++++++ ",
|
||||
".++++++++++++++++++++++..++++++++++++++++++++++. ",
|
||||
"..++++++++++++++++++++....++++++++++++++++++++.. ",
|
||||
"@@++++++++++++++++++++@@@@++++++++++++++++++++@@ ",
|
||||
"@++++++++++++++++++++++@@++++++++++++++++++++++@ ",
|
||||
"+++@@@@+++@@@@+++@@@@+++++@@@@@+++@@@@++@+@@@+++ ",
|
||||
"++@@++@@+@@++@@+@@++@@++++@@++@@+@@++@@+@@@+@@++ ",
|
||||
"++@@++@@+@@+++++@@++@@++++@@++@@+@@++@@+@@++@@++ ",
|
||||
"++@@@@@@+@@+++++@@++@@++++@@++@@+@@@@@@+@@++++++ ",
|
||||
"++@@+++++@@+++++@@++@@++++@@@@@++@@+++++@@++++++ ",
|
||||
"++@@+++++@@++@@+@@++@@++++@@+++++@@+++++@@++++++ ",
|
||||
"+++@@@@@++@@@@+++@@@@+++++@@++++++@@@@@+@@++++++ ",
|
||||
"@++++++++++++++++++++++@@++++++++++++++++++++++@ ",
|
||||
"@@++++++++++++++++++++@@@@++++++++++++++++++++@@ ",
|
||||
"##$$$$$$$$$$$$$$$$$$$$####$$$$$$$$$$$$$$$$$$$$## ",
|
||||
"#$$$$$$$$$$$$$$$$$$$$$$##$$$$$$$$$$$$$$$$$$$$$$# ",
|
||||
"$$$####$$$####$$$####$$$$$#####$$$####$$#$###$$$ ",
|
||||
"$$##$$##$##$$##$##$$##$$$$##$$##$##$$##$###$##$$ ",
|
||||
"$$##$$##$##$$$$$##$$##$$$$##$$##$##$$##$##$$##$$ ",
|
||||
"$$######$##$$$$$##$$##$$$$##$$##$######$##$$$$$$ ",
|
||||
"$$##$$$$$##$$$$$##$$##$$$$#####$$##$$$$$##$$$$$$ ",
|
||||
"$$##$$$$$##$$##$##$$##$$$$##$$$$$##$$$$$##$$$$$$ ",
|
||||
"$$$#####$$####$$$####$$$$$##$$$$$$#####$##$$$$$$ ",
|
||||
"#$$$$$$$$$$$$$$$$$$$$$$##$$$$$$$$$$$$$$$$$$$$$$# ",
|
||||
"##$$$$$$$$$$$$$$$$$$$$####$$$$$$$$$$$$$$$$$$$$## ",
|
||||
".+++++..%%%%%..+++++..+++++..%%%%%..+++++..+++++..+++++..+++++..+++++.",
|
||||
"+.....+%.....+%.....+&.....++.....++.....%+.....%%.....++.....++.....+",
|
||||
"+.....+%.....+%.....+&.....++.....++.....%+.....%%.....++.....++.....+",
|
||||
"+.....+%.....+%.....+&.....++.....++.....%+.....%%.....++.....++.....+",
|
||||
"+.....+%.....+%.....+&.....++.....++.....%+.....%%.....++.....++.....+",
|
||||
"+.....+%.....+%.....+&.....++.....++.....%+.....%%.....++.....++.....+",
|
||||
".%%%%%..%%%%%..+++++..+++++..+++++..+++++..+++++..%%%%%..+++++..+++++.",
|
||||
"+.....+%.....++.....%%.....+%.....+%.....++.....+%.....++.....+%.....+",
|
||||
"+.....+%.....++.....%%.....+%.....+%.....++.....+%.....++.....+%.....+",
|
||||
"+.....+%.....++.....%%.....+%.....+%.....++.....+%.....++.....+%.....+",
|
||||
"+.....+%.....++.....%%.....+%.....+%.....++.....+%.....++.....+%.....+",
|
||||
"+.....+%.....++.....%%.....+%.....+%.....++.....+%.....++.....+%.....+",
|
||||
"*+++++..%%%%%..+++++..+++++..%%%%%..+++++..+++++..%%%%%..+++++..+++++.",
|
||||
"@+++++@@=====@@+++++@@+++++@@=====@@+++++@@+++++@@+++++@@+++++@@+++++@",
|
||||
"+@@@@@+=@@@@@+=@@@@@+=@@@@@++@@@@@++@@@@@=+@@@@@==@@@@@++@@@@@++@@@@@+",
|
||||
"+@@@@@+=@@@@@+=@@@@@+=@@@@@++@@@@@++@@@@@=+@@@@@==@@@@@++@@@@@++@@@@@+",
|
||||
"+@@@@@+=@@@@@+=@@@@@+=@@@@@++@@@@@++@@@@@=+@@@@@==@@@@@++@@@@@++@@@@@+",
|
||||
"+@@@@@+=@@@@@+=@@@@@+=@@@@@++@@@@@++@@@@@=+@@@@@==@@@@@++@@@@@++@@@@@+",
|
||||
"+@@@@@+=@@@@@+=@@@@@+=@@@@@++@@@@@++@@@@@=+@@@@@==@@@@@++@@@@@++@@@@@+",
|
||||
"@=====@@=====@@+++++@@+++++@@+++++@@+++++@@+++++@@=====@@+++++@@+++++@",
|
||||
"+@@@@@+=@@@@@++@@@@@==@@@@@+=@@@@@+=@@@@@++@@@@@+=@@@@@++@@@@@+=@@@@@+",
|
||||
"+@@@@@+=@@@@@++@@@@@==@@@@@+=@@@@@+=@@@@@++@@@@@+=@@@@@++@@@@@+=@@@@@+",
|
||||
"+@@@@@+=@@@@@++@@@@@==@@@@@+=@@@@@+=@@@@@++@@@@@+=@@@@@++@@@@@+=@@@@@+",
|
||||
"+@@@@@+=@@@@@++@@@@@==@@@@@+=@@@@@+=@@@@@++@@@@@+=@@@@@++@@@@@+=@@@@@+",
|
||||
"+@@@@@+=@@@@@++@@@@@==@@@@@+=@@@@@+=@@@@@++@@@@@+=@@@@@++@@@@@+=@@@@@+",
|
||||
"@+++++@@=====@@+++++@@+++++@@=====@@+++++@@+++++@@=====@@+++++@@+++++@",
|
||||
"#$$$$$##-----#;$$$$$;;$$$$$;;-----;;$$$$$;;$$$$$;;$$$$$;;$$$$$;;$$$$$;",
|
||||
"$#####$-#####$-#####$-#####$$#####$$#####-$#####--#####$$#####$$#####;",
|
||||
"$#####$-#####$-#####$-#####$$#####$$#####-$#####--#####$$#####$$#####$",
|
||||
"$#####$-#####$-#####$-#####$$#####$$#####-$#####--#####$$#####$$#####$",
|
||||
"$#####$-#####$-#####$-#####$$#####$$#####-$#####--#####$$#####$$#####$",
|
||||
"$#####$-#####$-#####$-#####$$#####$$#####-$#####--#####$$#####$;#####$",
|
||||
";-----;#-----;;$$$$$;#$$$$$;;$$$$$;;$$$$$;;$$$$$;#-----;;$$$$$;;$$$$$;",
|
||||
"$#####$-#####$$#####--#####$-#####$-#####$$#####$-#####$$#####$-#####$",
|
||||
"$#####$-#####$$#####--#####$-#####$-#####$$#####$-#####$$#####$-#####$",
|
||||
"$#####$-#####$$#####--#####$-#####$-#####$$#####$-#####$$#####$-#####$",
|
||||
"$#####$-#####$$#####--#####$-#####$-#####$$#####$-#####$$#####$-#####$",
|
||||
"$#####$-#####$$#####--#####$-#####$-#####$$#####$-#####$$#####$-#####$",
|
||||
"#$$$$$##-----#;$$$$$;;$$$$$;#-----;;$$$$$;;$$$$$;#-----;;$$$$$;#$$$$$;",
|
||||
"+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+ ",
|
||||
"+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+ ",
|
||||
"+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+ ",
|
||||
"+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+ ",
|
||||
"+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+ ",
|
||||
"+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+ ",
|
||||
"+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+ ",
|
||||
"+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+ ",
|
||||
"+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+ ",
|
||||
"+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+ ",
|
||||
"+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+ ",
|
||||
"+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+ ",
|
||||
"+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+ ",
|
||||
"+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+ ",
|
||||
">@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@> ",
|
||||
">@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@> ",
|
||||
">@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@> ",
|
||||
">@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@> ",
|
||||
">@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@> ",
|
||||
">@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@> ",
|
||||
">@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@> ",
|
||||
">@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@> ",
|
||||
">@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@> ",
|
||||
">@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@> ",
|
||||
">@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@> ",
|
||||
">@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@> ",
|
||||
">@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@> ",
|
||||
">@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@>@> ",
|
||||
",')!~{]^/(_:<[}|1234567890abcdefghijklmnopqrstuvwxyzABCD ",
|
||||
",')!~{]^/(_:<[}|1234567890abcdefghijklmnopqrstuvwxyzABCD ",
|
||||
",')!~{]^/(_:<[}|1234567890abcdefghijklmnopqrstuvwxyzABCD ",
|
||||
",')!~{]^/(_:<[}|1234567890abcdefghijklmnopqrstuvwxyzABCD ",
|
||||
",')!~{]^/(_:<[}|1234567890abcdefghijklmnopqrstuvwxyzABCD ",
|
||||
",')!~{]^/(_:<[}|1234567890abcdefghijklmnopqrstuvwxyzABCD ",
|
||||
",')!~{]^/(_:<[}|1234567890abcdefghijklmnopqrstuvwxyzABCD ",
|
||||
",')!~{]^/(_:<[}|1234567890abcdefghijklmnopqrstuvwxyzABCD ",
|
||||
",')!~{]^/(_:<[}|1234567890abcdefghijklmnopqrstuvwxyzABCD ",
|
||||
",')!~{]^/(_:<[}|1234567890abcdefghijklmnopqrstuvwxyzABCD ",
|
||||
",')!~{]^/(_:<[}|1234567890abcdefghijklmnopqrstuvwxyzABCD ",
|
||||
",')!~{]^/(_:<[}|1234567890abcdefghijklmnopqrstuvwxyzABCD ",
|
||||
",')!~{]^/(_:<[}|1234567890abcdefghijklmnopqrstuvwxyzABCD ",
|
||||
",')!~{]^/(_:<[}|1234567890abcdefghijklmnopqrstuvwxyzABCD ",
|
||||
",')!~{]^/(_:<[}|1234567890abcdefghijklmnopqrstuvwxyzABCD ",
|
||||
",')!~{]^/(_:<[}|1234567890abcdefghijklmnopqrstuvwxyzABCD ",
|
||||
" ",
|
||||
" "};
|
1
wmlongrun/stamp-h.in
Normal file
1
wmlongrun/stamp-h.in
Normal file
|
@ -0,0 +1 @@
|
|||
timestamp
|
Loading…
Reference in a new issue