Compare commits
198 Commits
debian-len
...
debian-uns
Author | SHA1 | Date |
---|---|---|
|
3e49b3e9c6 | |
|
67a695fd48 | |
|
48de9f41ad | |
|
ca45cb561a | |
|
39cafca9af | |
|
231681d6f9 | |
|
2fa58d6dae | |
|
d59035c544 | |
|
01b994fd73 | |
|
fed54c72d6 | |
|
9585adb9a6 | |
|
c729d85c33 | |
|
8aa9d9e58f | |
|
2cb12ce54b | |
|
98dc0f7dea | |
|
5120f4f71d | |
|
c3a9c0b5ab | |
|
3cf0a9d1a3 | |
|
aba1e8fef2 | |
|
42c7aa99f7 | |
|
15cc6fbd57 | |
|
e9cee18d11 | |
|
ca3b52b7e1 | |
|
8d97113c56 | |
|
effeec36c8 | |
|
079b944af9 | |
|
e92cedc010 | |
|
fd46fd38d1 | |
|
ed4fa7a16e | |
|
4490a02b58 | |
|
e93035dbc9 | |
|
824160d266 | |
|
4bc0ac1f6d | |
|
abc052f4f5 | |
|
0f138c7c70 | |
|
9f5e6ab4a0 | |
|
6793ddff26 | |
|
13128957d7 | |
|
39cb37e75a | |
|
e41441ecd7 | |
|
69df79ebbc | |
|
e0d6afa13e | |
|
992803dd44 | |
|
940cabd789 | |
|
363869f45e | |
|
2757d30a2a | |
|
d069f3a53d | |
|
7af60bae0b | |
|
1bbd5828a3 | |
|
bc0e2b1555 | |
|
985dc739af | |
|
4e51ba721f | |
|
da74da0d09 | |
|
e8a1560842 | |
|
5c261ef26e | |
|
d06dd4175a | |
|
1f2cd6e9c9 | |
|
e7c164c36d | |
|
086e680527 | |
|
5a1442efae | |
|
f857499cba | |
|
01defd1205 | |
|
b17d86a6dc | |
|
6275371121 | |
|
03c2ee2fc8 | |
|
ad4108e807 | |
|
5200661c6a | |
|
2d22d2d95a | |
|
62cf2b5a63 | |
|
ac659fd0be | |
|
4039112f06 | |
|
3017fc34ae | |
|
801eaeb377 | |
|
4d0f009791 | |
|
8fd70577af | |
|
b917b7ec8f | |
|
1d76ee9d27 | |
|
0e72dc9cb1 | |
|
b8f254f1fb | |
|
47da6fad47 | |
|
1eee93f75d | |
|
73687fdd1d | |
|
f7b278c245 | |
|
c181d85a77 | |
|
301db48f25 | |
|
e6b6d2b33d | |
|
9ab1005a2c | |
|
72cb62ae2b | |
|
c7b93cd9bf | |
|
f7e3d39d1a | |
|
1802a1bd42 | |
|
7e3104eff9 | |
|
4bd6db3f8d | |
|
5d32fde671 | |
|
52b85a6498 | |
|
a976b76500 | |
|
e85625e9e7 | |
|
27531fa4ac | |
|
98065913b8 | |
|
4b12edf445 | |
|
26ad1e1e34 | |
|
6c663d055b | |
|
7ab21191d0 | |
|
3c092d11b4 | |
|
086ef7eae0 | |
|
19d392b8d7 | |
|
15f7db4872 | |
|
e53fbbf4a2 | |
|
b8e2310336 | |
|
24197854e8 | |
|
fb59c5d7c6 | |
|
909222d7e2 | |
|
56e01e5132 | |
|
df2cd3b72a | |
|
ac16600c8c | |
|
cb4f4f7951 | |
|
1e3ab7c66a | |
|
eb6d0179ad | |
|
160bce419b | |
|
a805f00fbd | |
|
2922f6da19 | |
|
84be8c4125 | |
|
cd3090c60b | |
|
bf26c06429 | |
|
af35f85d8c | |
|
be929fe82e | |
|
2764dff2f7 | |
|
daa99a5e20 | |
|
9c994e7c59 | |
|
6a0c26eee5 | |
|
979b2fb827 | |
|
b4bfdbbb57 | |
|
a35aa7738e | |
|
e8a3904da3 | |
|
81fc271788 | |
|
b045afbd82 | |
|
8bd2e9b523 | |
|
734e3b2d1d | |
|
6c07bd3638 | |
|
bb6f4c6e7b | |
|
c6e81d90a7 | |
|
6e01e40661 | |
|
9c340cde28 | |
|
7b2d25d5d0 | |
|
93b9c8373f | |
|
05b429afe2 | |
|
cb46c41f61 | |
|
25f12b03f0 | |
|
66224ae3bc | |
|
c5735af9a5 | |
|
fd6dae4ac4 | |
|
d5b4e65817 | |
|
565e2b5af6 | |
|
9ab759579e | |
|
fa115a436b | |
|
cad2b2ae58 | |
|
90e400c82a | |
|
c3695642d0 | |
|
2a1b4553fc | |
|
9a4314c976 | |
|
bda208ec00 | |
|
1ef8b969a4 | |
|
5693792171 | |
|
1f858adff1 | |
|
0dd71e1241 | |
|
b6c6eceec6 | |
|
8eb3d6a5ce | |
|
1d0081bdf6 | |
|
145d78caf6 | |
|
d176189fab | |
|
7b78fa9602 | |
|
63984cf5bd | |
|
8f72294ada | |
|
7deebf983f | |
|
4178d948cd | |
|
7a89987617 | |
|
93b7223f95 | |
|
6f04100d93 | |
|
d45a04dbc3 | |
|
fa6396d6bf | |
|
2ed171f9f3 | |
|
7baf34403c | |
|
e351fac2f1 | |
|
9eeae54301 | |
|
9258ad31f8 | |
|
fa3e8da591 | |
|
a9603bc7ac | |
|
a6ac975717 | |
|
8d18dcf7a2 | |
|
9511c67950 | |
|
18aa05e26a | |
|
84b7d5bf7a | |
|
e6f7a45dd0 | |
|
424160b992 | |
|
effd4e3023 | |
|
c665e83050 | |
|
a40f466af3 | |
|
1e7894c842 |
|
@ -0,0 +1,73 @@
|
||||||
|
------------------------------------------------------
|
||||||
|
Quick Guide To Patching This Package For The Impatient
|
||||||
|
------------------------------------------------------
|
||||||
|
|
||||||
|
1. Make sure you have quilt installed
|
||||||
|
2. Unpack the package as usual with "dpkg-source -x"
|
||||||
|
3. Run the "patch" target in debian/rules
|
||||||
|
4. Create a new patch with "quilt new" (see quilt(1))
|
||||||
|
5. Edit all the files you want to include in the patch with "quilt edit"
|
||||||
|
(see quilt(1)).
|
||||||
|
6. Write the patch with "quilt refresh" (see quilt(1))
|
||||||
|
7. Run the "clean" target in debian/rules
|
||||||
|
|
||||||
|
Alternatively, instead of using quilt directly, you can drop the patch in to
|
||||||
|
debian/patches and add the name of the patch to debian/patches/series.
|
||||||
|
|
||||||
|
------------------------------------
|
||||||
|
Guide To The X Strike Force Packages
|
||||||
|
------------------------------------
|
||||||
|
|
||||||
|
The X Strike Force team maintains X packages in git repositories on
|
||||||
|
git.debian.org in the pkg-xorg subdirectory. Most upstream packages
|
||||||
|
are actually maintained in git repositories as well, so they often
|
||||||
|
just need to be pulled into git.debian.org in a "upstream-*" branch.
|
||||||
|
Otherwise, the upstream sources are manually installed in the Debian
|
||||||
|
git repository.
|
||||||
|
|
||||||
|
The .orig.tar.gz upstream source file could be generated using this
|
||||||
|
"upstream-*" branch in the Debian git repository but it is actually
|
||||||
|
copied from upstream tarballs directly.
|
||||||
|
|
||||||
|
Due to X.org being highly modular, packaging all X.org applications
|
||||||
|
as their own independent packages would have created too many Debian
|
||||||
|
packages. For this reason, some X.org applications have been grouped
|
||||||
|
into larger packages: xutils, xutils-dev, x11-apps, x11-session-utils,
|
||||||
|
x11-utils, x11-xfs-utils, x11-xkb-utils, x11-xserver-utils.
|
||||||
|
Most packages, including the X.org server itself and all libraries
|
||||||
|
and drivers are, however maintained independently.
|
||||||
|
|
||||||
|
The Debian packaging is added by creating the "debian-*" git branch
|
||||||
|
which contains the aforementioned "upstream-*" branch plus the debian/
|
||||||
|
repository files.
|
||||||
|
When a patch has to be applied to the Debian package, two solutions
|
||||||
|
are involved:
|
||||||
|
* If the patch is available in one of the upstream branches, it
|
||||||
|
may be git'cherry-picked into the Debian repository. In this
|
||||||
|
case, it appears directly in the .diff.gz.
|
||||||
|
* Otherwise, the patch is added to debian/patches/ which is managed
|
||||||
|
with quilt as documented in /usr/share/doc/quilt/README.source.
|
||||||
|
|
||||||
|
quilt is actually invoked by the Debian X packaging through a larger
|
||||||
|
set of scripts called XSFBS. XSFBS brings some other X specific
|
||||||
|
features such as managing dependencies and conflicts due to the video
|
||||||
|
and input driver ABIs.
|
||||||
|
XSFBS itself is maintained in a separate repository at
|
||||||
|
git://git.debian.org/pkg-xorg/xsfbs.git
|
||||||
|
and it is pulled inside the other Debian X repositories when needed.
|
||||||
|
|
||||||
|
The XSFBS patching system requires a build dependency on quilt. Also
|
||||||
|
a dependency on $(STAMP_DIR)/patch has to be added to debian/rules
|
||||||
|
so that the XSFBS patching occurs before the actual build. So the
|
||||||
|
very first target of the build (likely the one running autoreconf)
|
||||||
|
should depend on $(STAMP_DIR)/patch. It should also not depend on
|
||||||
|
anything so that parallel builds are correctly supported (nothing
|
||||||
|
should probably run while patching is being done). And finally, the
|
||||||
|
clean target should depend on the xsfclean target so that patches
|
||||||
|
are unapplied on clean.
|
||||||
|
|
||||||
|
When the upstream sources contain some DFSG-nonfree files, they are
|
||||||
|
listed in text files in debian/prune/ in the "debian-*" branch of
|
||||||
|
the Debian repository. XSFBS' scripts then take care of removing
|
||||||
|
these listed files during the build so as to generate a modified
|
||||||
|
DFSG-free .orig.tar.gz tarball.
|
|
@ -1,3 +1,294 @@
|
||||||
|
x11-xserver-utils (7.7+9) UNRELEASED; urgency=medium
|
||||||
|
|
||||||
|
* sessreg 1.1.2.
|
||||||
|
* xhost 1.0.8.
|
||||||
|
* xmodmap 1.0.10.
|
||||||
|
* xrandr 1.5.1. (Closes: #784324)
|
||||||
|
* xrdb 1.2.0.
|
||||||
|
* xstdcmap 1.0.4.
|
||||||
|
* Use debhelper 12.
|
||||||
|
* patches: Refreshed.
|
||||||
|
* control: Bump policy to 4.5.0.
|
||||||
|
|
||||||
|
-- Timo Aaltonen <tjaalton@debian.org> Fri, 31 Jan 2020 13:58:50 +0200
|
||||||
|
|
||||||
|
x11-xserver-utils (7.7+8) unstable; urgency=medium
|
||||||
|
|
||||||
|
* Switch all xorg.freedesktop.org URLs in packaging to https.
|
||||||
|
* Add Matt Turner's key to d/u/signing-key.asc.
|
||||||
|
* sessreg 1.1.1.
|
||||||
|
+ 03_sessreg_Pass-P-to-the-preprocessor-when-generating-filenames.diff:
|
||||||
|
drop, applied upstream
|
||||||
|
* Update packaging VCS URLs for move to salsa.
|
||||||
|
* iceauth 1.0.8
|
||||||
|
* xrdb 1.1.1
|
||||||
|
* xrefresh 1.0.6
|
||||||
|
* xset 1.2.4
|
||||||
|
* xsetroot 1.1.2
|
||||||
|
|
||||||
|
-- Julien Cristau <jcristau@debian.org> Sun, 18 Mar 2018 23:19:30 +0100
|
||||||
|
|
||||||
|
x11-xserver-utils (7.7+7) unstable; urgency=medium
|
||||||
|
|
||||||
|
* Add Breaks on arandr << 0.1.9 (see #815731).
|
||||||
|
|
||||||
|
-- Julien Cristau <jcristau@debian.org> Fri, 26 Feb 2016 11:56:46 +0100
|
||||||
|
|
||||||
|
x11-xserver-utils (7.7+6) unstable; urgency=medium
|
||||||
|
|
||||||
|
* xrandr 1.5.0.
|
||||||
|
* Bump Standards-Version to 3.9.6 (no changes).
|
||||||
|
* Update Vcs-* fields to use https and cgit.
|
||||||
|
|
||||||
|
-- Julien Cristau <jcristau@debian.org> Tue, 23 Feb 2016 20:52:25 +0100
|
||||||
|
|
||||||
|
x11-xserver-utils (7.7+5) unstable; urgency=high
|
||||||
|
|
||||||
|
* High urgency upload for RC bug fix.
|
||||||
|
* sessreg: fix FTBFS with gcc 5 (closes: #778176). Thanks to Matthias
|
||||||
|
Klose, Daniel Schepler and Aurélien Jarno.
|
||||||
|
|
||||||
|
-- Julien Cristau <jcristau@debian.org> Sat, 12 Sep 2015 12:16:27 +0200
|
||||||
|
|
||||||
|
x11-xserver-utils (7.7+4) unstable; urgency=medium
|
||||||
|
|
||||||
|
* Let uscan verify tarball signatures.
|
||||||
|
* iceauth 1.0.7.
|
||||||
|
* rgb 1.0.6.
|
||||||
|
* sessreg 1.1.0.
|
||||||
|
* xcmsdb 1.0.5.
|
||||||
|
* xgamma 1.0.6.
|
||||||
|
* xhost 1.0.7.
|
||||||
|
* xmodmap 1.0.9.
|
||||||
|
* xrandr 1.4.3.
|
||||||
|
* Bump x11proto-core-dev build-dep to 7.0.25.
|
||||||
|
* Bump debhelper compat level to 9.
|
||||||
|
|
||||||
|
-- Julien Cristau <jcristau@debian.org> Sat, 02 May 2015 18:50:43 +0200
|
||||||
|
|
||||||
|
x11-xserver-utils (7.7+3) unstable; urgency=medium
|
||||||
|
|
||||||
|
* xrandr 1.4.2
|
||||||
|
- Use more decimal places when printing various rates (closes: #736224)
|
||||||
|
|
||||||
|
-- Julien Cristau <jcristau@debian.org> Sun, 13 Jul 2014 15:34:05 +0200
|
||||||
|
|
||||||
|
x11-xserver-utils (7.7+2) unstable; urgency=medium
|
||||||
|
|
||||||
|
* Remove Cyril Brulebois from Uploaders.
|
||||||
|
* Bump to debhelper compat level 7 and use dh with the autoreconf addon.
|
||||||
|
Should make arm64 happy and closes: #735489. Thanks, Wookey!
|
||||||
|
|
||||||
|
-- Julien Cristau <jcristau@debian.org> Sun, 19 Jan 2014 09:38:17 +0100
|
||||||
|
|
||||||
|
x11-xserver-utils (7.7+1) unstable; urgency=low
|
||||||
|
|
||||||
|
[ Robert Hooker ]
|
||||||
|
* New upstream releases:
|
||||||
|
* xrandr 1.4.1
|
||||||
|
- Drop upstream patches.
|
||||||
|
* rgb 1.0.5
|
||||||
|
* xsetroot 1.1.1
|
||||||
|
* xstdcmap 1.0.3
|
||||||
|
* xvidtune 1.0.3
|
||||||
|
* xrefresh 1.0.5
|
||||||
|
* xhost 1.0.6
|
||||||
|
* iceauth 1.0.6
|
||||||
|
* xset 1.2.3
|
||||||
|
* Update copyright
|
||||||
|
|
||||||
|
[ Timo Aaltonen ]
|
||||||
|
* control: Bump libxrandr-dev build-dependency.
|
||||||
|
|
||||||
|
[ Julien Cristau ]
|
||||||
|
* sessreg 1.0.8.
|
||||||
|
* xmodmap 1.0.8
|
||||||
|
- fixes error in manpage example about swapping Control_L/Caps_Lock keys
|
||||||
|
(closes: #641588)
|
||||||
|
* xrdb 1.1.0
|
||||||
|
- Clarify .Xresources vs. .Xdefaults in man page (closes: #649187)
|
||||||
|
- Ensure we don't read out of ClassName array bounds for unknown visual
|
||||||
|
type (closes: #488535)
|
||||||
|
* Update/refresh patches.
|
||||||
|
* Disable silent build rules.
|
||||||
|
|
||||||
|
-- Julien Cristau <jcristau@debian.org> Sun, 15 Sep 2013 20:00:22 +0200
|
||||||
|
|
||||||
|
x11-xserver-utils (7.7~3) unstable; urgency=low
|
||||||
|
|
||||||
|
* xrandr: keystone.5c: cairo-5 box semantics changed default layout (allows
|
||||||
|
to work with new cairo-5c)
|
||||||
|
|
||||||
|
-- Julien Cristau <jcristau@debian.org> Fri, 11 May 2012 22:58:40 +0200
|
||||||
|
|
||||||
|
x11-xserver-utils (7.7~2) unstable; urgency=low
|
||||||
|
|
||||||
|
* xrandr: update keystone program to run with new nichrome bits
|
||||||
|
(cherry-picked from upstream git)
|
||||||
|
|
||||||
|
-- Julien Cristau <jcristau@debian.org> Tue, 01 May 2012 10:35:40 +0200
|
||||||
|
|
||||||
|
x11-xserver-utils (7.7~1) unstable; urgency=low
|
||||||
|
|
||||||
|
[ Julien Cristau ]
|
||||||
|
* xset 1.2.2
|
||||||
|
+ add build-dep on x11proto-core-dev 7.0.17
|
||||||
|
* Drop --disable-xprint from configure flags, it's not used anywhere.
|
||||||
|
* Stop passing RSH and MANCONF to configure. The former was only needed by
|
||||||
|
xsm, the latter by xman, before the xbase-clients split.
|
||||||
|
* sessreg 1.0.7.
|
||||||
|
* xcmsdb 1.0.4.
|
||||||
|
* xgamma 1.0.5.
|
||||||
|
* xhost 1.0.5.
|
||||||
|
* xmodmap 1.0.7.
|
||||||
|
* Don't use dh_testroot in debian/rules clean.
|
||||||
|
* Rediff 01_sessreg_implement_hostname_hashing.diff.
|
||||||
|
* 02_xmodmap-include-config.h-before-system-headers.diff: patch from
|
||||||
|
upstream git to fix a build failure.
|
||||||
|
|
||||||
|
[ Moritz Muehlenhoff ]
|
||||||
|
* Enable hardened build flags (closes: #655503)
|
||||||
|
|
||||||
|
-- Julien Cristau <jcristau@debian.org> Mon, 30 Apr 2012 21:22:58 +0200
|
||||||
|
|
||||||
|
x11-xserver-utils (7.6+3) unstable; urgency=low
|
||||||
|
|
||||||
|
* iceauth 1.0.5
|
||||||
|
* Drop 03_iceauth_manpage_commands.patch (merged upstream).
|
||||||
|
* xrandr 1.3.5
|
||||||
|
* Bump Standards-Version to 3.9.2 (no changes).
|
||||||
|
|
||||||
|
-- Cyril Brulebois <kibi@debian.org> Sat, 02 Jul 2011 19:55:25 +0200
|
||||||
|
|
||||||
|
x11-xserver-utils (7.6+2) unstable; urgency=high
|
||||||
|
|
||||||
|
[ Robert Hooker ]
|
||||||
|
* xrdb 1.0.9 (Fixes CVE-2011-0465)
|
||||||
|
|
||||||
|
-- Julien Cristau <jcristau@debian.org> Wed, 06 Apr 2011 10:25:37 +0200
|
||||||
|
|
||||||
|
x11-xserver-utils (7.6+1) unstable; urgency=low
|
||||||
|
|
||||||
|
[ David Nusinow ]
|
||||||
|
* Add 03_iceauth_manpage_commands.patch. Documents iceauth commands more
|
||||||
|
fully. Also fixes fd.o bug # 2354. Closes: #509837
|
||||||
|
|
||||||
|
[ Cyril Brulebois ]
|
||||||
|
* Make update-copyright target .PHONY
|
||||||
|
|
||||||
|
[ Julien Cristau ]
|
||||||
|
* xrdb 1.0.8.
|
||||||
|
* Remove Brice Goglin and David Nusinow from Uploaders. Thanks for your
|
||||||
|
work!
|
||||||
|
* Bump Standards-Version to 3.9.1.
|
||||||
|
* Refresh patches.
|
||||||
|
* Upload to unstable.
|
||||||
|
|
||||||
|
-- Julien Cristau <jcristau@debian.org> Thu, 10 Feb 2011 18:20:20 +0100
|
||||||
|
|
||||||
|
x11-xserver-utils (7.6~1) experimental; urgency=low
|
||||||
|
|
||||||
|
* New upstream release candidate: X11R7.6 RC1.
|
||||||
|
* iceauth 1.0.4
|
||||||
|
* rgb 1.0.4
|
||||||
|
* xcmsdb 1.0.3
|
||||||
|
* xgamma 1.0.4
|
||||||
|
* xhost 1.0.4
|
||||||
|
* xmodmap 1.0.5
|
||||||
|
* xrandr 1.3.4
|
||||||
|
* xrdb 1.0.7
|
||||||
|
* xrefresh 1.0.4
|
||||||
|
* xset 1.2.1
|
||||||
|
* xsetroot 1.1.0
|
||||||
|
* Add libxcursor-dev build-dep.
|
||||||
|
* xstdcmap 1.0.2
|
||||||
|
* Add an update-copyright target to refresh debian/copyright using
|
||||||
|
upstream's COPYING files, thanks to Julien Cristau.
|
||||||
|
* Refresh debian/copyright accordingly.
|
||||||
|
* Bump xutils-dev build-dep for new macros.
|
||||||
|
* Switch from --list-missing to --fail-missing for additional safety.
|
||||||
|
|
||||||
|
-- Cyril Brulebois <kibi@debian.org> Fri, 12 Nov 2010 19:16:48 +0100
|
||||||
|
|
||||||
|
x11-xserver-utils (7.5+2) unstable; urgency=low
|
||||||
|
|
||||||
|
[ Julien Cristau ]
|
||||||
|
* Rename the build directory to not include DEB_BUILD_GNU_TYPE for no
|
||||||
|
good reason. Thanks, Colin Watson!
|
||||||
|
* Remove myself from Uploaders
|
||||||
|
* debian/rules: add get-tarballs rule.
|
||||||
|
* xvidtune 1.0.2.
|
||||||
|
* Drop XS- prefix from Vcs-* control fields.
|
||||||
|
* Drop Pre-Depends on x11-common, only needed for upgrades from sarge.
|
||||||
|
|
||||||
|
[ Cyril Brulebois ]
|
||||||
|
* xrandr 1.3.3.
|
||||||
|
+ Fix segmentation fault on “xrandr --transform none” (closes: #579542).
|
||||||
|
* sessreg 1.0.6.
|
||||||
|
* Add myself to Uploaders.
|
||||||
|
|
||||||
|
-- Cyril Brulebois <kibi@debian.org> Sat, 24 Jul 2010 16:27:24 +0200
|
||||||
|
|
||||||
|
x11-xserver-utils (7.5+1) unstable; urgency=low
|
||||||
|
|
||||||
|
[ Julien Cristau ]
|
||||||
|
* Update xsetroot config.{guess,sub} for avr32 support (closes: #535715).
|
||||||
|
* Add README.source from xsfbs, and bump Standards-Version to 3.8.2.
|
||||||
|
* Remove xtrap (closes: #547547).
|
||||||
|
* Drop libxxf86misc-dev from Build-Depends. It's optional for xset, and
|
||||||
|
recent X servers don't support this extension anymore.
|
||||||
|
* Make 01_sessreg_implement_hostname_hashing.diff apply with -p1 instead of
|
||||||
|
-p0.
|
||||||
|
|
||||||
|
[ Brice Goglin ]
|
||||||
|
* iceauth 1.0.3.
|
||||||
|
* sessreg 1.0.5.
|
||||||
|
* xcmsdb 1.0.2.
|
||||||
|
* xgamma 1.0.3.
|
||||||
|
* xhost 1.0.3.
|
||||||
|
* xmodmap 1.0.4.
|
||||||
|
+ fix XKeysymDB path in manpage, obsoleting 02_xmodmap_manpage.diff
|
||||||
|
* xrandr 1.3.2.
|
||||||
|
* xrdb 1.0.6.
|
||||||
|
* xrefresh 1.0.3.
|
||||||
|
* xset 1.1.0.
|
||||||
|
+ Fix some typos in the manpage, closes: #525255.
|
||||||
|
+ Avoid warning from "xset r rate" when XF86Misc extension is not present,
|
||||||
|
closes: #526028.
|
||||||
|
* xsetroot 1.0.3.
|
||||||
|
* Suggests: xorg-docs-core since some manpages reference it in their
|
||||||
|
SEE ALSO section. Thanks Vincent Lefevre. Closes: #541220.
|
||||||
|
* Refresh patches.
|
||||||
|
|
||||||
|
-- Brice Goglin <bgoglin@debian.org> Sun, 06 Dec 2009 20:41:37 +0100
|
||||||
|
|
||||||
|
x11-xserver-utils (7.4+2) unstable; urgency=low
|
||||||
|
|
||||||
|
* xrandr 1.3.
|
||||||
|
* Upload to unstable.
|
||||||
|
|
||||||
|
-- Julien Cristau <jcristau@debian.org> Mon, 06 Apr 2009 18:38:39 +0200
|
||||||
|
|
||||||
|
x11-xserver-utils (7.4+1) experimental; urgency=low
|
||||||
|
|
||||||
|
* Add support for parallel=n in DEB_BUILD_OPTIONS, and for actually building
|
||||||
|
the apps in parallel. Install is still sequential, at least for now.
|
||||||
|
* rgb 1.0.3.
|
||||||
|
* Update debian/copyright from rgb's COPYING.
|
||||||
|
* sessreg 1.0.4.
|
||||||
|
* Add sessreg copyright and license to debian/copyright, from sessreg's
|
||||||
|
COPYING.
|
||||||
|
* xrandr 1.2.99.4.
|
||||||
|
* Drop all xrandr patches (included upstream).
|
||||||
|
* Refresh 01_sessreg_implement_hostname_hashing.diff.
|
||||||
|
* Bump libxrandr-dev build-dep to 2:1.2.99.3.
|
||||||
|
* Drop -1 debian revisions from build-deps to make lintian happy.
|
||||||
|
* Sanitize order of dh_installdeb, dh_shlibdeps and dh_makeshlibs in
|
||||||
|
debian/rules binary-arch (thanks, lintian!).
|
||||||
|
* Add Suggests on nickle and cairo-5c for the new xkeystone script.
|
||||||
|
|
||||||
|
-- Julien Cristau <jcristau@debian.org> Sun, 01 Feb 2009 16:06:42 +0100
|
||||||
|
|
||||||
x11-xserver-utils (7.3+5) unstable; urgency=low
|
x11-xserver-utils (7.3+5) unstable; urgency=low
|
||||||
|
|
||||||
* xrandr: Fix for 64bit: feed a pointer to the right size variable to
|
* xrandr: Fix for 64bit: feed a pointer to the right size variable to
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
debian/autoreconf
|
|
@ -1 +0,0 @@
|
||||||
5
|
|
|
@ -2,13 +2,23 @@ Source: x11-xserver-utils
|
||||||
Section: x11
|
Section: x11
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Maintainer: Debian X Strike Force <debian-x@lists.debian.org>
|
Maintainer: Debian X Strike Force <debian-x@lists.debian.org>
|
||||||
Uploaders: David Nusinow <dnusinow@debian.org>, Julien Cristau <jcristau@debian.org>, Brice Goglin <bgoglin@debian.org>
|
Build-Depends:
|
||||||
Build-Depends: debhelper (>= 5.0.0), pkg-config, libx11-dev (>= 2:1.0.0-1),
|
debhelper-compat (= 12),
|
||||||
libxaw7-dev (>= 1:1.0.1-1), libxext-dev (>= 1:1.0.0-1),
|
pkg-config,
|
||||||
libxi-dev (>= 1:1.0.0-3), libxmuu-dev (>= 1:1.0.1-1),
|
x11proto-core-dev (>= 7.0.25),
|
||||||
libxrandr-dev (>= 2:1.2.0-1), libxt-dev (>= 1:1.0.0-1),
|
libx11-dev (>= 2:1.0.0),
|
||||||
libxtrap-dev (>= 1:1.0.0-1), libxxf86vm-dev (>= 1:1.0.0-1), xbitmaps, quilt,
|
libxaw7-dev (>= 1:1.0.1),
|
||||||
x11proto-input-dev (>= 1.4), libxxf86misc-dev
|
libxext-dev (>= 1:1.0.0),
|
||||||
|
libxi-dev (>= 1:1.0.0-3),
|
||||||
|
libxmuu-dev (>= 1:1.0.1),
|
||||||
|
libxrandr-dev (>= 2:1.4.0),
|
||||||
|
libxt-dev (>= 1:1.0.0),
|
||||||
|
libxxf86vm-dev (>= 1:1.0.0),
|
||||||
|
xbitmaps,
|
||||||
|
quilt,
|
||||||
|
x11proto-input-dev (>= 1.4),
|
||||||
|
xutils-dev (>= 1:7.5+4),
|
||||||
|
libxcursor-dev,
|
||||||
# Reasons for build-depends:
|
# Reasons for build-depends:
|
||||||
# debhelper for the packaging, pkg-config needed by configure scripts
|
# debhelper for the packaging, pkg-config needed by configure scripts
|
||||||
# Individual apps:
|
# Individual apps:
|
||||||
|
@ -17,30 +27,31 @@ Build-Depends: debhelper (>= 5.0.0), pkg-config, libx11-dev (>= 2:1.0.0-1),
|
||||||
# xgamma: libx11-dev, libxxf86vm-dev
|
# xgamma: libx11-dev, libxxf86vm-dev
|
||||||
# xhost: libx11-dev, libxmuu-dev, libxau-dev
|
# xhost: libx11-dev, libxmuu-dev, libxau-dev
|
||||||
# xmodmap: libx11-dev
|
# xmodmap: libx11-dev
|
||||||
# xrandr: libxrandr-dev (>= 2:1.2.0), libxrender, libx11
|
# xrandr: libxrandr-dev (>= 2:1.4.0), libxrender, libx11
|
||||||
# xrdb: libxmuu-dev, libx11-dev
|
# xrdb: libxmuu-dev, libx11-dev
|
||||||
# xrefresh: libx11-dev
|
# xrefresh: libx11-dev
|
||||||
# xset: libxmuu-dev, libx11-dev, libxext-dev,
|
# xset: x11proto-core-dev (>= 7.0.17), libxmuu-dev, libx11-dev, libxext-dev,
|
||||||
# libxxf86misc-dev, (libxfontcache-dev)
|
# (libxxf86misc-dev), (libxfontcache-dev)
|
||||||
# xsetmode: libxi-dev, libx11-dev
|
# xsetmode: libxi-dev, libx11-dev
|
||||||
# xsetpointer: libxi-dev, libx11-dev, x11proto-input-dev (>= 1.4)
|
# xsetpointer: libxi-dev, libx11-dev, x11proto-input-dev (>= 1.4)
|
||||||
# xsetroot: libxmuu-dev, libx11-dev, xbitmaps
|
# xsetroot: libxmuu-dev, libx11-dev, xbitmaps, libxcursor-dev
|
||||||
# xstdcmap: libxmu-dev, libx11-dev
|
# xstdcmap: libxmu-dev, libx11-dev
|
||||||
# xtrap: libx11-dev, libxtrap-dev
|
|
||||||
# xvidtune: libxaw7-dev, libxxf86vm-dev, libxt-dev
|
# xvidtune: libxaw7-dev, libxxf86vm-dev, libxt-dev
|
||||||
Standards-Version: 3.7.2
|
Standards-Version: 4.5.0
|
||||||
XS-Vcs-Git: git://git.debian.org/git/pkg-xorg/app/x11-xserver-utils
|
Vcs-Git: https://salsa.debian.org/xorg-team/app/x11-xserver-utils
|
||||||
XS-Vcs-Browser: http://git.debian.org/?p=pkg-xorg/app/x11-xserver-utils.git
|
Vcs-Browser: https://salsa.debian.org/xorg-team/app/x11-xserver-utils
|
||||||
|
|
||||||
Package: x11-xserver-utils
|
Package: x11-xserver-utils
|
||||||
Architecture: any
|
Architecture: any
|
||||||
Depends: ${shlibs:Depends}, ${misc:Depends}, cpp
|
Depends: ${shlibs:Depends}, ${misc:Depends}, cpp
|
||||||
Pre-Depends: x11-common (>= 1:7.0.0)
|
|
||||||
Conflicts: iceauth, sessreg, xgamma, xhost, xmodmap, xrandr, xrdb, xrefresh, xrgb, xset,
|
Conflicts: iceauth, sessreg, xgamma, xhost, xmodmap, xrandr, xrdb, xrefresh, xrgb, xset,
|
||||||
xsetmode, xsetpointer, xsetroot, xstdcmap, xtrap, xvidtune
|
xsetmode, xsetpointer, xsetroot, xstdcmap, xvidtune
|
||||||
Replaces: xbase-clients (<< 1:7.3), xutils (<< 1:7.2),
|
Replaces: xbase-clients (<< 1:7.3), xutils (<< 1:7.2),
|
||||||
iceauth, sessreg, xgamma, xhost, xmodmap, xrandr, xrdb, xrefresh, xrgb, xset,
|
iceauth, sessreg, xgamma, xhost, xmodmap, xrandr, xrdb, xrefresh, xrgb, xset,
|
||||||
xsetmode, xsetpointer, xsetroot, xstdcmap, xtrap, xvidtune
|
xsetmode, xsetpointer, xsetroot, xstdcmap, xvidtune
|
||||||
|
Breaks:
|
||||||
|
arandr (<< 0.1.9),
|
||||||
|
Suggests: nickle, cairo-5c, xorg-docs-core
|
||||||
Description: X server utilities
|
Description: X server utilities
|
||||||
An X client is a program that interfaces with an X server (almost always via
|
An X client is a program that interfaces with an X server (almost always via
|
||||||
the X libraries), and thus with some input and output hardware like a
|
the X libraries), and thus with some input and output hardware like a
|
||||||
|
@ -63,6 +74,4 @@ Description: X server utilities
|
||||||
- xsetmode and xsetpointer, tools for handling X Input devices;
|
- xsetmode and xsetpointer, tools for handling X Input devices;
|
||||||
- xsetroot, a tool for tailoring the appearance of the root window;
|
- xsetroot, a tool for tailoring the appearance of the root window;
|
||||||
- xstdcmap, a utility to selectively define standard colormap properties;
|
- xstdcmap, a utility to selectively define standard colormap properties;
|
||||||
- xtrapchar, xtrapin, xtrapinfo, xtrapout, xtrapproto, xtrapreset, and
|
|
||||||
xtrapstats, a group of sample clients that use the XTrap extension;
|
|
||||||
- xvidtune, a tool for customizing X server modelines for your monitor.
|
- xvidtune, a tool for customizing X server modelines for your monitor.
|
||||||
|
|
|
@ -1,55 +1,170 @@
|
||||||
The contents of this package were downloaded from
|
The contents of this package were downloaded from
|
||||||
http://xorg.freedesktop.org/releases/individual/app/
|
https://xorg.freedesktop.org/releases/individual/app/
|
||||||
|
|
||||||
It contains the iceauth, rgb, sessreg, xcmsdb, xgamma, xhost, xmodmap, xrandr,
|
It contains the iceauth, rgb, sessreg, xcmsdb, xgamma, xhost, xmodmap, xrandr,
|
||||||
xrdb, xrefresh, xset, xsetmode, xsetpointer, xsetroot, xstdcmap, xtrap and
|
xrdb, xrefresh, xset, xsetmode, xsetpointer, xsetroot, xstdcmap, xvidtune
|
||||||
xvidtune applications.
|
applications
|
||||||
|
|
||||||
iceauth:
|
iceauth:
|
||||||
Copyright 1989, 1998 The Open Group
|
Copyright 1989, 1998 The Open Group
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this software and its
|
Permission to use, copy, modify, distribute, and sell this software and its
|
||||||
documentation for any purpose is hereby granted without fee, provided that
|
documentation for any purpose is hereby granted without fee, provided that
|
||||||
the above copyright notice appear in all copies and that both that
|
the above copyright notice appear in all copies and that both that
|
||||||
copyright notice and this permission notice appear in supporting
|
copyright notice and this permission notice appear in supporting
|
||||||
documentation.
|
documentation.
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in
|
The above copyright notice and this permission notice shall be included in
|
||||||
all copies or substantial portions of the Software.
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
||||||
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
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.
|
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
Except as contained in this notice, the name of The Open Group shall not be
|
Except as contained in this notice, the name of The Open Group shall not be
|
||||||
used in advertising or otherwise to promote the sale, use or other dealings
|
used in advertising or otherwise to promote the sale, use or other dealings
|
||||||
in this Software without prior written authorization from The Open Group.
|
in this Software without prior written authorization from The Open Group.
|
||||||
* *
|
|
||||||
* Original Author of "xauth" : Jim Fulton, MIT X Consortium
|
|
||||||
* Modified into "iceauth" : Ralph Mor, X Consortium
|
rgb:
|
||||||
*/
|
Copyright 1985, 1989, 1998 The Open Group
|
||||||
|
|
||||||
|
Permission to use, copy, modify, distribute, and sell this software and its
|
||||||
|
documentation for any purpose is hereby granted without fee, provided that
|
||||||
|
the above copyright notice appear in all copies and that both that
|
||||||
|
copyright notice and this permission notice appear in supporting
|
||||||
|
documentation.
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included
|
||||||
|
in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||||
|
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||||
|
IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
||||||
|
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||||
|
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||||
|
OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
Except as contained in this notice, the name of The Open Group shall
|
||||||
|
not be used in advertising or otherwise to promote the sale, use or
|
||||||
|
other dealings in this Software without prior written authorization
|
||||||
|
from The Open Group.
|
||||||
|
|
||||||
|
Copyright (c) 1994, 2008, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
|
||||||
|
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 (including the next
|
||||||
|
paragraph) 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 AUTHORS OR COPYRIGHT HOLDERS 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.
|
||||||
|
|
||||||
|
sessreg:
|
||||||
|
Copyright 1990, 1998 The Open Group
|
||||||
|
|
||||||
|
Permission to use, copy, modify, distribute, and sell this software and its
|
||||||
|
documentation for any purpose is hereby granted without fee, provided that
|
||||||
|
the above copyright notice appear in all copies and that both that
|
||||||
|
copyright notice and this permission notice appear in supporting
|
||||||
|
documentation.
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included
|
||||||
|
in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||||
|
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||||
|
IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
||||||
|
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||||
|
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||||
|
OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
Except as contained in this notice, the name of The Open Group shall
|
||||||
|
not be used in advertising or otherwise to promote the sale, use or
|
||||||
|
other dealings in this Software without prior written authorization
|
||||||
|
from The Open Group.
|
||||||
|
|
||||||
|
Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
|
||||||
|
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 (including the next
|
||||||
|
paragraph) 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 AUTHORS OR COPYRIGHT HOLDERS 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.
|
||||||
|
|
||||||
xcmsdb:
|
xcmsdb:
|
||||||
(c) Copyright 1990 Tektronix Inc.
|
(c) Copyright 1990 Tektronix Inc.
|
||||||
All Rights Reserved
|
All Rights Reserved
|
||||||
|
|
||||||
Permission to use, copy, modify, and distribute this software and its
|
Permission to use, copy, modify, and distribute this software and its
|
||||||
documentation for any purpose and without fee is hereby granted,
|
documentation for any purpose and without fee is hereby granted,
|
||||||
provided that the above copyright notice appear in all copies and that
|
provided that the above copyright notice appear in all copies and that
|
||||||
both that copyright notice and this permission notice appear in
|
both that copyright notice and this permission notice appear in
|
||||||
supporting documentation, and that the name of Tektronix not be used
|
supporting documentation, and that the name of Tektronix not be used
|
||||||
in advertising or publicity pertaining to distribution of the software
|
in advertising or publicity pertaining to distribution of the software
|
||||||
without specific, written prior permission.
|
without specific, written prior permission.
|
||||||
|
|
||||||
Tektronix disclaims all warranties with regard to this software, including
|
Tektronix disclaims all warranties with regard to this software, including
|
||||||
all implied warranties of merchantability and fitness, in no event shall
|
all implied warranties of merchantability and fitness, in no event shall
|
||||||
Tektronix be liable for any special, indirect or consequential damages or
|
Tektronix be liable for any special, indirect or consequential damages or
|
||||||
any damages whatsoever resulting from loss of use, data or profits,
|
any damages whatsoever resulting from loss of use, data or profits,
|
||||||
whether in an action of contract, negligence or other tortious action,
|
whether in an action of contract, negligence or other tortious action,
|
||||||
arising out of or in connection with the use or performance of this
|
arising out of or in connection with the use or performance of this
|
||||||
software.
|
software.
|
||||||
|
|
||||||
|
|
||||||
|
Copyright 1993, 1998 The Open Group
|
||||||
|
|
||||||
|
Permission to use, copy, modify, distribute, and sell this software and its
|
||||||
|
documentation for any purpose is hereby granted without fee, provided that
|
||||||
|
the above copyright notice appear in all copies and that both that
|
||||||
|
copyright notice and this permission notice appear in supporting
|
||||||
|
documentation.
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||||
|
THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||||
|
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
|
||||||
|
OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
|
|
||||||
|
Except as contained in this notice, the name of The Open Group shall not
|
||||||
|
be used in advertising or otherwise to promote the sale, use or other
|
||||||
|
dealing in this Software without prior written authorization from the
|
||||||
|
The Open Group.
|
||||||
|
|
||||||
xgamma:
|
xgamma:
|
||||||
Copyright 1999 by The XFree86 Project, Inc.
|
Copyright 1999 by The XFree86 Project, Inc.
|
||||||
|
@ -78,8 +193,6 @@ xgamma:
|
||||||
other dealings in this Software without prior written authorization
|
other dealings in this Software without prior written authorization
|
||||||
from The XFree86 Project.
|
from The XFree86 Project.
|
||||||
|
|
||||||
Written by David Bateman
|
|
||||||
|
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
Copyright 2005 Red Hat, Inc.
|
Copyright 2005 Red Hat, Inc.
|
||||||
|
|
||||||
|
@ -102,10 +215,31 @@ xgamma:
|
||||||
PERFORMANCE OF THIS SOFTWARE.
|
PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
xhost:
|
xhost:
|
||||||
Copyright 1985, 1986, 1987, 1998 The Open Group Copyright 2004 Sun Microsystems, Inc.
|
Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
|
||||||
|
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 (including the next
|
||||||
|
paragraph) 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 AUTHORS OR COPYRIGHT HOLDERS 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.
|
||||||
|
|
||||||
|
Copyright 1985, 1986, 1987, 1998 The Open Group
|
||||||
|
|
||||||
All rights reserved.
|
All rights reserved.
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a
|
Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
copy of this software and associated documentation files (the
|
copy of this software and associated documentation files (the
|
||||||
"Software"), to deal in the Software without restriction, including
|
"Software"), to deal in the Software without restriction, including
|
||||||
|
@ -115,7 +249,7 @@ xhost:
|
||||||
copyright notice(s) and this permission notice appear in all copies of
|
copyright notice(s) and this permission notice appear in all copies of
|
||||||
the Software and that both the above copyright notice(s) and this
|
the Software and that both the above copyright notice(s) and this
|
||||||
permission notice appear in supporting documentation.
|
permission notice appear in supporting documentation.
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||||
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||||
|
@ -125,24 +259,48 @@ xhost:
|
||||||
FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
|
FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
|
||||||
NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
|
NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
|
||||||
WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
Except as contained in this notice, the name of a copyright holder
|
Except as contained in this notice, the name of a copyright holder
|
||||||
shall not be used in advertising or otherwise to promote the sale, use
|
shall not be used in advertising or otherwise to promote the sale, use
|
||||||
or other dealings in this Software without prior written authorization
|
or other dealings in this Software without prior written authorization
|
||||||
of the copyright holder.
|
of the copyright holder.
|
||||||
|
|
||||||
|
X Window System is a trademark of The Open Group.
|
||||||
|
|
||||||
|
|
||||||
xmodmap:
|
xmodmap:
|
||||||
Copyright 1988, 1998 The Open Group
|
Copyright (c) 1987, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
|
||||||
|
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 (including the next
|
||||||
|
paragraph) 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 AUTHORS OR COPYRIGHT HOLDERS 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.
|
||||||
|
|
||||||
|
Copyright 1988, 1989, 1990, 1998 The Open Group
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this software and its
|
Permission to use, copy, modify, distribute, and sell this software and its
|
||||||
documentation for any purpose is hereby granted without fee, provided that
|
documentation for any purpose is hereby granted without fee, provided that
|
||||||
the above copyright notice appear in all copies and that both that
|
the above copyright notice appear in all copies and that both that
|
||||||
copyright notice and this permission notice appear in supporting
|
copyright notice and this permission notice appear in supporting
|
||||||
documentation.
|
documentation.
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included
|
The above copyright notice and this permission notice shall be included
|
||||||
in all copies or substantial portions of the Software.
|
in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||||
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||||
|
@ -150,7 +308,7 @@ xmodmap:
|
||||||
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
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
|
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||||
OTHER DEALINGS IN THE SOFTWARE.
|
OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
Except as contained in this notice, the name of The Open Group shall
|
Except as contained in this notice, the name of The Open Group shall
|
||||||
not be used in advertising or otherwise to promote the sale, use or
|
not be used in advertising or otherwise to promote the sale, use or
|
||||||
other dealings in this Software without prior written authorization
|
other dealings in this Software without prior written authorization
|
||||||
|
@ -160,7 +318,7 @@ xrandr:
|
||||||
Copyright © 2001 Keith Packard, member of The XFree86 Project, Inc.
|
Copyright © 2001 Keith Packard, member of The XFree86 Project, Inc.
|
||||||
Copyright © 2002 Hewlett Packard Company, Inc.
|
Copyright © 2002 Hewlett Packard Company, Inc.
|
||||||
Copyright © 2006 Intel Corporation
|
Copyright © 2006 Intel Corporation
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this software and its
|
Permission to use, copy, modify, distribute, and sell this software and its
|
||||||
documentation for any purpose is hereby granted without fee, provided that
|
documentation for any purpose is hereby granted without fee, provided that
|
||||||
the above copyright notice appear in all copies and that both that copyright
|
the above copyright notice appear in all copies and that both that copyright
|
||||||
|
@ -170,7 +328,7 @@ xrandr:
|
||||||
written prior permission. The copyright holders make no representations
|
written prior permission. The copyright holders make no representations
|
||||||
about the suitability of this software for any purpose. It is provided "as
|
about the suitability of this software for any purpose. It is provided "as
|
||||||
is" without express or implied warranty.
|
is" without express or implied warranty.
|
||||||
|
|
||||||
THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
||||||
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
|
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
|
||||||
EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
|
EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
|
||||||
|
@ -180,23 +338,23 @@ xrandr:
|
||||||
OF THIS SOFTWARE.
|
OF THIS SOFTWARE.
|
||||||
|
|
||||||
xrdb:
|
xrdb:
|
||||||
COPYRIGHT 1987, 1991
|
|
||||||
DIGITAL EQUIPMENT CORPORATION
|
COPYRIGHT 1987, 1991
|
||||||
MAYNARD, MASSACHUSETTS
|
DIGITAL EQUIPMENT CORPORATION
|
||||||
MASSACHUSETTS INSTITUTE OF TECHNOLOGY
|
MAYNARD, MASSACHUSETTS
|
||||||
CAMBRIDGE, MASSACHUSETTS
|
MASSACHUSETTS INSTITUTE OF TECHNOLOGY
|
||||||
ALL RIGHTS RESERVED.
|
CAMBRIDGE, MASSACHUSETTS
|
||||||
|
ALL RIGHTS RESERVED.
|
||||||
|
|
||||||
THE INFORMATION IN THIS SOFTWARE IS SUBJECT TO CHANGE WITHOUT NOTICE AND
|
THE INFORMATION IN THIS SOFTWARE IS SUBJECT TO CHANGE WITHOUT NOTICE AND
|
||||||
SHOULD NOT BE CONSTRUED AS A COMMITMENT BY DIGITAL EQUIPMENT CORPORATION.
|
SHOULD NOT BE CONSTRUED AS A COMMITMENT BY DIGITAL EQUIPMENT CORPORATION.
|
||||||
DIGITAL MAKES NO REPRESENTATIONS ABOUT THE SUITABILITY OF THIS SOFTWARE FOR
|
DIGITAL MAKES NO REPRESENTATIONS ABOUT THE SUITABILITY OF THIS SOFTWARE FOR
|
||||||
ANY PURPOSE. IT IS SUPPLIED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY.
|
ANY PURPOSE. IT IS SUPPLIED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY.
|
||||||
|
|
||||||
IF THE SOFTWARE IS MODIFIED IN A MANNER CREATING DERIVATIVE COPYRIGHT RIGHTS,
|
IF THE SOFTWARE IS MODIFIED IN A MANNER CREATING DERIVATIVE COPYRIGHT RIGHTS,
|
||||||
APPROPRIATE LEGENDS MAY BE PLACED ON THE DERIVATIVE WORK IN ADDITION TO THAT
|
APPROPRIATE LEGENDS MAY BE PLACED ON THE DERIVATIVE WORK IN ADDITION TO THAT
|
||||||
SET FORTH ABOVE.
|
SET FORTH ABOVE.
|
||||||
|
|
||||||
|
|
||||||
Permission to use, copy, modify, and distribute this software and its
|
Permission to use, copy, modify, and distribute this software and its
|
||||||
documentation for any purpose and without fee is hereby granted, provided
|
documentation for any purpose and without fee is hereby granted, provided
|
||||||
that the above copyright notice appear in all copies and that both that
|
that the above copyright notice appear in all copies and that both that
|
||||||
|
@ -205,42 +363,69 @@ xrdb:
|
||||||
used in advertising or publicity pertaining to distribution of the software
|
used in advertising or publicity pertaining to distribution of the software
|
||||||
without specific, written prior permission.
|
without specific, written prior permission.
|
||||||
|
|
||||||
xrefresh:
|
----------------------------------------------------------------
|
||||||
Copyright 1987, 1988, 1998 The Open Group
|
|
||||||
|
Copyright 1991, Digital Equipment Corporation.
|
||||||
|
Copyright 1991, 1994, 1998 The Open Group
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this software and its
|
Permission to use, copy, modify, distribute, and sell this software and its
|
||||||
documentation for any purpose is hereby granted without fee, provided that
|
documentation for any purpose is hereby granted without fee, provided that
|
||||||
the above copyright notice appear in all copies and that both that
|
the above copyright notice appear in all copies and that both that
|
||||||
copyright notice and this permission notice appear in supporting
|
copyright notice and this permission notice appear in supporting
|
||||||
documentation.
|
documentation.
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included
|
||||||
|
in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||||
|
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||||
|
IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
||||||
|
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||||
|
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||||
|
OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
Except as contained in this notice, the name of The Open Group shall
|
||||||
|
not be used in advertising or otherwise to promote the sale, use or
|
||||||
|
other dealings in this Software without prior written authorization
|
||||||
|
from The Open Group.
|
||||||
|
|
||||||
|
xrefresh:
|
||||||
|
Copyright 1987, 1988, 1998 The Open Group
|
||||||
|
|
||||||
|
Permission to use, copy, modify, distribute, and sell this software and its
|
||||||
|
documentation for any purpose is hereby granted without fee, provided that
|
||||||
|
the above copyright notice appear in all copies and that both that
|
||||||
|
copyright notice and this permission notice appear in supporting
|
||||||
|
documentation.
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in
|
The above copyright notice and this permission notice shall be included in
|
||||||
all copies or substantial portions of the Software.
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
||||||
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
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.
|
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
Except as contained in this notice, the name of The Open Group shall not be
|
Except as contained in this notice, the name of The Open Group shall not be
|
||||||
used in advertising or otherwise to promote the sale, use or other dealings
|
used in advertising or otherwise to promote the sale, use or other dealings
|
||||||
in this Software without prior written authorization from The Open Group.
|
in this Software without prior written authorization from The Open Group.
|
||||||
|
|
||||||
|
|
||||||
Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts.
|
Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts.
|
||||||
|
|
||||||
All Rights Reserved
|
All Rights Reserved
|
||||||
|
|
||||||
Permission to use, copy, modify, and distribute this software and its
|
Permission to use, copy, modify, and distribute this software and its
|
||||||
documentation for any purpose and without fee is hereby granted,
|
documentation for any purpose and without fee is hereby granted,
|
||||||
provided that the above copyright notice appear in all copies and that
|
provided that the above copyright notice appear in all copies and that
|
||||||
both that copyright notice and this permission notice appear in
|
both that copyright notice and this permission notice appear in
|
||||||
supporting documentation, and that the name of Digital not be
|
supporting documentation, and that the name of Digital not be
|
||||||
used in advertising or publicity pertaining to distribution of the
|
used in advertising or publicity pertaining to distribution of the
|
||||||
software without specific, written prior permission.
|
software without specific, written prior permission.
|
||||||
|
|
||||||
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
|
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
|
||||||
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
|
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
|
||||||
DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
|
DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
|
||||||
|
@ -250,31 +435,31 @@ xrefresh:
|
||||||
SOFTWARE.
|
SOFTWARE.
|
||||||
|
|
||||||
xset:
|
xset:
|
||||||
Copyright 1985, 1998 The Open Group
|
Copyright 1985, 1988, 1998 The Open Group
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this software and its
|
Permission to use, copy, modify, distribute, and sell this software and its
|
||||||
documentation for any purpose is hereby granted without fee, provided that
|
documentation for any purpose is hereby granted without fee, provided that
|
||||||
the above copyright notice appear in all copies and that both that
|
the above copyright notice appear in all copies and that both that
|
||||||
copyright notice and this permission notice appear in supporting
|
copyright notice and this permission notice appear in supporting
|
||||||
documentation.
|
documentation.
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in
|
The above copyright notice and this permission notice shall be included in
|
||||||
all copies or substantial portions of the Software.
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
||||||
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
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.
|
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
Except as contained in this notice, the name of The Open Group shall not be
|
Except as contained in this notice, the name of The Open Group shall not be
|
||||||
used in advertising or otherwise to promote the sale, use or other dealings
|
used in advertising or otherwise to promote the sale, use or other dealings
|
||||||
in this Software without prior written authorization from The Open Group.
|
in this Software without prior written authorization from The Open Group.
|
||||||
|
|
||||||
xsetmode:
|
xsetmode:
|
||||||
Copyright 1995 by Frederic Lepied, France. <fred@sugix.frmug.fr.net>
|
Copyright 1995 by Frederic Lepied, France. <fred@sugix.frmug.fr.net>
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this software and its
|
Permission to use, copy, modify, distribute, and sell this software and its
|
||||||
documentation for any purpose is hereby granted without fee, provided that
|
documentation for any purpose is hereby granted without fee, provided that
|
||||||
the above copyright notice appear in all copies and that both that
|
the above copyright notice appear in all copies and that both that
|
||||||
|
@ -283,8 +468,8 @@ xsetmode:
|
||||||
advertising or publicity pertaining to distribution of the software without
|
advertising or publicity pertaining to distribution of the software without
|
||||||
specific, written prior permission. Frederic Lepied makes no
|
specific, written prior permission. Frederic Lepied makes no
|
||||||
representations about the suitability of this software for any purpose. It
|
representations about the suitability of this software for any purpose. It
|
||||||
is provided "as is" without express or implied warranty.
|
is provided "as is" without express or implied warranty.
|
||||||
|
|
||||||
FREDERIC LEPIED DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
FREDERIC LEPIED DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
||||||
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
|
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
|
||||||
EVENT SHALL FREDERIC LEPIED BE LIABLE FOR ANY SPECIAL, INDIRECT OR
|
EVENT SHALL FREDERIC LEPIED BE LIABLE FOR ANY SPECIAL, INDIRECT OR
|
||||||
|
@ -294,8 +479,8 @@ xsetmode:
|
||||||
PERFORMANCE OF THIS SOFTWARE.
|
PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
xsetpointer:
|
xsetpointer:
|
||||||
Copyright 1995 by Frederic Lepied, France. <fred@sugix.frmug.fr.net>
|
Copyright 1995 by Frederic Lepied, France. <fred@sugix.frmug.fr.net>
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this software and its
|
Permission to use, copy, modify, distribute, and sell this software and its
|
||||||
documentation for any purpose is hereby granted without fee, provided that
|
documentation for any purpose is hereby granted without fee, provided that
|
||||||
the above copyright notice appear in all copies and that both that
|
the above copyright notice appear in all copies and that both that
|
||||||
|
@ -304,8 +489,8 @@ xsetpointer:
|
||||||
advertising or publicity pertaining to distribution of the software without
|
advertising or publicity pertaining to distribution of the software without
|
||||||
specific, written prior permission. Frederic Lepied makes no
|
specific, written prior permission. Frederic Lepied makes no
|
||||||
representations about the suitability of this software for any purpose. It
|
representations about the suitability of this software for any purpose. It
|
||||||
is provided "as is" without express or implied warranty.
|
is provided "as is" without express or implied warranty.
|
||||||
|
|
||||||
FREDERIC LEPIED DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
FREDERIC LEPIED DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
||||||
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
|
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
|
||||||
EVENT SHALL FREDERIC LEPIED BE LIABLE FOR ANY SPECIAL, INDIRECT OR
|
EVENT SHALL FREDERIC LEPIED BE LIABLE FOR ANY SPECIAL, INDIRECT OR
|
||||||
|
@ -315,90 +500,54 @@ xsetpointer:
|
||||||
PERFORMANCE OF THIS SOFTWARE.
|
PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
xsetroot:
|
xsetroot:
|
||||||
Copyright 1987, 1998 The Open Group
|
Copyright 1987, 1988, 1998 The Open Group
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this software and its
|
Permission to use, copy, modify, distribute, and sell this software and its
|
||||||
documentation for any purpose is hereby granted without fee, provided that
|
documentation for any purpose is hereby granted without fee, provided that
|
||||||
the above copyright notice appear in all copies and that both that
|
the above copyright notice appear in all copies and that both that
|
||||||
copyright notice and this permission notice appear in supporting
|
copyright notice and this permission notice appear in supporting
|
||||||
documentation.
|
documentation.
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in
|
The above copyright notice and this permission notice shall be included in
|
||||||
all copies or substantial portions of the Software.
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
||||||
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
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.
|
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
Except as contained in this notice, the name of The Open Group shall not be
|
Except as contained in this notice, the name of The Open Group shall not be
|
||||||
used in advertising or otherwise to promote the sale, use or other dealings
|
used in advertising or otherwise to promote the sale, use or other dealings
|
||||||
in this Software without prior written authorization from The Open Group.
|
in this Software without prior written authorization from The Open Group.
|
||||||
*/
|
|
||||||
* Author: Mark Lillibridge, MIT Project Athena
|
|
||||||
* 11-Jun-87
|
|
||||||
|
|
||||||
xstdcmap:
|
xstdcmap:
|
||||||
Copyright 1989, 1998 The Open Group
|
Copyright 1989, 1994, 1998 The Open Group
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this software and its
|
Permission to use, copy, modify, distribute, and sell this software and its
|
||||||
documentation for any purpose is hereby granted without fee, provided that
|
documentation for any purpose is hereby granted without fee, provided that
|
||||||
the above copyright notice appear in all copies and that both that
|
the above copyright notice appear in all copies and that both that
|
||||||
copyright notice and this permission notice appear in supporting
|
copyright notice and this permission notice appear in supporting
|
||||||
documentation.
|
documentation.
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in
|
The above copyright notice and this permission notice shall be included in
|
||||||
all copies or substantial portions of the Software.
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
||||||
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
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.
|
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
Except as contained in this notice, the name of The Open Group shall not be
|
Except as contained in this notice, the name of The Open Group shall not be
|
||||||
used in advertising or otherwise to promote the sale, use or other dealings
|
used in advertising or otherwise to promote the sale, use or other dealings
|
||||||
in this Software without prior written authorization from The Open Group.
|
in this Software without prior written authorization from The Open Group.
|
||||||
* *
|
|
||||||
* Author: Donna Converse, MIT X Consortium
|
|
||||||
|
|
||||||
xtrap:
|
|
||||||
Copyright 1987, 1988, 1989, 1990, 1991, 1992, 1993 by Digital Equipment Corp.,
|
|
||||||
Maynard, MA
|
|
||||||
|
|
||||||
Permission to use, copy, modify, and distribute this software and its
|
|
||||||
documentation for any purpose and without fee is hereby granted,
|
|
||||||
provided that the above copyright notice appear in all copies and that
|
|
||||||
both that copyright notice and this permission notice appear in
|
|
||||||
supporting documentation, and that the name of Digital not be
|
|
||||||
used in advertising or publicity pertaining to distribution of the
|
|
||||||
software without specific, written prior permission.
|
|
||||||
|
|
||||||
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
|
|
||||||
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
|
|
||||||
DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
|
|
||||||
ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
|
||||||
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
|
||||||
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
|
||||||
SOFTWARE.
|
|
||||||
|
|
||||||
CONTRIBUTORS:
|
|
||||||
|
|
||||||
Dick Annicchiarico
|
|
||||||
Robert Chesler
|
|
||||||
Dan Coutu
|
|
||||||
Gene Durso
|
|
||||||
Marc Evans
|
|
||||||
Alan Jamison
|
|
||||||
Mark Henry
|
|
||||||
Ken Miller
|
|
||||||
|
|
||||||
xvidtune:
|
xvidtune:
|
||||||
Copyright (c) 1995 Kaleb S. KEITHLEY
|
Copyright (c) 1995 Kaleb S. KEITHLEY
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
a copy of this software and associated documentation files (the
|
a copy of this software and associated documentation files (the
|
||||||
"Software"), to deal in the Software without restriction, including
|
"Software"), to deal in the Software without restriction, including
|
||||||
|
@ -406,19 +555,19 @@ xvidtune:
|
||||||
distribute, sublicense, and/or sell copies of the Software, and to
|
distribute, sublicense, and/or sell copies of the Software, and to
|
||||||
permit persons to whom the Software is furnished to do so, subject to
|
permit persons to whom the Software is furnished to do so, subject to
|
||||||
the following conditions:
|
the following conditions:
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be
|
The above copyright notice and this permission notice shall be
|
||||||
included in all copies or substantial portions of the Software.
|
included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||||
IN NO EVENT SHALL Kaleb S. KEITHLEY BE LIABLE FOR ANY CLAIM, DAMAGES
|
IN NO EVENT SHALL Kaleb S. KEITHLEY BE LIABLE FOR ANY CLAIM, DAMAGES
|
||||||
OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
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
|
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||||
OTHER DEALINGS IN THE SOFTWARE.
|
OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
Except as contained in this notice, the name of Kaleb S. KEITHLEY
|
Except as contained in this notice, the name of Kaleb S. KEITHLEY
|
||||||
shall not be used in advertising or otherwise to promote the sale, use
|
shall not be used in advertising or otherwise to promote the sale, use
|
||||||
or other dealings in this Software without prior written authorization
|
or other dealings in this Software without prior written authorization
|
||||||
from Kaleb S. KEITHLEY.
|
from Kaleb S. KEITHLEY.
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
The contents of this package were downloaded from
|
||||||
|
https://xorg.freedesktop.org/releases/individual/app/
|
||||||
|
|
||||||
|
It contains the iceauth, rgb, sessreg, xcmsdb, xgamma, xhost, xmodmap, xrandr,
|
||||||
|
xrdb, xrefresh, xset, xsetmode, xsetpointer, xsetroot, xstdcmap, xvidtune
|
||||||
|
applications
|
|
@ -13,15 +13,17 @@ hash algorithm by Bob Jenkins.
|
||||||
|
|
||||||
Not submitted to XFree86.
|
Not submitted to XFree86.
|
||||||
|
|
||||||
Index: sessreg/sessreg.c
|
---
|
||||||
===================================================================
|
sessreg/sessreg.c | 164 ++++++++++++++++++++++++++++++++++++++++++++++++++----
|
||||||
--- sessreg/sessreg.c.orig 2005-10-18 19:45:25.000000000 -0400
|
1 file changed, 152 insertions(+), 12 deletions(-)
|
||||||
+++ sessreg/sessreg.c 2005-10-18 21:36:02.000000000 -0400
|
|
||||||
@@ -182,6 +182,18 @@
|
--- a/sessreg/sessreg.c
|
||||||
const char *host, Time_t date, int addp);
|
+++ b/sessreg/sessreg.c
|
||||||
|
@@ -89,6 +89,18 @@ static void set_utmpx (struct utmpx *u,
|
||||||
|
const char *host, time_t date, int addp);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
+#ifdef SYSV
|
+#ifdef HAVE_STRUCT_UTMP_UT_ID
|
||||||
+/* used for hashing ut_id */
|
+/* used for hashing ut_id */
|
||||||
+typedef unsigned long int ub4; /* unsigned 4-byte quantities */
|
+typedef unsigned long int ub4; /* unsigned 4-byte quantities */
|
||||||
+typedef unsigned char ub1; /* unsigned 1-byte quantities */
|
+typedef unsigned char ub1; /* unsigned 1-byte quantities */
|
||||||
|
@ -33,14 +35,14 @@ Index: sessreg/sessreg.c
|
||||||
+
|
+
|
||||||
+#endif
|
+#endif
|
||||||
+
|
+
|
||||||
int wflag, uflag, lflag;
|
static int wflag, uflag, lflag;
|
||||||
char *wtmp_file, *utmp_file, *line;
|
static const char *wtmp_file, *utmp_file;
|
||||||
#ifdef USE_UTMPX
|
#ifdef USE_UTMPX
|
||||||
@@ -469,21 +481,23 @@
|
@@ -452,21 +464,23 @@ set_utmp (struct utmp *u, char *line, ch
|
||||||
bzero (u->ut_name, sizeof (u->ut_name));
|
memset (u->ut_name, 0, sizeof (u->ut_name));
|
||||||
#ifdef SYSV
|
#ifdef HAVE_STRUCT_UTMP_UT_ID
|
||||||
if (line) {
|
if (line) {
|
||||||
- int i;
|
- size_t i;
|
||||||
/*
|
/*
|
||||||
- * this is a bit crufty, but
|
- * this is a bit crufty, but
|
||||||
- * follows the apparent conventions in
|
- * follows the apparent conventions in
|
||||||
|
@ -56,7 +58,7 @@ Index: sessreg/sessreg.c
|
||||||
- i -= sizeof (u->ut_id);
|
- i -= sizeof (u->ut_id);
|
||||||
- else
|
- else
|
||||||
- i = 0;
|
- i = 0;
|
||||||
- (void) strncpy (u->ut_id, line + i, sizeof (u->ut_id));
|
- safe_strncpy (u->ut_id, line + i, sizeof (u->ut_id));
|
||||||
+ ub4 h;
|
+ ub4 h;
|
||||||
+ u->ut_id[0]=':';
|
+ u->ut_id[0]=':';
|
||||||
+ h = hash(line, strlen(line),0x9e3779b9);
|
+ h = hash(line, strlen(line),0x9e3779b9);
|
||||||
|
@ -68,16 +70,16 @@ Index: sessreg/sessreg.c
|
||||||
+ * Clearing ut_id may result in race conditions leading to corrupted
|
+ * Clearing ut_id may result in race conditions leading to corrupted
|
||||||
+ * utmp entries and and potential security holes.
|
+ * utmp entries and and potential security holes.
|
||||||
+ */
|
+ */
|
||||||
+ /* TODO: CHECK this */
|
+ /* TODO: CHECK this */
|
||||||
bzero (u->ut_id, sizeof (u->ut_id));
|
memset (u->ut_id, 0, sizeof (u->ut_id));
|
||||||
if (addp) {
|
#endif
|
||||||
u->ut_pid = getppid ();
|
#ifdef HAVE_STRUCT_UTMP_UT_PID
|
||||||
@@ -722,3 +736,129 @@
|
@@ -716,3 +730,129 @@ findslot (char *line_name, char *host_na
|
||||||
return freeslot;
|
return freeslot;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
+
|
+
|
||||||
+#ifdef SYSV
|
+#ifdef HAVE_STRUCT_UTMP_UT_ID
|
||||||
+/*
|
+/*
|
||||||
+--------------------------------------------------------------------
|
+--------------------------------------------------------------------
|
||||||
+mix -- mix 3 32-bit values reversibly.
|
+mix -- mix 3 32-bit values reversibly.
|
||||||
|
|
|
@ -0,0 +1,60 @@
|
||||||
|
From 42f99a7a7b836f6f9704a7b1747eb722c93446ec Mon Sep 17 00:00:00 2001
|
||||||
|
From: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Mon, 23 Apr 2012 07:28:39 -0700
|
||||||
|
Subject: [PATCH] include config.h before stdio.h & other system headers
|
||||||
|
|
||||||
|
Ensures definitions like _GNU_SOURCE are visible when needed.
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
|
||||||
|
---
|
||||||
|
exec.c | 4 ++++
|
||||||
|
pf.c | 4 ++++
|
||||||
|
xmodmap.c | 4 ++++
|
||||||
|
3 files changed, 12 insertions(+)
|
||||||
|
|
||||||
|
Index: x11-xserver-utils/xmodmap/exec.c
|
||||||
|
===================================================================
|
||||||
|
--- x11-xserver-utils.orig/xmodmap/exec.c
|
||||||
|
+++ x11-xserver-utils/xmodmap/exec.c
|
||||||
|
@@ -62,6 +62,10 @@ from The Open Group.
|
||||||
|
#include <X11/Xwindows.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
+#ifdef HAVE_CONFIG_H
|
||||||
|
+# include "config.h"
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
#include <X11/Xos.h>
|
||||||
|
#include <X11/Xlib.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
Index: x11-xserver-utils/xmodmap/pf.c
|
||||||
|
===================================================================
|
||||||
|
--- x11-xserver-utils.orig/xmodmap/pf.c
|
||||||
|
+++ x11-xserver-utils/xmodmap/pf.c
|
||||||
|
@@ -30,6 +30,10 @@ from The Open Group.
|
||||||
|
# include "config.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
+#ifdef HAVE_CONFIG_H
|
||||||
|
+# include "config.h"
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
#include <X11/Xos.h>
|
||||||
|
#include <X11/Xlib.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
Index: x11-xserver-utils/xmodmap/xmodmap.c
|
||||||
|
===================================================================
|
||||||
|
--- x11-xserver-utils.orig/xmodmap/xmodmap.c
|
||||||
|
+++ x11-xserver-utils/xmodmap/xmodmap.c
|
||||||
|
@@ -30,6 +30,10 @@ from The Open Group.
|
||||||
|
# include "config.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
+#ifdef HAVE_CONFIG_H
|
||||||
|
+# include "config.h"
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
#include <X11/Xos.h>
|
||||||
|
#include <X11/Xlib.h>
|
||||||
|
#include <stdio.h>
|
|
@ -1,13 +0,0 @@
|
||||||
Index: x11-xserver-utils/xmodmap/xmodmap.man
|
|
||||||
===================================================================
|
|
||||||
--- x11-xserver-utils.orig/xmodmap/xmodmap.man 2007-04-12 00:19:34.000000000 +0200
|
|
||||||
+++ x11-xserver-utils/xmodmap/xmodmap.man 2007-08-13 15:13:53.000000000 +0200
|
|
||||||
@@ -141,7 +141,7 @@
|
|
||||||
used to perform the corresponding set of \fBkeycode\fP expressions.
|
|
||||||
The list of keysym names may be
|
|
||||||
found in the header file \fI<X11/keysymdef.h>\fP (without the \fIXK_\fP prefix)
|
|
||||||
-or the keysym database \fI __projectroot__/lib/X11/XKeysymDB\fP. Note that
|
|
||||||
+or the keysym database \fI __projectroot__/share/X11/XKeysymDB\fP. Note that
|
|
||||||
if the same keysym is bound to multiple keys, the expression is executed
|
|
||||||
for each matching keycode.
|
|
||||||
.TP 8
|
|
|
@ -1,56 +0,0 @@
|
||||||
From 4dcc8ae1a6903434def1a2706f7c68ff9e2a17c4 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Hong Liu <hong.liu@intel.com>
|
|
||||||
Date: Mon, 10 Mar 2008 21:37:09 -0700
|
|
||||||
Subject: [PATCH] Move outputs among crtcs as necessary. Fixes 14570
|
|
||||||
|
|
||||||
This patch makes new requests override existing crtc allocations. Outputs
|
|
||||||
with restricted crtc usage can now force existing outputs to switch
|
|
||||||
automatcially.
|
|
||||||
---
|
|
||||||
xrandr.c | 9 ++++++---
|
|
||||||
1 files changed, 6 insertions(+), 3 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/xrandr/xrandr.c b/xrandr/xrandr.c
|
|
||||||
index e2a657f..41e15dd 100644
|
|
||||||
--- a/xrandr/xrandr.c
|
|
||||||
+++ b/xrandr/xrandr.c
|
|
||||||
@@ -1241,7 +1241,7 @@ mark_changing_crtcs (void)
|
|
||||||
* Test whether 'crtc' can be used for 'output'
|
|
||||||
*/
|
|
||||||
Bool
|
|
||||||
-check_crtc_for_output (crtc_t *crtc, output_t *output)
|
|
||||||
+check_crtc_for_output (crtc_t *crtc, output_t *output, Bool ignore_state)
|
|
||||||
{
|
|
||||||
int c;
|
|
||||||
int l;
|
|
||||||
@@ -1272,6 +1272,9 @@ check_crtc_for_output (crtc_t *crtc, output_t *output)
|
|
||||||
return False;
|
|
||||||
}
|
|
||||||
|
|
||||||
+ if (ignore_state)
|
|
||||||
+ return True;
|
|
||||||
+
|
|
||||||
if (crtc->noutput)
|
|
||||||
{
|
|
||||||
/* make sure the state matches */
|
|
||||||
@@ -1313,7 +1316,7 @@ find_crtc_for_output (output_t *output)
|
|
||||||
crtc = find_crtc_by_xid (output->output_info->crtcs[c]);
|
|
||||||
if (!crtc) fatal ("cannot find crtc 0x%x\n", output->output_info->crtcs[c]);
|
|
||||||
|
|
||||||
- if (check_crtc_for_output (crtc, output))
|
|
||||||
+ if (check_crtc_for_output (crtc, output, False))
|
|
||||||
return crtc;
|
|
||||||
}
|
|
||||||
return NULL;
|
|
||||||
@@ -1518,7 +1521,7 @@ pick_crtcs_score (output_t *outputs)
|
|
||||||
|
|
||||||
/* reset crtc allocation for following outputs */
|
|
||||||
disable_outputs (outputs);
|
|
||||||
- if (!check_crtc_for_output (crtc, output))
|
|
||||||
+ if (!check_crtc_for_output (crtc, output, True))
|
|
||||||
continue;
|
|
||||||
|
|
||||||
my_score = 1000;
|
|
||||||
--
|
|
||||||
1.5.6.3
|
|
||||||
|
|
|
@ -1,29 +0,0 @@
|
||||||
From 3046799a06ecb79211ef0f4a2db9de4eec7233fb Mon Sep 17 00:00:00 2001
|
|
||||||
From: Egbert Eich <eich@freedesktop.org>
|
|
||||||
Date: Sun, 3 Aug 2008 13:24:49 +0200
|
|
||||||
Subject: [PATCH] Fix for 64bit: feed a pointer to the right size variable to scanf().
|
|
||||||
|
|
||||||
XID is unsigned long, however %x in scanf takes a pointer to an unsigned int.
|
|
||||||
Thus with XID xid, a sscanf(..., "0x%x", &xid) will most likely produce the
|
|
||||||
wrong results.
|
|
||||||
---
|
|
||||||
xrandr.c | 3 ++-
|
|
||||||
1 files changed, 2 insertions(+), 1 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/xrandr.c b/xrandr.c
|
|
||||||
index 41e15dd..b1e133e 100644
|
|
||||||
--- a/xrandr/xrandr.c
|
|
||||||
+++ b/xrandr/xrandr.c
|
|
||||||
@@ -428,7 +428,8 @@ set_name_all (name_t *name, name_t *old)
|
|
||||||
static void
|
|
||||||
set_name (name_t *name, char *string, name_kind_t valid)
|
|
||||||
{
|
|
||||||
- XID xid;
|
|
||||||
+ unsigned int xid; /* don't make it XID (which is unsigned long):
|
|
||||||
+ scanf() takes unsigned int */
|
|
||||||
int index;
|
|
||||||
|
|
||||||
if ((valid & name_xid) && sscanf (string, "0x%x", &xid) == 1)
|
|
||||||
--
|
|
||||||
1.5.6.3
|
|
||||||
|
|
|
@ -1,270 +0,0 @@
|
||||||
From 977275a13be0687efc3db1fd3763174ff1256210 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Eric Piel <E.A.B.Piel@tudelft.nl>
|
|
||||||
Date: Sun, 10 Aug 2008 23:28:25 +0200
|
|
||||||
Subject: [PATCH] update the manpage
|
|
||||||
|
|
||||||
Describe all the options supported, including: --dryrun, -display,
|
|
||||||
--q1, --q12, and --rate for 1.1
|
|
||||||
Describe all short and long version of the option.
|
|
||||||
Use the usual man style for the option arugments.
|
|
||||||
Move the four --*mode options out of the output section as they are
|
|
||||||
independant of an output.
|
|
||||||
Mention cvt for computing modelines.
|
|
||||||
Gives some examples.
|
|
||||||
---
|
|
||||||
xrandr.man | 143 +++++++++++++++++++++++++++++++++++++----------------------
|
|
||||||
1 files changed, 90 insertions(+), 53 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/xrandr.man b/xrandr.man
|
|
||||||
index c6bbd42..ac29367 100644
|
|
||||||
--- a/xrandr/xrandr.man
|
|
||||||
+++ b/xrandr/xrandr.man
|
|
||||||
@@ -29,42 +29,46 @@ xrandr \- primitive command line interface to RandR extension
|
|
||||||
[\-help] [\-display \fIdisplay\fP]
|
|
||||||
[\-q] [\-v]
|
|
||||||
[\-\-verbose]
|
|
||||||
+[\-\-dryrun]
|
|
||||||
[\-\-screen \fIsnum\fP]
|
|
||||||
+[\-\-q1]
|
|
||||||
+[\-\-q12]
|
|
||||||
.br
|
|
||||||
.B RandR version 1.2 options
|
|
||||||
.br
|
|
||||||
[\-\-prop]
|
|
||||||
-[\-\-fb <width>x<height>]
|
|
||||||
-[\-\-fbmm <width>x<height>]
|
|
||||||
-[\-\-dpi <dpi>]
|
|
||||||
+[\-\-fb \fIwidth\fPx\fIheight\fP]
|
|
||||||
+[\-\-fbmm \fIwidth\fPx\fIheight\fP]
|
|
||||||
+[\-\-dpi \fIdpi\fP]
|
|
||||||
+[\-\-newmode \fIname\fP \fImode\fP]
|
|
||||||
+[\-\-rmmode \fIname\fP]
|
|
||||||
+[\-\-addmode \fIoutput\fP \fIname\fP]
|
|
||||||
+[\-\-delmode \fIoutput\fP \fIname\fP]
|
|
||||||
.br
|
|
||||||
.B Per-output options
|
|
||||||
.br
|
|
||||||
-[\-\-output <output>]
|
|
||||||
+[\-\-output \fIoutput\fP]
|
|
||||||
[\-\-auto]
|
|
||||||
-[\-\-mode <mode>]
|
|
||||||
+[\-\-mode \fImode\fP]
|
|
||||||
[\-\-preferred]
|
|
||||||
-[\-\-pos <x>x<y>]
|
|
||||||
-[\-\-rate <rate>]
|
|
||||||
+[\-\-pos \fIx\fPx\fIy\fP]
|
|
||||||
+[\-\-rate \fIrate\fP]
|
|
||||||
[\-\-reflect \fIreflection\fP]
|
|
||||||
[\-\-rotate \fIorientation\fP]
|
|
||||||
-[\-\-left\-of <output>\]
|
|
||||||
-[\-\-right\-of <output>\]
|
|
||||||
-[\-\-above <output>\]
|
|
||||||
-[\-\-below <output>\]
|
|
||||||
-[\-\-same-as <output>\]
|
|
||||||
-[\-\-set <property> <value>]
|
|
||||||
+[\-\-left\-of \fIoutput\fP\]
|
|
||||||
+[\-\-right\-of \fIoutput\fP\]
|
|
||||||
+[\-\-above \fIoutput\fP\]
|
|
||||||
+[\-\-below \fIoutput\fP\]
|
|
||||||
+[\-\-same-as \fIoutput\fP\]
|
|
||||||
+[\-\-set \fIproperty\fP \fIvalue\fP]
|
|
||||||
[\-\-off]
|
|
||||||
-[\-\-crtc <crtc>]
|
|
||||||
-[\-\-newmode <name> \fImode\fP]
|
|
||||||
-[\-\-rmmode <name>]
|
|
||||||
-[\-\-addmode <output> <name>]
|
|
||||||
-[\-\-delmode <output> <name>]
|
|
||||||
+[\-\-crtc \fIcrtc\fP]
|
|
||||||
.br
|
|
||||||
.B RandR version 1.0 and version 1.1 options
|
|
||||||
.br
|
|
||||||
[\-o \fIorientation\fP]
|
|
||||||
[\-s \fIsize\fP]
|
|
||||||
+[\-r \fIrate\fP]
|
|
||||||
[\-x] [\-y]
|
|
||||||
.SH DESCRIPTION
|
|
||||||
.I Xrandr
|
|
||||||
@@ -79,57 +83,83 @@ There are a few global options. Other options modify the last output that is
|
|
||||||
specified in earlier parameters in the command line. Multiple outputs may
|
|
||||||
be modified at the same time by passing mutiple \-\-output options followed
|
|
||||||
immediately by their corresponding modifying options.
|
|
||||||
-.IP \-\-help
|
|
||||||
+.IP \-help
|
|
||||||
Print out a summary of the usage and exit.
|
|
||||||
-.IP \-v
|
|
||||||
+.IP "\-v, \-\-version"
|
|
||||||
Print out the RandR version reported by the X server and exit.
|
|
||||||
.IP \-\-verbose
|
|
||||||
-causes xrandr to be more verbose. When used with \-q (or without other
|
|
||||||
+Causes xrandr to be more verbose. When used with \-q (or without other
|
|
||||||
options), xrandr will display more information about the server state. When
|
|
||||||
used along with options that reconfigure the system, progress will be
|
|
||||||
reported while executing the configuration changes.
|
|
||||||
-.IP \-q
|
|
||||||
+.IP "\-q, \-\-query"
|
|
||||||
When this option is present, or when no configuration changes are requested,
|
|
||||||
-xrandr will display the current state of the system.
|
|
||||||
-.IP "\-screen \fIsnum\fP"
|
|
||||||
+xrandr will display the current state of the system.
|
|
||||||
+.IP "\-\-dryrun"
|
|
||||||
+Performs all the actions specified excepted that not changes are made.
|
|
||||||
+.IP "\-d, \-display \fIname\fP"
|
|
||||||
+This option selects the X display to use. Note this refers to the X
|
|
||||||
+screen abstraction, not the monitor (or output).
|
|
||||||
+.IP "\-\-screen \fIsnum\fP"
|
|
||||||
This option selects which screen to manipulate. Note this refers to the X
|
|
||||||
screen abstraction, not the monitor (or output).
|
|
||||||
+.IP \-\-q1
|
|
||||||
+Forces the usage of the RandR version 1.1 protocol, even if a higher version
|
|
||||||
+is available.
|
|
||||||
+.IP \-\-q12
|
|
||||||
+Forces the usage of the RandR version 1.2 protocol, even the display does not
|
|
||||||
+report it as supported or a higher version is available.
|
|
||||||
.SH "RandR version 1.2 options"
|
|
||||||
These options are only available for X server supporting RandR version 1.2
|
|
||||||
or newer.
|
|
||||||
-.IP \-\-prop
|
|
||||||
+.IP "\-\-prop, \-\-properties"
|
|
||||||
This option causes xrandr to display the contents of properties for each
|
|
||||||
output. \-\-verbose also enables \-\-prop.
|
|
||||||
-.IP "\-\-fb <width>x<height>"
|
|
||||||
+.IP "\-\-fb \fIwidth\fPx\fIheight\fP"
|
|
||||||
Reconfigures the screen to the specified size. All configured monitors must
|
|
||||||
fit within this size. When this option is not provided, xrandr computes the
|
|
||||||
smallest screen size that will hold the set of configured outputs; this
|
|
||||||
option provides a way to override that behaviour.
|
|
||||||
-.IP "\-\-fbmm <width>x<height>"
|
|
||||||
+.IP "\-\-fbmm \fIwidth\fPx\fIheight\fP"
|
|
||||||
Sets the reported values for the physical size of the screen. Normally,
|
|
||||||
xrandr resets the reported physical size values to keep the DPI constant.
|
|
||||||
This overrides that computation.
|
|
||||||
-.IP "\-\-dpi <dpi>"
|
|
||||||
+.IP "\-\-dpi \fIdpi\fP"
|
|
||||||
This also sets the reported physical size values of the screen, it uses the
|
|
||||||
specified DPI value to compute an appropriate physical size using whatever
|
|
||||||
pixel size will be set.
|
|
||||||
+.IP "\-\-newmode \fIname\fP \fImode\fP"
|
|
||||||
+New modelines can be added to the server and then associated with outputs.
|
|
||||||
+This option does the former. The \fImode\fP is specified using the ModeLine
|
|
||||||
+syntax for xorg.conf: hdisp hsyncstart hsyncend htotal vdisp vsyncstart
|
|
||||||
+vsyncend vtotal \fIflags\fP. \fIflags\fP can be zero or more of +HSync,
|
|
||||||
+-HSync, +VSync, -VSync, Interlace, DoubleScan, CSync, +CSync, -CSync. Several
|
|
||||||
+tools permit to compute the usual modeline from a heigh, width, and refresh
|
|
||||||
+rate, for instance you can use \fBcvt\fR.
|
|
||||||
+.IP "\-\-rmmode \fIname\fP"
|
|
||||||
+This removes a mode from the server if it is otherwise unused.
|
|
||||||
+.IP "\-\-addmode \fIoutput\fP \fIname\fP"
|
|
||||||
+Add a mode to the set of valid modes for an output.
|
|
||||||
+.IP "\-\-delmode \fIoutput\fP \fIname\fP"
|
|
||||||
+Remove a mode from the set of valid modes for an output.
|
|
||||||
.PP
|
|
||||||
.B "Per-output options"
|
|
||||||
-.IP "\-\-output <output>"
|
|
||||||
+.IP "\-\-output \fIoutput\fP"
|
|
||||||
Selects an output to reconfigure. Use either the name of the output or the
|
|
||||||
XID.
|
|
||||||
.IP \-\-auto
|
|
||||||
For connected but disabled outputs, this will enable them using their
|
|
||||||
preferred mode (or, something close to 96dpi if they have no preferred
|
|
||||||
mode). For disconnected but enabled outputs, this will disable them.
|
|
||||||
-.IP "\-\-mode <mode>"
|
|
||||||
-This selects a mode. Use either the name or the XID for <mode>
|
|
||||||
+.IP "\-\-mode \fImode\fP"
|
|
||||||
+This selects a mode. Use either the name or the XID for \fImode\fP
|
|
||||||
.IP "\-\-preferred"
|
|
||||||
This selects the same mode as \-\-auto, but it doesn't automatically enable or
|
|
||||||
disable the output.
|
|
||||||
-.IP "\-\-pos <x>x<y>"
|
|
||||||
-Position the output within the screen using pixel coordinates.
|
|
||||||
-.IP "\-\-rate <rate>"
|
|
||||||
+.IP "\-\-pos \fIx\fPx\fIy\fP"
|
|
||||||
+Position the output within the screen using pixel coordinates. In case reflection
|
|
||||||
+or rotation is applied, the translation is applied after the effects.
|
|
||||||
+.IP "\-\-rate \fIrate\fP"
|
|
||||||
This marks a preference for refresh rates close to the specified value, when
|
|
||||||
multiple modes have the same name, this will select the one with the nearest
|
|
||||||
refresh rate.
|
|
||||||
@@ -138,54 +168,61 @@ Reflection can be one of 'normal' 'x', 'y' or 'xy'. This causes the output
|
|
||||||
contents to be reflected across the specified axes.
|
|
||||||
.IP "\-\-rotate \fIrotation\fP"
|
|
||||||
Rotation can be one of 'normal', 'left', 'right' or 'inverted'. This causes
|
|
||||||
-the output contents to be rotated in the specified direction.
|
|
||||||
-.IP "\-\-left\-of, \-\-right\-of, \-\-above, \-\-below, \-\-same-as <another output>"
|
|
||||||
+the output contents to be rotated in the specified direction. 'right' specifies
|
|
||||||
+a clockwise rotation of the picture and 'left' specifies a counter-clockwise
|
|
||||||
+rotation.
|
|
||||||
+.IP "\-\-left\-of, \-\-right\-of, \-\-above, \-\-below, \-\-same-as \fIanother-output\fP"
|
|
||||||
Use one of these options to position the output relative to the position of
|
|
||||||
another output. This allows convenient tiling of outputs within the screen.
|
|
||||||
The position is always computed relative to the new position of the other
|
|
||||||
output, so it is not valid to say \-\-output a \-\-left\-of b \-\-output
|
|
||||||
b \-\-left\-of a.
|
|
||||||
-.IP "\-\-set <property> <value>"
|
|
||||||
+.IP "\-\-set \fIproperty\fP \fIvalue\fP"
|
|
||||||
Sets an output property. Integer properties may be specified as a valid
|
|
||||||
(see \-\-prop) decimal or hexadecimal (with a leading 0x) value. Atom properties
|
|
||||||
may be set to any of the valid atoms (see \-\-prop). String properties may be
|
|
||||||
set to any value.
|
|
||||||
.IP "\-\-off"
|
|
||||||
Disables the output.
|
|
||||||
-.IP "\-\-crtc <crtc>"
|
|
||||||
+.IP "\-\-crtc \fIcrtc\fP"
|
|
||||||
Uses the specified crtc (either as an index in the list of CRTCs or XID).
|
|
||||||
In normal usage, this option is not required as xrandr tries to make
|
|
||||||
sensible choices about which crtc to use with each output. When that fails
|
|
||||||
for some reason, this option can override the normal selection.
|
|
||||||
-.IP "\-\-newmode <name> \fImode\fP"
|
|
||||||
-New modelines can be added to the server and then associated with outputs.
|
|
||||||
-This option does the former. The \fImode\fP is specified using the ModeLine
|
|
||||||
-syntax for xorg.conf: hdisp hsyncstart hsyncend htotal vdisp vsyncstart
|
|
||||||
-vsyncend vtotal \fIflags\fP. \fIflags\fP can be zero or more of +HSync,
|
|
||||||
--HSync, +VSync, -VSync, Interlace, DoubleScan, CSync, +CSync, -CSync.
|
|
||||||
-.IP "\-\-rmmode <name>"
|
|
||||||
-This removes a mode from the server if it is otherwise unused.
|
|
||||||
-.IP "\-\-addmode <output> <name>"
|
|
||||||
-Add a mode to the set of valid modes for an output.
|
|
||||||
-.IP "\-\-delmode <output> <name>"
|
|
||||||
-Remove a mode from the set of valid modes for an output.
|
|
||||||
.PP
|
|
||||||
.SH "RandR version 1.1 options"
|
|
||||||
These options are available for X servers supporting RandR version 1.1 or
|
|
||||||
older. They are still valid for newer X servers, but they don't interact
|
|
||||||
sensibly with version 1.2 options on the same command line.
|
|
||||||
-.IP "\-s <size index> or \-s <width>x<height>"
|
|
||||||
+.IP "\-s, \-\-size \fIsize-index\fP or \-\-size \fIwidth\fPx\fIheight\fP"
|
|
||||||
This sets the screen size, either matching by size or using the index into
|
|
||||||
the list of available sizes.
|
|
||||||
-.IP "\-o \fIrotation\fP"
|
|
||||||
+.IP "\-r, \-\-rate, \-\-refresh \fIrate\fP"
|
|
||||||
+This sets the refresh rate closest to the specified value.
|
|
||||||
+.IP "\-o, \-\-orientation \fIrotation\fP"
|
|
||||||
This specifies the orientation of the screen,
|
|
||||||
and can be one of normal, inverted, left or right.
|
|
||||||
.IP \-x
|
|
||||||
Reflect across the X axis.
|
|
||||||
.IP \-y
|
|
||||||
Reflect across the Y axis.
|
|
||||||
+.SH EXAMPLES
|
|
||||||
+Sets an output called LVDS to its preferred mode, and on its right put an
|
|
||||||
+output called VGA to preferred mode of a screen which has been physically rotated clockwise:
|
|
||||||
+.RS
|
|
||||||
+xrandr --output LVDS --auto --rotate normal --pos 0x0 --output VGA --auto --rotate left --right-of LVDS
|
|
||||||
+.RE
|
|
||||||
+.PP
|
|
||||||
+Forces to use a 1024x768 mode on an output called VGA:
|
|
||||||
+.RS
|
|
||||||
+xrandr --newmode "1024x768" 63.50 1024 1072 1176 1328 768 771 775 798 -hsync +vsync
|
|
||||||
+.br
|
|
||||||
+xrandr --addmode VGA 1024x768
|
|
||||||
+.br
|
|
||||||
+xrandr --output VGA --mode 1024x768
|
|
||||||
+.RE
|
|
||||||
.SH "SEE ALSO"
|
|
||||||
-Xrandr(3)
|
|
||||||
+Xrandr(3), cvt(1)
|
|
||||||
.SH AUTHORS
|
|
||||||
Keith Packard,
|
|
||||||
Open Source Technology Center, Intel Corporation.
|
|
||||||
--
|
|
||||||
1.5.6.3
|
|
||||||
|
|
|
@ -1,45 +0,0 @@
|
||||||
From 8ef4595aef15b7326822849a50c273f2a2b4ba30 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Julien Cristau <jcristau@debian.org>
|
|
||||||
Date: Fri, 15 Aug 2008 21:23:13 +0200
|
|
||||||
Subject: [PATCH] Manpage typo fixes
|
|
||||||
|
|
||||||
---
|
|
||||||
xrandr.man | 8 ++++----
|
|
||||||
1 files changed, 4 insertions(+), 4 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/xrandr.man b/xrandr.man
|
|
||||||
index ac29367..9b6378c 100644
|
|
||||||
--- a/xrandr/xrandr.man
|
|
||||||
+++ b/xrandr/xrandr.man
|
|
||||||
@@ -96,7 +96,7 @@ reported while executing the configuration changes.
|
|
||||||
When this option is present, or when no configuration changes are requested,
|
|
||||||
xrandr will display the current state of the system.
|
|
||||||
.IP "\-\-dryrun"
|
|
||||||
-Performs all the actions specified excepted that not changes are made.
|
|
||||||
+Performs all the actions specified except that no changes are made.
|
|
||||||
.IP "\-d, \-display \fIname\fP"
|
|
||||||
This option selects the X display to use. Note this refers to the X
|
|
||||||
screen abstraction, not the monitor (or output).
|
|
||||||
@@ -107,8 +107,8 @@ screen abstraction, not the monitor (or output).
|
|
||||||
Forces the usage of the RandR version 1.1 protocol, even if a higher version
|
|
||||||
is available.
|
|
||||||
.IP \-\-q12
|
|
||||||
-Forces the usage of the RandR version 1.2 protocol, even the display does not
|
|
||||||
-report it as supported or a higher version is available.
|
|
||||||
+Forces the usage of the RandR version 1.2 protocol, even if the display does
|
|
||||||
+not report it as supported or a higher version is available.
|
|
||||||
.SH "RandR version 1.2 options"
|
|
||||||
These options are only available for X server supporting RandR version 1.2
|
|
||||||
or newer.
|
|
||||||
@@ -134,7 +134,7 @@ This option does the former. The \fImode\fP is specified using the ModeLine
|
|
||||||
syntax for xorg.conf: hdisp hsyncstart hsyncend htotal vdisp vsyncstart
|
|
||||||
vsyncend vtotal \fIflags\fP. \fIflags\fP can be zero or more of +HSync,
|
|
||||||
-HSync, +VSync, -VSync, Interlace, DoubleScan, CSync, +CSync, -CSync. Several
|
|
||||||
-tools permit to compute the usual modeline from a heigh, width, and refresh
|
|
||||||
+tools permit to compute the usual modeline from a height, width, and refresh
|
|
||||||
rate, for instance you can use \fBcvt\fR.
|
|
||||||
.IP "\-\-rmmode \fIname\fP"
|
|
||||||
This removes a mode from the server if it is otherwise unused.
|
|
||||||
--
|
|
||||||
1.5.6.3
|
|
||||||
|
|
|
@ -1,6 +1,2 @@
|
||||||
01_sessreg_implement_hostname_hashing.diff -p0
|
01_sessreg_implement_hostname_hashing.diff
|
||||||
02_xmodmap_manpage.diff
|
02_xmodmap-include-config.h-before-system-headers.diff
|
||||||
03_xrandr-Move-outputs-among-crtcs-as-necessary.-Fixes-14570.patch
|
|
||||||
04_xrandr-Fix-for-64bit-feed-a-pointer-to-the-right-size-vari.patch
|
|
||||||
05_xrandr-update-the-manpage.patch
|
|
||||||
06_xrandr-Manpage-typo-fixes.patch
|
|
||||||
|
|
|
@ -10,98 +10,67 @@
|
||||||
# set this to the name of the main shlib's binary package
|
# set this to the name of the main shlib's binary package
|
||||||
PACKAGE = x11-xserver-utils
|
PACKAGE = x11-xserver-utils
|
||||||
|
|
||||||
include debian/xsfbs/xsfbs.mk
|
|
||||||
|
|
||||||
# This package contains multiple modules as shipped by upstream. Each module is # contained in a subdirectory in the root dir of the package. You must list each
|
# This package contains multiple modules as shipped by upstream. Each module is # contained in a subdirectory in the root dir of the package. You must list each
|
||||||
# subdirectory explicitly so that the build system knows what to build
|
# subdirectory explicitly so that the build system knows what to build
|
||||||
DEF_SUBDIRS=iceauth rgb sessreg xcmsdb xgamma xhost xmodmap xrandr xrdb xrefresh xset xsetmode xsetpointer xsetroot xstdcmap xtrap xvidtune
|
DEF_SUBDIRS=iceauth rgb sessreg xcmsdb xgamma xhost xmodmap xrandr xrdb xrefresh xset xsetmode xsetpointer xsetroot xstdcmap xvidtune
|
||||||
SUBDIRS=$(DEF_SUBDIRS)
|
SUBDIRS=$(DEF_SUBDIRS)
|
||||||
|
CONFIG_STAMPS = $(addprefix $(STAMP_DIR)/configure-, $(SUBDIRS))
|
||||||
|
BUILD_STAMPS = $(addprefix $(STAMP_DIR)/build-,$(SUBDIRS))
|
||||||
|
|
||||||
CFLAGS = -Wall -g
|
%:
|
||||||
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
|
dh $@ --with quilt
|
||||||
CFLAGS += -O0
|
|
||||||
else
|
|
||||||
CFLAGS += -O2
|
|
||||||
endif
|
|
||||||
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
|
|
||||||
INSTALL_PROGRAM += -s
|
|
||||||
endif
|
|
||||||
|
|
||||||
DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
|
debian/autoreconf:
|
||||||
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
|
echo $(SUBDIRS) > $@
|
||||||
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
|
|
||||||
ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
|
|
||||||
confflags += --build=$(DEB_HOST_GNU_TYPE)
|
|
||||||
else
|
|
||||||
confflags += --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)
|
|
||||||
endif
|
|
||||||
|
|
||||||
|
override_dh_autoreconf: debian/autoreconf
|
||||||
|
dh_autoreconf
|
||||||
|
|
||||||
build: build-stamp
|
override_dh_auto_configure: $(CONFIG_STAMPS)
|
||||||
build-stamp: $(STAMP_DIR)/genscripts $(STAMP_DIR)/patch
|
|
||||||
dh_testdir
|
|
||||||
for FILE in $(DEF_SUBDIRS); do \
|
|
||||||
echo "$$FILE" ; \
|
|
||||||
mkdir "$$FILE"-obj-$(DEB_BUILD_GNU_TYPE); \
|
|
||||||
(cd "$$FILE"-obj-$(DEB_BUILD_GNU_TYPE) && \
|
|
||||||
../"$$FILE"/configure --prefix=/usr --mandir=\$${prefix}/share/man \
|
|
||||||
--infodir=\$${prefix}/share/info $(confflags) \
|
|
||||||
--disable-xprint \
|
|
||||||
CFLAGS="$(CFLAGS)" \
|
|
||||||
RSH=rsh \
|
|
||||||
MANCONF="/etc/manpath.config" && \
|
|
||||||
$(MAKE)) || exit 1; \
|
|
||||||
done
|
|
||||||
|
|
||||||
touch build-stamp
|
$(STAMP_DIR)/configure-%:
|
||||||
|
mkdir -p $(STAMP_DIR)
|
||||||
|
dh_auto_configure -D$* -B$*-build -- \
|
||||||
|
--disable-silent-rules
|
||||||
|
>$@
|
||||||
|
|
||||||
clean: xsfclean
|
override_dh_auto_build: $(BUILD_STAMPS)
|
||||||
dh_testdir
|
|
||||||
dh_testroot
|
|
||||||
rm -f build-stamp
|
|
||||||
|
|
||||||
rm -f config.cache config.log config.status
|
$(STAMP_DIR)/build-%:
|
||||||
rm -f */config.cache */config.log */config.status
|
mkdir -p $(STAMP_DIR)
|
||||||
rm -f conftest* */conftest*
|
dh_auto_build -D$* -B$*-build
|
||||||
rm -rf autom4te.cache */autom4te.cache
|
>$@
|
||||||
rm -rf *-obj-*
|
|
||||||
|
|
||||||
dh_clean
|
override_dh_auto_clean: $(addprefix clean-, $(SUBDIRS))
|
||||||
|
rm -rf $(STAMP_DIR)
|
||||||
|
|
||||||
install: build
|
clean-%:
|
||||||
dh_testdir
|
dh_auto_clean -D$* -B$*-build
|
||||||
dh_testroot
|
|
||||||
dh_clean -k
|
|
||||||
dh_installdirs
|
|
||||||
|
|
||||||
|
override_dh_auto_install:
|
||||||
for FILE in $(SUBDIRS); do \
|
for FILE in $(SUBDIRS); do \
|
||||||
cd "$$FILE"-obj-$(DEB_BUILD_GNU_TYPE) && $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install ; \
|
cd "$$FILE"-build && $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install ; \
|
||||||
cd ..; \
|
cd ..; \
|
||||||
done
|
done
|
||||||
|
|
||||||
# Build architecture-dependent files here.
|
override_dh_install:
|
||||||
binary-arch: build install
|
dh_install -Xrgb.txt
|
||||||
dh_testdir
|
|
||||||
dh_testroot
|
|
||||||
|
|
||||||
dh_installdocs
|
override_dh_missing:
|
||||||
dh_install --sourcedir=debian/tmp -Xrgb.txt --list-missing
|
dh_missing --fail-missing
|
||||||
dh_installmenu
|
|
||||||
dh_installchangelogs
|
|
||||||
dh_link
|
|
||||||
dh_strip
|
|
||||||
dh_compress
|
|
||||||
dh_fixperms
|
|
||||||
dh_installdeb
|
|
||||||
dh_shlibdeps
|
|
||||||
dh_makeshlibs
|
|
||||||
dh_gencontrol
|
|
||||||
dh_md5sums
|
|
||||||
dh_builddeb
|
|
||||||
|
|
||||||
# Build architecture-independent files here.
|
.PHONY: get-tarballs
|
||||||
binary-indep: build install
|
get-tarballs: $(addprefix get-tarball-,$(SUBDIRS))
|
||||||
# Nothing to do
|
|
||||||
|
|
||||||
binary: binary-indep binary-arch
|
.PHONY: get-tarball-%
|
||||||
.PHONY: build clean binary-indep binary-arch binary install
|
get-tarball-%:
|
||||||
|
uscan --no-conf --download --no-symlink --destdir . --package $* --upstream-version $(shell awk -F = '/^PACKAGE_VERSION=/ { print $$2 }' < $*/configure || echo 0) --watchfile debian/watch.$* || test $$? = 1
|
||||||
|
|
||||||
|
.PHONY: update-copyright
|
||||||
|
update-copyright: $(addsuffix /COPYING, $(SUBDIRS)) debian/copyright.head
|
||||||
|
cp debian/copyright.head debian/copyright
|
||||||
|
for subdir in $(SUBDIRS); do \
|
||||||
|
echo >> debian/copyright && \
|
||||||
|
echo $$subdir: >> debian/copyright && \
|
||||||
|
sed -e 's/^./ &/' < $$subdir/COPYING >> debian/copyright \
|
||||||
|
|| exit; done
|
||||||
|
|
|
@ -0,0 +1,257 @@
|
||||||
|
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||||
|
Version: GnuPG v1
|
||||||
|
|
||||||
|
mQGiBEab+moRBACDH5yKqS3wcc5bdxY7PBNuwKvF5TKMfagmSvuRDtZjjIIWaA/n
|
||||||
|
Z1KboV9Gq5g7kP7+Kfu+Qgd8u65eVsWwmPW10fXvj3aCU53glx2EdGdrHcgiyH2g
|
||||||
|
EQfPiyBw+trIppWFRV0IDXSLMA1FNC92t2nSG/VFHaPTVwcgkIRSfcXDvwCglGdE
|
||||||
|
a6f4uLqoNHP+m4yYnzapFuMD/R4+2AJDAvEWKDdYCGZzlawjAmmWyXrmT7/C/mx9
|
||||||
|
8qUR473l4buXjHgDkkXXlHqdzil1vK85PhrKzNJDCCmlHUJNz+QwiAMOLwpD+kwV
|
||||||
|
Pb57RG7y+a5JQ5+jtVw4RlUxZIk/wj2An9YBO3A5vR7PdjM32ZJCN2+aM4dYfNzQ
|
||||||
|
xQKTA/47icvBaBVTl9rztjg2pd2Aqpc1P/GsIYLGj7XjnnJvGAENBHSH1QjpZMJG
|
||||||
|
CTS9oJ+B0/wrIr+pA+MdFgYAb6ojMQJOO6UChjWWSGjMFcs/CeXhxlLBido3DtAE
|
||||||
|
TbNTwO6OEfAvdosvTdhJFnwvZlJ+zZGGy5CrF2Fd9PUe9tmASbQoQWxhbiBDb29w
|
||||||
|
ZXJzbWl0aCA8YWxhbmNAZnJlZWRlc2t0b3Aub3JnPohoBBMRAgAoAhsDBgsJCAcD
|
||||||
|
AgYVCAIJCgsEFgIDAQIeAQIXgAUCUXnRYgUJFEPYeAAKCRCi+54IHy0TDonxAKCP
|
||||||
|
cAgXNojuujUg5Wqi6v0RBFVSUgCggq1SsVEdq9NDWvXvkeGyNaBivSK0K0FsYW4g
|
||||||
|
Q29vcGVyc21pdGggPGFsYW4uY29vcGVyc21pdGhAc3VuLmNvbT6IZgQTEQIAJgIb
|
||||||
|
AwYLCQgHAwIEFQIIAwQWAgMBAh4BAheABQJRedFiBQkUQ9h4AAoJEKL7nggfLRMO
|
||||||
|
6sUAn0jl3h9rY4OJ13Lu7nsKclyhDpOqAKCFgTmaDGRuDRxloLg9jftrn7a7vrQu
|
||||||
|
QWxhbiBDb29wZXJzbWl0aCA8YWxhbi5jb29wZXJzbWl0aEBvcmFjbGUuY29tPohr
|
||||||
|
BBMRAgArAhsDBgsJCAcDAgYVCAIJCgsEFgIDAQIeAQIXgAIZAQUCUXnRYgUJFEPY
|
||||||
|
eAAKCRCi+54IHy0TDtBZAJ9IgVVNoFIPRjTsNjcSFaLznuDRJgCcC/WgV312IrxS
|
||||||
|
Q8PRAyEgozSB9Ke5Ag0ERpv6bxAIAJp5aUlho5rUhpS6ik7spsAQFPRuycPKMNu0
|
||||||
|
J4F0v/OoPz085soV8ytLj4HqCGk2Zamh1jSgliZwuk9m7V7Wgxx+nBJawpWDX/eK
|
||||||
|
LObErfDwQ4dfOFvjbXLQMmNnQNaUGIWLPP3l8GuBOHMq60Bu+TPgh627vUntL5RE
|
||||||
|
QEQqTXIzWC6U10QsDblLwIvdOVSdGF5xl/N1myXzSKvrsZwWtoFc8G9v9hcCjhtN
|
||||||
|
1sm9b7Ojc51iZXvcetcvPy5RA6AUW3yEExaedUdLnvIF9sjFYIfJWFVYh2AgavnG
|
||||||
|
re6fF+NV2v3zfx3wRT7H9//m4YIDYJmgZgyQccXegTwfGBIq3osAAwYH/1FiMUMM
|
||||||
|
ES5Ilz2nDqId+DCWECAU6wgvIFRcXrZWxDxB+ZrnmTCXoAD0xedpfOkRHp8XTVc/
|
||||||
|
9MU+wQ+lZRx2OQ6MJW0XGuFvHm94KZF/8HzWA2Ah7U4n0+3sLpk6zWceZq2zZNF0
|
||||||
|
yVTjwD98+xNK1Q9sP8aOKdtg8yMH3hisKR6rdW+mfX5q0Q8Gol2hZsFH/qyIhnPz
|
||||||
|
hXDknuOh8E5iMkzrejVXUEn++Yzj23XjP59SObLznVkyxI+kBI9qvVEPfFBDybjH
|
||||||
|
WqLcgRcCpXAzjizEi+/d31iDa2ErJHV4R42obecFqiPnoDtiX3IiP7z9fmxM4aWP
|
||||||
|
ZZRqvq+1ht5wkn+ISQQYEQIACQUCRpv6bwIbDAAKCRCi+54IHy0TDoLoAKCHYRpw
|
||||||
|
/XfyEunw1YL/uMZzl78qIQCdFVcXNbqD83qVhW4Ly7hyDL8o0aK5Ag0EUXnVIQEQ
|
||||||
|
AKHpjOmY056n0tsZoW9q5egsMcl5tKC8uimrhO05nnq+5/60/YedC++V9c9b/3/X
|
||||||
|
7O28LyBkAtBgD0xJZSDQ0DhTzKAp6AzjQtBvI68uinGwxSjT+oQpPMxqhA1I0kzo
|
||||||
|
EDCdEqV+HsVOAEdbAi/tP9bbdTDzwVc8MWDriamBUqc53Rb00Mffy9435UgTS4gA
|
||||||
|
hMwANhy6XZmOMBhITOzxFJUEDTDJtLbE0b1jPRQS7NHQgak1inmuvPMc3wAuoEcS
|
||||||
|
CSt1xupbYsBoXOjK5wC/eE1LIdZoRyW2OkT140DqDZ8zfRID860hnirnYgb09TPN
|
||||||
|
tj93pudUAUt6T9+tcLN4/rxhxHOwse66KGHO4bQ1rZ6mfco6SYd9V60cL6hC2eMe
|
||||||
|
cyxZliMu17lj7EX8lxUH+omIgHc7HGoyUR6V+WB60cxWj5v05zdeLeZ2aLBcPFhx
|
||||||
|
lfDESm8f4ezdJSDS1QZmC0P5h3RJfhhfmdBr8kHzr7111D1/O71Av1VV5FyJ9YxU
|
||||||
|
Sxp4IPuzK7JbbgVHcA6PvXrDzWUslmZgPADpKH4hTmG/NdCqhEXcufvY6s5yNksB
|
||||||
|
8X3ReNvuSSyfGnRz3kvtyK0XzC7KRX2PquLI6A8KJprHwZGqEB1NDG8b2iaYnghO
|
||||||
|
jyfIYEVQF3nGfaBwv4lrCPEoZSUaK8f/NQZjNU8NQyTnABEBAAGJAm0EGBEKAA8F
|
||||||
|
AlF51SECGwIFCQlmAYACKQkQovueCB8tEw7BXSAEGQEKAAYFAlF51SEACgkQz98U
|
||||||
|
iCjGQqfW5g//dOdJHt23cdMyz5VADaE7u+L0E+eX9GtHF4J649eXsui59EtbHh2n
|
||||||
|
XdGhd5SqQ8FDi9GCEKaQ4S31n/YBLEBCkj7R0IMikW2o78/JxDovB8+aL606hgma
|
||||||
|
fNVx1aIshIglrl8Xlu3sjeAvG48W6YjdL2mfrIDHjIVwOZsMihbOJvST6Q3upHdn
|
||||||
|
mjDtM5HCQmI5NEXDWYj6IZuhJnnrDWwNsyYV4KPoUBxAcqIyCeZbVssuWWnHPXX8
|
||||||
|
VavVq98vpVynfGzGYpJbDj19C/utMjKGI5dcvbVaucA7X/oktxrxS6SBDhuIaAE9
|
||||||
|
4ZHlbxqfyHfETI/La2Z/ALDAtYdhJR2gSkTHyKSW1QqYlulSfB//lnna44mmTuRO
|
||||||
|
NbDNgb0FGSvtsBMZ80iHDqPgUfS60kxCfFrsSGfTFU+X4QAzpTtUJEcr+J4HULDe
|
||||||
|
MfwOgghVfmKxFXWfud8xDaCXuywLTtVgMCZp4P7MAyuJlaxsFTu+c1Vly94grk4U
|
||||||
|
MtALLMqCXSosA490gLTSdg3HSwxt2Q/LJdy427ZIMvjGXIruns8U/OmL9dVgWu3b
|
||||||
|
JHsL68Skx8Ts63qTN9QXM/PB+8VwOaC7PJ+g6t40DleOmdsS8cN31yf5KB8rsL4u
|
||||||
|
n4u1yrMJfpnSblPMu5wJi3kjoA+Dd5ZFqx9nTi4wBjfVYGCPsleq59K8kQCYx1Cn
|
||||||
|
lZcq630ITy9dB/aHCQry2gCbBwZ2Rsf9kr05S8uLhlwW3vRSvRs=
|
||||||
|
=tc6G
|
||||||
|
-----END PGP PUBLIC KEY BLOCK-----
|
||||||
|
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||||
|
Version: GnuPG v1
|
||||||
|
|
||||||
|
mQGiBEM6DeERBACdbYV+8QzlucKuYDGG+BZZcmt3OMOqvH+Jd/Tl+gl7+xRizOuN
|
||||||
|
3tK1dGVNfeHt6Wco5rBFgi4dkK7gsZ7KMJ2KM6yaYhiocgX1HiaDKozclGeoW+wR
|
||||||
|
8L0h3iCNxkmrt23opXtbC4ABeoiV03T5qrfeqhLX8od/K50srfXO+h2enwCg/8RX
|
||||||
|
BGwxS/UCEtDVC4LjomM/hzMD/33Ur/FD7t588DwL2Z49wr+JHNjJQD5lumaoM0QM
|
||||||
|
Eo3IlB0e6sRjykC7BxUf3HK7S0TD1+PdS1OGhsvL4wKdOTDatPz4jEfscx95N+Z9
|
||||||
|
ML020eX7wWEJR9lGHteyhYYujFJQEM+TNF6v6nG/OPphnCg6A794veDabtmT27Mo
|
||||||
|
Mn4bA/96K32RCC5wpRLDeGBG4bnJvJEsTZhAApZa4oY1zh6hT/1EYegUvRp4X0nX
|
||||||
|
X9ySCjGZs6SxEwokWMmzPHzf0n4AYUs8ZDd0ZRYTo/92vUM0/GLCRha8+j1sy7+Z
|
||||||
|
4uz3vIORrVLld6hyv2Zp2aB0Fef+tVqIR92eNG7L5KXpilnDWbQlQWFyb24gUGxh
|
||||||
|
dHRuZXIgPGFwbGF0dG5lckBudmlkaWEuY29tPoheBBMRAgAeAhsDBgsJCAcDAgMV
|
||||||
|
AgMDFgIBAh4BAheABQJFCfprAAoJEPVqzI8JupY11hEAn2LA/Ak9HLeOo8CbMEvl
|
||||||
|
u1boVsfoAJ9OtoNAmY+o7rtMuXrT11C+qc7eMrkBDQRGzeNIAQgAo7JoRZGw+NHi
|
||||||
|
TrjPtqpHrtxuSDb710IhqYhvIYZWAOagUix9riiukEQ6Fh2m4NbL8pCNIB/zEX6E
|
||||||
|
xuwrrfsvqOgaTQImBZ2uVEnTbB4Iz848JDJyu1mmgH9aVvjfcPsLjLrtz/xRGySl
|
||||||
|
tqEXsTtpTOSUGCOG7w8RMVIyEf3+3BYRPfRcOY6cZTcBA8E2/rzIoknQOMd36e4i
|
||||||
|
ZzV+wIXLegpFB4sOCQX0q5paS4KPzqwehxg5LbbtiLDf9MAEAdOfwxCxKiru2V+U
|
||||||
|
K1mgu94+2rGAQtU+aVthFf9kcwAz30gXVyA+qXxFJCskQkOnrBoQiAKpG5QxZq49
|
||||||
|
Q4z8LmCaRwARAQABiQFuBBgRAgAPBQJGzeNIAhsCBQkHhM4AASkJEPVqzI8JupY1
|
||||||
|
wF0gBBkBAgAGBQJGzeNIAAoJEHYgpP6LHaLQLyEH/RSZzbLswTeDkG1lZ7/XpNGC
|
||||||
|
s9CbpS0IpLn1IxS3G4DqxyWxJ9pxfT7xO2277P1e10TqDSKGbSPuowEy71/h3eoH
|
||||||
|
47Wm6m2RLijtiSDxR1pcChlxvTEugdx2cH3q7u81TkNQGFVSd+W3Ekcxk2Z0gw5n
|
||||||
|
nA5NyPWWtiBdaJMySJ2Zyw345mtT4siQ/oIe1c72IWBNnIFqA9cpxTYZ/eRXYDhR
|
||||||
|
5avW/cL1nraQs+pcgPDYjshN7Oue9sjSnDTrwK60l9AfRQqu4PjvxXJPahbvHWvb
|
||||||
|
GsNd50JIFFullX8YcG0gGUU+v4ToRkAfSVmQjgZCN/9g5w+fx9/rGaGi9FZj0ZtP
|
||||||
|
DQCfQwtvEuWL3MYjuug08iRG+2jy+VoAoIj9qQUhdqRJUgwD6NelG9ytg/S8uQEN
|
||||||
|
BEbN46IBCADOxrUwEjlzcyAgFeOW91OtbAgGWvoKeOrB/1DWwziKnlRKzPm+BM+b
|
||||||
|
BynPDY2zltP25Eu48xFkxAqN3d1PhPBa1JEx5Wz1Mz0MlzfJOioi+Lj6L5Uf5dax
|
||||||
|
cfhtObJIwwZkCHVmJbRpdtkUu4Guk5vPTNAb/JPH0yt0pkidPsJ0ZfX4QTiVnw76
|
||||||
|
KZLvzqDs4WPluk3UYrKtmurlTTz4XWbE4I7BTxq3jFHiYSA8EmUJ7GA4T7+uvKVZ
|
||||||
|
VIHct4NKdmBkOiSirO2g62IwQI3xQNQfpfMls7CaNML30Ir8wQzDsVnpzK7MpVks
|
||||||
|
lFRwz5mMdFMNNinL0hSLIT/twbezE2G5ABEBAAGITwQYEQIADwUCRs3jogIbDAUJ
|
||||||
|
B4TOAAAKCRD1asyPCbqWNfx/AJ9Dntom3ad7bWj1uWr7Iw9Ss49lyQCfQ/Uer+3l
|
||||||
|
CkSWLiqOkjujDfzuT0S5AQ0ETkrmzAEIAPTYQVlVLFcZFJGWInHcanFNNFg6oTFN
|
||||||
|
bb7A/72ptfKninDMDM+uT7DbMNFE0njpsSpoQ1EWLV3qvkM/nIXddvlkOiE4ip32
|
||||||
|
Ws76V3bMLYvmdER9hQ1MeDhBUeVtLWsUZg9gRsoNiOj1N3yIJLoEc1F8n/DBcL8i
|
||||||
|
ThYhcl3DE0Llx4efd25lsIR8xpATQDlyepfrFs+d53c7fH/hmslYQvvnhswCzGNl
|
||||||
|
6a4bfO41XypJoIz2H0pA2qEmNMhjGXJGkykbAcFl2aWeTAZ3FdHbjKhN8eAb1LdI
|
||||||
|
SQMT3UJnml5g9wV1YxRqu74C+I3e1rvRuSVl6aGwlMKFlECUrtrUAjEAEQEAAYkB
|
||||||
|
bgQYEQIADwUCTkrmzAIbAgUJB4TOAAEpCRD1asyPCbqWNcBdIAQZAQIABgUCTkrm
|
||||||
|
zAAKCRBPi20P3fNblO7KB/0Q+uovB+QCUp4g1oS4Fk4VAfCXHg6SVK7MzMqBX1pW
|
||||||
|
f/9Mfkpsopg+NHtqbcTVoThsgxUok3xX9suiqFOn5L8LN/2IDIVgGenW4jgE7/1h
|
||||||
|
tRgyzq6WyLnI0JnrzAXuuQ5yIXV/tT9+8AXI1zqnaILnkbGMURsAHbhJayq5OLdn
|
||||||
|
oXaHm0Bnh30MjE0PxWc7e/psv0hS5idXUWbuxzIdIwuDLeUDhSMSj3TQgPWklLeB
|
||||||
|
cRAG0V2fQnZz1KXuuFm1Fi+5xlwGrtXA5NtOHWeVMRxK9wHRY7DBE9mbgp8aPTkq
|
||||||
|
E8qbQnBbTMFurhfpiRXE8iYlISBxbvDBfIpEfY5ImB17vpcAoKYuHW8SX9v0Qg/Y
|
||||||
|
42nHnP6f3qdAAKDA/enY9eL8bKji/JwtZqju4E03fLkBDQROSucqAQgAtJQMAbbT
|
||||||
|
4KhU9Ak9giH5a2hvUv/wrSme1P9TkzMD/cARHUqw8sTp4KEsj6qWVoyIQ050GcRn
|
||||||
|
rDRRPCNI6UrEPK9l220V5I00wnEGsqyPTS6GjnKRXPbnHcy9NJrcT4fwxIiwa4Wv
|
||||||
|
ogK2rA/fc35aMnPul1dDh6TOIpymFHgyBXgjCiMibS4jyWLn2Fi9lnCLnEri6aaC
|
||||||
|
kOEiIkIlo/5HhFxqFuoqebqKIHOAxSitFSOQnbLIf+5/PMDxchH4+SR77++G2xZs
|
||||||
|
RIenBhIpbb0vFTtL5TEhJtA3o1X4gyfkb6QfiqXE7+aXfYtXIQdNHZAI4b/owwCq
|
||||||
|
zCLAB1D1VkhxbQARAQABiE8EGBECAA8FAk5K5yoCGwwFCQeEzgAACgkQ9WrMjwm6
|
||||||
|
ljUX4QCePZorICXReqVO1vrSyTnRysCnjUIAn0EXm/VGj44HGbW0XShF/CSPkl71
|
||||||
|
uQINBEM6DesQCACqNgqbHvgdT9KNgreZ3Yg+MnBeoYjfaNh7MfjAVVvVUGg4qWSU
|
||||||
|
t482gvvZJZg7LS3cXwsAV+iI1CRiDLle2fWt1rcKHTNkX+9G91e5EJZb6CyTj5bJ
|
||||||
|
muwlqCqfUVZL9z24d6nl+kReN/lLSyScaJ4cfo8BGG0gXtnr/fr7RlbVftn4zpH3
|
||||||
|
mz5tak4x30u9dEkSrMMqObzkMMEQp29SkvP0ZritFnMqxWKBOO+9ggRSp4n2WJuj
|
||||||
|
hbWE1jqyEn/YE/Tj9C1eoerJCC9ENzKIE8BezV6JxzpELNPdNeujnnRbK1PZ+FH2
|
||||||
|
0wGAkv1DrKlCGyMTMv+84sAqahM4TcmBStOfAAUTCACGOiPUiVg2gSspDTDXn1Kr
|
||||||
|
GV1Iq1BMgXbnnVRBoHRN+80vyC9zNRPL4Mie7cKVBBeOtRBETqBsJZjX1MlhAMyw
|
||||||
|
iQsJhgd0Hyft1jzhabk/9FjlZhRDpxXDDXUdKlFDSXSpX76t4dPw0XwedgmZFCtU
|
||||||
|
TPlZVoctk+H0L1z5n74AkbbUK8eFsVBXgSrFCAZvr4Uspvzd/tJHoH2J9062z449
|
||||||
|
RfnG5wnq7bOORN8P0Wo/hwfKHkLJKb3Af9dEOTIg3vi8IXShh4w2F0sZle5fuFgs
|
||||||
|
AzNL13nh7OnnvKILMz1Dno5qMogIGqcUdDn2S/Ro2C9eA0oWJf/v32zzYpg7TguH
|
||||||
|
iE8EGBECAA8FAkM6DesCGwwFCQHhM4AACgkQ9WrMjwm6ljXDMQCgml0en22AaWdT
|
||||||
|
txMDRc5bkJluIbcAoN32cvU1Vv32j+9SlhmDIKeKCttzuQINBFA3o34BEAC/HB8e
|
||||||
|
shJ4nA8Qc0inGSPKrtgtiud5QKMVhvPA42YDVpk0nohGWtmIrk79o4e84WZy/ysP
|
||||||
|
n9DY64S0hAnXw62O8kg9gxSie2gFBcPdhoXcs1gjne/HssFFPBTq9C/rFpUcsGQ7
|
||||||
|
T0aOm4AFG7pmTmxyACvQ46jsp8Vt79ZjXMOGQa0chsMed7eRtGUTLo89iPM6C2eg
|
||||||
|
fkAOSvgVpePORnnKGB/UvEiVZ0HzzXPIqHSnwL+TrIroc8rCdRvG5y9sAv6OSn1M
|
||||||
|
Lpsm81Mlpq1tZQFYcSE4VBihz9xy4u+ox/0rSjC4B3UQC9l0iXgc2CCET/5IJc2E
|
||||||
|
yYXtcFX0wmOCcJ5ETsK0OZB7W2A2EHYEphpifBQRqgL9WW59Gn+scF368KuioSES
|
||||||
|
IPOuIv5UeghNGh9L3TPvkIVNmMQbHm4C5jwoxwC7AKzSMvag7okxMyA7H/ckDCC0
|
||||||
|
UJx/C9bQJHRoddAQDwWdmx35dT7Z6whJYoncF4YK+fnETrBHr37FzIyfjB41mqBi
|
||||||
|
K++6N6cST18QpeLxOyfxwi18OnkgK2Kt8YIT/r8+0FgRglN9GQuUwDMy23aBI7vN
|
||||||
|
WMFs8cw+zz2VGtrTe/zoAnb1Wk4/5ZQrZkny06ouzn4fZql/wNmwuiyozaJ1U13g
|
||||||
|
jW67c/xZSSpkzxlmzjMvXgtBokSEb4tS2vR4fwARAQABiQJuBBgRAgAPBQJQN6N+
|
||||||
|
AhsCBQkHhM4AAikJEPVqzI8JupY1wV0gBBkBAgAGBQJQN6N+AAoJEBvvPYQBpohh
|
||||||
|
bEUQAJr44o+A7kyUbvzjNbk2fap11J+H9s3b2jWU31JW28laeMT8rvLadaWGfxd3
|
||||||
|
KQTb4Rq+o7KGOr76BF3ujL5zRbS9FUhy18D+2YREK99enP5/ZsC0P1ngVXcAFqOs
|
||||||
|
VE5r7FDtJ7WIMv+uBv/ZjSNMmA6wZ3UN872CSDrEUE6b6l0fjuo/EIEdl4PTPE4R
|
||||||
|
8webg6aAkvoCezJlL2dRm5gIIavmsD3DLmsQIEt6TjIOysxNaTtuGoxt8t7XhLYF
|
||||||
|
9hqtg2hPf5YOiYmiLpJ3bGLjLtmkgaTU7rYfGkwB0EL3g7ctXNjRdPtadUvW5CU8
|
||||||
|
Brfsyr/Ttz2NqMwaX//JGawUE2RILIKIP4QqBdQ8e7XIacxBcPtJEpI/7VW4CXIp
|
||||||
|
AMA/II/A6U4Dj+lwnZFGCKaayhdU+CIGuU27AdIeE1Cn0XQeNkAOaxXGs0fyvRqC
|
||||||
|
4bCHOozyI9N+NOZzCqTEn+jqOOqVaCbEn8AwjiigNMT9Y4yuXak4yJIv/rmmZ8d2
|
||||||
|
ty0UD4lo2UOUA2MLHA8cPQz1hNOK7Wlb03guR9GBrlI2T//iHPtVUCWOJO3rru81
|
||||||
|
yyKT4QtQHCofMXoCksjPAH1Avt8r07LJGKbHAma6XsDA5wQ3PtQ0DFwlpOkDqvUg
|
||||||
|
PSiUkwUtgHor/L2L6TqRLSCk4vRns+J9BfwBXbAHeJ6GJqWK9bwAnihQwiq8qA2e
|
||||||
|
nvLRb3JqMJ+HBlAuAJ9seeXownjuE11luYptopYaHWmPNrkCDQRQN6RYARAAqy9U
|
||||||
|
RJyaORAbIDD9QL4jSSu8cmqwgjdN3Q8lBX5OSRXoYJr2SGLCz+XSjcgmnlX72QHW
|
||||||
|
D1+ouBwEtFeSufyT8fpweRvKg/Jr8zdzacx2xi8Fjb5NP495g6o7PnoukbMslKX3
|
||||||
|
vb1ICAQwbC8sbAxBmthDwaS4BrjZJ0ndgRUPZks530PGOzOxWNapyGbWIZomQtEr
|
||||||
|
XzIhd3//3XRAsnaic3oM8Kk3XZwI5M75l+zjOm781Uj82BvuKLoAq5eCYU+d1vjY
|
||||||
|
19q764o4Cb8UBSdFGRx2Y6sv80B/23d9Aby8KTqJqyO4Xjq86zwJ7ahWP7VvNmJL
|
||||||
|
YgS1JEjdSeRgiT49/Tu7RLc9q8g4NytbXUyRDj+Lsb9RFY6Yxy88359quGdIU1EJ
|
||||||
|
1PiZ/w+8CoZ5HlYPHVK5+VYDUfJk7y7A8okLuFRqVN1t6pluFns2/QxqWg+fUk+J
|
||||||
|
BqfIr6H7XJJ+47K15Vy4nH4IiyeO9kW0ZQ3ixEjmQiFxPe1Fvfm/kImYloqiUIEL
|
||||||
|
tCZktv2/klljE7rVU1M5Cd5f5w4bDqFY+zln3BUx/yogZkLytX9caMFJBG01f43S
|
||||||
|
1neMezZFA8UpS+zAUo/OGccnbCmomSyrfraKocozqE49vJv0qrNlEL6zCVN+2AaZ
|
||||||
|
kSX+XeOH+69EyNgX1rPjNbTVHN3mMlCu2yZt9DUAEQEAAYhPBBgRAgAPBQJQN6RY
|
||||||
|
AhsMBQkHhM4AAAoJEPVqzI8JupY1h80AoKJ+0HelwrZqdN8Z4StBFNOhj2cpAKCp
|
||||||
|
b/0llYj97VvDF20GDkFibNZxtQ==
|
||||||
|
=HA+U
|
||||||
|
-----END PGP PUBLIC KEY BLOCK-----
|
||||||
|
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||||
|
|
||||||
|
mQINBE6HVy4BEADACp0EU6HZ4KyFx/qfhzNarCfnlyEoCFY08k516UaHrUOrYWPp
|
||||||
|
ukoahcceA/M3H/xM0CGIn6uiuG/Cq7+qODAZNBsr6haIbDaqSUt+953b5qCSbD65
|
||||||
|
LBR8TXvW+9KkXPhXTKi/osYBdmsbFLeVLqU5Kd4QJqWKRLtuo0ENbFkQPVypEJk8
|
||||||
|
Ozg2zZ2yeSQAy0pgeFh8lezI7A23yj229kFq0EEfeqHpgifIzR2hNIhS5pTSOt8V
|
||||||
|
RDapO3FpOmxPPUMsaJ1KATD92+SgbZW8evW7ffz4QUiQiFsfTSOTCaTFu8qpu6Fb
|
||||||
|
a9u/u6mTrJQGRdqDcFp3iWjEUOVr0gUdLSr3zey152PBRaC26/eLqH8PFgCerBkn
|
||||||
|
o9vso0Vr+Kh63OOQeDHATZGy7tMHbWW5AEXVkTpNoSRYr48pd6u9Z1TfWVcovNAZ
|
||||||
|
tWiFVKKxniTa4MZY2czOSyh2YahCbEt3P0DoNihy3YHhTvW1k0Os2x5yCsfpGzp3
|
||||||
|
U8x1apfQqAyRNIa9SptLpQ7xF+lv52D9kp3XdkWXw1BFY+nmm/FqoC4tKU8AmbuB
|
||||||
|
n3SX/sYjq3Z6aLoBOmZ849G0Zp1xEYHCbfWBxvqhIc6dlPc3Y9uYV01+FlTzX9Mh
|
||||||
|
THa8p6oABrXbWRJpkOvaVbdDhXON+02Jlvawy3T3rwVkuEfEZu8akv7miwARAQAB
|
||||||
|
tCBNYXR0IFR1cm5lciA8bWF0dHN0ODhAZ21haWwuY29tPokCQQQTAQIAKwIbAwYL
|
||||||
|
CQgHAwIGFQgCCQoLBBYCAwECHgECF4ACGQEFAliRYVIFCQ3McSQACgkQD91oLZdM
|
||||||
|
pyrfpg//VJ/E6j0Bc1XIOeVPjZ/C8a9pJ85JvLfh1vLtB5EJM6mc9/D7GJkCjql6
|
||||||
|
tscZfBVewNbHq+Bt9DSXCx/9e5B0xtYOSvaigeYt9/PxEndbsFKOJ/+s7P1XGsKV
|
||||||
|
JRZtezr2VhuHDLQfChqKjhCR/XqA5WZQ96jUK/lS7kPEtKRwRJK0vW9Hj1bD3gh2
|
||||||
|
cNQA/1THncZkihZpFJhUdK3382ZlLU2f5EIlgMSquVeMKmlvU+YJgwXp8YH4JPRh
|
||||||
|
UbcBZyGCzYgOtBBSmh+Y8vzxhjpLNzpnkV46zx4Hguz9xcOa1XqXILxIuXGqm1pD
|
||||||
|
D1tv37Wf78KcjL7qqKl3Gl8q6eRYqyv7c/7Bt96sxCzVBWThQr8/fz1c8TWnmUz9
|
||||||
|
xi1cg94PWAresR878Cr4aPCFtJQ4ZHzlymPAt8sc2aW8l768159h6B2HwFUnaBsV
|
||||||
|
CbCGDDu1/hMxamOR9jQZCw9UMNKKIDoNMTKmeD5DAeo+S4Vu0a/5rFbVL5/s47Vx
|
||||||
|
Ypoh5QP8uDmuwawEzf7GnErNXSkdqIvhWRfR8e/0sna/DTybz/lz6/bMBHsGNmL1
|
||||||
|
n4ZMBBqvlVTy26UT9XqkLZdQAmGQy0x1r9VW9szMdmaLEM5vTvR0qQXoyQhnoNuJ
|
||||||
|
PEVvvuDst8WS2xuJNdodRIZ1R+dZFZx4K3tIw6Zs8UXAN7W8LxC0IU1hdHQgVHVy
|
||||||
|
bmVyIDxtYXR0c3Q4OEBnZW50b28ub3JnPokCPgQTAQIAKAIbAwYLCQgHAwIGFQgC
|
||||||
|
CQoLBBYCAwECHgECF4AFAliRYVIFCQ3McSQACgkQD91oLZdMpyre7w/+MC9gJeLk
|
||||||
|
zkqLAkQ/s7gouRmxx7PzYzUJQ3ewz7Ja3uPMsrCeAgDElo/ODfO28edYKHICHso7
|
||||||
|
dzNFukPkUYUKqp02n1yO5Bi56mjssohh4MubTyRh61DWE4Jddd8MMBvbtEMEnc7Q
|
||||||
|
ty81PFV6JERgLrb47+/H0n/8PGTcWvy3aZPBbHdRCpLUpUapGGvKBsBbTFWfh2th
|
||||||
|
nnswtQm9HkOCRvBRHWCCg5yFv7x0Ic+wsY+q82Mv4RXSjh0K1gyFk0rYQcRakfpZ
|
||||||
|
wIJHJaycGt85yZYyrc3qJLAOqW4hnFZrm3kpd+BtPDfSM15n8BBtBl/fpxlpVRVb
|
||||||
|
eT7sMiYHtzwls0Wu/+AGDzGUrAIYRJk58thWjwMoolI6e4S1HGTy+E0MTDy+ewTQ
|
||||||
|
1qeuKv8NeE58Soq/GThXcXMavueK9Ni61vnMEiCnQnifTEgZhfLGlz+Cahoh4zeg
|
||||||
|
gh0NC5u5frrDjMbGqjOPthShKlMHUa3aOK8t+U9xItf3pwSBSRbjE26soubBEQzJ
|
||||||
|
7Oili8+NKUJ64/2I+/ga7bOVhLRpflnVY3Lz86b/7Vm3cjlfokeJC3o7M3ZVs/Xu
|
||||||
|
a5N7ZlnIZFbr/Gpsj8iGB0xJDeNl6QL8Bl7hHGtzTiG0Jif0tN/RnXH9Zfi28MCn
|
||||||
|
dw5wthgpUmkNiRKNNCIuKJu27vnwqJhrVYW0I01hdHQgVHVybmVyIDxtYXR0LnR1
|
||||||
|
cm5lckBpbnRlbC5jb20+iQI/BBMBAgApAhsDBwsJCAcDAgEGFQgCCQoLBBYCAwEC
|
||||||
|
HgECF4AFAliRYVIFCQ3McSQACgkQD91oLZdMpyoYNRAArS3NKtZmG/rD9YEciI+o
|
||||||
|
GJrvQOvD6UIRO9kcokBlblB6cc1QPa49uY0F0JVQW9WPzmyMIPSbSB5NeDGG9jIY
|
||||||
|
Jjsx5Gz+h91fqpoUYcQh1mjOdP/57MwaMpgxlZTDJhdOej/LzJqDUeBm0yXzS7y7
|
||||||
|
vuZ7usuyHjDT6rRwMeugmHIndpobQfGU3LQuAoxy97zCb2hMmdJ//zeWZzat5BuK
|
||||||
|
zgZxq7too0eC6zl1lue7u9BGqn4WsbJ46WUuPZ8VTCzJqNICnPkykSzjUgb/zn/2
|
||||||
|
VtlFd5p+J9YxHoHwRlz3QEQUXcwtRHGV6hzhlYXavttpw5aGpbnyfEtXmuG1NuNN
|
||||||
|
L8aMUM3S2VXqOhCG5biK6qbuozprK0qpI/FpJrr6uKBuF6Yj263Opxj+NFxyOiMT
|
||||||
|
4ozbI14/5SGcsBBaEKE1/UE0ZbgJty/kx0NI1nY1O8lkWUdqPoF6Y8poYglZh6gP
|
||||||
|
jXkCNucXJ0zsxEzEcEkrPxD99i1CeZ95hamqESQ/6AoKRqW6i1e86ePJHNzOEudS
|
||||||
|
6UlaU/2QGVn7X29BdMsOjtS84VRCPH4EHr/Jo3k2y2+wND0lm14bIzUPiUDXPLF3
|
||||||
|
Eg6fKuwBXAooRSgPX2T8qccd/LgpWImJD1akOSIeOZvyRSFGhXPhBAA7i7yK+V0l
|
||||||
|
oeSUZLJ8vxG83AjlJNvPBTi0Jk1hdHQgVHVybmVyIDxtYXR0c3Q4OEBmcmVlZGVz
|
||||||
|
a3RvcC5vcmc+iQI/BBMBAgApAhsDBwsJCAcDAgEGFQgCCQoLBBYCAwECHgECF4AF
|
||||||
|
AliRYVIFCQ3McSQACgkQD91oLZdMpyqXlw/9E84wZwqmEIo3tmRwUdeQaXMOE/ay
|
||||||
|
KDpzhiBwWpSAMsZPYj6DutdLSC2N//Wx4HDw3ZvS+X6lLkSboauSS3a1Mdb3XBdh
|
||||||
|
UyJIO/Yqt47ZlMd3oYk4GBGy9ItR8C9Kv9OF/PHFqZnK5FdYEtk9QB7dj4dRyw2f
|
||||||
|
01ECIXcKE6P2KVn4rUw/phRIICGmWjWhzySVKIQYeyUEbVRfiX+OeHaT3EeOuCOS
|
||||||
|
e+9+2COyf+OYc8leT7fgq1jNBZfsTTJXTg+ZIir4YvTQlhes95vKktjaa/rfPSgf
|
||||||
|
A5JmYDXm4So7Av3U82+U/zkqQmUziUBs/xRGCgIhwnaIOM1w+JnPePv3KBqpXCoI
|
||||||
|
9JS4AvWbiNylgNGq3QcHytHYqxN1ZMpwD4S8ww3xlQ0RFW372//gt1c2dmh63Qw3
|
||||||
|
mKeYb+J9H/rvZIKtB7ItIOVDnZ/3209KW5CMcTbKO0DV/AsmSNGZbD1wbBiPRJW3
|
||||||
|
BdpWL+42iRgDWB/+gjpllJXz5H3vQ3zXIVXZNbXpCWKzJqB5AIQorstRNWMkH5xM
|
||||||
|
CIWYS0F/ykoXSiPXuZwT7sHhTo5Zdxem/1I7cevhgeJhOrZ5Pv4lec4FmUnEToVn
|
||||||
|
DHzgfGnHNtGC3y4GNc/F/4pR4CVQEi3WtIu6v9sFClibE/RGNMVyRgR+p8XXiZjH
|
||||||
|
FVhvVBWd5fmLVHS5Ag0ETodXLgEQAKvlwepeqGbkmKOTHchHY1cnO95BHnlOBbif
|
||||||
|
lU+abvKSzR4zm/QIMccn7E0hGsAvrDSndtD2vSsVHGbCDIkl0WNrr+z8aIP5FrOk
|
||||||
|
DyLIO8rCNr+CxKt4cl7vpxQ0CP/Erq/M6jeGvBwFfbyQcM1M/P6xVJAk1AAj0ts3
|
||||||
|
8c2DUOz11FQmMDy0Zwb832mfXO6lMznKkWdAl9Qql1vO4cH5XWn45V97nqnsg1fI
|
||||||
|
K8sTov3Dr29RiW5VKuPuQgT1pIzvPCsN9Of/1Eb8nwgHSP9x2CqUHSsomBQbvZoJ
|
||||||
|
IwbeWW2cziy2/jKlbsBnG/9d4X2KyS9jOIgnPULf0NoEk6qghqZeh1Eccegbq6Vd
|
||||||
|
Kwz4TI3lcX9pEnU9nyAeIAcvERLbNWwWIAMd6JcriJ/SBklBUFEn9on4Qf7ex63K
|
||||||
|
oOxDjj5ze2TYuy7dqZrcIq0qmosMV8OcaY1bz7eFQdnFT6Hg1q+yOfKptnnt0AJN
|
||||||
|
dgRL/72hMU5a3CrF1stXMgtlLfz28i81+UI9wmRBFNuvFffTtS8M6sRybbbq1WHJ
|
||||||
|
0nC5XSdOfjTRRjHLoyNoJydVRMLacU8RSpdRP7r+xYjDpaUmImuzi+ZYF/Ym/Pt7
|
||||||
|
RiKgrjtXqjyS7F9dkmE7Vt3xjPn45lwfkkYum+16FQTPIhNWbmqnFs3Wb7pN6M/g
|
||||||
|
c8VbXzkPABEBAAGJAiUEGAECAA8CGwwFAliRYVkFCQ3McSsACgkQD91oLZdMpyqf
|
||||||
|
5BAAtJ+v7bAxZ5abiVVq6PH9hJ+sQj5ifBRk4kYvror956Ifqe1l+HlFQx3pxBLy
|
||||||
|
GtbfyUpPAw/d2NwXMJOoB36AAI3+tm4ykrpSerV4Y8+z/RdTunX0kYBeigdju97K
|
||||||
|
/zH/V2W6xoF605FdOVdH4zoeUSW5ZxE5AqnjCJkYhgniL8c1TzctuFenMrrK+yfk
|
||||||
|
5y2tKUDqEkz6g8axrKtLeaJBVZATiEVrrYdu1mA9biwoVUV7RWv/irNPC0KvBb2t
|
||||||
|
OfHcKzzWEb85tbaWYoW5U+FHdO6rN8suhsLfomwh1Qph2UOWmTEwmZBgGrXSaEJm
|
||||||
|
yKe5nYjw2/hBoQbQ2nY7zbFS0e9kMK86vVVkqOf1QpJWX2AUJlMvNxsjeo5RE25V
|
||||||
|
accpdK4lXRR9Emby3VzjzYPwH9dpONTvcJmanf+ZXhT6j4hMWUlSsVVuabME8x58
|
||||||
|
T5nXBDGk4RPe2EQd1cCoJJlpVdwqox4PQnsSupZCDov9lvo4QWGBnHlmFcjrVk+t
|
||||||
|
4L+/zZo/93QOHzIVF5BZHMT+10Vf35dmJg+5HAzpe9TGNKoC0C5755LH/Wx70c2v
|
||||||
|
g5EXB3ShUaCfZZwnjzkCiKmva5JlOFWVXXDu5tAwS2oV0EJucraV7z2QW3vhNSOQ
|
||||||
|
91c+amYo/Z7vkRnDyZPLlsoOlcRNjr5U4/lYyS0AJS/RDZ0=
|
||||||
|
=IcP4
|
||||||
|
-----END PGP PUBLIC KEY BLOCK-----
|
|
@ -0,0 +1,4 @@
|
||||||
|
#git=git://anongit.freedesktop.org/xorg/app/iceauth
|
||||||
|
version=3
|
||||||
|
opts="pgpsigurlmangle=s/$/.sig/" \
|
||||||
|
https://xorg.freedesktop.org/releases/individual/app/ iceauth-(.*)\.tar\.gz
|
|
@ -0,0 +1,4 @@
|
||||||
|
#git=git://anongit.freedesktop.org/xorg/app/rgb
|
||||||
|
version=3
|
||||||
|
opts="pgpsigurlmangle=s/$/.sig/" \
|
||||||
|
https://xorg.freedesktop.org/releases/individual/app/ rgb-(.*)\.tar\.gz
|
|
@ -0,0 +1,4 @@
|
||||||
|
#git=git://anongit.freedesktop.org/xorg/app/sessreg
|
||||||
|
version=3
|
||||||
|
opts="pgpsigurlmangle=s/$/.sig/" \
|
||||||
|
https://xorg.freedesktop.org/releases/individual/app/ sessreg-(.*)\.tar\.gz
|
|
@ -0,0 +1,4 @@
|
||||||
|
#git=git://anongit.freedesktop.org/xorg/app/xcmsdb
|
||||||
|
version=3
|
||||||
|
opts="pgpsigurlmangle=s/$/.sig/" \
|
||||||
|
https://xorg.freedesktop.org/releases/individual/app/ xcmsdb-(.*)\.tar\.gz
|
|
@ -0,0 +1,4 @@
|
||||||
|
#git=git://anongit.freedesktop.org/xorg/app/xgamma
|
||||||
|
version=3
|
||||||
|
opts="pgpsigurlmangle=s/$/.sig/" \
|
||||||
|
https://xorg.freedesktop.org/releases/individual/app/ xgamma-(.*)\.tar\.gz
|
|
@ -0,0 +1,4 @@
|
||||||
|
#git=git://anongit.freedesktop.org/xorg/app/xhost
|
||||||
|
version=3
|
||||||
|
opts="pgpsigurlmangle=s/$/.sig/" \
|
||||||
|
https://xorg.freedesktop.org/releases/individual/app/ xhost-(.*)\.tar\.gz
|
|
@ -0,0 +1,4 @@
|
||||||
|
#git=git://anongit.freedesktop.org/xorg/app/xmodmap
|
||||||
|
version=3
|
||||||
|
opts="pgpsigurlmangle=s/$/.sig/" \
|
||||||
|
https://xorg.freedesktop.org/releases/individual/app/ xmodmap-(.*)\.tar\.gz
|
|
@ -0,0 +1,4 @@
|
||||||
|
#git=git://anongit.freedesktop.org/xorg/app/xrandr
|
||||||
|
version=3
|
||||||
|
opts="pgpsigurlmangle=s/$/.sig/" \
|
||||||
|
https://xorg.freedesktop.org/releases/individual/app/ xrandr-(.*)\.tar\.gz
|
|
@ -0,0 +1,4 @@
|
||||||
|
#git=git://anongit.freedesktop.org/xorg/app/xrdb
|
||||||
|
version=3
|
||||||
|
opts="pgpsigurlmangle=s/$/.sig/" \
|
||||||
|
https://xorg.freedesktop.org/releases/individual/app/ xrdb-(.*)\.tar\.gz
|
|
@ -0,0 +1,4 @@
|
||||||
|
#git=git://anongit.freedesktop.org/xorg/app/xrefresh
|
||||||
|
version=3
|
||||||
|
opts="pgpsigurlmangle=s/$/.sig/" \
|
||||||
|
https://xorg.freedesktop.org/releases/individual/app/ xrefresh-(.*)\.tar\.gz
|
|
@ -0,0 +1,4 @@
|
||||||
|
#git=git://anongit.freedesktop.org/xorg/app/xset
|
||||||
|
version=3
|
||||||
|
opts="pgpsigurlmangle=s/$/.sig/" \
|
||||||
|
https://xorg.freedesktop.org/releases/individual/app/ xset-(.*)\.tar\.gz
|
|
@ -0,0 +1,4 @@
|
||||||
|
#git=git://anongit.freedesktop.org/xorg/app/xsetmode
|
||||||
|
version=3
|
||||||
|
opts="pgpsigurlmangle=s/$/.sig/" \
|
||||||
|
https://xorg.freedesktop.org/releases/individual/app/ xsetmode-(.*)\.tar\.gz
|
|
@ -0,0 +1,4 @@
|
||||||
|
#git=git://anongit.freedesktop.org/xorg/app/xsetpointer
|
||||||
|
version=3
|
||||||
|
opts="pgpsigurlmangle=s/$/.sig/" \
|
||||||
|
https://xorg.freedesktop.org/releases/individual/app/ xsetpointer-(.*)\.tar\.gz
|
|
@ -0,0 +1,4 @@
|
||||||
|
#git=git://anongit.freedesktop.org/xorg/app/xsetroot
|
||||||
|
version=3
|
||||||
|
opts="pgpsigurlmangle=s/$/.sig/" \
|
||||||
|
https://xorg.freedesktop.org/releases/individual/app/ xsetroot-(.*)\.tar\.gz
|
|
@ -0,0 +1,4 @@
|
||||||
|
#git=git://anongit.freedesktop.org/xorg/app/xstdcmap
|
||||||
|
version=3
|
||||||
|
opts="pgpsigurlmangle=s/$/.sig/" \
|
||||||
|
https://xorg.freedesktop.org/releases/individual/app/ xstdcmap-(.*)\.tar\.gz
|
|
@ -0,0 +1,4 @@
|
||||||
|
#git=git://anongit.freedesktop.org/xorg/app/xvidtune
|
||||||
|
version=3
|
||||||
|
opts="pgpsigurlmangle=s/$/.sig/" \
|
||||||
|
https://xorg.freedesktop.org/releases/individual/app/ xvidtune-(.*)\.tar\.gz
|
|
@ -1,293 +0,0 @@
|
||||||
#!/usr/bin/make -f
|
|
||||||
|
|
||||||
# Debian X Strike Force Build System (XSFBS): Make portion
|
|
||||||
|
|
||||||
# Copyright 1996 Stephen Early
|
|
||||||
# Copyright 1997 Mark Eichin
|
|
||||||
# Copyright 1998-2005, 2007 Branden Robinson
|
|
||||||
# Copyright 2005 David Nusinow
|
|
||||||
#
|
|
||||||
# Licensed under the GNU General Public License, version 2. See the file
|
|
||||||
# /usr/share/common-licenses/GPL or <http://www.gnu.org/copyleft/gpl.txt>.
|
|
||||||
|
|
||||||
# Originally by Stephen Early <sde1000@debian.org>
|
|
||||||
# Modified by Mark W. Eichin <eichin@kitten.gen.ma.us>
|
|
||||||
# Modified by Adam Heath <doogie@debian.org>
|
|
||||||
# Modified by Branden Robinson <branden@debian.org>
|
|
||||||
# Modified by Fabio Massimo Di Nitto <fabbione@fabbione.net>
|
|
||||||
# Modified by David Nusinow <dnusinow@debian.org>
|
|
||||||
# Acknowledgements to Manoj Srivastava.
|
|
||||||
|
|
||||||
# Pass $(DH_OPTIONS) into the environment for debhelper's benefit.
|
|
||||||
export DH_OPTIONS
|
|
||||||
|
|
||||||
# force quilt to not use ~/.quiltrc and to use debian/patches
|
|
||||||
QUILT = QUILT_PATCHES=debian/patches quilt --quiltrc /dev/null
|
|
||||||
|
|
||||||
# Set up parameters for the upstream build environment.
|
|
||||||
|
|
||||||
# Determine (source) package name from Debian changelog.
|
|
||||||
SOURCE_NAME:=$(shell dpkg-parsechangelog -ldebian/changelog \
|
|
||||||
| grep '^Source:' | awk '{print $$2}')
|
|
||||||
|
|
||||||
# Determine package version from Debian changelog.
|
|
||||||
SOURCE_VERSION:=$(shell dpkg-parsechangelog -ldebian/changelog \
|
|
||||||
| grep '^Version:' | awk '{print $$2}')
|
|
||||||
|
|
||||||
# Determine upstream version number.
|
|
||||||
UPSTREAM_VERSION:=$(shell echo $(SOURCE_VERSION) | sed 's/-.*//')
|
|
||||||
|
|
||||||
# Determine the source version without the epoch for make-orig-tar-gz
|
|
||||||
NO_EPOCH_VER:=$(shell echo $(UPSTREAM_VERSION) | sed 's/^.://')
|
|
||||||
|
|
||||||
# Figure out who's building this package.
|
|
||||||
BUILDER:=$(shell echo $${DEBEMAIL:-$${EMAIL:-$$(echo $$LOGNAME@$$(cat /etc/mailname 2>/dev/null))}})
|
|
||||||
|
|
||||||
# Find out if this is an official build; an official build has nothing but
|
|
||||||
# digits, dots, and/or the codename of a release in the Debian part of the
|
|
||||||
# version number. Anything else indicates an unofficial build.
|
|
||||||
OFFICIAL_BUILD:=$(shell VERSION=$(SOURCE_VERSION); if ! expr "$$(echo $${VERSION\#\#*-} | sed 's/\(woody\|sarge\|etch\|lenny\)//g')" : ".*[^0-9.].*" >/dev/null 2>&1; then echo yes; fi)
|
|
||||||
|
|
||||||
# Set up parameters for the Debian build environment.
|
|
||||||
|
|
||||||
# Determine our architecture.
|
|
||||||
BUILD_ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
|
|
||||||
# Work around some old-time dpkg braindamage.
|
|
||||||
BUILD_ARCH:=$(subst i486,i386,$(BUILD_ARCH))
|
|
||||||
# The DEB_HOST_ARCH variable may be set per the Debian cross-compilation policy.
|
|
||||||
ifdef DEB_HOST_ARCH
|
|
||||||
ARCH:=$(DEB_HOST_ARCH)
|
|
||||||
else
|
|
||||||
# dpkg-cross sets the ARCH environment variable; if set, use it.
|
|
||||||
ifdef ARCH
|
|
||||||
ARCH:=$(ARCH)
|
|
||||||
else
|
|
||||||
ARCH:=$(BUILD_ARCH)
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
# $(STAMP_DIR) houses stamp files for complex targets.
|
|
||||||
STAMP_DIR:=stampdir
|
|
||||||
|
|
||||||
# $(DEBTREEDIR) is where all install rules are told (via $(DESTDIR)) to place
|
|
||||||
# their files.
|
|
||||||
DEBTREEDIR:=$(CURDIR)/debian/tmp
|
|
||||||
|
|
||||||
# All "important" targets have four lines:
|
|
||||||
# 1) A target name that is invoked by a package-building tool or the user.
|
|
||||||
# This consists of a dependency on a "$(STAMP_DIR)/"-prefixed counterpart.
|
|
||||||
# 2) A line delcaring 1) as a phony target (".PHONY:").
|
|
||||||
# 3) A "$(STAMP_DIR)/"-prefixed target which does the actual work, and may
|
|
||||||
# depend on other targets.
|
|
||||||
# 4) A line declaring 3) as a member of the $(stampdir_targets) variable; the
|
|
||||||
# "$(STAMP_DIR)/" prefix is omitted.
|
|
||||||
#
|
|
||||||
# This indirection is needed so that the "stamp" files that signify when a rule
|
|
||||||
# is done can be located in a separate "stampdir". Recall that make has no way
|
|
||||||
# to know when a goal has been met for a phony target (like "build" or
|
|
||||||
# "install").
|
|
||||||
#
|
|
||||||
# At the end of each "$(STAMP_DIR)/" target, be sure to run the command ">$@"
|
|
||||||
# so that the target will not be run again. Removing the file will make Make
|
|
||||||
# run the target over.
|
|
||||||
|
|
||||||
# All phony targets should be declared as dependencies of .PHONY, even if they
|
|
||||||
# do not have "($STAMP_DIR)/"-prefixed counterparts.
|
|
||||||
|
|
||||||
# Define a harmless default rule to keep things from going nuts by accident.
|
|
||||||
.PHONY: default
|
|
||||||
default:
|
|
||||||
|
|
||||||
# Set up the $(STAMP_DIR) directory.
|
|
||||||
.PHONY: stampdir
|
|
||||||
stampdir_targets+=stampdir
|
|
||||||
stampdir: $(STAMP_DIR)/stampdir
|
|
||||||
$(STAMP_DIR)/stampdir:
|
|
||||||
mkdir $(STAMP_DIR)
|
|
||||||
>$@
|
|
||||||
|
|
||||||
# Set up the package build directory as quilt expects to find it.
|
|
||||||
.PHONY: prepare
|
|
||||||
stampdir_targets+=prepare
|
|
||||||
prepare: $(STAMP_DIR)/prepare
|
|
||||||
$(STAMP_DIR)/prepare: $(STAMP_DIR)/log $(STAMP_DIR)/genscripts
|
|
||||||
>$@
|
|
||||||
|
|
||||||
.PHONY: log
|
|
||||||
stampdir_targets+=log
|
|
||||||
log: $(STAMP_DIR)/log
|
|
||||||
$(STAMP_DIR)/log: $(STAMP_DIR)/stampdir
|
|
||||||
mkdir -p $(STAMP_DIR)/log
|
|
||||||
|
|
||||||
# Apply all patches to the upstream source.
|
|
||||||
.PHONY: patch
|
|
||||||
stampdir_targets+=patch
|
|
||||||
patch: $(STAMP_DIR)/patch
|
|
||||||
$(STAMP_DIR)/patch: $(STAMP_DIR)/prepare
|
|
||||||
if ! [ `which quilt` ]; then \
|
|
||||||
echo "Couldn't find quilt. Please install it or add it to the build-depends for this package."; \
|
|
||||||
exit 1; \
|
|
||||||
fi; \
|
|
||||||
if $(QUILT) next >/dev/null 2>&1; then \
|
|
||||||
echo -n "Applying patches..."; \
|
|
||||||
if $(QUILT) push -a -v >$(STAMP_DIR)/log/patch 2>&1; then \
|
|
||||||
cat $(STAMP_DIR)/log/patch; \
|
|
||||||
echo "successful."; \
|
|
||||||
else \
|
|
||||||
cat $(STAMP_DIR)/log/patch; \
|
|
||||||
echo "failed! (check $(STAMP_DIR)/log/patch for details)"; \
|
|
||||||
exit 1; \
|
|
||||||
fi; \
|
|
||||||
else \
|
|
||||||
echo "No patches to apply"; \
|
|
||||||
fi; \
|
|
||||||
>$@
|
|
||||||
|
|
||||||
# Revert all patches to the upstream source.
|
|
||||||
.PHONY: unpatch
|
|
||||||
unpatch: $(STAMP_DIR)/log
|
|
||||||
rm -f $(STAMP_DIR)/patch
|
|
||||||
@echo -n "Unapplying patches..."; \
|
|
||||||
if $(QUILT) applied >/dev/null 2>/dev/null; then \
|
|
||||||
if $(QUILT) pop -a -v >$(STAMP_DIR)/log/unpatch 2>&1; then \
|
|
||||||
cat $(STAMP_DIR)/log/unpatch; \
|
|
||||||
echo "successful."; \
|
|
||||||
else \
|
|
||||||
cat $(STAMP_DIR)/log/unpatch; \
|
|
||||||
echo "failed! (check $(STAMP_DIR)/log/unpatch for details)"; \
|
|
||||||
exit 1; \
|
|
||||||
fi; \
|
|
||||||
else \
|
|
||||||
echo "nothing to do."; \
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Clean the generated maintainer scripts.
|
|
||||||
.PHONY: cleanscripts
|
|
||||||
cleanscripts:
|
|
||||||
rm -f $(STAMP_DIR)/genscripts
|
|
||||||
rm -f debian/*.config \
|
|
||||||
debian/*.postinst \
|
|
||||||
debian/*.postrm \
|
|
||||||
debian/*.preinst \
|
|
||||||
debian/*.prerm
|
|
||||||
|
|
||||||
# Clean the package build tree.
|
|
||||||
.PHONY: xsfclean
|
|
||||||
xsfclean: cleanscripts unpatch
|
|
||||||
dh_testdir
|
|
||||||
rm -rf .pc
|
|
||||||
rm -rf $(STAMP_DIR) $(SOURCE_DIR)
|
|
||||||
rm -rf imports
|
|
||||||
dh_clean debian/shlibs.local \
|
|
||||||
debian/po/pothead
|
|
||||||
|
|
||||||
# Generate the debconf templates POT file header.
|
|
||||||
debian/po/pothead: debian/po/pothead.in
|
|
||||||
sed -e 's/SOURCE_VERSION/$(SOURCE_VERSION)/' \
|
|
||||||
-e 's/DATE/$(shell date "+%F %X%z"/)' <$< >$@
|
|
||||||
|
|
||||||
# Update POT and PO files.
|
|
||||||
.PHONY: updatepo
|
|
||||||
updatepo: debian/po/pothead
|
|
||||||
debian/scripts/debconf-updatepo --pot-header=pothead --verbose
|
|
||||||
|
|
||||||
# Remove files from the upstream source tree that we don't need, or which have
|
|
||||||
# licensing problems. It must be run before creating the .orig.tar.gz.
|
|
||||||
#
|
|
||||||
# Note: This rule is for Debian package maintainers' convenience, and is not
|
|
||||||
# needed for conventional build scenarios.
|
|
||||||
.PHONY: prune-upstream-tree
|
|
||||||
prune-upstream-tree:
|
|
||||||
# Ensure we're in the correct directory.
|
|
||||||
dh_testdir
|
|
||||||
grep -rvh '^#' debian/prune/ | xargs --no-run-if-empty rm -rf
|
|
||||||
|
|
||||||
# Verify that there are no offsets or fuzz in the patches we apply.
|
|
||||||
#
|
|
||||||
# Note: This rule is for Debian package maintainers' convenience, and is not
|
|
||||||
# needed for conventional build scenarios.
|
|
||||||
.PHONY: patch-audit
|
|
||||||
patch-audit: prepare unpatch
|
|
||||||
@echo -n "Auditing patches..."; \
|
|
||||||
>$(STAMP_DIR)/log/patch; \
|
|
||||||
FUZZY=; \
|
|
||||||
while [ -n "$$($(QUILT) next)" ]; do \
|
|
||||||
RESULT=$$($(QUILT) push -v | tee -a $(STAMP_DIR)/log/patch | grep ^Hunk | sed 's/^Hunk.*\(succeeded\|FAILED\).*/\1/');\
|
|
||||||
case "$$RESULT" in \
|
|
||||||
succeeded) \
|
|
||||||
echo "fuzzy patch: $$($(QUILT) top)" \
|
|
||||||
| tee -a $(STAMP_DIR)/log/$$($(QUILT) top); \
|
|
||||||
FUZZY=yes; \
|
|
||||||
;; \
|
|
||||||
FAILED) \
|
|
||||||
echo "broken patch: $$($(QUILT) next)" \
|
|
||||||
| tee -a $(STAMP_DIR)/log/$$($(QUILT) next); \
|
|
||||||
exit 1; \
|
|
||||||
;; \
|
|
||||||
esac; \
|
|
||||||
done; \
|
|
||||||
if [ -n "$$FUZZY" ]; then \
|
|
||||||
echo "there were fuzzy patches; please fix."; \
|
|
||||||
exit 1; \
|
|
||||||
else \
|
|
||||||
echo "done."; \
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Generate the maintainer scripts.
|
|
||||||
.PHONY: genscripts
|
|
||||||
stampdir_targets+=genscripts
|
|
||||||
genscripts: $(STAMP_DIR)/genscripts
|
|
||||||
$(STAMP_DIR)/genscripts: $(STAMP_DIR)/stampdir
|
|
||||||
for FILE in debian/*.config.in \
|
|
||||||
debian/*.postinst.in \
|
|
||||||
debian/*.postrm.in \
|
|
||||||
debian/*.preinst.in \
|
|
||||||
debian/*.prerm.in; do \
|
|
||||||
if [ -e "$$FILE" ]; then \
|
|
||||||
MAINTSCRIPT=$$(echo $$FILE | sed 's/.in$$//'); \
|
|
||||||
sed -n '1,/^#INCLUDE_SHELL_LIB#$$/p' <$$FILE \
|
|
||||||
| sed -e '/^#INCLUDE_SHELL_LIB#$$/d' >$$MAINTSCRIPT.tmp; \
|
|
||||||
cat debian/xsfbs/xsfbs.sh >>$$MAINTSCRIPT.tmp; \
|
|
||||||
sed -n '/^#INCLUDE_SHELL_LIB#$$/,$$p' <$$FILE \
|
|
||||||
| sed -e '/^#INCLUDE_SHELL_LIB#$$/d' >>$$MAINTSCRIPT.tmp; \
|
|
||||||
sed -e 's/@SOURCE_VERSION@/$(SOURCE_VERSION)/' \
|
|
||||||
-e 's/@OFFICIAL_BUILD@/$(OFFICIAL_BUILD)/' \
|
|
||||||
-e 's/@DEFAULT_DCRESOLUTIONS@/$(DEFAULT_DCRESOLUTIONS)/' \
|
|
||||||
<$$MAINTSCRIPT.tmp >$$MAINTSCRIPT; \
|
|
||||||
rm $$MAINTSCRIPT.tmp; \
|
|
||||||
fi; \
|
|
||||||
done
|
|
||||||
# Validate syntax of generated shell scripts.
|
|
||||||
#sh debian/scripts/validate-posix-sh debian/*.config \
|
|
||||||
# debian/*.postinst \
|
|
||||||
# debian/*.postrm \
|
|
||||||
# debian/*.preinst \
|
|
||||||
# debian/*.prerm
|
|
||||||
>$@
|
|
||||||
|
|
||||||
# Generate the shlibs.local file.
|
|
||||||
debian/shlibs.local:
|
|
||||||
cat debian/*.shlibs >$@
|
|
||||||
|
|
||||||
SERVERMINVERS = $(shell cat /usr/share/xserver-xorg/serverminver 2>/dev/null)
|
|
||||||
VIDEOABI = $(shell cat /usr/share/xserver-xorg/videoabiver 2>/dev/null)
|
|
||||||
INPUTABI = $(shell cat /usr/share/xserver-xorg/inputabiver 2>/dev/null)
|
|
||||||
SERVER_DEPENDS = xserver-xorg-core (>= $(SERVERMINVERS))
|
|
||||||
VIDDRIVER_PROVIDES = xserver-xorg-video-$(VIDEOABI)
|
|
||||||
INPDRIVER_PROVIDES = xserver-xorg-input-$(INPUTABI)
|
|
||||||
ifeq ($(PACKAGE),)
|
|
||||||
PACKAGE=$(shell awk '/^Package:/ { print $$2; exit }' < debian/control)
|
|
||||||
endif
|
|
||||||
|
|
||||||
.PHONY: serverabi
|
|
||||||
serverabi: install
|
|
||||||
ifeq ($(SERVERMINVERS),)
|
|
||||||
@echo error: xserver-xorg-dev needs to be installed
|
|
||||||
@exit 1
|
|
||||||
else
|
|
||||||
echo "xserver:Depends=$(SERVER_DEPENDS)" >> debian/$(PACKAGE).substvars
|
|
||||||
echo "xviddriver:Provides=$(VIDDRIVER_PROVIDES)" >> debian/$(PACKAGE).substvars
|
|
||||||
echo "xinpdriver:Provides=$(INPDRIVER_PROVIDES)" >> debian/$(PACKAGE).substvars
|
|
||||||
endif
|
|
||||||
|
|
||||||
# vim:set noet ai sts=8 sw=8 tw=0:
|
|
|
@ -1,931 +0,0 @@
|
||||||
# $Id$
|
|
||||||
|
|
||||||
# This is the X Strike Force shell library for X Window System package
|
|
||||||
# maintainer scripts. It serves to define shell functions commonly used by
|
|
||||||
# such packages, and performs some error checking necessary for proper operation
|
|
||||||
# of those functions. By itself, it does not "do" much; the maintainer scripts
|
|
||||||
# invoke the functions defined here to accomplish package installation and
|
|
||||||
# removal tasks.
|
|
||||||
|
|
||||||
# If you are reading this within a Debian package maintainer script (e.g.,
|
|
||||||
# /var/lib/dpkg)info/PACKAGE.{config,preinst,postinst,prerm,postrm}), you can
|
|
||||||
# skip past this library by scanning forward in this file to the string
|
|
||||||
# "GOBSTOPPER".
|
|
||||||
|
|
||||||
SOURCE_VERSION=@SOURCE_VERSION@
|
|
||||||
OFFICIAL_BUILD=@OFFICIAL_BUILD@
|
|
||||||
|
|
||||||
# Use special abnormal exit codes so that problems with this library are more
|
|
||||||
# easily tracked down.
|
|
||||||
SHELL_LIB_INTERNAL_ERROR=86
|
|
||||||
SHELL_LIB_THROWN_ERROR=74
|
|
||||||
SHELL_LIB_USAGE_ERROR=99
|
|
||||||
|
|
||||||
# old -> new variable names
|
|
||||||
if [ -z "$DEBUG_XORG_PACKAGE" ] && [ -n "$DEBUG_XFREE86_PACKAGE" ]; then
|
|
||||||
DEBUG_XORG_PACKAGE="$DEBUG_XFREE86_PACKAGE"
|
|
||||||
fi
|
|
||||||
if [ -z "$DEBUG_XORG_DEBCONF" ] && [ -n "$DEBUG_XFREE86_DEBCONF" ]; then
|
|
||||||
DEBUG_XORG_DEBCONF="$DEBUG_XFREE86_DEBCONF"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# initial sanity checks
|
|
||||||
if [ -z "$THIS_PACKAGE" ]; then
|
|
||||||
cat >&2 <<EOF
|
|
||||||
Error: package maintainer script attempted to use shell library without
|
|
||||||
definining \$THIS_PACKAGE shell variable. Please report the package name,
|
|
||||||
version, and the text of this error message to the Debian Bug Tracking System.
|
|
||||||
Visit <http://www.debian.org/Bugs/Reporting> on the World Wide Web for
|
|
||||||
instructions, read the file /usr/share/doc/debian/bug-reporting.txt from the
|
|
||||||
"doc-debian" package, or install the "reportbug" package and use the command of
|
|
||||||
the same name to file a report against version $SOURCE_VERSION of this package.
|
|
||||||
EOF
|
|
||||||
exit $SHELL_LIB_USAGE_ERROR
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "$THIS_SCRIPT" ]; then
|
|
||||||
cat >&2 <<EOF
|
|
||||||
Error: package maintainer script attempted to use shell library without
|
|
||||||
definining \$THIS_SCRIPT shell variable. Please report the package name,
|
|
||||||
version, and the text of this error message to the Debian Bug Tracking System.
|
|
||||||
Visit <http://www.debian.org/Bugs/Reporting> on the World Wide Web for
|
|
||||||
instructions, read the file /usr/share/doc/debian/bug-reporting.txt from the
|
|
||||||
"doc-debian" package, or install the "reportbug" package and use the command of
|
|
||||||
the same name to file a report against version $SOURCE_VERSION of the
|
|
||||||
"$THIS_PACKAGE" package.
|
|
||||||
EOF
|
|
||||||
exit $SHELL_LIB_USAGE_ERROR
|
|
||||||
fi
|
|
||||||
|
|
||||||
ARCHITECTURE="$(dpkg --print-installation-architecture)"
|
|
||||||
|
|
||||||
if [ "$1" = "reconfigure" ] || [ -n "$DEBCONF_RECONFIGURE" ]; then
|
|
||||||
RECONFIGURE="true"
|
|
||||||
else
|
|
||||||
RECONFIGURE=
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ([ "$1" = "install" ] || [ "$1" = "configure" ]) && [ -z "$2" ]; then
|
|
||||||
FIRSTINST="yes"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "$RECONFIGURE" ] && [ -z "$FIRSTINST" ]; then
|
|
||||||
UPGRADE="yes"
|
|
||||||
fi
|
|
||||||
|
|
||||||
trap "message;\
|
|
||||||
message \"Received signal. Aborting $THIS_PACKAGE package $THIS_SCRIPT script.\";\
|
|
||||||
message;\
|
|
||||||
exit 1" HUP INT QUIT TERM
|
|
||||||
|
|
||||||
reject_nondigits () {
|
|
||||||
# syntax: reject_nondigits [ operand ... ]
|
|
||||||
#
|
|
||||||
# scan operands (typically shell variables whose values cannot be trusted) for
|
|
||||||
# characters other than decimal digits and barf if any are found
|
|
||||||
while [ -n "$1" ]; do
|
|
||||||
# does the operand contain anything but digits?
|
|
||||||
if ! expr "$1" : "[[:digit:]]\+$" > /dev/null 2>&1; then
|
|
||||||
# can't use die(), because it wraps message() which wraps this function
|
|
||||||
echo "$THIS_PACKAGE $THIS_SCRIPT error: reject_nondigits() encountered" \
|
|
||||||
"possibly malicious garbage \"$1\"" >&2
|
|
||||||
exit $SHELL_LIB_THROWN_ERROR
|
|
||||||
fi
|
|
||||||
shift
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
reject_whitespace () {
|
|
||||||
# syntax: reject_whitespace [ operand ]
|
|
||||||
#
|
|
||||||
# scan operand (typically a shell variable whose value cannot be trusted) for
|
|
||||||
# whitespace characters and barf if any are found
|
|
||||||
if [ -n "$1" ]; then
|
|
||||||
# does the operand contain any whitespace?
|
|
||||||
if expr "$1" : "[[:space:]]" > /dev/null 2>&1; then
|
|
||||||
# can't use die(), because I want to avoid forward references
|
|
||||||
echo "$THIS_PACKAGE $THIS_SCRIPT error: reject_whitespace() encountered" \
|
|
||||||
"possibly malicious garbage \"$1\"" >&2
|
|
||||||
exit $SHELL_LIB_THROWN_ERROR
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
reject_unlikely_path_chars () {
|
|
||||||
# syntax: reject_unlikely_path_chars [ operand ... ]
|
|
||||||
#
|
|
||||||
# scan operands (typically shell variables whose values cannot be trusted) for
|
|
||||||
# characters unlikely to be seen in a path and which the shell might
|
|
||||||
# interpret and barf if any are found
|
|
||||||
while [ -n "$1" ]; do
|
|
||||||
# does the operand contain any funny characters?
|
|
||||||
if expr "$1" : '.*[!$&()*;<>?|].*' > /dev/null 2>&1; then
|
|
||||||
# can't use die(), because I want to avoid forward references
|
|
||||||
echo "$THIS_PACKAGE $THIS_SCRIPT error: reject_unlikely_path_chars()" \
|
|
||||||
"encountered possibly malicious garbage \"$1\"" >&2
|
|
||||||
exit $SHELL_LIB_THROWN_ERROR
|
|
||||||
fi
|
|
||||||
shift
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
# Query the terminal to establish a default number of columns to use for
|
|
||||||
# displaying messages to the user. This is used only as a fallback in the
|
|
||||||
# event the COLUMNS variable is not set. ($COLUMNS can react to SIGWINCH while
|
|
||||||
# the script is running, and this cannot, only being calculated once.)
|
|
||||||
DEFCOLUMNS=$(stty size 2> /dev/null | awk '{print $2}') || true
|
|
||||||
if ! expr "$DEFCOLUMNS" : "[[:digit:]]\+$" > /dev/null 2>&1; then
|
|
||||||
DEFCOLUMNS=80
|
|
||||||
fi
|
|
||||||
|
|
||||||
message () {
|
|
||||||
# pretty-print messages of arbitrary length
|
|
||||||
reject_nondigits "$COLUMNS"
|
|
||||||
echo "$*" | fmt -t -w ${COLUMNS:-$DEFCOLUMNS} >&2
|
|
||||||
}
|
|
||||||
|
|
||||||
observe () {
|
|
||||||
# syntax: observe message ...
|
|
||||||
#
|
|
||||||
# issue observational message suitable for logging someday when support for
|
|
||||||
# it exists in dpkg
|
|
||||||
if [ -n "$DEBUG_XORG_PACKAGE" ]; then
|
|
||||||
message "$THIS_PACKAGE $THIS_SCRIPT note: $*"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
warn () {
|
|
||||||
# syntax: warn message ...
|
|
||||||
#
|
|
||||||
# issue warning message suitable for logging someday when support for
|
|
||||||
# it exists in dpkg; also send to standard error
|
|
||||||
message "$THIS_PACKAGE $THIS_SCRIPT warning: $*"
|
|
||||||
}
|
|
||||||
|
|
||||||
die () {
|
|
||||||
# syntax: die message ...
|
|
||||||
#
|
|
||||||
# exit script with error message
|
|
||||||
message "$THIS_PACKAGE $THIS_SCRIPT error: $*"
|
|
||||||
exit $SHELL_LIB_THROWN_ERROR
|
|
||||||
}
|
|
||||||
|
|
||||||
internal_error () {
|
|
||||||
# exit script with error; essentially a "THIS SHOULD NEVER HAPPEN" message
|
|
||||||
message "internal error: $*"
|
|
||||||
if [ -n "$OFFICIAL_BUILD" ]; then
|
|
||||||
message "Please report a bug in the $THIS_SCRIPT script of the" \
|
|
||||||
"$THIS_PACKAGE package, version $SOURCE_VERSION to the Debian Bug" \
|
|
||||||
"Tracking System. Include all messages above that mention the" \
|
|
||||||
"$THIS_PACKAGE package. Visit " \
|
|
||||||
"<http://www.debian.org/Bugs/Reporting> on the World Wide Web for" \
|
|
||||||
"instructions, read the file" \
|
|
||||||
"/usr/share/doc/debian/bug-reporting.txt from the doc-debian" \
|
|
||||||
"package, or install the reportbug package and use the command of" \
|
|
||||||
"the same name to file a report."
|
|
||||||
fi
|
|
||||||
exit $SHELL_LIB_INTERNAL_ERROR
|
|
||||||
}
|
|
||||||
|
|
||||||
usage_error () {
|
|
||||||
message "usage error: $*"
|
|
||||||
message "Please report a bug in the $THIS_SCRIPT script of the" \
|
|
||||||
"$THIS_PACKAGE package, version $SOURCE_VERSION to the Debian Bug" \
|
|
||||||
"Tracking System. Include all messages above that mention the" \
|
|
||||||
"$THIS_PACKAGE package. Visit " \
|
|
||||||
"<http://www.debian.org/Bugs/Reporting> on the World Wide Web for" \
|
|
||||||
"instructions, read the file" \
|
|
||||||
"/usr/share/doc/debian/bug-reporting.txt from the doc-debian" \
|
|
||||||
"package, or install the reportbug package and use the command of" \
|
|
||||||
"the same name to file a report."
|
|
||||||
exit $SHELL_LIB_USAGE_ERROR
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
maplink () {
|
|
||||||
# returns what symlink should point to; i.e., what the "sane" answer is
|
|
||||||
# Keep this in sync with the debian/*.links files.
|
|
||||||
# This is only needed for symlinks to directories.
|
|
||||||
#
|
|
||||||
# XXX: Most of these look wrong in the X11R7 world and need to be fixed.
|
|
||||||
# If we've stopped using this function, fixing it might enable us to re-enable
|
|
||||||
# it again and catch more errors.
|
|
||||||
case "$1" in
|
|
||||||
/etc/X11/xkb/compiled) echo /var/lib/xkb ;;
|
|
||||||
/etc/X11/xkb/xkbcomp) echo /usr/X11R6/bin/xkbcomp ;;
|
|
||||||
/usr/X11R6/lib/X11/app-defaults) echo /etc/X11/app-defaults ;;
|
|
||||||
/usr/X11R6/lib/X11/fs) echo /etc/X11/fs ;;
|
|
||||||
/usr/X11R6/lib/X11/lbxproxy) echo /etc/X11/lbxproxy ;;
|
|
||||||
/usr/X11R6/lib/X11/proxymngr) echo /etc/X11/proxymngr ;;
|
|
||||||
/usr/X11R6/lib/X11/rstart) echo /etc/X11/rstart ;;
|
|
||||||
/usr/X11R6/lib/X11/twm) echo /etc/X11/twm ;;
|
|
||||||
/usr/X11R6/lib/X11/xdm) echo /etc/X11/xdm ;;
|
|
||||||
/usr/X11R6/lib/X11/xinit) echo /etc/X11/xinit ;;
|
|
||||||
/usr/X11R6/lib/X11/xkb) echo /etc/X11/xkb ;;
|
|
||||||
/usr/X11R6/lib/X11/xserver) echo /etc/X11/xserver ;;
|
|
||||||
/usr/X11R6/lib/X11/xsm) echo /etc/X11/xsm ;;
|
|
||||||
/usr/bin/X11) echo ../X11R6/bin ;;
|
|
||||||
/usr/bin/rstartd) echo ../X11R6/bin/rstartd ;;
|
|
||||||
/usr/include/X11) echo ../X11R6/include/X11 ;;
|
|
||||||
/usr/lib/X11) echo ../X11R6/lib/X11 ;;
|
|
||||||
*) internal_error "maplink() called with unknown path \"$1\"" ;;
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
|
|
||||||
analyze_path () {
|
|
||||||
# given a supplied set of pathnames, break each one up by directory and do an
|
|
||||||
# ls -dl on each component, cumulatively; i.e.
|
|
||||||
# analyze_path /usr/X11R6/bin -> ls -dl /usr /usr/X11R6 /usr/X11R6/bin
|
|
||||||
# Thanks to Randolph Chung for this clever hack.
|
|
||||||
|
|
||||||
local f g
|
|
||||||
|
|
||||||
while [ -n "$1" ]; do
|
|
||||||
reject_whitespace "$1"
|
|
||||||
g=
|
|
||||||
message "Analyzing $1:"
|
|
||||||
for f in $(echo "$1" | tr / \ ); do
|
|
||||||
if [ -e /$g$f ]; then
|
|
||||||
ls -dl /$g$f /$g$f.dpkg-* 2> /dev/null || true
|
|
||||||
g=$g$f/
|
|
||||||
else
|
|
||||||
message "/$g$f: nonexistent; directory contents of /$g:"
|
|
||||||
ls -l /$g
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
shift
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
find_culprits () {
|
|
||||||
local f p dpkg_info_dir possible_culprits smoking_guns bad_packages package \
|
|
||||||
msg
|
|
||||||
|
|
||||||
reject_whitespace "$1"
|
|
||||||
message "Searching for overlapping packages..."
|
|
||||||
dpkg_info_dir=/var/lib/dpkg/info
|
|
||||||
if [ -d $dpkg_info_dir ]; then
|
|
||||||
if [ "$(echo $dpkg_info_dir/*.list)" != "$dpkg_info_dir/*.list" ]; then
|
|
||||||
possible_culprits=$(ls -1 $dpkg_info_dir/*.list | egrep -v \
|
|
||||||
"(xbase-clients|x11-common|xfs|xlibs)")
|
|
||||||
if [ -n "$possible_culprits" ]; then
|
|
||||||
smoking_guns=$(grep -l "$1" $possible_culprits || true)
|
|
||||||
if [ -n "$smoking_guns" ]; then
|
|
||||||
bad_packages=$(printf "\\n")
|
|
||||||
for f in $smoking_guns; do
|
|
||||||
# too bad you can't nest parameter expansion voodoo
|
|
||||||
p=${f%*.list} # strip off the trailing ".list"
|
|
||||||
package=${p##*/} # strip off the directories
|
|
||||||
bad_packages=$(printf "%s\n%s" "$bad_packages" "$package")
|
|
||||||
done
|
|
||||||
msg=$(cat <<EOF
|
|
||||||
The following packages appear to have file overlaps with the X.Org packages;
|
|
||||||
these packages are either very old, or in violation of Debian Policy. Try
|
|
||||||
upgrading each of these packages to the latest available version if possible:
|
|
||||||
for example, with the command "apt-get install". If no newer version of a
|
|
||||||
package is available, you will have to remove it; for example, with the command
|
|
||||||
"apt-get remove". If even the latest available version of the package has
|
|
||||||
this file overlap, please file a bug against that package with the Debian Bug
|
|
||||||
Tracking System. You may want to refer the package maintainer to section 12.8
|
|
||||||
of the Debian Policy manual.
|
|
||||||
EOF
|
|
||||||
)
|
|
||||||
message "$msg"
|
|
||||||
message "The overlapping packages are: $bad_packages"
|
|
||||||
else
|
|
||||||
message "no overlaps found."
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
message "cannot search; no matches for $dpkg_info_dir/*.list."
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
message "cannot search; $dpkg_info_dir does not exist."
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
# we require a readlink command or shell function
|
|
||||||
if ! which readlink > /dev/null 2>&1; then
|
|
||||||
message "The readlink command was not found. Please install version" \
|
|
||||||
"1.13.1 or later of the debianutils package."
|
|
||||||
readlink () {
|
|
||||||
# returns what symlink in $1 actually points to
|
|
||||||
perl -e '$l = shift; exit 1 unless -l $l; $r = readlink $l; exit 1 unless $r; print "$r\n"' "$1"
|
|
||||||
}
|
|
||||||
fi
|
|
||||||
|
|
||||||
check_symlink () {
|
|
||||||
# syntax: check_symlink symlink
|
|
||||||
#
|
|
||||||
# See if specified symlink points where it is supposed to. Return 0 if it
|
|
||||||
# does, and 1 if it does not.
|
|
||||||
#
|
|
||||||
# Primarily used by check_symlinks_and_warn() and check_symlinks_and_bomb().
|
|
||||||
|
|
||||||
local symlink
|
|
||||||
|
|
||||||
# validate arguments
|
|
||||||
if [ $# -ne 1 ]; then
|
|
||||||
usage_error "check_symlink() called with wrong number of arguments;" \
|
|
||||||
"expected 1, got $#"
|
|
||||||
exit $SHELL_LIB_USAGE_ERROR
|
|
||||||
fi
|
|
||||||
|
|
||||||
symlink="$1"
|
|
||||||
|
|
||||||
if [ "$(maplink "$symlink")" = "$(readlink "$symlink")" ]; then
|
|
||||||
return 0
|
|
||||||
else
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
check_symlinks_and_warn () {
|
|
||||||
# syntax: check_symlinks_and_warn symlink ...
|
|
||||||
#
|
|
||||||
# For each argument, check for symlink sanity, and warn if it isn't sane.
|
|
||||||
#
|
|
||||||
# Call this function from a preinst script in the event $1 is "upgrade" or
|
|
||||||
# "install".
|
|
||||||
|
|
||||||
local errmsg symlink
|
|
||||||
|
|
||||||
# validate arguments
|
|
||||||
if [ $# -lt 1 ]; then
|
|
||||||
usage_error "check_symlinks_and_warn() called with wrong number of" \
|
|
||||||
"arguments; expected at least 1, got $#"
|
|
||||||
exit $SHELL_LIB_USAGE_ERROR
|
|
||||||
fi
|
|
||||||
|
|
||||||
while [ -n "$1" ]; do
|
|
||||||
symlink="$1"
|
|
||||||
if [ -L "$symlink" ]; then
|
|
||||||
if ! check_symlink "$symlink"; then
|
|
||||||
observe "$symlink symbolic link points to wrong location" \
|
|
||||||
"$(readlink "$symlink"); removing"
|
|
||||||
rm "$symlink"
|
|
||||||
fi
|
|
||||||
elif [ -e "$symlink" ]; then
|
|
||||||
errmsg="$symlink exists and is not a symbolic link; this package cannot"
|
|
||||||
errmsg="$errmsg be installed until this"
|
|
||||||
if [ -f "$symlink" ]; then
|
|
||||||
errmsg="$errmsg file"
|
|
||||||
elif [ -d "$symlink" ]; then
|
|
||||||
errmsg="$errmsg directory"
|
|
||||||
else
|
|
||||||
errmsg="$errmsg thing"
|
|
||||||
fi
|
|
||||||
errmsg="$errmsg is removed"
|
|
||||||
die "$errmsg"
|
|
||||||
fi
|
|
||||||
shift
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
check_symlinks_and_bomb () {
|
|
||||||
# syntax: check_symlinks_and_bomb symlink ...
|
|
||||||
#
|
|
||||||
# For each argument, check for symlink sanity, and bomb if it isn't sane.
|
|
||||||
#
|
|
||||||
# Call this function from a postinst script.
|
|
||||||
|
|
||||||
local problem symlink
|
|
||||||
|
|
||||||
# validate arguments
|
|
||||||
if [ $# -lt 1 ]; then
|
|
||||||
usage_error "check_symlinks_and_bomb() called with wrong number of"
|
|
||||||
"arguments; expected at least 1, got $#"
|
|
||||||
exit $SHELL_LIB_USAGE_ERROR
|
|
||||||
fi
|
|
||||||
|
|
||||||
while [ -n "$1" ]; do
|
|
||||||
problem=
|
|
||||||
symlink="$1"
|
|
||||||
if [ -L "$symlink" ]; then
|
|
||||||
if ! check_symlink "$symlink"; then
|
|
||||||
problem=yes
|
|
||||||
warn "$symlink symbolic link points to wrong location" \
|
|
||||||
"$(readlink "$symlink")"
|
|
||||||
fi
|
|
||||||
elif [ -e "$symlink" ]; then
|
|
||||||
problem=yes
|
|
||||||
warn "$symlink is not a symbolic link"
|
|
||||||
else
|
|
||||||
problem=yes
|
|
||||||
warn "$symlink symbolic link does not exist"
|
|
||||||
fi
|
|
||||||
if [ -n "$problem" ]; then
|
|
||||||
analyze_path "$symlink" "$(readlink "$symlink")"
|
|
||||||
find_culprits "$symlink"
|
|
||||||
die "bad symbolic links on system"
|
|
||||||
fi
|
|
||||||
shift
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
font_update () {
|
|
||||||
# run $UPDATECMDS in $FONTDIRS
|
|
||||||
|
|
||||||
local dir cmd shortcmd x_font_dir_prefix
|
|
||||||
|
|
||||||
x_font_dir_prefix="/usr/share/fonts/X11"
|
|
||||||
|
|
||||||
if [ -z "$UPDATECMDS" ]; then
|
|
||||||
usage_error "font_update() called but \$UPDATECMDS not set"
|
|
||||||
fi
|
|
||||||
if [ -z "$FONTDIRS" ]; then
|
|
||||||
usage_error "font_update() called but \$FONTDIRS not set"
|
|
||||||
fi
|
|
||||||
|
|
||||||
reject_unlikely_path_chars "$UPDATECMDS"
|
|
||||||
reject_unlikely_path_chars "$FONTDIRS"
|
|
||||||
|
|
||||||
for dir in $FONTDIRS; do
|
|
||||||
if [ -d "$x_font_dir_prefix/$dir" ]; then
|
|
||||||
for cmd in $UPDATECMDS; do
|
|
||||||
if which "$cmd" > /dev/null 2>&1; then
|
|
||||||
shortcmd=${cmd##*/}
|
|
||||||
observe "running $shortcmd in $dir font directory"
|
|
||||||
cmd_opts=
|
|
||||||
if [ "$shortcmd" = "update-fonts-alias" ]; then
|
|
||||||
cmd_opts=--x11r7-layout
|
|
||||||
fi
|
|
||||||
if [ "$shortcmd" = "update-fonts-dir" ]; then
|
|
||||||
cmd_opts=--x11r7-layout
|
|
||||||
fi
|
|
||||||
if [ "$shortcmd" = "update-fonts-scale" ]; then
|
|
||||||
cmd_opts=--x11r7-layout
|
|
||||||
fi
|
|
||||||
$cmd $cmd_opts $dir || warn "$cmd $cmd_opts $dir" \
|
|
||||||
"failed; font directory data may not" \
|
|
||||||
"be up to date"
|
|
||||||
else
|
|
||||||
warn "$cmd not found; not updating corresponding $dir font" \
|
|
||||||
"directory data"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
else
|
|
||||||
warn "$dir is not a directory; not updating font directory data"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
remove_conffile_prepare () {
|
|
||||||
# syntax: remove_conffile_prepare filename official_md5sum ...
|
|
||||||
#
|
|
||||||
# Check a conffile "filename" against a list of canonical MD5 checksums.
|
|
||||||
# If the file's current MD5 checksum matches one of the "official_md5sum"
|
|
||||||
# operands provided, then prepare the conffile for removal from the system.
|
|
||||||
# We defer actual deletion until the package is configured so that we can
|
|
||||||
# roll this operation back if package installation fails.
|
|
||||||
#
|
|
||||||
# Call this function from a preinst script in the event $1 is "upgrade" or
|
|
||||||
# "install" and verify $2 to ensure the package is being upgraded from a
|
|
||||||
# version (or installed over a version removed-but-not-purged) prior to the
|
|
||||||
# one in which the conffile was obsoleted.
|
|
||||||
|
|
||||||
local conffile current_checksum
|
|
||||||
|
|
||||||
# validate arguments
|
|
||||||
if [ $# -lt 2 ]; then
|
|
||||||
usage_error "remove_conffile_prepare() called with wrong number of" \
|
|
||||||
"arguments; expected at least 2, got $#"
|
|
||||||
exit $SHELL_LIB_USAGE_ERROR
|
|
||||||
fi
|
|
||||||
|
|
||||||
conffile="$1"
|
|
||||||
shift
|
|
||||||
|
|
||||||
# does the conffile even exist?
|
|
||||||
if [ -e "$conffile" ]; then
|
|
||||||
# calculate its checksum
|
|
||||||
current_checksum=$(md5sum < "$conffile" | sed 's/[[:space:]].*//')
|
|
||||||
# compare it to each supplied checksum
|
|
||||||
while [ -n "$1" ]; do
|
|
||||||
if [ "$current_checksum" = "$1" ]; then
|
|
||||||
# we found a match; move the confffile and stop looking
|
|
||||||
observe "preparing obsolete conffile $conffile for removal"
|
|
||||||
mv "$conffile" "$conffile.$THIS_PACKAGE-tmp"
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
shift
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
remove_conffile_lookup () {
|
|
||||||
# syntax: remove_conffile_lookup package filename
|
|
||||||
#
|
|
||||||
# Lookup the md5sum of a conffile in dpkg's database, and prepare for removal
|
|
||||||
# if it matches the actual file's md5sum.
|
|
||||||
#
|
|
||||||
# Call this function when you would call remove_conffile_prepare but only
|
|
||||||
# want to check against dpkg's status database instead of known checksums.
|
|
||||||
|
|
||||||
local package conffile old_md5sum
|
|
||||||
|
|
||||||
# validate arguments
|
|
||||||
if [ $# -ne 2 ]; then
|
|
||||||
usage_error "remove_conffile_lookup() called with wrong number of" \
|
|
||||||
"arguments; expected 1, got $#"
|
|
||||||
exit $SHELL_LIB_USAGE_ERROR
|
|
||||||
fi
|
|
||||||
|
|
||||||
package="$1"
|
|
||||||
conffile="$2"
|
|
||||||
|
|
||||||
if ! [ -e "$conffile" ]; then
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
old_md5sum="$(dpkg-query -W -f='${Conffiles}' "$package" | \
|
|
||||||
awk '{ if (match($0, "^ '"$conffile"' ")) print $2}')"
|
|
||||||
if [ -n "$old_md5sum" ]; then
|
|
||||||
remove_conffile_prepare "$conffile" "$old_md5sum"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
remove_conffile_commit () {
|
|
||||||
# syntax: remove_conffile_commit filename
|
|
||||||
#
|
|
||||||
# Complete the removal of a conffile "filename" that has become obsolete.
|
|
||||||
#
|
|
||||||
# Call this function from a postinst script after having used
|
|
||||||
# remove_conffile_prepare() in the preinst.
|
|
||||||
|
|
||||||
local conffile
|
|
||||||
|
|
||||||
# validate arguments
|
|
||||||
if [ $# -ne 1 ]; then
|
|
||||||
usage_error "remove_conffile_commit() called with wrong number of" \
|
|
||||||
"arguments; expected 1, got $#"
|
|
||||||
exit $SHELL_LIB_USAGE_ERROR
|
|
||||||
fi
|
|
||||||
|
|
||||||
conffile="$1"
|
|
||||||
|
|
||||||
# if the temporary file created by remove_conffile_prepare() exists, remove it
|
|
||||||
if [ -e "$conffile.$THIS_PACKAGE-tmp" ]; then
|
|
||||||
observe "committing removal of obsolete conffile $conffile"
|
|
||||||
rm "$conffile.$THIS_PACKAGE-tmp"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
remove_conffile_rollback () {
|
|
||||||
# syntax: remove_conffile_rollback filename
|
|
||||||
#
|
|
||||||
# Roll back the removal of a conffile "filename".
|
|
||||||
#
|
|
||||||
# Call this function from a postrm script in the event $1 is "abort-upgrade"
|
|
||||||
# or "abort-install" is after having used remove_conffile_prepare() in the
|
|
||||||
# preinst.
|
|
||||||
|
|
||||||
local conffile
|
|
||||||
|
|
||||||
# validate arguments
|
|
||||||
if [ $# -ne 1 ]; then
|
|
||||||
usage_error "remove_conffile_rollback() called with wrong number of" \
|
|
||||||
"arguments; expected 1, got $#"
|
|
||||||
exit $SHELL_LIB_USAGE_ERROR
|
|
||||||
fi
|
|
||||||
|
|
||||||
conffile="$1"
|
|
||||||
|
|
||||||
# if the temporary file created by remove_conffile_prepare() exists, move it
|
|
||||||
# back
|
|
||||||
if [ -e "$conffile.$THIS_PACKAGE-tmp" ]; then
|
|
||||||
observe "rolling back removal of obsolete conffile $conffile"
|
|
||||||
mv "$conffile.$THIS_PACKAGE-tmp" "$conffile"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
replace_conffile_with_symlink_prepare () {
|
|
||||||
# syntax: replace_conffile_with_symlink_prepare oldfilename newfilename \
|
|
||||||
# official_md5sum ...
|
|
||||||
#
|
|
||||||
# Check a conffile "oldfilename" against a list of canonical MD5 checksums.
|
|
||||||
# If the file's current MD5 checksum matches one of the "official_md5sum"
|
|
||||||
# operands provided, then prepare the conffile for removal from the system.
|
|
||||||
# We defer actual deletion until the package is configured so that we can
|
|
||||||
# roll this operation back if package installation fails. Otherwise copy it
|
|
||||||
# to newfilename and let dpkg handle it through conffiles mechanism.
|
|
||||||
#
|
|
||||||
# Call this function from a preinst script in the event $1 is "upgrade" or
|
|
||||||
# "install" and verify $2 to ensure the package is being upgraded from a
|
|
||||||
# version (or installed over a version removed-but-not-purged) prior to the
|
|
||||||
# one in which the conffile was obsoleted.
|
|
||||||
|
|
||||||
local conffile current_checksum
|
|
||||||
|
|
||||||
# validate arguments
|
|
||||||
if [ $# -lt 3 ]; then
|
|
||||||
usage_error "replace_conffile_with_symlink_prepare() called with wrong" \
|
|
||||||
" number of arguments; expected at least 3, got $#"
|
|
||||||
exit $SHELL_LIB_USAGE_ERROR
|
|
||||||
fi
|
|
||||||
|
|
||||||
oldconffile="$1"
|
|
||||||
shift
|
|
||||||
newconffile="$1"
|
|
||||||
shift
|
|
||||||
|
|
||||||
remove_conffile_prepare "$_oldconffile" "$@"
|
|
||||||
# If $oldconffile still exists, then md5sums didn't match.
|
|
||||||
# Copy it to new one.
|
|
||||||
if [ -f "$oldconffile" ]; then
|
|
||||||
cp "$oldconffile" "$newconffile"
|
|
||||||
fi
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
replace_conffile_with_symlink_commit () {
|
|
||||||
# syntax: replace_conffile_with_symlink_commit oldfilename
|
|
||||||
#
|
|
||||||
# Complete the removal of a conffile "oldfilename" that has been
|
|
||||||
# replaced by a symlink.
|
|
||||||
#
|
|
||||||
# Call this function from a postinst script after having used
|
|
||||||
# replace_conffile_with_symlink_prepare() in the preinst.
|
|
||||||
|
|
||||||
local conffile
|
|
||||||
|
|
||||||
# validate arguments
|
|
||||||
if [ $# -ne 1 ]; then
|
|
||||||
usage_error "replace_conffile_with_symlink_commit() called with wrong" \
|
|
||||||
"number of arguments; expected 1, got $#"
|
|
||||||
exit $SHELL_LIB_USAGE_ERROR
|
|
||||||
fi
|
|
||||||
|
|
||||||
conffile="$1"
|
|
||||||
|
|
||||||
remove_conffile_commit "$conffile"
|
|
||||||
}
|
|
||||||
|
|
||||||
replace_conffile_with_symlink_rollback () {
|
|
||||||
# syntax: replace_conffile_with_symlink_rollback oldfilename newfilename
|
|
||||||
#
|
|
||||||
# Roll back the replacing of a conffile "oldfilename" with symlink to
|
|
||||||
# "newfilename".
|
|
||||||
#
|
|
||||||
# Call this function from a postrm script in the event $1 is "abort-upgrade"
|
|
||||||
# or "abort-install" and verify $2 to ensure the package failed to upgrade
|
|
||||||
# from a version (or install over a version removed-but-not-purged) prior
|
|
||||||
# to the one in which the conffile was obsoleted.
|
|
||||||
# You should have used replace_conffile_with_symlink_prepare() in the
|
|
||||||
# preinst.
|
|
||||||
|
|
||||||
local conffile
|
|
||||||
|
|
||||||
# validate arguments
|
|
||||||
if [ $# -ne 2 ]; then
|
|
||||||
usage_error "replace_conffile_with_symlink_rollback() called with wrong" \
|
|
||||||
"number of arguments; expected 2, got $#"
|
|
||||||
exit $SHELL_LIB_USAGE_ERROR
|
|
||||||
fi
|
|
||||||
|
|
||||||
oldconffile="$1"
|
|
||||||
newconffile="$2"
|
|
||||||
|
|
||||||
remove_conffile_rollback "$_oldconffile"
|
|
||||||
if [ -f "$newconffile" ]; then
|
|
||||||
rm "$newconffile"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
run () {
|
|
||||||
# syntax: run command [ argument ... ]
|
|
||||||
#
|
|
||||||
# Run specified command with optional arguments and report its exit status.
|
|
||||||
# Useful for commands whose exit status may be nonzero, but still acceptable,
|
|
||||||
# or commands whose failure is not fatal to us.
|
|
||||||
#
|
|
||||||
# NOTE: Do *not* use this function with db_get or db_metaget commands; in
|
|
||||||
# those cases the return value of the debconf command *must* be checked
|
|
||||||
# before the string returned by debconf is used for anything.
|
|
||||||
|
|
||||||
local retval
|
|
||||||
|
|
||||||
# validate arguments
|
|
||||||
if [ $# -lt 1 ]; then
|
|
||||||
usage_error "run() called with wrong number of arguments; expected at" \
|
|
||||||
"least 1, got $#"
|
|
||||||
exit $SHELL_LIB_USAGE_ERROR
|
|
||||||
fi
|
|
||||||
|
|
||||||
"$@" || retval=$?
|
|
||||||
|
|
||||||
if [ ${retval:-0} -ne 0 ]; then
|
|
||||||
observe "command \"$*\" exited with status $retval"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
register_x_lib_dir_with_ld_so () {
|
|
||||||
# syntax: register_x_lib_dir_with_ld_so
|
|
||||||
#
|
|
||||||
# Configure the dynamic loader ld.so to search /usr/X11R6/lib for shared
|
|
||||||
# libraries.
|
|
||||||
#
|
|
||||||
# Call this function from the postinst script of a package that places a
|
|
||||||
# shared library in /usr/X11R6/lib, before invoking ldconfig.
|
|
||||||
|
|
||||||
local dir ldsoconf
|
|
||||||
|
|
||||||
dir="/usr/X11R6/lib"
|
|
||||||
ldsoconf="/etc/ld.so.conf"
|
|
||||||
|
|
||||||
# is the line not already present?
|
|
||||||
if ! fgrep -qsx "$dir" "$ldsoconf"; then
|
|
||||||
observe "adding $dir directory to $ldsoconf"
|
|
||||||
echo "$dir" >> "$ldsoconf"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
deregister_x_lib_dir_with_ld_so () {
|
|
||||||
# syntax: deregister_x_lib_dir_with_ld_so
|
|
||||||
#
|
|
||||||
# Configure dynamic loader ld.so to not search /usr/X11R6/lib for shared
|
|
||||||
# libraries, if and only if no shared libaries remain there.
|
|
||||||
#
|
|
||||||
# Call this function from the postrm script of a package that places a shared
|
|
||||||
# library in /usr/X11R6/lib, in the event "$1" is "remove", and before
|
|
||||||
# invoking ldconfig.
|
|
||||||
|
|
||||||
local dir ldsoconf fgrep_status cmp_status
|
|
||||||
|
|
||||||
dir="/usr/X11R6/lib"
|
|
||||||
ldsoconf="/etc/ld.so.conf"
|
|
||||||
|
|
||||||
# is the line present?
|
|
||||||
if fgrep -qsx "$dir" "$ldsoconf"; then
|
|
||||||
# are there any shared objects in the directory?
|
|
||||||
if [ "$(echo "$dir"/lib*.so.*.*)" = "$dir/lib*.so.*.*" ]; then
|
|
||||||
# glob expansion produced nothing, so no shared libraries are present
|
|
||||||
observe "removing $dir directory from $ldsoconf"
|
|
||||||
# rewrite the file (very carefully)
|
|
||||||
set +e
|
|
||||||
fgrep -svx "$dir" "$ldsoconf" > "$ldsoconf.dpkg-tmp"
|
|
||||||
fgrep_status=$?
|
|
||||||
set -e
|
|
||||||
case $fgrep_status in
|
|
||||||
0|1) ;; # we don't actually care if any lines matched or not
|
|
||||||
*) die "error reading \"$ldsoconf\"; fgrep exited with status" \
|
|
||||||
"$fgrep_status" ;;
|
|
||||||
esac
|
|
||||||
set +e
|
|
||||||
cmp -s "$ldsoconf.dpkg-tmp" "$ldsoconf"
|
|
||||||
cmp_status=$?
|
|
||||||
set -e
|
|
||||||
case $cmp_status in
|
|
||||||
0) rm "$ldsoconf.dpkg-tmp" ;; # files are identical
|
|
||||||
1) mv "$ldsoconf.dpkg-tmp" "$ldsoconf" ;; # files differ
|
|
||||||
*) die "error comparing \"$ldsoconf.dpkg-tmp\" to \"$ldsoconf\";" \
|
|
||||||
"cmp exited with status $cmp_status" ;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
make_symlink_sane () {
|
|
||||||
# syntax: make_symlink_sane symlink target
|
|
||||||
#
|
|
||||||
# Ensure that the symbolic link symlink exists, and points to target.
|
|
||||||
#
|
|
||||||
# If symlink does not exist, create it and point it at target.
|
|
||||||
#
|
|
||||||
# If symlink exists but is not a symbolic link, back it up.
|
|
||||||
#
|
|
||||||
# If symlink exists, is a symbolic link, but points to the wrong location, fix
|
|
||||||
# it.
|
|
||||||
#
|
|
||||||
# If symlink exists, is a symbolic link, and already points to target, do
|
|
||||||
# nothing.
|
|
||||||
#
|
|
||||||
# This function wouldn't be needed if ln had an -I, --idempotent option.
|
|
||||||
|
|
||||||
# Validate arguments.
|
|
||||||
if [ $# -ne 2 ]; then
|
|
||||||
usage_error "make_symlink_sane() called with wrong number of arguments;" \
|
|
||||||
"expected 2, got $#"
|
|
||||||
exit $SHELL_LIB_USAGE_ERROR
|
|
||||||
fi
|
|
||||||
|
|
||||||
# We could just use the positional parameters as-is, but that makes things
|
|
||||||
# harder to follow.
|
|
||||||
local symlink target
|
|
||||||
|
|
||||||
symlink="$1"
|
|
||||||
target="$2"
|
|
||||||
|
|
||||||
if [ -L "$symlink" ] && [ "$(readlink "$symlink")" = "$target" ]; then
|
|
||||||
observe "link from $symlink to $target already exists"
|
|
||||||
else
|
|
||||||
observe "creating symbolic link from $symlink to $target"
|
|
||||||
mkdir -p "${target%/*}" "${symlink%/*}"
|
|
||||||
ln -s -b -S ".dpkg-old" "$target" "$symlink"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
migrate_dir_to_symlink () {
|
|
||||||
# syntax: migrate_dir_to_symlink old_location new_location
|
|
||||||
#
|
|
||||||
# Per Debian Policy section 6.5.4, "A directory will never be replaced by a
|
|
||||||
# symbolic link to a directory or vice versa; instead, the existing state
|
|
||||||
# (symlink or not) will be left alone and dpkg will follow the symlink if
|
|
||||||
# there is one."
|
|
||||||
#
|
|
||||||
# We have to do it ourselves.
|
|
||||||
#
|
|
||||||
# This function moves the contents of old_location, a directory, into
|
|
||||||
# new_location, a directory, then makes old_location a symbolic link to
|
|
||||||
# new_location.
|
|
||||||
#
|
|
||||||
# old_location need not exist, but if it does, it must be a directory (or a
|
|
||||||
# symlink to a directory). If it is not, it is backed up. If new_location
|
|
||||||
# exists already and is not a directory, it is backed up.
|
|
||||||
#
|
|
||||||
# This function should be called from a package's preinst so that other
|
|
||||||
# packages unpacked after this one --- but before this package's postinst runs
|
|
||||||
# --- are unpacked into new_location even if their payloads contain
|
|
||||||
# old_location filespecs.
|
|
||||||
|
|
||||||
# Validate arguments.
|
|
||||||
if [ $# -ne 2 ]; then
|
|
||||||
usage_error "migrate_dir_to_symlink() called with wrong number of"
|
|
||||||
"arguments; expected 2, got $#"
|
|
||||||
exit $SHELL_LIB_USAGE_ERROR
|
|
||||||
fi
|
|
||||||
|
|
||||||
# We could just use the positional parameters as-is, but that makes things
|
|
||||||
# harder to follow.
|
|
||||||
local new old
|
|
||||||
|
|
||||||
old="$1"
|
|
||||||
new="$2"
|
|
||||||
|
|
||||||
# Is old location a symlink?
|
|
||||||
if [ -L "$old" ]; then
|
|
||||||
# Does it already point to new location?
|
|
||||||
if [ "$(readlink "$old")" = "$new" ]; then
|
|
||||||
# Nothing to do; migration has already been done.
|
|
||||||
observe "migration of $old to $new already done"
|
|
||||||
return 0
|
|
||||||
else
|
|
||||||
# Back it up.
|
|
||||||
warn "backing up symbolic link $old as $old.dpkg-old"
|
|
||||||
mv -b "$old" "$old.dpkg-old"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Does old location exist, but is not a directory?
|
|
||||||
if [ -e "$old" ] && ! [ -d "$old" ]; then
|
|
||||||
# Back it up.
|
|
||||||
warn "backing up non-directory $old as $old.dpkg-old"
|
|
||||||
mv -b "$old" "$old.dpkg-old"
|
|
||||||
fi
|
|
||||||
|
|
||||||
observe "migrating $old to $new"
|
|
||||||
|
|
||||||
# Is new location a symlink?
|
|
||||||
if [ -L "$new" ]; then
|
|
||||||
# Does it point the wrong way, i.e., back to where we're migrating from?
|
|
||||||
if [ "$(readlink "$new")" = "$old" ]; then
|
|
||||||
# Get rid of it.
|
|
||||||
observe "removing symbolic link $new which points to $old"
|
|
||||||
rm "$new"
|
|
||||||
else
|
|
||||||
# Back it up.
|
|
||||||
warn "backing up symbolic link $new as $new.dpkg-old"
|
|
||||||
mv -b "$new" "$new.dpkg-old"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Does new location exist, but is not a directory?
|
|
||||||
if [ -e "$new" ] && ! [ -d "$new" ]; then
|
|
||||||
warn "backing up non-directory $new as $new.dpkg-old"
|
|
||||||
mv -b "$new" "$new.dpkg-old"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Create new directory if it does not yet exist.
|
|
||||||
if ! [ -e "$new" ]; then
|
|
||||||
observe "creating $new"
|
|
||||||
mkdir -p "$new"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Copy files in old location to new location. Back up any filenames that
|
|
||||||
# already exist in the new location with the extension ".dpkg-old".
|
|
||||||
observe "copying files from $old to $new"
|
|
||||||
if ! (cd "$old" && cp -a -b -S ".dpkg-old" . "$new"); then
|
|
||||||
die "error(s) encountered while copying files from $old to $new"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Remove files at old location.
|
|
||||||
observe "removing $old"
|
|
||||||
rm -r "$old"
|
|
||||||
|
|
||||||
# Create symlink from old location to new location.
|
|
||||||
make_symlink_sane "$old" "$new"
|
|
||||||
}
|
|
||||||
|
|
||||||
# vim:set ai et sw=2 ts=2 tw=80:
|
|
||||||
|
|
||||||
# GOBSTOPPER: The X Strike Force shell library ends here.
|
|
|
@ -1,12 +1,22 @@
|
||||||
This is a stub file. This package has not yet had its complete licensing
|
Copyright 1989, 1998 The Open Group
|
||||||
information compiled. Please see the individual source files for details on
|
|
||||||
your rights to use and modify this software.
|
|
||||||
|
|
||||||
Please submit updated COPYING files to the Xorg bugzilla:
|
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.
|
||||||
|
|
||||||
https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
All licensing questions regarding this software should be directed at the
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
Xorg mailing list:
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
||||||
|
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||||
|
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
Except as contained in this notice, the name of The Open Group shall not be
|
||||||
|
used in advertising or otherwise to promote the sale, use or other dealings
|
||||||
|
in this Software without prior written authorization from The Open Group.
|
||||||
|
|
||||||
http://lists.freedesktop.org/mailman/listinfo/xorg
|
|
||||||
|
|
|
@ -1,3 +1,529 @@
|
||||||
|
commit e994aca370f6148f692a4ab9794daa8a522e37db
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Sun Mar 4 19:42:54 2018 -0800
|
||||||
|
|
||||||
|
iceauth 1.0.8
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit bfaf0fb4cc18adf377753eb9c47953b0ca30b3b7
|
||||||
|
Author: Mihail Konev <k.mvc@ya.ru>
|
||||||
|
Date: Thu Jan 26 14:00:20 2017 +1000
|
||||||
|
|
||||||
|
autogen: add default patch prefix
|
||||||
|
|
||||||
|
Signed-off-by: Mihail Konev <k.mvc@ya.ru>
|
||||||
|
|
||||||
|
commit 20a14cffe1d64a61ab0208fc3e94232d2f1361ac
|
||||||
|
Author: Emil Velikov <emil.l.velikov@gmail.com>
|
||||||
|
Date: Mon Mar 9 12:00:52 2015 +0000
|
||||||
|
|
||||||
|
autogen.sh: use quoted string variables
|
||||||
|
|
||||||
|
Place quotes around the $srcdir, $ORIGDIR and $0 variables to prevent
|
||||||
|
fall-outs, when they contain space.
|
||||||
|
|
||||||
|
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
|
||||||
|
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
|
||||||
|
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
||||||
|
|
||||||
|
commit f9d9da776b7a5ca4510c2865adcefd39430ae2ea
|
||||||
|
Author: Peter Hutterer <peter.hutterer@who-t.net>
|
||||||
|
Date: Tue Jan 24 10:32:07 2017 +1000
|
||||||
|
|
||||||
|
autogen.sh: use exec instead of waiting for configure to finish
|
||||||
|
|
||||||
|
Syncs the invocation of configure with the one from the server.
|
||||||
|
|
||||||
|
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
||||||
|
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
|
||||||
|
|
||||||
|
commit 60749d4162ae4c3cafe0ae6bc4ed24631f457e65
|
||||||
|
Author: Niveditha Rau <niveditha.rau@oracle.com>
|
||||||
|
Date: Fri Apr 24 11:13:14 2015 -0700
|
||||||
|
|
||||||
|
Add -u & -V options to synopsis in man page
|
||||||
|
|
||||||
|
Signed-off-by: Niveditha Rau <niveditha.rau@oracle.com>
|
||||||
|
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit fba114e03845a4cfab966f0545e809fdba9e9365
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Fri Jan 16 22:12:11 2015 -0800
|
||||||
|
|
||||||
|
iceauth 1.0.7
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit 04c0fe624bf0140e0f938942e48a01ce5c01b7be
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Sun Jun 1 23:38:45 2014 -0700
|
||||||
|
|
||||||
|
autogen.sh: Honor NOCONFIGURE=1
|
||||||
|
|
||||||
|
See http://people.gnome.org/~walters/docs/build-api.txt
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit 6e38d6b6598f3beb36a5526f482a6356e85c4fd5
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Sun Jun 1 23:38:45 2014 -0700
|
||||||
|
|
||||||
|
configure: Drop AM_MAINTAINER_MODE
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit b0c12dd905053b38d81d44c222dbef999e992193
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Sun Jun 1 23:38:40 2014 -0700
|
||||||
|
|
||||||
|
config: Add missing AC_CONFIG_SRCDIR
|
||||||
|
|
||||||
|
Regroup AC statements under the Autoconf initialization section.
|
||||||
|
Regroup AM statements under the Automake initialization section.
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit 2222cab2a3cc2615e7a3f2ec8665fdfcabc0436c
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Sat May 31 16:15:19 2014 -0700
|
||||||
|
|
||||||
|
More constification cleanup
|
||||||
|
|
||||||
|
Started by fixing gcc warning:
|
||||||
|
iceauth.c:47:1: warning: initialization discards ‘const’ qualifier from
|
||||||
|
pointer target type [enabled by default]
|
||||||
|
static char *defcmds[] = { "source", "-", NULL }; /* default command */
|
||||||
|
^
|
||||||
|
|
||||||
|
and chasing down the rabbit hole of the functions the command line
|
||||||
|
arguments can be passed through, until we came out the other side
|
||||||
|
const clean.
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit 2e692217544b8712d7bb41776cfd7f1bcca1070b
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Sun Dec 8 12:54:10 2013 -0800
|
||||||
|
|
||||||
|
Free old argv array if realloc fails to enlarge it
|
||||||
|
|
||||||
|
Found by cppcheck:
|
||||||
|
[app/iceauth/process.c:302]: (error) Common realloc mistake:
|
||||||
|
'argv' nulled but not freed upon failure
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
|
||||||
|
|
||||||
|
commit f6316d16b2239220dd9f043bcc628a503f89ab5c
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Tue Nov 5 23:48:50 2013 -0800
|
||||||
|
|
||||||
|
Print which option was in error along with usage message
|
||||||
|
|
||||||
|
Special case -u, since it's documented as printing the usage message
|
||||||
|
(sort of like an ancient --help), so shouldn't be called unrecognized.
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
|
||||||
|
commit acee3b71b38ba4bcdd0b46557546e22dcdc320cb
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Tue Nov 5 23:34:20 2013 -0800
|
||||||
|
|
||||||
|
Add -V flag to print version
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
|
||||||
|
commit ad85d2eb4e44f21e8e38aa3bdec4acb139989218
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Tue Nov 5 23:26:24 2013 -0800
|
||||||
|
|
||||||
|
Fix "noexistent" typo in error message
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
|
||||||
|
commit e371fa337f256306fb93eaca7fbbe8ee5283dcfa
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Tue Nov 5 23:20:34 2013 -0800
|
||||||
|
|
||||||
|
Actually print command list in usage message
|
||||||
|
|
||||||
|
The xauth routine this was based on took three arguments:
|
||||||
|
a file pointer, a command name, and a prefix.
|
||||||
|
|
||||||
|
If a command name is given, prints help on that command,
|
||||||
|
else if it's null, prints help on all commands.
|
||||||
|
|
||||||
|
The iceauth version has only two arguments: file pointer & command name.
|
||||||
|
It was being called with file pointer & prefix, and since the prefix
|
||||||
|
matched no command names, no help was printed.
|
||||||
|
|
||||||
|
Since the way iceauth's help list is structured doesn't make it easy
|
||||||
|
to add a prefix to every line, skip indentation for now and just pass
|
||||||
|
NULL for the command argument.
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
|
||||||
|
commit c07d443d43e53cfe21b53a9a0eafcd6189432867
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Tue Jul 23 23:15:01 2013 -0700
|
||||||
|
|
||||||
|
iceauth 1.0.6
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit 3e9250a5bc0c5e525c231eca1f241c545ac412ac
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Wed Jul 17 22:34:37 2013 -0700
|
||||||
|
|
||||||
|
Constify some more string pointers to fix gcc warnings
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit aa38bef15c15c90e6ec831a202e6e147b889b6a6
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Wed Jul 17 22:27:28 2013 -0700
|
||||||
|
|
||||||
|
Use void * instead of char * for generic pointer arg to DoFunc functions
|
||||||
|
|
||||||
|
Quiets clang warnings of:
|
||||||
|
process.c:754:29: warning: cast from 'char *' to 'struct _list_data *'
|
||||||
|
increases required alignment from 1 to 8 [-Wcast-align]
|
||||||
|
struct _list_data *ld = (struct _list_data *) data;
|
||||||
|
^~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
process.c:787:32: warning: cast from 'char *' to 'struct _extract_data *'
|
||||||
|
increases required alignment from 1 to 8 [-Wcast-align]
|
||||||
|
struct _extract_data *ed = (struct _extract_data *) data;
|
||||||
|
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
process.c:988:22: warning: cast from 'char *' to 'int *'
|
||||||
|
increases required alignment from 1 to 4 [-Wcast-align]
|
||||||
|
int *nremovedp = (int *) data;
|
||||||
|
^~~~~~~~~~~~
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit a79de96226321f79f471574830d64080559a1557
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Wed Jul 17 22:22:15 2013 -0700
|
||||||
|
|
||||||
|
Mark unused arguments in callback functions to quiet clang warnings
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit 9c2e2d401d32ed3f6a4e4e775581321eada9c734
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Wed Jul 17 22:17:11 2013 -0700
|
||||||
|
|
||||||
|
Fix some sign/size conversion warnings from clang
|
||||||
|
|
||||||
|
process.c:410:22: warning: implicit conversion changes signedness:
|
||||||
|
'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion]
|
||||||
|
retval = malloc (len);
|
||||||
|
~~~~~~ ^~~
|
||||||
|
process.c:454:30: warning: implicit conversion changes signedness:
|
||||||
|
'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion]
|
||||||
|
strncmp (cmd, ct->name, n) == 0) {
|
||||||
|
~~~~~~~ ^
|
||||||
|
process.c:450:9: warning: implicit conversion loses integer precision:
|
||||||
|
'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
|
||||||
|
n = strlen (cmd);
|
||||||
|
~ ^~~~~~~~~~~~
|
||||||
|
process.c:1028:34: warning: implicit conversion changes signedness:
|
||||||
|
'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion]
|
||||||
|
if (strncmp (cmd, ct->name, len) == 0) {
|
||||||
|
~~~~~~~ ^~~
|
||||||
|
process.c:1026:12: warning: implicit conversion loses integer precision:
|
||||||
|
'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
|
||||||
|
int len = strlen (cmd);
|
||||||
|
~~~ ^~~~~~~~~~~~
|
||||||
|
process.c:1560:8: warning: implicit conversion loses integer precision:
|
||||||
|
'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
|
||||||
|
len = strlen (buf);
|
||||||
|
~ ^~~~~~~~~~~~
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit 21e6ddc42acc7864fb260c101060dee5cebf07c1
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Sat Feb 23 10:07:03 2013 -0800
|
||||||
|
|
||||||
|
Add _X_NORETURN attributes suggested by gcc
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit ef04ccaac0e501612367c098410129f89e1d109a
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Sat Feb 23 10:02:50 2013 -0800
|
||||||
|
|
||||||
|
Assume signal handlers return void, as C89 requires
|
||||||
|
|
||||||
|
Drops use of autoconf's obsolete AC_TYPE_SIGNAL and Imake's even more
|
||||||
|
obsolete SIGNALRETURNSINT.
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit 27846ea3e133dbb45a4e67500eba15bf5d6c796c
|
||||||
|
Author: Jeremy Huddleston <jeremyhu@apple.com>
|
||||||
|
Date: Mon May 23 19:39:04 2011 -0700
|
||||||
|
|
||||||
|
configure.ac: Bump to 1.0.5
|
||||||
|
|
||||||
|
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
|
||||||
|
|
||||||
|
commit c791ec2ba9614e661e978436f56ed21f918750f8
|
||||||
|
Author: Jeremy Huddleston <jeremyhu@apple.com>
|
||||||
|
Date: Mon May 23 19:37:50 2011 -0700
|
||||||
|
|
||||||
|
auth_finalize: Attempt to rename() if link() fails
|
||||||
|
|
||||||
|
On some file systems (like AFP), hard links are not supported. If
|
||||||
|
link fails, try rename() before giving up.
|
||||||
|
|
||||||
|
Reported-by: Jamie Kennea <jamie@pompey.org>
|
||||||
|
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
|
||||||
|
|
||||||
|
commit 90640776b88b32cea2316670a3b29f7785aadc7a
|
||||||
|
Author: Jeremy Huddleston <jeremyhu@apple.com>
|
||||||
|
Date: Thu Apr 28 00:51:30 2011 -0700
|
||||||
|
|
||||||
|
Error out and avoid a call to malloc(0) if given a bad hex string
|
||||||
|
|
||||||
|
Found-by: clang static analyzer
|
||||||
|
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
|
||||||
|
|
||||||
|
commit ada8df395e72f84127394dadd15a180afa8ec0ec
|
||||||
|
Author: David Nusinow <dnusinow@debian.org>
|
||||||
|
Date: Fri Dec 3 16:29:51 2010 -0500
|
||||||
|
|
||||||
|
Make iceauth manpage describe commands. (fd.o bug#2354)
|
||||||
|
|
||||||
|
Reviewed-by: Jesse Adkins <jesserayadkins@gmail.com>
|
||||||
|
Signed-off-by: Matt Turner <mattst88@gmail.com>
|
||||||
|
|
||||||
|
commit ed7ce17bb0169b3bbf2cf035bc2b221fd0c9beb2
|
||||||
|
Author: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
Date: Wed Jan 19 10:06:55 2011 -0500
|
||||||
|
|
||||||
|
config: move man pages into their own directory
|
||||||
|
|
||||||
|
Use services provided by XORG_MANPAGE_SECTIONS.
|
||||||
|
Use standard Makefile for man pages.
|
||||||
|
|
||||||
|
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
|
||||||
|
commit 3b57666a804ce53eed82f1a80c34ef479ca1e36a
|
||||||
|
Author: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
Date: Thu Jan 13 11:15:00 2011 -0500
|
||||||
|
|
||||||
|
man: remove trailing spaces and tabs
|
||||||
|
|
||||||
|
Using s/[ \t]*$//
|
||||||
|
|
||||||
|
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
|
||||||
|
commit e67acbba6ac2a92a8de5b2d014b5d3a8609eb36a
|
||||||
|
Author: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
Date: Wed Jan 12 16:28:02 2011 -0500
|
||||||
|
|
||||||
|
config: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERS
|
||||||
|
|
||||||
|
This silences an Autoconf warning
|
||||||
|
|
||||||
|
commit e170e5dbea7e785797cbd0d919d5f5d3d77b7006
|
||||||
|
Author: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
Date: Wed Jan 12 13:10:21 2011 -0500
|
||||||
|
|
||||||
|
config: remove AC_PROG_CC as it overrides AC_PROG_C_C99
|
||||||
|
|
||||||
|
XORG_STRICT_OPTION from XORG_DEFAULT_OPTIONS calls
|
||||||
|
AC_PROG_C_C99. This sets gcc with -std=gnu99.
|
||||||
|
If AC_PROG_CC macro is called afterwards, it resets CC to gcc.
|
||||||
|
|
||||||
|
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
|
||||||
|
commit 08f5377a4a853d06ec1a0396a2f1622eb6ee93ba
|
||||||
|
Author: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
Date: Wed Jan 12 11:54:40 2011 -0500
|
||||||
|
|
||||||
|
config: use AC_PROG_INSTALL now supplied by XORG_DEFAULT_OPTIONS
|
||||||
|
|
||||||
|
It depends on util-macros 1.8 or later
|
||||||
|
The existing statement can now be removed from the configuration file.
|
||||||
|
|
||||||
|
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
|
||||||
|
commit b39fab5b9af70282ab640a8a9d6b56671aeda78b
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Fri Oct 29 21:46:07 2010 -0700
|
||||||
|
|
||||||
|
iceauth 1.0.4
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit 3c1b044f63d4865378a2307dd0024afca7196b42
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Thu Oct 21 15:01:29 2010 -0700
|
||||||
|
|
||||||
|
Remove unnecessary AC_SUBST of ICEAUTH_LIBS & ICEAUTH_CFLAGS
|
||||||
|
|
||||||
|
PKG_CHECK_MODULES automatically handles those for us
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit a33fa043dfd5e84b9afd39842d848265b16ac5d7
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Thu Oct 21 14:59:42 2010 -0700
|
||||||
|
|
||||||
|
config: upgrade to util-macros 1.8 for additional man page support
|
||||||
|
|
||||||
|
Use MAN_SUBST now supplied in XORG_MANPAGE_SECTIONS
|
||||||
|
The value of MAN_SUBST is the same for all X.Org packages.
|
||||||
|
|
||||||
|
Use AC_PROG_SED now supplied by XORG_DEFAULT_OPTIONS
|
||||||
|
Enables use of platform appropriate version of sed.
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit 5f79bb90cd0e3c18c184f7beb75c83e31aae6951
|
||||||
|
Author: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
Date: Tue Jul 20 18:45:18 2010 -0400
|
||||||
|
|
||||||
|
config: update AC_PREREQ statement to 2.60
|
||||||
|
|
||||||
|
Unrelated to the previous patches, the new value simply reflects
|
||||||
|
the reality that the minimum level for autoconf to configure
|
||||||
|
all x.org modules is 2.60 dated June 2006.
|
||||||
|
|
||||||
|
ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.60.tar.gz
|
||||||
|
|
||||||
|
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
|
||||||
|
commit f2b54a282333be841099773ee8788a2a7e2fea3b
|
||||||
|
Author: Jesse Adkins <jesserayadkins@gmail.com>
|
||||||
|
Date: Tue Sep 28 13:29:49 2010 -0700
|
||||||
|
|
||||||
|
Purge cvs tags.
|
||||||
|
|
||||||
|
Signed-off-by: Jesse Adkins <jesserayadkins@gmail.com>
|
||||||
|
|
||||||
|
commit 1944291c5f541796b1ac9f036a51cb1dae0cdd81
|
||||||
|
Author: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
Date: Thu Jan 7 17:46:31 2010 -0500
|
||||||
|
|
||||||
|
COPYING: replace stub with actual Copyright notice
|
||||||
|
|
||||||
|
Refer to iceauth.c
|
||||||
|
Copyright 1989, 1998 The Open Group
|
||||||
|
|
||||||
|
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
|
||||||
|
commit 5f29af7ab19398501f2f2b6729a806b814534801
|
||||||
|
Author: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
Date: Thu Nov 26 09:19:52 2009 -0500
|
||||||
|
|
||||||
|
Makefile.am: add ChangeLog and INSTALL on MAINTAINERCLEANFILES
|
||||||
|
|
||||||
|
Now that the INSTALL file is generated.
|
||||||
|
Allows running make maintainer-clean.
|
||||||
|
|
||||||
|
commit 8c19177d9937196f19975f4145e6377b1b4b17e8
|
||||||
|
Author: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
Date: Wed Oct 28 14:09:07 2009 -0400
|
||||||
|
|
||||||
|
INSTALL, NEWS, README or AUTHORS files are missing/incorrect #24206
|
||||||
|
|
||||||
|
Add missing INSTALL file. Use standard GNU file on building tarball
|
||||||
|
README may have been updated
|
||||||
|
Remove AUTHORS file as it is empty and no content available yet.
|
||||||
|
Remove NEWS file as it is empty and no content available yet.
|
||||||
|
|
||||||
|
commit 3277a2349dcf9400f67dc3f91d4b6097a56d7faa
|
||||||
|
Author: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
Date: Mon Oct 26 22:08:38 2009 -0400
|
||||||
|
|
||||||
|
Makefile.am: ChangeLog not required: EXTRA_DIST or *CLEANFILES #24432
|
||||||
|
|
||||||
|
ChangeLog filename is known to Automake and requires no further
|
||||||
|
coding in the makefile.
|
||||||
|
|
||||||
|
commit 9eaace4030847a25af7759c6f052e01250febdd6
|
||||||
|
Author: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
Date: Thu Oct 22 12:34:14 2009 -0400
|
||||||
|
|
||||||
|
.gitignore: use common defaults with custom section # 24239
|
||||||
|
|
||||||
|
Using common defaults will reduce errors and maintenance.
|
||||||
|
Only the very small or inexistent custom section need periodic maintenance
|
||||||
|
when the structure of the component changes. Do not edit defaults.
|
||||||
|
|
||||||
|
commit 2ae7affc9be66652240219e42abdc63c693369e0
|
||||||
|
Author: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
Date: Sun Sep 27 15:55:52 2009 -0400
|
||||||
|
|
||||||
|
Makefile.am: do not include autogen.sh in distribution #24183
|
||||||
|
|
||||||
|
This is a private build script that should not be distributed
|
||||||
|
|
||||||
|
commit eff30656f880bb3c362d7db4b82345b70b7282ee
|
||||||
|
Author: Jeremy Huddleston <jeremyhu@freedesktop.org>
|
||||||
|
Date: Wed Oct 21 12:47:19 2009 -0700
|
||||||
|
|
||||||
|
This is not a GNU project, so declare it foreign.
|
||||||
|
|
||||||
|
On Wed, 2009-10-21 at 13:36 +1000, Peter Hutterer wrote:
|
||||||
|
> On Tue, Oct 20, 2009 at 08:23:55PM -0700, Jeremy Huddleston wrote:
|
||||||
|
> > I noticed an INSTALL file in xlsclients and libXvMC today, and it
|
||||||
|
> > was quite annoying to work around since 'autoreconf -fvi' replaces
|
||||||
|
> > it and git wants to commit it. Should these files even be in git?
|
||||||
|
> > Can I nuke them for the betterment of humanity and since they get
|
||||||
|
> > created by autoreconf anyways?
|
||||||
|
>
|
||||||
|
> See https://bugs.freedesktop.org/show_bug.cgi?id=24206
|
||||||
|
|
||||||
|
As an interim measure, replace AM_INIT_AUTOMAKE([dist-bzip2]) with
|
||||||
|
AM_INIT_AUTOMAKE([foreign dist-bzip2]). This will prevent the generation
|
||||||
|
of the INSTALL file. It is also part of the 24206 solution.
|
||||||
|
|
||||||
|
Signed-off-by: Jeremy Huddleston <jeremyhu@freedesktop.org>
|
||||||
|
|
||||||
|
commit 42a269e9d35234306d3208eef9c8bdb2c04caf08
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@sun.com>
|
||||||
|
Date: Sat Oct 10 19:58:20 2009 -0700
|
||||||
|
|
||||||
|
iceauth 1.0.3
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
||||||
|
|
||||||
|
commit e772cc19bf632b3f94c5a6e841f4eef4f7b89e72
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@sun.com>
|
||||||
|
Date: Sat Oct 10 19:57:34 2009 -0700
|
||||||
|
|
||||||
|
Migrate to xorg macros 1.3 & XORG_DEFAULT_OPTIONS
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
||||||
|
|
||||||
|
commit 42a6f0bc10530c31643b2fd768c48750ec451391
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@sun.com>
|
||||||
|
Date: Thu Oct 1 14:54:17 2009 -0700
|
||||||
|
|
||||||
|
Add README with pointers to mailing lists, bugzilla, & git
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
||||||
|
|
||||||
|
commit 04f61947ea6c3638001057934588938473b454b3
|
||||||
|
Author: Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>
|
||||||
|
Date: Thu Jan 15 18:38:12 2009 -0200
|
||||||
|
|
||||||
|
Ansification and compile warning fixes.
|
||||||
|
|
||||||
|
This also uses XORG_CHANGELOG and XORG_CWARNFLAGS, corrects
|
||||||
|
make distcheck. There weren't any gcc 4.3 and sparse warnings.
|
||||||
|
|
||||||
commit 5e52eb5d27986490dfad02781a452b8d0650f4b9
|
commit 5e52eb5d27986490dfad02781a452b8d0650f4b9
|
||||||
Author: Alan Coopersmith <alan.coopersmith@sun.com>
|
Author: Alan Coopersmith <alan.coopersmith@sun.com>
|
||||||
Date: Mon Jul 23 18:23:56 2007 -0700
|
Date: Mon Jul 23 18:23:56 2007 -0700
|
||||||
|
|
370
iceauth/INSTALL
370
iceauth/INSTALL
|
@ -0,0 +1,370 @@
|
||||||
|
Installation Instructions
|
||||||
|
*************************
|
||||||
|
|
||||||
|
Copyright (C) 1994-1996, 1999-2002, 2004-2011 Free Software Foundation,
|
||||||
|
Inc.
|
||||||
|
|
||||||
|
Copying and distribution of this file, with or without modification,
|
||||||
|
are permitted in any medium without royalty provided the copyright
|
||||||
|
notice and this notice are preserved. This file is offered as-is,
|
||||||
|
without warranty of any kind.
|
||||||
|
|
||||||
|
Basic Installation
|
||||||
|
==================
|
||||||
|
|
||||||
|
Briefly, the shell commands `./configure; make; make install' should
|
||||||
|
configure, build, and install this package. The following
|
||||||
|
more-detailed instructions are generic; see the `README' file for
|
||||||
|
instructions specific to this package. Some packages provide this
|
||||||
|
`INSTALL' file but do not implement all of the features documented
|
||||||
|
below. The lack of an optional feature in a given package is not
|
||||||
|
necessarily a bug. More recommendations for GNU packages can be found
|
||||||
|
in *note Makefile Conventions: (standards)Makefile Conventions.
|
||||||
|
|
||||||
|
The `configure' shell script attempts to guess correct values for
|
||||||
|
various system-dependent variables used during compilation. It uses
|
||||||
|
those values to create a `Makefile' in each directory of the package.
|
||||||
|
It may also create one or more `.h' files containing system-dependent
|
||||||
|
definitions. Finally, it creates a shell script `config.status' that
|
||||||
|
you can run in the future to recreate the current configuration, and a
|
||||||
|
file `config.log' containing compiler output (useful mainly for
|
||||||
|
debugging `configure').
|
||||||
|
|
||||||
|
It can also use an optional file (typically called `config.cache'
|
||||||
|
and enabled with `--cache-file=config.cache' or simply `-C') that saves
|
||||||
|
the results of its tests to speed up reconfiguring. Caching is
|
||||||
|
disabled by default to prevent problems with accidental use of stale
|
||||||
|
cache files.
|
||||||
|
|
||||||
|
If you need to do unusual things to compile the package, please try
|
||||||
|
to figure out how `configure' could check whether to do them, and mail
|
||||||
|
diffs or instructions to the address given in the `README' so they can
|
||||||
|
be considered for the next release. If you are using the cache, and at
|
||||||
|
some point `config.cache' contains results you don't want to keep, you
|
||||||
|
may remove or edit it.
|
||||||
|
|
||||||
|
The file `configure.ac' (or `configure.in') is used to create
|
||||||
|
`configure' by a program called `autoconf'. You need `configure.ac' if
|
||||||
|
you want to change it or regenerate `configure' using a newer version
|
||||||
|
of `autoconf'.
|
||||||
|
|
||||||
|
The simplest way to compile this package is:
|
||||||
|
|
||||||
|
1. `cd' to the directory containing the package's source code and type
|
||||||
|
`./configure' to configure the package for your system.
|
||||||
|
|
||||||
|
Running `configure' might take a while. While running, it prints
|
||||||
|
some messages telling which features it is checking for.
|
||||||
|
|
||||||
|
2. Type `make' to compile the package.
|
||||||
|
|
||||||
|
3. Optionally, type `make check' to run any self-tests that come with
|
||||||
|
the package, generally using the just-built uninstalled binaries.
|
||||||
|
|
||||||
|
4. Type `make install' to install the programs and any data files and
|
||||||
|
documentation. When installing into a prefix owned by root, it is
|
||||||
|
recommended that the package be configured and built as a regular
|
||||||
|
user, and only the `make install' phase executed with root
|
||||||
|
privileges.
|
||||||
|
|
||||||
|
5. Optionally, type `make installcheck' to repeat any self-tests, but
|
||||||
|
this time using the binaries in their final installed location.
|
||||||
|
This target does not install anything. Running this target as a
|
||||||
|
regular user, particularly if the prior `make install' required
|
||||||
|
root privileges, verifies that the installation completed
|
||||||
|
correctly.
|
||||||
|
|
||||||
|
6. You can remove the program binaries and object files from the
|
||||||
|
source code directory by typing `make clean'. To also remove the
|
||||||
|
files that `configure' created (so you can compile the package for
|
||||||
|
a different kind of computer), type `make distclean'. There is
|
||||||
|
also a `make maintainer-clean' target, but that is intended mainly
|
||||||
|
for the package's developers. If you use it, you may have to get
|
||||||
|
all sorts of other programs in order to regenerate files that came
|
||||||
|
with the distribution.
|
||||||
|
|
||||||
|
7. Often, you can also type `make uninstall' to remove the installed
|
||||||
|
files again. In practice, not all packages have tested that
|
||||||
|
uninstallation works correctly, even though it is required by the
|
||||||
|
GNU Coding Standards.
|
||||||
|
|
||||||
|
8. Some packages, particularly those that use Automake, provide `make
|
||||||
|
distcheck', which can by used by developers to test that all other
|
||||||
|
targets like `make install' and `make uninstall' work correctly.
|
||||||
|
This target is generally not run by end users.
|
||||||
|
|
||||||
|
Compilers and Options
|
||||||
|
=====================
|
||||||
|
|
||||||
|
Some systems require unusual options for compilation or linking that
|
||||||
|
the `configure' script does not know about. Run `./configure --help'
|
||||||
|
for details on some of the pertinent environment variables.
|
||||||
|
|
||||||
|
You can give `configure' initial values for configuration parameters
|
||||||
|
by setting variables in the command line or in the environment. Here
|
||||||
|
is an example:
|
||||||
|
|
||||||
|
./configure CC=c99 CFLAGS=-g LIBS=-lposix
|
||||||
|
|
||||||
|
*Note Defining Variables::, for more details.
|
||||||
|
|
||||||
|
Compiling For Multiple Architectures
|
||||||
|
====================================
|
||||||
|
|
||||||
|
You can compile the package for more than one kind of computer at the
|
||||||
|
same time, by placing the object files for each architecture in their
|
||||||
|
own directory. To do this, you can use GNU `make'. `cd' to the
|
||||||
|
directory where you want the object files and executables to go and run
|
||||||
|
the `configure' script. `configure' automatically checks for the
|
||||||
|
source code in the directory that `configure' is in and in `..'. This
|
||||||
|
is known as a "VPATH" build.
|
||||||
|
|
||||||
|
With a non-GNU `make', it is safer to compile the package for one
|
||||||
|
architecture at a time in the source code directory. After you have
|
||||||
|
installed the package for one architecture, use `make distclean' before
|
||||||
|
reconfiguring for another architecture.
|
||||||
|
|
||||||
|
On MacOS X 10.5 and later systems, you can create libraries and
|
||||||
|
executables that work on multiple system types--known as "fat" or
|
||||||
|
"universal" binaries--by specifying multiple `-arch' options to the
|
||||||
|
compiler but only a single `-arch' option to the preprocessor. Like
|
||||||
|
this:
|
||||||
|
|
||||||
|
./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
|
||||||
|
CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
|
||||||
|
CPP="gcc -E" CXXCPP="g++ -E"
|
||||||
|
|
||||||
|
This is not guaranteed to produce working output in all cases, you
|
||||||
|
may have to build one architecture at a time and combine the results
|
||||||
|
using the `lipo' tool if you have problems.
|
||||||
|
|
||||||
|
Installation Names
|
||||||
|
==================
|
||||||
|
|
||||||
|
By default, `make install' installs the package's commands under
|
||||||
|
`/usr/local/bin', include files under `/usr/local/include', etc. You
|
||||||
|
can specify an installation prefix other than `/usr/local' by giving
|
||||||
|
`configure' the option `--prefix=PREFIX', where PREFIX must be an
|
||||||
|
absolute file name.
|
||||||
|
|
||||||
|
You can specify separate installation prefixes for
|
||||||
|
architecture-specific files and architecture-independent files. If you
|
||||||
|
pass the option `--exec-prefix=PREFIX' to `configure', the package uses
|
||||||
|
PREFIX as the prefix for installing programs and libraries.
|
||||||
|
Documentation and other data files still use the regular prefix.
|
||||||
|
|
||||||
|
In addition, if you use an unusual directory layout you can give
|
||||||
|
options like `--bindir=DIR' to specify different values for particular
|
||||||
|
kinds of files. Run `configure --help' for a list of the directories
|
||||||
|
you can set and what kinds of files go in them. In general, the
|
||||||
|
default for these options is expressed in terms of `${prefix}', so that
|
||||||
|
specifying just `--prefix' will affect all of the other directory
|
||||||
|
specifications that were not explicitly provided.
|
||||||
|
|
||||||
|
The most portable way to affect installation locations is to pass the
|
||||||
|
correct locations to `configure'; however, many packages provide one or
|
||||||
|
both of the following shortcuts of passing variable assignments to the
|
||||||
|
`make install' command line to change installation locations without
|
||||||
|
having to reconfigure or recompile.
|
||||||
|
|
||||||
|
The first method involves providing an override variable for each
|
||||||
|
affected directory. For example, `make install
|
||||||
|
prefix=/alternate/directory' will choose an alternate location for all
|
||||||
|
directory configuration variables that were expressed in terms of
|
||||||
|
`${prefix}'. Any directories that were specified during `configure',
|
||||||
|
but not in terms of `${prefix}', must each be overridden at install
|
||||||
|
time for the entire installation to be relocated. The approach of
|
||||||
|
makefile variable overrides for each directory variable is required by
|
||||||
|
the GNU Coding Standards, and ideally causes no recompilation.
|
||||||
|
However, some platforms have known limitations with the semantics of
|
||||||
|
shared libraries that end up requiring recompilation when using this
|
||||||
|
method, particularly noticeable in packages that use GNU Libtool.
|
||||||
|
|
||||||
|
The second method involves providing the `DESTDIR' variable. For
|
||||||
|
example, `make install DESTDIR=/alternate/directory' will prepend
|
||||||
|
`/alternate/directory' before all installation names. The approach of
|
||||||
|
`DESTDIR' overrides is not required by the GNU Coding Standards, and
|
||||||
|
does not work on platforms that have drive letters. On the other hand,
|
||||||
|
it does better at avoiding recompilation issues, and works well even
|
||||||
|
when some directory options were not specified in terms of `${prefix}'
|
||||||
|
at `configure' time.
|
||||||
|
|
||||||
|
Optional Features
|
||||||
|
=================
|
||||||
|
|
||||||
|
If the package supports it, you can cause programs to be installed
|
||||||
|
with an extra prefix or suffix on their names by giving `configure' the
|
||||||
|
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
|
||||||
|
|
||||||
|
Some packages pay attention to `--enable-FEATURE' options to
|
||||||
|
`configure', where FEATURE indicates an optional part of the package.
|
||||||
|
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
|
||||||
|
is something like `gnu-as' or `x' (for the X Window System). The
|
||||||
|
`README' should mention any `--enable-' and `--with-' options that the
|
||||||
|
package recognizes.
|
||||||
|
|
||||||
|
For packages that use the X Window System, `configure' can usually
|
||||||
|
find the X include and library files automatically, but if it doesn't,
|
||||||
|
you can use the `configure' options `--x-includes=DIR' and
|
||||||
|
`--x-libraries=DIR' to specify their locations.
|
||||||
|
|
||||||
|
Some packages offer the ability to configure how verbose the
|
||||||
|
execution of `make' will be. For these packages, running `./configure
|
||||||
|
--enable-silent-rules' sets the default to minimal output, which can be
|
||||||
|
overridden with `make V=1'; while running `./configure
|
||||||
|
--disable-silent-rules' sets the default to verbose, which can be
|
||||||
|
overridden with `make V=0'.
|
||||||
|
|
||||||
|
Particular systems
|
||||||
|
==================
|
||||||
|
|
||||||
|
On HP-UX, the default C compiler is not ANSI C compatible. If GNU
|
||||||
|
CC is not installed, it is recommended to use the following options in
|
||||||
|
order to use an ANSI C compiler:
|
||||||
|
|
||||||
|
./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
|
||||||
|
|
||||||
|
and if that doesn't work, install pre-built binaries of GCC for HP-UX.
|
||||||
|
|
||||||
|
HP-UX `make' updates targets which have the same time stamps as
|
||||||
|
their prerequisites, which makes it generally unusable when shipped
|
||||||
|
generated files such as `configure' are involved. Use GNU `make'
|
||||||
|
instead.
|
||||||
|
|
||||||
|
On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
|
||||||
|
parse its `<wchar.h>' header file. The option `-nodtk' can be used as
|
||||||
|
a workaround. If GNU CC is not installed, it is therefore recommended
|
||||||
|
to try
|
||||||
|
|
||||||
|
./configure CC="cc"
|
||||||
|
|
||||||
|
and if that doesn't work, try
|
||||||
|
|
||||||
|
./configure CC="cc -nodtk"
|
||||||
|
|
||||||
|
On Solaris, don't put `/usr/ucb' early in your `PATH'. This
|
||||||
|
directory contains several dysfunctional programs; working variants of
|
||||||
|
these programs are available in `/usr/bin'. So, if you need `/usr/ucb'
|
||||||
|
in your `PATH', put it _after_ `/usr/bin'.
|
||||||
|
|
||||||
|
On Haiku, software installed for all users goes in `/boot/common',
|
||||||
|
not `/usr/local'. It is recommended to use the following options:
|
||||||
|
|
||||||
|
./configure --prefix=/boot/common
|
||||||
|
|
||||||
|
Specifying the System Type
|
||||||
|
==========================
|
||||||
|
|
||||||
|
There may be some features `configure' cannot figure out
|
||||||
|
automatically, but needs to determine by the type of machine the package
|
||||||
|
will run on. Usually, assuming the package is built to be run on the
|
||||||
|
_same_ architectures, `configure' can figure that out, but if it prints
|
||||||
|
a message saying it cannot guess the machine type, give it the
|
||||||
|
`--build=TYPE' option. TYPE can either be a short name for the system
|
||||||
|
type, such as `sun4', or a canonical name which has the form:
|
||||||
|
|
||||||
|
CPU-COMPANY-SYSTEM
|
||||||
|
|
||||||
|
where SYSTEM can have one of these forms:
|
||||||
|
|
||||||
|
OS
|
||||||
|
KERNEL-OS
|
||||||
|
|
||||||
|
See the file `config.sub' for the possible values of each field. If
|
||||||
|
`config.sub' isn't included in this package, then this package doesn't
|
||||||
|
need to know the machine type.
|
||||||
|
|
||||||
|
If you are _building_ compiler tools for cross-compiling, you should
|
||||||
|
use the option `--target=TYPE' to select the type of system they will
|
||||||
|
produce code for.
|
||||||
|
|
||||||
|
If you want to _use_ a cross compiler, that generates code for a
|
||||||
|
platform different from the build platform, you should specify the
|
||||||
|
"host" platform (i.e., that on which the generated programs will
|
||||||
|
eventually be run) with `--host=TYPE'.
|
||||||
|
|
||||||
|
Sharing Defaults
|
||||||
|
================
|
||||||
|
|
||||||
|
If you want to set default values for `configure' scripts to share,
|
||||||
|
you can create a site shell script called `config.site' that gives
|
||||||
|
default values for variables like `CC', `cache_file', and `prefix'.
|
||||||
|
`configure' looks for `PREFIX/share/config.site' if it exists, then
|
||||||
|
`PREFIX/etc/config.site' if it exists. Or, you can set the
|
||||||
|
`CONFIG_SITE' environment variable to the location of the site script.
|
||||||
|
A warning: not all `configure' scripts look for a site script.
|
||||||
|
|
||||||
|
Defining Variables
|
||||||
|
==================
|
||||||
|
|
||||||
|
Variables not defined in a site shell script can be set in the
|
||||||
|
environment passed to `configure'. However, some packages may run
|
||||||
|
configure again during the build, and the customized values of these
|
||||||
|
variables may be lost. In order to avoid this problem, you should set
|
||||||
|
them in the `configure' command line, using `VAR=value'. For example:
|
||||||
|
|
||||||
|
./configure CC=/usr/local2/bin/gcc
|
||||||
|
|
||||||
|
causes the specified `gcc' to be used as the C compiler (unless it is
|
||||||
|
overridden in the site shell script).
|
||||||
|
|
||||||
|
Unfortunately, this technique does not work for `CONFIG_SHELL' due to
|
||||||
|
an Autoconf bug. Until the bug is fixed you can use this workaround:
|
||||||
|
|
||||||
|
CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
|
||||||
|
|
||||||
|
`configure' Invocation
|
||||||
|
======================
|
||||||
|
|
||||||
|
`configure' recognizes the following options to control how it
|
||||||
|
operates.
|
||||||
|
|
||||||
|
`--help'
|
||||||
|
`-h'
|
||||||
|
Print a summary of all of the options to `configure', and exit.
|
||||||
|
|
||||||
|
`--help=short'
|
||||||
|
`--help=recursive'
|
||||||
|
Print a summary of the options unique to this package's
|
||||||
|
`configure', and exit. The `short' variant lists options used
|
||||||
|
only in the top level, while the `recursive' variant lists options
|
||||||
|
also present in any nested packages.
|
||||||
|
|
||||||
|
`--version'
|
||||||
|
`-V'
|
||||||
|
Print the version of Autoconf used to generate the `configure'
|
||||||
|
script, and exit.
|
||||||
|
|
||||||
|
`--cache-file=FILE'
|
||||||
|
Enable the cache: use and save the results of the tests in FILE,
|
||||||
|
traditionally `config.cache'. FILE defaults to `/dev/null' to
|
||||||
|
disable caching.
|
||||||
|
|
||||||
|
`--config-cache'
|
||||||
|
`-C'
|
||||||
|
Alias for `--cache-file=config.cache'.
|
||||||
|
|
||||||
|
`--quiet'
|
||||||
|
`--silent'
|
||||||
|
`-q'
|
||||||
|
Do not print messages saying which checks are being made. To
|
||||||
|
suppress all normal output, redirect it to `/dev/null' (any error
|
||||||
|
messages will still be shown).
|
||||||
|
|
||||||
|
`--srcdir=DIR'
|
||||||
|
Look for the package's source code in directory DIR. Usually
|
||||||
|
`configure' can determine that directory automatically.
|
||||||
|
|
||||||
|
`--prefix=DIR'
|
||||||
|
Use DIR as the installation prefix. *note Installation Names::
|
||||||
|
for more details, including other options available for fine-tuning
|
||||||
|
the installation locations.
|
||||||
|
|
||||||
|
`--no-create'
|
||||||
|
`-n'
|
||||||
|
Run the configure checks, but stop before creating any output
|
||||||
|
files.
|
||||||
|
|
||||||
|
`configure' also accepts some other, not widely useful, options. Run
|
||||||
|
`configure --help' for more details.
|
||||||
|
|
|
@ -19,9 +19,10 @@
|
||||||
# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||||
# PERFORMANCE OF THIS SOFTWARE.
|
# PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
|
SUBDIRS = man
|
||||||
bin_PROGRAMS = iceauth
|
bin_PROGRAMS = iceauth
|
||||||
|
|
||||||
AM_CFLAGS = $(ICEAUTH_CFLAGS)
|
AM_CFLAGS = $(CWARNFLAGS) $(ICEAUTH_CFLAGS)
|
||||||
iceauth_LDADD = $(ICEAUTH_LIBS)
|
iceauth_LDADD = $(ICEAUTH_LIBS)
|
||||||
|
|
||||||
iceauth_SOURCES = \
|
iceauth_SOURCES = \
|
||||||
|
@ -29,49 +30,17 @@ iceauth_SOURCES = \
|
||||||
iceauth.h \
|
iceauth.h \
|
||||||
process.c
|
process.c
|
||||||
|
|
||||||
appman_PRE = \
|
MAINTAINERCLEANFILES = ChangeLog INSTALL
|
||||||
iceauth.man
|
|
||||||
|
|
||||||
|
.PHONY: ChangeLog INSTALL
|
||||||
|
|
||||||
appmandir = $(APP_MAN_DIR)
|
INSTALL:
|
||||||
|
$(INSTALL_CMD)
|
||||||
appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@)
|
|
||||||
|
|
||||||
EXTRA_DIST = $(appman_PRE) ChangeLog autogen.sh
|
|
||||||
CLEANFILES = $(appman_DATA)
|
|
||||||
|
|
||||||
MAINTAINERCLEANFILES=ChangeLog
|
|
||||||
|
|
||||||
.PHONY: ChangeLog
|
|
||||||
|
|
||||||
ChangeLog:
|
ChangeLog:
|
||||||
(GIT_DIR=$(top_srcdir)/.git git-log > .changelog.tmp && mv .changelog.tmp ChangeLog; rm -f .changelog.tmp) || (touch ChangeLog; echo 'git directory not found: installing possibly empty changelog.' >&2)
|
$(CHANGELOG_CMD)
|
||||||
|
|
||||||
dist-hook: ChangeLog
|
dist-hook: ChangeLog INSTALL
|
||||||
|
|
||||||
SED = sed
|
|
||||||
|
|
||||||
# Strings to replace in man pages
|
|
||||||
XORGRELSTRING = @PACKAGE_STRING@
|
|
||||||
XORGMANNAME = X Version 11
|
|
||||||
|
|
||||||
MAN_SUBSTS = \
|
|
||||||
-e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
|
|
||||||
-e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
|
|
||||||
-e 's|__xservername__|Xorg|g' \
|
|
||||||
-e 's|__xconfigfile__|xorg.conf|g' \
|
|
||||||
-e 's|__projectroot__|$(prefix)|g' \
|
|
||||||
-e 's|__apploaddir__|$(appdefaultdir)|' \
|
|
||||||
-e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \
|
|
||||||
-e 's|__libmansuffix__|$(LIB_MAN_SUFFIX)|g' \
|
|
||||||
-e 's|__adminmansuffix__|$(ADMIN_MAN_SUFFIX)|g' \
|
|
||||||
-e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \
|
|
||||||
-e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g'
|
|
||||||
|
|
||||||
SUFFIXES = .$(APP_MAN_SUFFIX) .man
|
|
||||||
|
|
||||||
.man.$(APP_MAN_SUFFIX):
|
|
||||||
sed $(MAN_SUBSTS) < $< > $@
|
|
||||||
|
|
||||||
if LINT
|
if LINT
|
||||||
ALL_LINT_FLAGS=$(LINT_FLAGS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
|
ALL_LINT_FLAGS=$(LINT_FLAGS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,27 @@
|
||||||
|
The iceauth program is used to edit and display the authorization
|
||||||
|
information used in connecting with ICE. It operates very much
|
||||||
|
like the xauth program for X11 connection authentication records.
|
||||||
|
|
||||||
|
All questions regarding this software should be directed at the
|
||||||
|
Xorg mailing list:
|
||||||
|
|
||||||
|
http://lists.freedesktop.org/mailman/listinfo/xorg
|
||||||
|
|
||||||
|
Please submit bug reports to the Xorg bugzilla:
|
||||||
|
|
||||||
|
https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
|
||||||
|
|
||||||
|
The master development code repository can be found at:
|
||||||
|
|
||||||
|
git://anongit.freedesktop.org/git/xorg/app/iceauth
|
||||||
|
|
||||||
|
http://cgit.freedesktop.org/xorg/app/iceauth
|
||||||
|
|
||||||
|
For patch submission instructions, see:
|
||||||
|
|
||||||
|
http://www.x.org/wiki/Development/Documentation/SubmittingPatches
|
||||||
|
|
||||||
|
For more information on the git code manager, see:
|
||||||
|
|
||||||
|
http://wiki.x.org/wiki/GitPage
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,13 +0,0 @@
|
||||||
#! /bin/sh
|
|
||||||
|
|
||||||
srcdir=`dirname $0`
|
|
||||||
test -z "$srcdir" && srcdir=.
|
|
||||||
|
|
||||||
ORIGDIR=`pwd`
|
|
||||||
cd $srcdir
|
|
||||||
|
|
||||||
autoreconf -v --install || exit 1
|
|
||||||
cd $ORIGDIR || exit $?
|
|
||||||
|
|
||||||
$srcdir/configure --enable-maintainer-mode "$@"
|
|
||||||
|
|
|
@ -0,0 +1,347 @@
|
||||||
|
#! /bin/sh
|
||||||
|
# Wrapper for compilers which do not understand '-c -o'.
|
||||||
|
|
||||||
|
scriptversion=2012-10-14.11; # UTC
|
||||||
|
|
||||||
|
# Copyright (C) 1999-2014 Free Software Foundation, Inc.
|
||||||
|
# Written by Tom Tromey <tromey@cygnus.com>.
|
||||||
|
#
|
||||||
|
# This program is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
# any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
# As a special exception to the GNU General Public License, if you
|
||||||
|
# distribute this file as part of a program that contains a
|
||||||
|
# configuration script generated by Autoconf, you may include it under
|
||||||
|
# the same distribution terms that you use for the rest of that program.
|
||||||
|
|
||||||
|
# This file is maintained in Automake, please report
|
||||||
|
# bugs to <bug-automake@gnu.org> or send patches to
|
||||||
|
# <automake-patches@gnu.org>.
|
||||||
|
|
||||||
|
nl='
|
||||||
|
'
|
||||||
|
|
||||||
|
# We need space, tab and new line, in precisely that order. Quoting is
|
||||||
|
# there to prevent tools from complaining about whitespace usage.
|
||||||
|
IFS=" "" $nl"
|
||||||
|
|
||||||
|
file_conv=
|
||||||
|
|
||||||
|
# func_file_conv build_file lazy
|
||||||
|
# Convert a $build file to $host form and store it in $file
|
||||||
|
# Currently only supports Windows hosts. If the determined conversion
|
||||||
|
# type is listed in (the comma separated) LAZY, no conversion will
|
||||||
|
# take place.
|
||||||
|
func_file_conv ()
|
||||||
|
{
|
||||||
|
file=$1
|
||||||
|
case $file in
|
||||||
|
/ | /[!/]*) # absolute file, and not a UNC file
|
||||||
|
if test -z "$file_conv"; then
|
||||||
|
# lazily determine how to convert abs files
|
||||||
|
case `uname -s` in
|
||||||
|
MINGW*)
|
||||||
|
file_conv=mingw
|
||||||
|
;;
|
||||||
|
CYGWIN*)
|
||||||
|
file_conv=cygwin
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
file_conv=wine
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
case $file_conv/,$2, in
|
||||||
|
*,$file_conv,*)
|
||||||
|
;;
|
||||||
|
mingw/*)
|
||||||
|
file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
|
||||||
|
;;
|
||||||
|
cygwin/*)
|
||||||
|
file=`cygpath -m "$file" || echo "$file"`
|
||||||
|
;;
|
||||||
|
wine/*)
|
||||||
|
file=`winepath -w "$file" || echo "$file"`
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
# func_cl_dashL linkdir
|
||||||
|
# Make cl look for libraries in LINKDIR
|
||||||
|
func_cl_dashL ()
|
||||||
|
{
|
||||||
|
func_file_conv "$1"
|
||||||
|
if test -z "$lib_path"; then
|
||||||
|
lib_path=$file
|
||||||
|
else
|
||||||
|
lib_path="$lib_path;$file"
|
||||||
|
fi
|
||||||
|
linker_opts="$linker_opts -LIBPATH:$file"
|
||||||
|
}
|
||||||
|
|
||||||
|
# func_cl_dashl library
|
||||||
|
# Do a library search-path lookup for cl
|
||||||
|
func_cl_dashl ()
|
||||||
|
{
|
||||||
|
lib=$1
|
||||||
|
found=no
|
||||||
|
save_IFS=$IFS
|
||||||
|
IFS=';'
|
||||||
|
for dir in $lib_path $LIB
|
||||||
|
do
|
||||||
|
IFS=$save_IFS
|
||||||
|
if $shared && test -f "$dir/$lib.dll.lib"; then
|
||||||
|
found=yes
|
||||||
|
lib=$dir/$lib.dll.lib
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
if test -f "$dir/$lib.lib"; then
|
||||||
|
found=yes
|
||||||
|
lib=$dir/$lib.lib
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
if test -f "$dir/lib$lib.a"; then
|
||||||
|
found=yes
|
||||||
|
lib=$dir/lib$lib.a
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
IFS=$save_IFS
|
||||||
|
|
||||||
|
if test "$found" != yes; then
|
||||||
|
lib=$lib.lib
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# func_cl_wrapper cl arg...
|
||||||
|
# Adjust compile command to suit cl
|
||||||
|
func_cl_wrapper ()
|
||||||
|
{
|
||||||
|
# Assume a capable shell
|
||||||
|
lib_path=
|
||||||
|
shared=:
|
||||||
|
linker_opts=
|
||||||
|
for arg
|
||||||
|
do
|
||||||
|
if test -n "$eat"; then
|
||||||
|
eat=
|
||||||
|
else
|
||||||
|
case $1 in
|
||||||
|
-o)
|
||||||
|
# configure might choose to run compile as 'compile cc -o foo foo.c'.
|
||||||
|
eat=1
|
||||||
|
case $2 in
|
||||||
|
*.o | *.[oO][bB][jJ])
|
||||||
|
func_file_conv "$2"
|
||||||
|
set x "$@" -Fo"$file"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
func_file_conv "$2"
|
||||||
|
set x "$@" -Fe"$file"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
-I)
|
||||||
|
eat=1
|
||||||
|
func_file_conv "$2" mingw
|
||||||
|
set x "$@" -I"$file"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
-I*)
|
||||||
|
func_file_conv "${1#-I}" mingw
|
||||||
|
set x "$@" -I"$file"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
-l)
|
||||||
|
eat=1
|
||||||
|
func_cl_dashl "$2"
|
||||||
|
set x "$@" "$lib"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
-l*)
|
||||||
|
func_cl_dashl "${1#-l}"
|
||||||
|
set x "$@" "$lib"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
-L)
|
||||||
|
eat=1
|
||||||
|
func_cl_dashL "$2"
|
||||||
|
;;
|
||||||
|
-L*)
|
||||||
|
func_cl_dashL "${1#-L}"
|
||||||
|
;;
|
||||||
|
-static)
|
||||||
|
shared=false
|
||||||
|
;;
|
||||||
|
-Wl,*)
|
||||||
|
arg=${1#-Wl,}
|
||||||
|
save_ifs="$IFS"; IFS=','
|
||||||
|
for flag in $arg; do
|
||||||
|
IFS="$save_ifs"
|
||||||
|
linker_opts="$linker_opts $flag"
|
||||||
|
done
|
||||||
|
IFS="$save_ifs"
|
||||||
|
;;
|
||||||
|
-Xlinker)
|
||||||
|
eat=1
|
||||||
|
linker_opts="$linker_opts $2"
|
||||||
|
;;
|
||||||
|
-*)
|
||||||
|
set x "$@" "$1"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
*.cc | *.CC | *.cxx | *.CXX | *.[cC]++)
|
||||||
|
func_file_conv "$1"
|
||||||
|
set x "$@" -Tp"$file"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
*.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO])
|
||||||
|
func_file_conv "$1" mingw
|
||||||
|
set x "$@" "$file"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
set x "$@" "$1"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
if test -n "$linker_opts"; then
|
||||||
|
linker_opts="-link$linker_opts"
|
||||||
|
fi
|
||||||
|
exec "$@" $linker_opts
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
eat=
|
||||||
|
|
||||||
|
case $1 in
|
||||||
|
'')
|
||||||
|
echo "$0: No command. Try '$0 --help' for more information." 1>&2
|
||||||
|
exit 1;
|
||||||
|
;;
|
||||||
|
-h | --h*)
|
||||||
|
cat <<\EOF
|
||||||
|
Usage: compile [--help] [--version] PROGRAM [ARGS]
|
||||||
|
|
||||||
|
Wrapper for compilers which do not understand '-c -o'.
|
||||||
|
Remove '-o dest.o' from ARGS, run PROGRAM with the remaining
|
||||||
|
arguments, and rename the output as expected.
|
||||||
|
|
||||||
|
If you are trying to build a whole package this is not the
|
||||||
|
right script to run: please start by reading the file 'INSTALL'.
|
||||||
|
|
||||||
|
Report bugs to <bug-automake@gnu.org>.
|
||||||
|
EOF
|
||||||
|
exit $?
|
||||||
|
;;
|
||||||
|
-v | --v*)
|
||||||
|
echo "compile $scriptversion"
|
||||||
|
exit $?
|
||||||
|
;;
|
||||||
|
cl | *[/\\]cl | cl.exe | *[/\\]cl.exe )
|
||||||
|
func_cl_wrapper "$@" # Doesn't return...
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
ofile=
|
||||||
|
cfile=
|
||||||
|
|
||||||
|
for arg
|
||||||
|
do
|
||||||
|
if test -n "$eat"; then
|
||||||
|
eat=
|
||||||
|
else
|
||||||
|
case $1 in
|
||||||
|
-o)
|
||||||
|
# configure might choose to run compile as 'compile cc -o foo foo.c'.
|
||||||
|
# So we strip '-o arg' only if arg is an object.
|
||||||
|
eat=1
|
||||||
|
case $2 in
|
||||||
|
*.o | *.obj)
|
||||||
|
ofile=$2
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
set x "$@" -o "$2"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
*.c)
|
||||||
|
cfile=$1
|
||||||
|
set x "$@" "$1"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
set x "$@" "$1"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
|
||||||
|
if test -z "$ofile" || test -z "$cfile"; then
|
||||||
|
# If no '-o' option was seen then we might have been invoked from a
|
||||||
|
# pattern rule where we don't need one. That is ok -- this is a
|
||||||
|
# normal compilation that the losing compiler can handle. If no
|
||||||
|
# '.c' file was seen then we are probably linking. That is also
|
||||||
|
# ok.
|
||||||
|
exec "$@"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Name of file we expect compiler to create.
|
||||||
|
cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
|
||||||
|
|
||||||
|
# Create the lock directory.
|
||||||
|
# Note: use '[/\\:.-]' here to ensure that we don't use the same name
|
||||||
|
# that we are using for the .o file. Also, base the name on the expected
|
||||||
|
# object file name, since that is what matters with a parallel build.
|
||||||
|
lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d
|
||||||
|
while true; do
|
||||||
|
if mkdir "$lockdir" >/dev/null 2>&1; then
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
# FIXME: race condition here if user kills between mkdir and trap.
|
||||||
|
trap "rmdir '$lockdir'; exit 1" 1 2 15
|
||||||
|
|
||||||
|
# Run the compile.
|
||||||
|
"$@"
|
||||||
|
ret=$?
|
||||||
|
|
||||||
|
if test -f "$cofile"; then
|
||||||
|
test "$cofile" = "$ofile" || mv "$cofile" "$ofile"
|
||||||
|
elif test -f "${cofile}bj"; then
|
||||||
|
test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile"
|
||||||
|
fi
|
||||||
|
|
||||||
|
rmdir "$lockdir"
|
||||||
|
exit $ret
|
||||||
|
|
||||||
|
# Local Variables:
|
||||||
|
# mode: shell-script
|
||||||
|
# sh-indentation: 2
|
||||||
|
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||||
|
# time-stamp-start: "scriptversion="
|
||||||
|
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||||
|
# time-stamp-time-zone: "UTC"
|
||||||
|
# time-stamp-end: "; # UTC"
|
||||||
|
# End:
|
File diff suppressed because it is too large
Load Diff
|
@ -1,5 +1,32 @@
|
||||||
/* config.h.in. Generated from configure.ac by autoheader. */
|
/* config.h.in. Generated from configure.ac by autoheader. */
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||||
|
#undef HAVE_INTTYPES_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <memory.h> header file. */
|
||||||
|
#undef HAVE_MEMORY_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <stdint.h> header file. */
|
||||||
|
#undef HAVE_STDINT_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <stdlib.h> header file. */
|
||||||
|
#undef HAVE_STDLIB_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <strings.h> header file. */
|
||||||
|
#undef HAVE_STRINGS_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <string.h> header file. */
|
||||||
|
#undef HAVE_STRING_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <sys/stat.h> header file. */
|
||||||
|
#undef HAVE_SYS_STAT_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <sys/types.h> header file. */
|
||||||
|
#undef HAVE_SYS_TYPES_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <unistd.h> header file. */
|
||||||
|
#undef HAVE_UNISTD_H
|
||||||
|
|
||||||
/* Name of package */
|
/* Name of package */
|
||||||
#undef PACKAGE
|
#undef PACKAGE
|
||||||
|
|
||||||
|
@ -15,6 +42,9 @@
|
||||||
/* Define to the one symbol short name of this package. */
|
/* Define to the one symbol short name of this package. */
|
||||||
#undef PACKAGE_TARNAME
|
#undef PACKAGE_TARNAME
|
||||||
|
|
||||||
|
/* Define to the home page for this package. */
|
||||||
|
#undef PACKAGE_URL
|
||||||
|
|
||||||
/* Define to the version of this package. */
|
/* Define to the version of this package. */
|
||||||
#undef PACKAGE_VERSION
|
#undef PACKAGE_VERSION
|
||||||
|
|
||||||
|
@ -27,8 +57,8 @@
|
||||||
/* Patch version of this package */
|
/* Patch version of this package */
|
||||||
#undef PACKAGE_VERSION_PATCHLEVEL
|
#undef PACKAGE_VERSION_PATCHLEVEL
|
||||||
|
|
||||||
/* Define as the return type of signal handlers (`int' or `void'). */
|
/* Define to 1 if you have the ANSI C header files. */
|
||||||
#undef RETSIGTYPE
|
#undef STDC_HEADERS
|
||||||
|
|
||||||
/* Version number of package */
|
/* Version number of package */
|
||||||
#undef VERSION
|
#undef VERSION
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -21,29 +21,28 @@ dnl PERFORMANCE OF THIS SOFTWARE.
|
||||||
dnl
|
dnl
|
||||||
dnl Process this file with autoconf to create configure.
|
dnl Process this file with autoconf to create configure.
|
||||||
|
|
||||||
AC_PREREQ([2.57])
|
# Initialize Autoconf
|
||||||
AC_INIT(iceauth,[1.0.2], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],iceauth)
|
AC_PREREQ([2.60])
|
||||||
AM_INIT_AUTOMAKE([dist-bzip2])
|
AC_INIT([iceauth], [1.0.8],
|
||||||
AM_MAINTAINER_MODE
|
[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [iceauth])
|
||||||
|
AC_CONFIG_SRCDIR([Makefile.am])
|
||||||
|
AC_CONFIG_HEADERS([config.h])
|
||||||
|
|
||||||
AM_CONFIG_HEADER(config.h)
|
# Initialize Automake
|
||||||
|
AM_INIT_AUTOMAKE([foreign dist-bzip2])
|
||||||
|
|
||||||
# Require xorg-macros version 1.1.0 or newer for XORG_WITH_LINT macro
|
# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
|
||||||
m4_ifndef([XORG_MACROS_VERSION], [AC_FATAL([must install xorg-macros 1.1 or later before running autoconf/autogen])])
|
m4_ifndef([XORG_MACROS_VERSION],
|
||||||
XORG_MACROS_VERSION(1.1)
|
[m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
|
||||||
|
XORG_MACROS_VERSION(1.8)
|
||||||
AC_PROG_CC
|
XORG_DEFAULT_OPTIONS
|
||||||
AC_PROG_INSTALL
|
|
||||||
|
|
||||||
AC_TYPE_SIGNAL
|
|
||||||
|
|
||||||
# Checks for pkg-config packages
|
# Checks for pkg-config packages
|
||||||
PKG_CHECK_MODULES(ICEAUTH, xproto ice)
|
PKG_CHECK_MODULES(ICEAUTH, [xproto >= 7.0.22 ice])
|
||||||
AC_SUBST(ICEAUTH_CFLAGS)
|
|
||||||
AC_SUBST(ICEAUTH_LIBS)
|
|
||||||
|
|
||||||
XORG_WITH_LINT
|
XORG_WITH_LINT
|
||||||
XORG_MANPAGE_SECTIONS
|
|
||||||
XORG_RELEASE_VERSION
|
|
||||||
|
|
||||||
AC_OUTPUT([Makefile])
|
AC_CONFIG_FILES([
|
||||||
|
Makefile
|
||||||
|
man/Makefile])
|
||||||
|
AC_OUTPUT
|
||||||
|
|
597
iceauth/depcomp
597
iceauth/depcomp
|
@ -1,10 +1,9 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# depcomp - compile a program generating dependencies as side-effects
|
# depcomp - compile a program generating dependencies as side-effects
|
||||||
|
|
||||||
scriptversion=2006-10-15.18
|
scriptversion=2013-05-30.07; # UTC
|
||||||
|
|
||||||
# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006 Free Software
|
# Copyright (C) 1999-2014 Free Software Foundation, Inc.
|
||||||
# Foundation, Inc.
|
|
||||||
|
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# 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
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
@ -17,9 +16,7 @@ scriptversion=2006-10-15.18
|
||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
||||||
# 02110-1301, USA.
|
|
||||||
|
|
||||||
# As a special exception to the GNU General Public License, if you
|
# As a special exception to the GNU General Public License, if you
|
||||||
# distribute this file as part of a program that contains a
|
# distribute this file as part of a program that contains a
|
||||||
|
@ -30,9 +27,9 @@ scriptversion=2006-10-15.18
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
'')
|
'')
|
||||||
echo "$0: No command. Try \`$0 --help' for more information." 1>&2
|
echo "$0: No command. Try '$0 --help' for more information." 1>&2
|
||||||
exit 1;
|
exit 1;
|
||||||
;;
|
;;
|
||||||
-h | --h*)
|
-h | --h*)
|
||||||
cat <<\EOF
|
cat <<\EOF
|
||||||
Usage: depcomp [--help] [--version] PROGRAM [ARGS]
|
Usage: depcomp [--help] [--version] PROGRAM [ARGS]
|
||||||
|
@ -42,11 +39,11 @@ as side-effects.
|
||||||
|
|
||||||
Environment variables:
|
Environment variables:
|
||||||
depmode Dependency tracking mode.
|
depmode Dependency tracking mode.
|
||||||
source Source file read by `PROGRAMS ARGS'.
|
source Source file read by 'PROGRAMS ARGS'.
|
||||||
object Object file output by `PROGRAMS ARGS'.
|
object Object file output by 'PROGRAMS ARGS'.
|
||||||
DEPDIR directory where to store dependencies.
|
DEPDIR directory where to store dependencies.
|
||||||
depfile Dependency file to output.
|
depfile Dependency file to output.
|
||||||
tmpdepfile Temporary file to use when outputing dependencies.
|
tmpdepfile Temporary file to use when outputting dependencies.
|
||||||
libtool Whether libtool is used (yes/no).
|
libtool Whether libtool is used (yes/no).
|
||||||
|
|
||||||
Report bugs to <bug-automake@gnu.org>.
|
Report bugs to <bug-automake@gnu.org>.
|
||||||
|
@ -59,6 +56,66 @@ EOF
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# Get the directory component of the given path, and save it in the
|
||||||
|
# global variables '$dir'. Note that this directory component will
|
||||||
|
# be either empty or ending with a '/' character. This is deliberate.
|
||||||
|
set_dir_from ()
|
||||||
|
{
|
||||||
|
case $1 in
|
||||||
|
*/*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;;
|
||||||
|
*) dir=;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
# Get the suffix-stripped basename of the given path, and save it the
|
||||||
|
# global variable '$base'.
|
||||||
|
set_base_from ()
|
||||||
|
{
|
||||||
|
base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'`
|
||||||
|
}
|
||||||
|
|
||||||
|
# If no dependency file was actually created by the compiler invocation,
|
||||||
|
# we still have to create a dummy depfile, to avoid errors with the
|
||||||
|
# Makefile "include basename.Plo" scheme.
|
||||||
|
make_dummy_depfile ()
|
||||||
|
{
|
||||||
|
echo "#dummy" > "$depfile"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Factor out some common post-processing of the generated depfile.
|
||||||
|
# Requires the auxiliary global variable '$tmpdepfile' to be set.
|
||||||
|
aix_post_process_depfile ()
|
||||||
|
{
|
||||||
|
# If the compiler actually managed to produce a dependency file,
|
||||||
|
# post-process it.
|
||||||
|
if test -f "$tmpdepfile"; then
|
||||||
|
# Each line is of the form 'foo.o: dependency.h'.
|
||||||
|
# Do two passes, one to just change these to
|
||||||
|
# $object: dependency.h
|
||||||
|
# and one to simply output
|
||||||
|
# dependency.h:
|
||||||
|
# which is needed to avoid the deleted-header problem.
|
||||||
|
{ sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile"
|
||||||
|
sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile"
|
||||||
|
} > "$depfile"
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
else
|
||||||
|
make_dummy_depfile
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# A tabulation character.
|
||||||
|
tab=' '
|
||||||
|
# A newline character.
|
||||||
|
nl='
|
||||||
|
'
|
||||||
|
# Character ranges might be problematic outside the C locale.
|
||||||
|
# These definitions help.
|
||||||
|
upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ
|
||||||
|
lower=abcdefghijklmnopqrstuvwxyz
|
||||||
|
digits=0123456789
|
||||||
|
alpha=${upper}${lower}
|
||||||
|
|
||||||
if test -z "$depmode" || test -z "$source" || test -z "$object"; then
|
if test -z "$depmode" || test -z "$source" || test -z "$object"; then
|
||||||
echo "depcomp: Variables source, object and depmode must be set" 1>&2
|
echo "depcomp: Variables source, object and depmode must be set" 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -71,6 +128,9 @@ tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
|
||||||
|
|
||||||
rm -f "$tmpdepfile"
|
rm -f "$tmpdepfile"
|
||||||
|
|
||||||
|
# Avoid interferences from the environment.
|
||||||
|
gccflag= dashmflag=
|
||||||
|
|
||||||
# Some modes work just like other modes, but use different flags. We
|
# Some modes work just like other modes, but use different flags. We
|
||||||
# parameterize here, but still list the modes in the big case below,
|
# parameterize here, but still list the modes in the big case below,
|
||||||
# to make depend.m4 easier to write. Note that we *cannot* use a case
|
# to make depend.m4 easier to write. Note that we *cannot* use a case
|
||||||
|
@ -82,9 +142,32 @@ if test "$depmode" = hp; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$depmode" = dashXmstdout; then
|
if test "$depmode" = dashXmstdout; then
|
||||||
# This is just like dashmstdout with a different argument.
|
# This is just like dashmstdout with a different argument.
|
||||||
dashmflag=-xM
|
dashmflag=-xM
|
||||||
depmode=dashmstdout
|
depmode=dashmstdout
|
||||||
|
fi
|
||||||
|
|
||||||
|
cygpath_u="cygpath -u -f -"
|
||||||
|
if test "$depmode" = msvcmsys; then
|
||||||
|
# This is just like msvisualcpp but w/o cygpath translation.
|
||||||
|
# Just convert the backslash-escaped backslashes to single forward
|
||||||
|
# slashes to satisfy depend.m4
|
||||||
|
cygpath_u='sed s,\\\\,/,g'
|
||||||
|
depmode=msvisualcpp
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$depmode" = msvc7msys; then
|
||||||
|
# This is just like msvc7 but w/o cygpath translation.
|
||||||
|
# Just convert the backslash-escaped backslashes to single forward
|
||||||
|
# slashes to satisfy depend.m4
|
||||||
|
cygpath_u='sed s,\\\\,/,g'
|
||||||
|
depmode=msvc7
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$depmode" = xlc; then
|
||||||
|
# IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information.
|
||||||
|
gccflag=-qmakedep=gcc,-MF
|
||||||
|
depmode=gcc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case "$depmode" in
|
case "$depmode" in
|
||||||
|
@ -107,8 +190,7 @@ gcc3)
|
||||||
done
|
done
|
||||||
"$@"
|
"$@"
|
||||||
stat=$?
|
stat=$?
|
||||||
if test $stat -eq 0; then :
|
if test $stat -ne 0; then
|
||||||
else
|
|
||||||
rm -f "$tmpdepfile"
|
rm -f "$tmpdepfile"
|
||||||
exit $stat
|
exit $stat
|
||||||
fi
|
fi
|
||||||
|
@ -116,13 +198,17 @@ gcc3)
|
||||||
;;
|
;;
|
||||||
|
|
||||||
gcc)
|
gcc)
|
||||||
|
## Note that this doesn't just cater to obsosete pre-3.x GCC compilers.
|
||||||
|
## but also to in-use compilers like IMB xlc/xlC and the HP C compiler.
|
||||||
|
## (see the conditional assignment to $gccflag above).
|
||||||
## There are various ways to get dependency output from gcc. Here's
|
## There are various ways to get dependency output from gcc. Here's
|
||||||
## why we pick this rather obscure method:
|
## why we pick this rather obscure method:
|
||||||
## - Don't want to use -MD because we'd like the dependencies to end
|
## - Don't want to use -MD because we'd like the dependencies to end
|
||||||
## up in a subdir. Having to rename by hand is ugly.
|
## up in a subdir. Having to rename by hand is ugly.
|
||||||
## (We might end up doing this anyway to support other compilers.)
|
## (We might end up doing this anyway to support other compilers.)
|
||||||
## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
|
## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
|
||||||
## -MM, not -M (despite what the docs say).
|
## -MM, not -M (despite what the docs say). Also, it might not be
|
||||||
|
## supported by the other compilers which use the 'gcc' depmode.
|
||||||
## - Using -M directly means running the compiler twice (even worse
|
## - Using -M directly means running the compiler twice (even worse
|
||||||
## than renaming).
|
## than renaming).
|
||||||
if test -z "$gccflag"; then
|
if test -z "$gccflag"; then
|
||||||
|
@ -130,31 +216,31 @@ gcc)
|
||||||
fi
|
fi
|
||||||
"$@" -Wp,"$gccflag$tmpdepfile"
|
"$@" -Wp,"$gccflag$tmpdepfile"
|
||||||
stat=$?
|
stat=$?
|
||||||
if test $stat -eq 0; then :
|
if test $stat -ne 0; then
|
||||||
else
|
|
||||||
rm -f "$tmpdepfile"
|
rm -f "$tmpdepfile"
|
||||||
exit $stat
|
exit $stat
|
||||||
fi
|
fi
|
||||||
rm -f "$depfile"
|
rm -f "$depfile"
|
||||||
echo "$object : \\" > "$depfile"
|
echo "$object : \\" > "$depfile"
|
||||||
alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
|
# The second -e expression handles DOS-style file names with drive
|
||||||
## The second -e expression handles DOS-style file names with drive letters.
|
# letters.
|
||||||
sed -e 's/^[^:]*: / /' \
|
sed -e 's/^[^:]*: / /' \
|
||||||
-e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
|
-e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
|
||||||
## This next piece of magic avoids the `deleted header file' problem.
|
## This next piece of magic avoids the "deleted header file" problem.
|
||||||
## The problem is that when a header file which appears in a .P file
|
## The problem is that when a header file which appears in a .P file
|
||||||
## is deleted, the dependency causes make to die (because there is
|
## is deleted, the dependency causes make to die (because there is
|
||||||
## typically no way to rebuild the header). We avoid this by adding
|
## typically no way to rebuild the header). We avoid this by adding
|
||||||
## dummy dependencies for each header file. Too bad gcc doesn't do
|
## dummy dependencies for each header file. Too bad gcc doesn't do
|
||||||
## this for us directly.
|
## this for us directly.
|
||||||
tr ' ' '
|
## Some versions of gcc put a space before the ':'. On the theory
|
||||||
' < "$tmpdepfile" |
|
|
||||||
## Some versions of gcc put a space before the `:'. On the theory
|
|
||||||
## that the space means something, we add a space to the output as
|
## that the space means something, we add a space to the output as
|
||||||
## well.
|
## well. hp depmode also adds that space, but also prefixes the VPATH
|
||||||
|
## to the object. Take care to not repeat it in the output.
|
||||||
## Some versions of the HPUX 10.20 sed can't process this invocation
|
## Some versions of the HPUX 10.20 sed can't process this invocation
|
||||||
## correctly. Breaking it into two sed invocations is a workaround.
|
## correctly. Breaking it into two sed invocations is a workaround.
|
||||||
sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
|
tr ' ' "$nl" < "$tmpdepfile" \
|
||||||
|
| sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \
|
||||||
|
| sed -e 's/$/ :/' >> "$depfile"
|
||||||
rm -f "$tmpdepfile"
|
rm -f "$tmpdepfile"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
@ -172,8 +258,7 @@ sgi)
|
||||||
"$@" -MDupdate "$tmpdepfile"
|
"$@" -MDupdate "$tmpdepfile"
|
||||||
fi
|
fi
|
||||||
stat=$?
|
stat=$?
|
||||||
if test $stat -eq 0; then :
|
if test $stat -ne 0; then
|
||||||
else
|
|
||||||
rm -f "$tmpdepfile"
|
rm -f "$tmpdepfile"
|
||||||
exit $stat
|
exit $stat
|
||||||
fi
|
fi
|
||||||
|
@ -181,99 +266,156 @@ sgi)
|
||||||
|
|
||||||
if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
|
if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
|
||||||
echo "$object : \\" > "$depfile"
|
echo "$object : \\" > "$depfile"
|
||||||
|
|
||||||
# Clip off the initial element (the dependent). Don't try to be
|
# Clip off the initial element (the dependent). Don't try to be
|
||||||
# clever and replace this with sed code, as IRIX sed won't handle
|
# clever and replace this with sed code, as IRIX sed won't handle
|
||||||
# lines with more than a fixed number of characters (4096 in
|
# lines with more than a fixed number of characters (4096 in
|
||||||
# IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
|
# IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
|
||||||
# the IRIX cc adds comments like `#:fec' to the end of the
|
# the IRIX cc adds comments like '#:fec' to the end of the
|
||||||
# dependency line.
|
# dependency line.
|
||||||
tr ' ' '
|
tr ' ' "$nl" < "$tmpdepfile" \
|
||||||
' < "$tmpdepfile" \
|
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \
|
||||||
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
|
| tr "$nl" ' ' >> "$depfile"
|
||||||
tr '
|
echo >> "$depfile"
|
||||||
' ' ' >> $depfile
|
|
||||||
echo >> $depfile
|
|
||||||
|
|
||||||
# The second pass generates a dummy entry for each header file.
|
# The second pass generates a dummy entry for each header file.
|
||||||
tr ' ' '
|
tr ' ' "$nl" < "$tmpdepfile" \
|
||||||
' < "$tmpdepfile" \
|
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
|
||||||
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
|
>> "$depfile"
|
||||||
>> $depfile
|
|
||||||
else
|
else
|
||||||
# The sourcefile does not contain any dependencies, so just
|
make_dummy_depfile
|
||||||
# store a dummy comment line, to avoid errors with the Makefile
|
|
||||||
# "include basename.Plo" scheme.
|
|
||||||
echo "#dummy" > "$depfile"
|
|
||||||
fi
|
fi
|
||||||
rm -f "$tmpdepfile"
|
rm -f "$tmpdepfile"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
xlc)
|
||||||
|
# This case exists only to let depend.m4 do its work. It works by
|
||||||
|
# looking at the text of this script. This case will never be run,
|
||||||
|
# since it is checked for above.
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
|
||||||
aix)
|
aix)
|
||||||
# The C for AIX Compiler uses -M and outputs the dependencies
|
# The C for AIX Compiler uses -M and outputs the dependencies
|
||||||
# in a .u file. In older versions, this file always lives in the
|
# in a .u file. In older versions, this file always lives in the
|
||||||
# current directory. Also, the AIX compiler puts `$object:' at the
|
# current directory. Also, the AIX compiler puts '$object:' at the
|
||||||
# start of each line; $object doesn't have directory information.
|
# start of each line; $object doesn't have directory information.
|
||||||
# Version 6 uses the directory in both cases.
|
# Version 6 uses the directory in both cases.
|
||||||
stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'`
|
set_dir_from "$object"
|
||||||
tmpdepfile="$stripped.u"
|
set_base_from "$object"
|
||||||
if test "$libtool" = yes; then
|
if test "$libtool" = yes; then
|
||||||
|
tmpdepfile1=$dir$base.u
|
||||||
|
tmpdepfile2=$base.u
|
||||||
|
tmpdepfile3=$dir.libs/$base.u
|
||||||
"$@" -Wc,-M
|
"$@" -Wc,-M
|
||||||
else
|
else
|
||||||
|
tmpdepfile1=$dir$base.u
|
||||||
|
tmpdepfile2=$dir$base.u
|
||||||
|
tmpdepfile3=$dir$base.u
|
||||||
"$@" -M
|
"$@" -M
|
||||||
fi
|
fi
|
||||||
stat=$?
|
stat=$?
|
||||||
|
if test $stat -ne 0; then
|
||||||
if test -f "$tmpdepfile"; then :
|
rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
|
||||||
else
|
|
||||||
stripped=`echo "$stripped" | sed 's,^.*/,,'`
|
|
||||||
tmpdepfile="$stripped.u"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test $stat -eq 0; then :
|
|
||||||
else
|
|
||||||
rm -f "$tmpdepfile"
|
|
||||||
exit $stat
|
exit $stat
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test -f "$tmpdepfile"; then
|
for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
|
||||||
outname="$stripped.o"
|
do
|
||||||
# Each line is of the form `foo.o: dependent.h'.
|
test -f "$tmpdepfile" && break
|
||||||
# Do two passes, one to just change these to
|
done
|
||||||
# `$object: dependent.h' and one to simply `dependent.h:'.
|
aix_post_process_depfile
|
||||||
sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
|
;;
|
||||||
sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
|
|
||||||
else
|
tcc)
|
||||||
# The sourcefile does not contain any dependencies, so just
|
# tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26
|
||||||
# store a dummy comment line, to avoid errors with the Makefile
|
# FIXME: That version still under development at the moment of writing.
|
||||||
# "include basename.Plo" scheme.
|
# Make that this statement remains true also for stable, released
|
||||||
echo "#dummy" > "$depfile"
|
# versions.
|
||||||
|
# It will wrap lines (doesn't matter whether long or short) with a
|
||||||
|
# trailing '\', as in:
|
||||||
|
#
|
||||||
|
# foo.o : \
|
||||||
|
# foo.c \
|
||||||
|
# foo.h \
|
||||||
|
#
|
||||||
|
# It will put a trailing '\' even on the last line, and will use leading
|
||||||
|
# spaces rather than leading tabs (at least since its commit 0394caf7
|
||||||
|
# "Emit spaces for -MD").
|
||||||
|
"$@" -MD -MF "$tmpdepfile"
|
||||||
|
stat=$?
|
||||||
|
if test $stat -ne 0; then
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
exit $stat
|
||||||
fi
|
fi
|
||||||
|
rm -f "$depfile"
|
||||||
|
# Each non-empty line is of the form 'foo.o : \' or ' dep.h \'.
|
||||||
|
# We have to change lines of the first kind to '$object: \'.
|
||||||
|
sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile"
|
||||||
|
# And for each line of the second kind, we have to emit a 'dep.h:'
|
||||||
|
# dummy dependency, to avoid the deleted-header problem.
|
||||||
|
sed -n -e 's|^ *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile"
|
||||||
rm -f "$tmpdepfile"
|
rm -f "$tmpdepfile"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
icc)
|
## The order of this option in the case statement is important, since the
|
||||||
# Intel's C compiler understands `-MD -MF file'. However on
|
## shell code in configure will try each of these formats in the order
|
||||||
# icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
|
## listed in this file. A plain '-MD' option would be understood by many
|
||||||
# ICC 7.0 will fill foo.d with something like
|
## compilers, so we must ensure this comes after the gcc and icc options.
|
||||||
# foo.o: sub/foo.c
|
pgcc)
|
||||||
# foo.o: sub/foo.h
|
# Portland's C compiler understands '-MD'.
|
||||||
# which is wrong. We want:
|
# Will always output deps to 'file.d' where file is the root name of the
|
||||||
# sub/foo.o: sub/foo.c
|
# source file under compilation, even if file resides in a subdirectory.
|
||||||
# sub/foo.o: sub/foo.h
|
# The object file name does not affect the name of the '.d' file.
|
||||||
# sub/foo.c:
|
# pgcc 10.2 will output
|
||||||
# sub/foo.h:
|
|
||||||
# ICC 7.1 will output
|
|
||||||
# foo.o: sub/foo.c sub/foo.h
|
# foo.o: sub/foo.c sub/foo.h
|
||||||
# and will wrap long lines using \ :
|
# and will wrap long lines using '\' :
|
||||||
# foo.o: sub/foo.c ... \
|
# foo.o: sub/foo.c ... \
|
||||||
# sub/foo.h ... \
|
# sub/foo.h ... \
|
||||||
# ...
|
# ...
|
||||||
|
set_dir_from "$object"
|
||||||
|
# Use the source, not the object, to determine the base name, since
|
||||||
|
# that's sadly what pgcc will do too.
|
||||||
|
set_base_from "$source"
|
||||||
|
tmpdepfile=$base.d
|
||||||
|
|
||||||
"$@" -MD -MF "$tmpdepfile"
|
# For projects that build the same source file twice into different object
|
||||||
stat=$?
|
# files, the pgcc approach of using the *source* file root name can cause
|
||||||
if test $stat -eq 0; then :
|
# problems in parallel builds. Use a locking strategy to avoid stomping on
|
||||||
else
|
# the same $tmpdepfile.
|
||||||
|
lockdir=$base.d-lock
|
||||||
|
trap "
|
||||||
|
echo '$0: caught signal, cleaning up...' >&2
|
||||||
|
rmdir '$lockdir'
|
||||||
|
exit 1
|
||||||
|
" 1 2 13 15
|
||||||
|
numtries=100
|
||||||
|
i=$numtries
|
||||||
|
while test $i -gt 0; do
|
||||||
|
# mkdir is a portable test-and-set.
|
||||||
|
if mkdir "$lockdir" 2>/dev/null; then
|
||||||
|
# This process acquired the lock.
|
||||||
|
"$@" -MD
|
||||||
|
stat=$?
|
||||||
|
# Release the lock.
|
||||||
|
rmdir "$lockdir"
|
||||||
|
break
|
||||||
|
else
|
||||||
|
# If the lock is being held by a different process, wait
|
||||||
|
# until the winning process is done or we timeout.
|
||||||
|
while test -d "$lockdir" && test $i -gt 0; do
|
||||||
|
sleep 1
|
||||||
|
i=`expr $i - 1`
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
i=`expr $i - 1`
|
||||||
|
done
|
||||||
|
trap - 1 2 13 15
|
||||||
|
if test $i -le 0; then
|
||||||
|
echo "$0: failed to acquire lock after $numtries attempts" >&2
|
||||||
|
echo "$0: check lockdir '$lockdir'" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test $stat -ne 0; then
|
||||||
rm -f "$tmpdepfile"
|
rm -f "$tmpdepfile"
|
||||||
exit $stat
|
exit $stat
|
||||||
fi
|
fi
|
||||||
|
@ -285,8 +427,8 @@ icc)
|
||||||
sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
|
sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
|
||||||
# Some versions of the HPUX 10.20 sed can't process this invocation
|
# Some versions of the HPUX 10.20 sed can't process this invocation
|
||||||
# correctly. Breaking it into two sed invocations is a workaround.
|
# correctly. Breaking it into two sed invocations is a workaround.
|
||||||
sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
|
sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \
|
||||||
sed -e 's/$/ :/' >> "$depfile"
|
| sed -e 's/$/ :/' >> "$depfile"
|
||||||
rm -f "$tmpdepfile"
|
rm -f "$tmpdepfile"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
@ -297,9 +439,8 @@ hp2)
|
||||||
# 'foo.d', which lands next to the object file, wherever that
|
# 'foo.d', which lands next to the object file, wherever that
|
||||||
# happens to be.
|
# happens to be.
|
||||||
# Much of this is similar to the tru64 case; see comments there.
|
# Much of this is similar to the tru64 case; see comments there.
|
||||||
dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
|
set_dir_from "$object"
|
||||||
test "x$dir" = "x$object" && dir=
|
set_base_from "$object"
|
||||||
base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
|
|
||||||
if test "$libtool" = yes; then
|
if test "$libtool" = yes; then
|
||||||
tmpdepfile1=$dir$base.d
|
tmpdepfile1=$dir$base.d
|
||||||
tmpdepfile2=$dir.libs/$base.d
|
tmpdepfile2=$dir.libs/$base.d
|
||||||
|
@ -310,8 +451,7 @@ hp2)
|
||||||
"$@" +Maked
|
"$@" +Maked
|
||||||
fi
|
fi
|
||||||
stat=$?
|
stat=$?
|
||||||
if test $stat -eq 0; then :
|
if test $stat -ne 0; then
|
||||||
else
|
|
||||||
rm -f "$tmpdepfile1" "$tmpdepfile2"
|
rm -f "$tmpdepfile1" "$tmpdepfile2"
|
||||||
exit $stat
|
exit $stat
|
||||||
fi
|
fi
|
||||||
|
@ -321,72 +461,107 @@ hp2)
|
||||||
test -f "$tmpdepfile" && break
|
test -f "$tmpdepfile" && break
|
||||||
done
|
done
|
||||||
if test -f "$tmpdepfile"; then
|
if test -f "$tmpdepfile"; then
|
||||||
sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
|
sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile"
|
||||||
# Add `dependent.h:' lines.
|
# Add 'dependent.h:' lines.
|
||||||
sed -ne '2,${; s/^ *//; s/ \\*$//; s/$/:/; p;}' "$tmpdepfile" >> "$depfile"
|
sed -ne '2,${
|
||||||
|
s/^ *//
|
||||||
|
s/ \\*$//
|
||||||
|
s/$/:/
|
||||||
|
p
|
||||||
|
}' "$tmpdepfile" >> "$depfile"
|
||||||
else
|
else
|
||||||
echo "#dummy" > "$depfile"
|
make_dummy_depfile
|
||||||
fi
|
fi
|
||||||
rm -f "$tmpdepfile" "$tmpdepfile2"
|
rm -f "$tmpdepfile" "$tmpdepfile2"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
tru64)
|
tru64)
|
||||||
# The Tru64 compiler uses -MD to generate dependencies as a side
|
# The Tru64 compiler uses -MD to generate dependencies as a side
|
||||||
# effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
|
# effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'.
|
||||||
# At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
|
# At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
|
||||||
# dependencies in `foo.d' instead, so we check for that too.
|
# dependencies in 'foo.d' instead, so we check for that too.
|
||||||
# Subdirectories are respected.
|
# Subdirectories are respected.
|
||||||
dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
|
set_dir_from "$object"
|
||||||
test "x$dir" = "x$object" && dir=
|
set_base_from "$object"
|
||||||
base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
|
|
||||||
|
|
||||||
if test "$libtool" = yes; then
|
if test "$libtool" = yes; then
|
||||||
# With Tru64 cc, shared objects can also be used to make a
|
# Libtool generates 2 separate objects for the 2 libraries. These
|
||||||
# static library. This mechanism is used in libtool 1.4 series to
|
# two compilations output dependencies in $dir.libs/$base.o.d and
|
||||||
# handle both shared and static libraries in a single compilation.
|
# in $dir$base.o.d. We have to check for both files, because
|
||||||
# With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
|
# one of the two compilations can be disabled. We should prefer
|
||||||
#
|
# $dir$base.o.d over $dir.libs/$base.o.d because the latter is
|
||||||
# With libtool 1.5 this exception was removed, and libtool now
|
# automatically cleaned when .libs/ is deleted, while ignoring
|
||||||
# generates 2 separate objects for the 2 libraries. These two
|
# the former would cause a distcleancheck panic.
|
||||||
# compilations output dependencies in $dir.libs/$base.o.d and
|
tmpdepfile1=$dir$base.o.d # libtool 1.5
|
||||||
# in $dir$base.o.d. We have to check for both files, because
|
tmpdepfile2=$dir.libs/$base.o.d # Likewise.
|
||||||
# one of the two compilations can be disabled. We should prefer
|
tmpdepfile3=$dir.libs/$base.d # Compaq CCC V6.2-504
|
||||||
# $dir$base.o.d over $dir.libs/$base.o.d because the latter is
|
"$@" -Wc,-MD
|
||||||
# automatically cleaned when .libs/ is deleted, while ignoring
|
else
|
||||||
# the former would cause a distcleancheck panic.
|
tmpdepfile1=$dir$base.d
|
||||||
tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
|
tmpdepfile2=$dir$base.d
|
||||||
tmpdepfile2=$dir$base.o.d # libtool 1.5
|
tmpdepfile3=$dir$base.d
|
||||||
tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
|
"$@" -MD
|
||||||
tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
|
fi
|
||||||
"$@" -Wc,-MD
|
|
||||||
else
|
|
||||||
tmpdepfile1=$dir$base.o.d
|
|
||||||
tmpdepfile2=$dir$base.d
|
|
||||||
tmpdepfile3=$dir$base.d
|
|
||||||
tmpdepfile4=$dir$base.d
|
|
||||||
"$@" -MD
|
|
||||||
fi
|
|
||||||
|
|
||||||
stat=$?
|
stat=$?
|
||||||
if test $stat -eq 0; then :
|
if test $stat -ne 0; then
|
||||||
else
|
rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
|
||||||
rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
|
exit $stat
|
||||||
exit $stat
|
fi
|
||||||
fi
|
|
||||||
|
|
||||||
for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
|
for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
|
||||||
do
|
do
|
||||||
test -f "$tmpdepfile" && break
|
test -f "$tmpdepfile" && break
|
||||||
done
|
done
|
||||||
if test -f "$tmpdepfile"; then
|
# Same post-processing that is required for AIX mode.
|
||||||
sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
|
aix_post_process_depfile
|
||||||
# That's a tab and a space in the [].
|
;;
|
||||||
sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
|
|
||||||
else
|
msvc7)
|
||||||
echo "#dummy" > "$depfile"
|
if test "$libtool" = yes; then
|
||||||
fi
|
showIncludes=-Wc,-showIncludes
|
||||||
rm -f "$tmpdepfile"
|
else
|
||||||
;;
|
showIncludes=-showIncludes
|
||||||
|
fi
|
||||||
|
"$@" $showIncludes > "$tmpdepfile"
|
||||||
|
stat=$?
|
||||||
|
grep -v '^Note: including file: ' "$tmpdepfile"
|
||||||
|
if test $stat -ne 0; then
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
exit $stat
|
||||||
|
fi
|
||||||
|
rm -f "$depfile"
|
||||||
|
echo "$object : \\" > "$depfile"
|
||||||
|
# The first sed program below extracts the file names and escapes
|
||||||
|
# backslashes for cygpath. The second sed program outputs the file
|
||||||
|
# name when reading, but also accumulates all include files in the
|
||||||
|
# hold buffer in order to output them again at the end. This only
|
||||||
|
# works with sed implementations that can handle large buffers.
|
||||||
|
sed < "$tmpdepfile" -n '
|
||||||
|
/^Note: including file: *\(.*\)/ {
|
||||||
|
s//\1/
|
||||||
|
s/\\/\\\\/g
|
||||||
|
p
|
||||||
|
}' | $cygpath_u | sort -u | sed -n '
|
||||||
|
s/ /\\ /g
|
||||||
|
s/\(.*\)/'"$tab"'\1 \\/p
|
||||||
|
s/.\(.*\) \\/\1:/
|
||||||
|
H
|
||||||
|
$ {
|
||||||
|
s/.*/'"$tab"'/
|
||||||
|
G
|
||||||
|
p
|
||||||
|
}' >> "$depfile"
|
||||||
|
echo >> "$depfile" # make sure the fragment doesn't end with a backslash
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
;;
|
||||||
|
|
||||||
|
msvc7msys)
|
||||||
|
# This case exists only to let depend.m4 do its work. It works by
|
||||||
|
# looking at the text of this script. This case will never be run,
|
||||||
|
# since it is checked for above.
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
|
||||||
#nosideeffect)
|
#nosideeffect)
|
||||||
# This comment above is used by automake to tell side-effect
|
# This comment above is used by automake to tell side-effect
|
||||||
|
@ -399,13 +574,13 @@ dashmstdout)
|
||||||
|
|
||||||
# Remove the call to Libtool.
|
# Remove the call to Libtool.
|
||||||
if test "$libtool" = yes; then
|
if test "$libtool" = yes; then
|
||||||
while test $1 != '--mode=compile'; do
|
while test "X$1" != 'X--mode=compile'; do
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
shift
|
shift
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Remove `-o $object'.
|
# Remove '-o $object'.
|
||||||
IFS=" "
|
IFS=" "
|
||||||
for arg
|
for arg
|
||||||
do
|
do
|
||||||
|
@ -425,18 +600,18 @@ dashmstdout)
|
||||||
done
|
done
|
||||||
|
|
||||||
test -z "$dashmflag" && dashmflag=-M
|
test -z "$dashmflag" && dashmflag=-M
|
||||||
# Require at least two characters before searching for `:'
|
# Require at least two characters before searching for ':'
|
||||||
# in the target name. This is to cope with DOS-style filenames:
|
# in the target name. This is to cope with DOS-style filenames:
|
||||||
# a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
|
# a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise.
|
||||||
"$@" $dashmflag |
|
"$@" $dashmflag |
|
||||||
sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
|
sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile"
|
||||||
rm -f "$depfile"
|
rm -f "$depfile"
|
||||||
cat < "$tmpdepfile" > "$depfile"
|
cat < "$tmpdepfile" > "$depfile"
|
||||||
tr ' ' '
|
# Some versions of the HPUX 10.20 sed can't process this sed invocation
|
||||||
' < "$tmpdepfile" | \
|
# correctly. Breaking it into two sed invocations is a workaround.
|
||||||
## Some versions of the HPUX 10.20 sed can't process this invocation
|
tr ' ' "$nl" < "$tmpdepfile" \
|
||||||
## correctly. Breaking it into two sed invocations is a workaround.
|
| sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
|
||||||
sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
|
| sed -e 's/$/ :/' >> "$depfile"
|
||||||
rm -f "$tmpdepfile"
|
rm -f "$tmpdepfile"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
@ -450,41 +625,51 @@ makedepend)
|
||||||
"$@" || exit $?
|
"$@" || exit $?
|
||||||
# Remove any Libtool call
|
# Remove any Libtool call
|
||||||
if test "$libtool" = yes; then
|
if test "$libtool" = yes; then
|
||||||
while test $1 != '--mode=compile'; do
|
while test "X$1" != 'X--mode=compile'; do
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
shift
|
shift
|
||||||
fi
|
fi
|
||||||
# X makedepend
|
# X makedepend
|
||||||
shift
|
shift
|
||||||
cleared=no
|
cleared=no eat=no
|
||||||
for arg in "$@"; do
|
for arg
|
||||||
|
do
|
||||||
case $cleared in
|
case $cleared in
|
||||||
no)
|
no)
|
||||||
set ""; shift
|
set ""; shift
|
||||||
cleared=yes ;;
|
cleared=yes ;;
|
||||||
esac
|
esac
|
||||||
|
if test $eat = yes; then
|
||||||
|
eat=no
|
||||||
|
continue
|
||||||
|
fi
|
||||||
case "$arg" in
|
case "$arg" in
|
||||||
-D*|-I*)
|
-D*|-I*)
|
||||||
set fnord "$@" "$arg"; shift ;;
|
set fnord "$@" "$arg"; shift ;;
|
||||||
# Strip any option that makedepend may not understand. Remove
|
# Strip any option that makedepend may not understand. Remove
|
||||||
# the object too, otherwise makedepend will parse it as a source file.
|
# the object too, otherwise makedepend will parse it as a source file.
|
||||||
|
-arch)
|
||||||
|
eat=yes ;;
|
||||||
-*|$object)
|
-*|$object)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
set fnord "$@" "$arg"; shift ;;
|
set fnord "$@" "$arg"; shift ;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
obj_suffix="`echo $object | sed 's/^.*\././'`"
|
obj_suffix=`echo "$object" | sed 's/^.*\././'`
|
||||||
touch "$tmpdepfile"
|
touch "$tmpdepfile"
|
||||||
${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
|
${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
|
||||||
rm -f "$depfile"
|
rm -f "$depfile"
|
||||||
cat < "$tmpdepfile" > "$depfile"
|
# makedepend may prepend the VPATH from the source file name to the object.
|
||||||
sed '1,2d' "$tmpdepfile" | tr ' ' '
|
# No need to regex-escape $object, excess matching of '.' is harmless.
|
||||||
' | \
|
sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile"
|
||||||
## Some versions of the HPUX 10.20 sed can't process this invocation
|
# Some versions of the HPUX 10.20 sed can't process the last invocation
|
||||||
## correctly. Breaking it into two sed invocations is a workaround.
|
# correctly. Breaking it into two sed invocations is a workaround.
|
||||||
sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
|
sed '1,2d' "$tmpdepfile" \
|
||||||
|
| tr ' ' "$nl" \
|
||||||
|
| sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
|
||||||
|
| sed -e 's/$/ :/' >> "$depfile"
|
||||||
rm -f "$tmpdepfile" "$tmpdepfile".bak
|
rm -f "$tmpdepfile" "$tmpdepfile".bak
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
@ -495,13 +680,13 @@ cpp)
|
||||||
|
|
||||||
# Remove the call to Libtool.
|
# Remove the call to Libtool.
|
||||||
if test "$libtool" = yes; then
|
if test "$libtool" = yes; then
|
||||||
while test $1 != '--mode=compile'; do
|
while test "X$1" != 'X--mode=compile'; do
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
shift
|
shift
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Remove `-o $object'.
|
# Remove '-o $object'.
|
||||||
IFS=" "
|
IFS=" "
|
||||||
for arg
|
for arg
|
||||||
do
|
do
|
||||||
|
@ -520,10 +705,10 @@ cpp)
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
"$@" -E |
|
"$@" -E \
|
||||||
sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
|
| sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
|
||||||
-e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
|
-e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
|
||||||
sed '$ s: \\$::' > "$tmpdepfile"
|
| sed '$ s: \\$::' > "$tmpdepfile"
|
||||||
rm -f "$depfile"
|
rm -f "$depfile"
|
||||||
echo "$object : \\" > "$depfile"
|
echo "$object : \\" > "$depfile"
|
||||||
cat < "$tmpdepfile" >> "$depfile"
|
cat < "$tmpdepfile" >> "$depfile"
|
||||||
|
@ -533,35 +718,56 @@ cpp)
|
||||||
|
|
||||||
msvisualcpp)
|
msvisualcpp)
|
||||||
# Important note: in order to support this mode, a compiler *must*
|
# Important note: in order to support this mode, a compiler *must*
|
||||||
# always write the preprocessed file to stdout, regardless of -o,
|
# always write the preprocessed file to stdout.
|
||||||
# because we must use -o when running libtool.
|
|
||||||
"$@" || exit $?
|
"$@" || exit $?
|
||||||
|
|
||||||
|
# Remove the call to Libtool.
|
||||||
|
if test "$libtool" = yes; then
|
||||||
|
while test "X$1" != 'X--mode=compile'; do
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
shift
|
||||||
|
fi
|
||||||
|
|
||||||
IFS=" "
|
IFS=" "
|
||||||
for arg
|
for arg
|
||||||
do
|
do
|
||||||
case "$arg" in
|
case "$arg" in
|
||||||
|
-o)
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
$object)
|
||||||
|
shift
|
||||||
|
;;
|
||||||
"-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
|
"-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
|
||||||
set fnord "$@"
|
set fnord "$@"
|
||||||
shift
|
shift
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
set fnord "$@" "$arg"
|
set fnord "$@" "$arg"
|
||||||
shift
|
shift
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
"$@" -E |
|
"$@" -E 2>/dev/null |
|
||||||
sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
|
sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
|
||||||
rm -f "$depfile"
|
rm -f "$depfile"
|
||||||
echo "$object : \\" > "$depfile"
|
echo "$object : \\" > "$depfile"
|
||||||
. "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
|
sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile"
|
||||||
echo " " >> "$depfile"
|
echo "$tab" >> "$depfile"
|
||||||
. "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
|
sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
|
||||||
rm -f "$tmpdepfile"
|
rm -f "$tmpdepfile"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
msvcmsys)
|
||||||
|
# This case exists only to let depend.m4 do its work. It works by
|
||||||
|
# looking at the text of this script. This case will never be run,
|
||||||
|
# since it is checked for above.
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
|
||||||
none)
|
none)
|
||||||
exec "$@"
|
exec "$@"
|
||||||
;;
|
;;
|
||||||
|
@ -580,5 +786,6 @@ exit 0
|
||||||
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||||
# time-stamp-start: "scriptversion="
|
# time-stamp-start: "scriptversion="
|
||||||
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||||
# time-stamp-end: "$"
|
# time-stamp-time-zone: "UTC"
|
||||||
|
# time-stamp-end: "; # UTC"
|
||||||
# End:
|
# End:
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* $Xorg: iceauth.c,v 1.4 2001/02/09 02:05:31 xorgcvs Exp $
|
|
||||||
*
|
|
||||||
* xauth - manipulate authorization file
|
* xauth - manipulate authorization file
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
|
@ -29,7 +27,6 @@ in this Software without prior written authorization from The Open Group.
|
||||||
* Original Author of "xauth" : Jim Fulton, MIT X Consortium
|
* Original Author of "xauth" : Jim Fulton, MIT X Consortium
|
||||||
* Modified into "iceauth" : Ralph Mor, X Consortium
|
* Modified into "iceauth" : Ralph Mor, X Consortium
|
||||||
*/
|
*/
|
||||||
/* $XFree86: xc/programs/iceauth/iceauth.c,v 1.4 2001/01/17 23:44:54 dawes Exp $ */
|
|
||||||
|
|
||||||
#include "iceauth.h"
|
#include "iceauth.h"
|
||||||
|
|
||||||
|
@ -47,7 +44,7 @@ Bool break_locks = False; /* for error recovery */
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static char *authfilename = NULL; /* filename of cookie file */
|
static char *authfilename = NULL; /* filename of cookie file */
|
||||||
static char *defcmds[] = { "source", "-", NULL }; /* default command */
|
static const char *defcmds[] = { "source", "-", NULL }; /* default command */
|
||||||
static int ndefcmds = 2;
|
static int ndefcmds = 2;
|
||||||
static const char *defsource = "(stdin)";
|
static const char *defsource = "(stdin)";
|
||||||
|
|
||||||
|
@ -55,7 +52,8 @@ static const char *defsource = "(stdin)";
|
||||||
/*
|
/*
|
||||||
* utility routines
|
* utility routines
|
||||||
*/
|
*/
|
||||||
static void usage (void)
|
static void _X_NORETURN
|
||||||
|
usage (int exitcode)
|
||||||
{
|
{
|
||||||
static const char prefixmsg[] =
|
static const char prefixmsg[] =
|
||||||
"\n"
|
"\n"
|
||||||
|
@ -65,6 +63,7 @@ static void usage (void)
|
||||||
" -q turn off extra messages\n"
|
" -q turn off extra messages\n"
|
||||||
" -i ignore locks on authority file\n"
|
" -i ignore locks on authority file\n"
|
||||||
" -b break locks on authority file\n"
|
" -b break locks on authority file\n"
|
||||||
|
" -V print version and exit\n"
|
||||||
"\n"
|
"\n"
|
||||||
"and commands have the following syntax:\n";
|
"and commands have the following syntax:\n";
|
||||||
static const char suffixmsg[] =
|
static const char suffixmsg[] =
|
||||||
|
@ -73,10 +72,10 @@ static void usage (void)
|
||||||
|
|
||||||
fprintf (stderr, "usage: %s [-options ...] [command arg ...]\n",
|
fprintf (stderr, "usage: %s [-options ...] [command arg ...]\n",
|
||||||
ProgramName);
|
ProgramName);
|
||||||
fprintf (stderr, "%s\n", prefixmsg);
|
fprintf (stderr, "%s", prefixmsg);
|
||||||
print_help (stderr, " "); /* match prefix indentation */
|
print_help (stderr, NULL);
|
||||||
fprintf (stderr, "\n%s\n", suffixmsg);
|
fprintf (stderr, "\n%s\n", suffixmsg);
|
||||||
exit (1);
|
exit (exitcode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -88,24 +87,31 @@ main (int argc, char *argv[])
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
const char *sourcename = defsource;
|
const char *sourcename = defsource;
|
||||||
char **arglist = defcmds;
|
const char **arglist = defcmds;
|
||||||
int nargs = ndefcmds;
|
int nargs = ndefcmds;
|
||||||
int status;
|
int status;
|
||||||
|
|
||||||
ProgramName = argv[0];
|
ProgramName = argv[0];
|
||||||
|
|
||||||
for (i = 1; i < argc; i++) {
|
for (i = 1; i < argc; i++) {
|
||||||
char *arg = argv[i];
|
const char *arg = argv[i];
|
||||||
|
|
||||||
if (arg[0] == '-') {
|
if (arg[0] == '-') {
|
||||||
char *flag;
|
const char *flag;
|
||||||
|
|
||||||
for (flag = (arg + 1); *flag; flag++) {
|
for (flag = (arg + 1); *flag; flag++) {
|
||||||
switch (*flag) {
|
switch (*flag) {
|
||||||
case 'f': /* -f authfilename */
|
case 'f': /* -f authfilename */
|
||||||
if (++i >= argc) usage ();
|
if (++i >= argc) {
|
||||||
|
fprintf(stderr, "%s: -f requires an argument\n",
|
||||||
|
ProgramName);
|
||||||
|
usage (1);
|
||||||
|
}
|
||||||
authfilename = argv[i];
|
authfilename = argv[i];
|
||||||
continue;
|
continue;
|
||||||
|
case 'V': /* -V */
|
||||||
|
printf("%s\n", PACKAGE_STRING);
|
||||||
|
exit(0);
|
||||||
case 'v': /* -v */
|
case 'v': /* -v */
|
||||||
verbose = 1;
|
verbose = 1;
|
||||||
continue;
|
continue;
|
||||||
|
@ -118,14 +124,18 @@ main (int argc, char *argv[])
|
||||||
case 'i': /* -i */
|
case 'i': /* -i */
|
||||||
ignore_locks = True;
|
ignore_locks = True;
|
||||||
continue;
|
continue;
|
||||||
|
case 'u': /* -u */
|
||||||
|
usage (0);
|
||||||
default:
|
default:
|
||||||
usage ();
|
fprintf(stderr, "%s: unrecognized option '%s'\n",
|
||||||
|
ProgramName, flag);
|
||||||
|
usage (1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
sourcename = "(argv)";
|
sourcename = "(argv)";
|
||||||
nargs = argc - i;
|
nargs = argc - i;
|
||||||
arglist = argv + i;
|
arglist = (const char **) argv + i;
|
||||||
if (verbose == -1) verbose = 0;
|
if (verbose == -1) verbose = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* $Xorg: iceauth.h,v 1.4 2001/02/09 02:05:31 xorgcvs Exp $
|
|
||||||
*
|
|
||||||
*
|
*
|
||||||
Copyright 1989, 1998 The Open Group
|
Copyright 1989, 1998 The Open Group
|
||||||
|
|
||||||
|
@ -27,8 +25,6 @@ in this Software without prior written authorization from The Open Group.
|
||||||
* Author: Jim Fulton, MIT X Consortium
|
* Author: Jim Fulton, MIT X Consortium
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $XFree86: xc/programs/iceauth/iceauth.h,v 3.4 2001/07/25 15:05:13 dawes Exp $ */
|
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
@ -51,7 +47,7 @@ extern const char *ProgramName;
|
||||||
|
|
||||||
extern int auth_initialize ( char *authfilename );
|
extern int auth_initialize ( char *authfilename );
|
||||||
extern int auth_finalize ( void );
|
extern int auth_finalize ( void );
|
||||||
extern int process_command ( const char *inputfilename, int lineno, int argc, char **argv );
|
extern int process_command ( const char *inputfilename, int lineno, int argc, const char **argv );
|
||||||
extern int print_help ( FILE *fp, const char *cmd );
|
extern int print_help ( FILE *fp, const char *cmd );
|
||||||
|
|
||||||
extern int verbose;
|
extern int verbose;
|
||||||
|
|
|
@ -1,43 +0,0 @@
|
||||||
.\" $Xorg: iceauth.man,v 1.4 2001/02/09 02:05:31 xorgcvs Exp $
|
|
||||||
.\" Copyright 1994, 1998 The Open Group
|
|
||||||
.\"
|
|
||||||
.\" Permission to use, copy, modify, distribute, and sell this software and its
|
|
||||||
.\" documentation for any purpose is hereby granted without fee, provided that
|
|
||||||
.\" the above copyright notice appear in all copies and that both that
|
|
||||||
.\" copyright notice and this permission notice appear in supporting
|
|
||||||
.\" documentation.
|
|
||||||
.\"
|
|
||||||
.\" The above copyright notice and this permission notice shall be included in
|
|
||||||
.\" all copies or substantial portions of the Software.
|
|
||||||
.\"
|
|
||||||
.\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
.\" IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
.\" FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
||||||
.\" THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
||||||
.\" WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
|
|
||||||
.\" OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
||||||
.\" SOFTWARE.
|
|
||||||
.\"
|
|
||||||
.\" Except as contained in this notice, the name of The Open Group shall not
|
|
||||||
.\" be used in advertising or otherwise to promote the sale, use or other
|
|
||||||
.\" dealing in this Software without prior written authorization from the
|
|
||||||
.\" The Open Group.
|
|
||||||
.\"
|
|
||||||
.\" $XFree86: xc/programs/iceauth/iceauth.man,v 3.6 2001/01/27 18:21:03 dawes Exp $
|
|
||||||
.\"
|
|
||||||
.TH ICEAUTH 1 __xorgversion__
|
|
||||||
.SH NAME
|
|
||||||
iceauth \- ICE authority file utility
|
|
||||||
.SH SYNOPSIS
|
|
||||||
.B iceauth
|
|
||||||
[ \fB\-f\fP \fIauthfile\fP ] [ \fB\-vqib\fP ] [ \fIcommand arg ...\fP ]
|
|
||||||
.SH DESCRIPTION
|
|
||||||
.PP
|
|
||||||
The \fIiceauth\fP program is used to edit and display the authorization
|
|
||||||
information used in connecting with ICE. This program is usually
|
|
||||||
used to extract authorization records from one machine and merge them in on
|
|
||||||
another (as is the case when using remote logins or granting access to
|
|
||||||
other users). Commands (described below) may be entered interactively,
|
|
||||||
on the \fIiceauth\fP command line, or in scripts.
|
|
||||||
.SH AUTHOR
|
|
||||||
Ralph Mor, X Consortium
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# install - install a program, script, or datafile
|
# install - install a program, script, or datafile
|
||||||
|
|
||||||
scriptversion=2006-10-14.15
|
scriptversion=2013-12-25.23; # UTC
|
||||||
|
|
||||||
# This originates from X11R5 (mit/util/scripts/install.sh), which was
|
# This originates from X11R5 (mit/util/scripts/install.sh), which was
|
||||||
# later released in X11R6 (xc/config/util/install.sh) with the
|
# later released in X11R6 (xc/config/util/install.sh) with the
|
||||||
|
@ -35,57 +35,57 @@ scriptversion=2006-10-14.15
|
||||||
# FSF changes to this file are in the public domain.
|
# FSF changes to this file are in the public domain.
|
||||||
#
|
#
|
||||||
# Calling this script install-sh is preferred over install.sh, to prevent
|
# Calling this script install-sh is preferred over install.sh, to prevent
|
||||||
# `make' implicit rules from creating a file called install from it
|
# 'make' implicit rules from creating a file called install from it
|
||||||
# when there is no Makefile.
|
# when there is no Makefile.
|
||||||
#
|
#
|
||||||
# This script is compatible with the BSD install script, but was written
|
# This script is compatible with the BSD install script, but was written
|
||||||
# from scratch.
|
# from scratch.
|
||||||
|
|
||||||
|
tab=' '
|
||||||
nl='
|
nl='
|
||||||
'
|
'
|
||||||
IFS=" "" $nl"
|
IFS=" $tab$nl"
|
||||||
|
|
||||||
# set DOITPROG to echo to test this script
|
# Set DOITPROG to "echo" to test this script.
|
||||||
|
|
||||||
# Don't use :- since 4.3BSD and earlier shells don't like it.
|
doit=${DOITPROG-}
|
||||||
doit="${DOITPROG-}"
|
doit_exec=${doit:-exec}
|
||||||
if test -z "$doit"; then
|
|
||||||
doit_exec=exec
|
|
||||||
else
|
|
||||||
doit_exec=$doit
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Put in absolute file names if you don't have them in your path;
|
# Put in absolute file names if you don't have them in your path;
|
||||||
# or use environment vars.
|
# or use environment vars.
|
||||||
|
|
||||||
mvprog="${MVPROG-mv}"
|
chgrpprog=${CHGRPPROG-chgrp}
|
||||||
cpprog="${CPPROG-cp}"
|
chmodprog=${CHMODPROG-chmod}
|
||||||
chmodprog="${CHMODPROG-chmod}"
|
chownprog=${CHOWNPROG-chown}
|
||||||
chownprog="${CHOWNPROG-chown}"
|
cmpprog=${CMPPROG-cmp}
|
||||||
chgrpprog="${CHGRPPROG-chgrp}"
|
cpprog=${CPPROG-cp}
|
||||||
stripprog="${STRIPPROG-strip}"
|
mkdirprog=${MKDIRPROG-mkdir}
|
||||||
rmprog="${RMPROG-rm}"
|
mvprog=${MVPROG-mv}
|
||||||
mkdirprog="${MKDIRPROG-mkdir}"
|
rmprog=${RMPROG-rm}
|
||||||
|
stripprog=${STRIPPROG-strip}
|
||||||
|
|
||||||
posix_glob=
|
|
||||||
posix_mkdir=
|
posix_mkdir=
|
||||||
|
|
||||||
# Desired mode of installed file.
|
# Desired mode of installed file.
|
||||||
mode=0755
|
mode=0755
|
||||||
|
|
||||||
|
chgrpcmd=
|
||||||
chmodcmd=$chmodprog
|
chmodcmd=$chmodprog
|
||||||
chowncmd=
|
chowncmd=
|
||||||
chgrpcmd=
|
mvcmd=$mvprog
|
||||||
stripcmd=
|
|
||||||
rmcmd="$rmprog -f"
|
rmcmd="$rmprog -f"
|
||||||
mvcmd="$mvprog"
|
stripcmd=
|
||||||
|
|
||||||
src=
|
src=
|
||||||
dst=
|
dst=
|
||||||
dir_arg=
|
dir_arg=
|
||||||
dstarg=
|
dst_arg=
|
||||||
no_target_directory=
|
|
||||||
|
|
||||||
usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
|
copy_on_change=false
|
||||||
|
is_target_a_directory=possibly
|
||||||
|
|
||||||
|
usage="\
|
||||||
|
Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
|
||||||
or: $0 [OPTION]... SRCFILES... DIRECTORY
|
or: $0 [OPTION]... SRCFILES... DIRECTORY
|
||||||
or: $0 [OPTION]... -t DIRECTORY SRCFILES...
|
or: $0 [OPTION]... -t DIRECTORY SRCFILES...
|
||||||
or: $0 [OPTION]... -d DIRECTORIES...
|
or: $0 [OPTION]... -d DIRECTORIES...
|
||||||
|
@ -95,91 +95,101 @@ In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
|
||||||
In the 4th, create DIRECTORIES.
|
In the 4th, create DIRECTORIES.
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
-c (ignored)
|
--help display this help and exit.
|
||||||
-d create directories instead of installing files.
|
--version display version info and exit.
|
||||||
-g GROUP $chgrpprog installed files to GROUP.
|
|
||||||
-m MODE $chmodprog installed files to MODE.
|
-c (ignored)
|
||||||
-o USER $chownprog installed files to USER.
|
-C install only if different (preserve the last data modification time)
|
||||||
-s $stripprog installed files.
|
-d create directories instead of installing files.
|
||||||
-t DIRECTORY install into DIRECTORY.
|
-g GROUP $chgrpprog installed files to GROUP.
|
||||||
-T report an error if DSTFILE is a directory.
|
-m MODE $chmodprog installed files to MODE.
|
||||||
--help display this help and exit.
|
-o USER $chownprog installed files to USER.
|
||||||
--version display version info and exit.
|
-s $stripprog installed files.
|
||||||
|
-t DIRECTORY install into DIRECTORY.
|
||||||
|
-T report an error if DSTFILE is a directory.
|
||||||
|
|
||||||
Environment variables override the default commands:
|
Environment variables override the default commands:
|
||||||
CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG
|
CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
|
||||||
|
RMPROG STRIPPROG
|
||||||
"
|
"
|
||||||
|
|
||||||
while test $# -ne 0; do
|
while test $# -ne 0; do
|
||||||
case $1 in
|
case $1 in
|
||||||
-c) shift
|
-c) ;;
|
||||||
continue;;
|
|
||||||
|
|
||||||
-d) dir_arg=true
|
-C) copy_on_change=true;;
|
||||||
shift
|
|
||||||
continue;;
|
-d) dir_arg=true;;
|
||||||
|
|
||||||
-g) chgrpcmd="$chgrpprog $2"
|
-g) chgrpcmd="$chgrpprog $2"
|
||||||
shift
|
shift;;
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
|
|
||||||
--help) echo "$usage"; exit $?;;
|
--help) echo "$usage"; exit $?;;
|
||||||
|
|
||||||
-m) mode=$2
|
-m) mode=$2
|
||||||
shift
|
case $mode in
|
||||||
shift
|
*' '* | *"$tab"* | *"$nl"* | *'*'* | *'?'* | *'['*)
|
||||||
case $mode in
|
echo "$0: invalid mode: $mode" >&2
|
||||||
*' '* | *' '* | *'
|
exit 1;;
|
||||||
'* | *'*'* | *'?'* | *'['*)
|
esac
|
||||||
echo "$0: invalid mode: $mode" >&2
|
shift;;
|
||||||
exit 1;;
|
|
||||||
esac
|
|
||||||
continue;;
|
|
||||||
|
|
||||||
-o) chowncmd="$chownprog $2"
|
-o) chowncmd="$chownprog $2"
|
||||||
shift
|
shift;;
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
|
|
||||||
-s) stripcmd=$stripprog
|
-s) stripcmd=$stripprog;;
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
|
|
||||||
-t) dstarg=$2
|
-t)
|
||||||
shift
|
is_target_a_directory=always
|
||||||
shift
|
dst_arg=$2
|
||||||
continue;;
|
# Protect names problematic for 'test' and other utilities.
|
||||||
|
case $dst_arg in
|
||||||
|
-* | [=\(\)!]) dst_arg=./$dst_arg;;
|
||||||
|
esac
|
||||||
|
shift;;
|
||||||
|
|
||||||
-T) no_target_directory=true
|
-T) is_target_a_directory=never;;
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
|
|
||||||
--version) echo "$0 $scriptversion"; exit $?;;
|
--version) echo "$0 $scriptversion"; exit $?;;
|
||||||
|
|
||||||
--) shift
|
--) shift
|
||||||
break;;
|
break;;
|
||||||
|
|
||||||
-*) echo "$0: invalid option: $1" >&2
|
-*) echo "$0: invalid option: $1" >&2
|
||||||
exit 1;;
|
exit 1;;
|
||||||
|
|
||||||
*) break;;
|
*) break;;
|
||||||
esac
|
esac
|
||||||
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
if test $# -ne 0 && test -z "$dir_arg$dstarg"; then
|
# We allow the use of options -d and -T together, by making -d
|
||||||
|
# take the precedence; this is for compatibility with GNU install.
|
||||||
|
|
||||||
|
if test -n "$dir_arg"; then
|
||||||
|
if test -n "$dst_arg"; then
|
||||||
|
echo "$0: target directory not allowed when installing a directory." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
|
||||||
# When -d is used, all remaining arguments are directories to create.
|
# When -d is used, all remaining arguments are directories to create.
|
||||||
# When -t is used, the destination is already specified.
|
# When -t is used, the destination is already specified.
|
||||||
# Otherwise, the last argument is the destination. Remove it from $@.
|
# Otherwise, the last argument is the destination. Remove it from $@.
|
||||||
for arg
|
for arg
|
||||||
do
|
do
|
||||||
if test -n "$dstarg"; then
|
if test -n "$dst_arg"; then
|
||||||
# $@ is not empty: it contains at least $arg.
|
# $@ is not empty: it contains at least $arg.
|
||||||
set fnord "$@" "$dstarg"
|
set fnord "$@" "$dst_arg"
|
||||||
shift # fnord
|
shift # fnord
|
||||||
fi
|
fi
|
||||||
shift # arg
|
shift # arg
|
||||||
dstarg=$arg
|
dst_arg=$arg
|
||||||
|
# Protect names problematic for 'test' and other utilities.
|
||||||
|
case $dst_arg in
|
||||||
|
-* | [=\(\)!]) dst_arg=./$dst_arg;;
|
||||||
|
esac
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -188,13 +198,26 @@ if test $# -eq 0; then
|
||||||
echo "$0: no input file specified." >&2
|
echo "$0: no input file specified." >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
# It's OK to call `install-sh -d' without argument.
|
# It's OK to call 'install-sh -d' without argument.
|
||||||
# This can happen when creating conditional directories.
|
# This can happen when creating conditional directories.
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test -z "$dir_arg"; then
|
if test -z "$dir_arg"; then
|
||||||
trap '(exit $?); exit' 1 2 13 15
|
if test $# -gt 1 || test "$is_target_a_directory" = always; then
|
||||||
|
if test ! -d "$dst_arg"; then
|
||||||
|
echo "$0: $dst_arg: Is not a directory." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test -z "$dir_arg"; then
|
||||||
|
do_exit='(exit $ret); exit $ret'
|
||||||
|
trap "ret=129; $do_exit" 1
|
||||||
|
trap "ret=130; $do_exit" 2
|
||||||
|
trap "ret=141; $do_exit" 13
|
||||||
|
trap "ret=143; $do_exit" 15
|
||||||
|
|
||||||
# Set umask so as not to create temps with too-generous modes.
|
# Set umask so as not to create temps with too-generous modes.
|
||||||
# However, 'strip' requires both read and write access to temps.
|
# However, 'strip' requires both read and write access to temps.
|
||||||
|
@ -205,16 +228,16 @@ if test -z "$dir_arg"; then
|
||||||
|
|
||||||
*[0-7])
|
*[0-7])
|
||||||
if test -z "$stripcmd"; then
|
if test -z "$stripcmd"; then
|
||||||
u_plus_rw=
|
u_plus_rw=
|
||||||
else
|
else
|
||||||
u_plus_rw='% 200'
|
u_plus_rw='% 200'
|
||||||
fi
|
fi
|
||||||
cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
|
cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
|
||||||
*)
|
*)
|
||||||
if test -z "$stripcmd"; then
|
if test -z "$stripcmd"; then
|
||||||
u_plus_rw=
|
u_plus_rw=
|
||||||
else
|
else
|
||||||
u_plus_rw=,u+rw
|
u_plus_rw=,u+rw
|
||||||
fi
|
fi
|
||||||
cp_umask=$mode$u_plus_rw;;
|
cp_umask=$mode$u_plus_rw;;
|
||||||
esac
|
esac
|
||||||
|
@ -222,9 +245,9 @@ fi
|
||||||
|
|
||||||
for src
|
for src
|
||||||
do
|
do
|
||||||
# Protect names starting with `-'.
|
# Protect names problematic for 'test' and other utilities.
|
||||||
case $src in
|
case $src in
|
||||||
-*) src=./$src ;;
|
-* | [=\(\)!]) src=./$src;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if test -n "$dir_arg"; then
|
if test -n "$dir_arg"; then
|
||||||
|
@ -242,55 +265,24 @@ do
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test -z "$dstarg"; then
|
if test -z "$dst_arg"; then
|
||||||
echo "$0: no destination specified." >&2
|
echo "$0: no destination specified." >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
dst=$dst_arg
|
||||||
dst=$dstarg
|
|
||||||
# Protect names starting with `-'.
|
|
||||||
case $dst in
|
|
||||||
-*) dst=./$dst ;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# If destination is a directory, append the input filename; won't work
|
# If destination is a directory, append the input filename; won't work
|
||||||
# if double slashes aren't ignored.
|
# if double slashes aren't ignored.
|
||||||
if test -d "$dst"; then
|
if test -d "$dst"; then
|
||||||
if test -n "$no_target_directory"; then
|
if test "$is_target_a_directory" = never; then
|
||||||
echo "$0: $dstarg: Is a directory" >&2
|
echo "$0: $dst_arg: Is a directory" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
dstdir=$dst
|
dstdir=$dst
|
||||||
dst=$dstdir/`basename "$src"`
|
dst=$dstdir/`basename "$src"`
|
||||||
dstdir_status=0
|
dstdir_status=0
|
||||||
else
|
else
|
||||||
# Prefer dirname, but fall back on a substitute if dirname fails.
|
dstdir=`dirname "$dst"`
|
||||||
dstdir=`
|
|
||||||
(dirname "$dst") 2>/dev/null ||
|
|
||||||
expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
|
||||||
X"$dst" : 'X\(//\)[^/]' \| \
|
|
||||||
X"$dst" : 'X\(//\)$' \| \
|
|
||||||
X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
|
|
||||||
echo X"$dst" |
|
|
||||||
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
|
||||||
s//\1/
|
|
||||||
q
|
|
||||||
}
|
|
||||||
/^X\(\/\/\)[^/].*/{
|
|
||||||
s//\1/
|
|
||||||
q
|
|
||||||
}
|
|
||||||
/^X\(\/\/\)$/{
|
|
||||||
s//\1/
|
|
||||||
q
|
|
||||||
}
|
|
||||||
/^X\(\/\).*/{
|
|
||||||
s//\1/
|
|
||||||
q
|
|
||||||
}
|
|
||||||
s/.*/./; q'
|
|
||||||
`
|
|
||||||
|
|
||||||
test -d "$dstdir"
|
test -d "$dstdir"
|
||||||
dstdir_status=$?
|
dstdir_status=$?
|
||||||
fi
|
fi
|
||||||
|
@ -301,74 +293,74 @@ do
|
||||||
if test $dstdir_status != 0; then
|
if test $dstdir_status != 0; then
|
||||||
case $posix_mkdir in
|
case $posix_mkdir in
|
||||||
'')
|
'')
|
||||||
# Create intermediate dirs using mode 755 as modified by the umask.
|
# Create intermediate dirs using mode 755 as modified by the umask.
|
||||||
# This is like FreeBSD 'install' as of 1997-10-28.
|
# This is like FreeBSD 'install' as of 1997-10-28.
|
||||||
umask=`umask`
|
umask=`umask`
|
||||||
case $stripcmd.$umask in
|
case $stripcmd.$umask in
|
||||||
# Optimize common cases.
|
# Optimize common cases.
|
||||||
*[2367][2367]) mkdir_umask=$umask;;
|
*[2367][2367]) mkdir_umask=$umask;;
|
||||||
.*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
|
.*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
|
||||||
|
|
||||||
*[0-7])
|
*[0-7])
|
||||||
mkdir_umask=`expr $umask + 22 \
|
mkdir_umask=`expr $umask + 22 \
|
||||||
- $umask % 100 % 40 + $umask % 20 \
|
- $umask % 100 % 40 + $umask % 20 \
|
||||||
- $umask % 10 % 4 + $umask % 2
|
- $umask % 10 % 4 + $umask % 2
|
||||||
`;;
|
`;;
|
||||||
*) mkdir_umask=$umask,go-w;;
|
*) mkdir_umask=$umask,go-w;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# With -d, create the new directory with the user-specified mode.
|
# With -d, create the new directory with the user-specified mode.
|
||||||
# Otherwise, rely on $mkdir_umask.
|
# Otherwise, rely on $mkdir_umask.
|
||||||
if test -n "$dir_arg"; then
|
if test -n "$dir_arg"; then
|
||||||
mkdir_mode=-m$mode
|
mkdir_mode=-m$mode
|
||||||
else
|
else
|
||||||
mkdir_mode=
|
mkdir_mode=
|
||||||
fi
|
fi
|
||||||
|
|
||||||
posix_mkdir=false
|
posix_mkdir=false
|
||||||
case $umask in
|
case $umask in
|
||||||
*[123567][0-7][0-7])
|
*[123567][0-7][0-7])
|
||||||
# POSIX mkdir -p sets u+wx bits regardless of umask, which
|
# POSIX mkdir -p sets u+wx bits regardless of umask, which
|
||||||
# is incompatible with FreeBSD 'install' when (umask & 300) != 0.
|
# is incompatible with FreeBSD 'install' when (umask & 300) != 0.
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
|
tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
|
||||||
trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
|
trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
|
||||||
|
|
||||||
if (umask $mkdir_umask &&
|
if (umask $mkdir_umask &&
|
||||||
exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
|
exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
|
||||||
then
|
then
|
||||||
if test -z "$dir_arg" || {
|
if test -z "$dir_arg" || {
|
||||||
# Check for POSIX incompatibilities with -m.
|
# Check for POSIX incompatibilities with -m.
|
||||||
# HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
|
# HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
|
||||||
# other-writeable bit of parent directory when it shouldn't.
|
# other-writable bit of parent directory when it shouldn't.
|
||||||
# FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
|
# FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
|
||||||
ls_ld_tmpdir=`ls -ld "$tmpdir"`
|
ls_ld_tmpdir=`ls -ld "$tmpdir"`
|
||||||
case $ls_ld_tmpdir in
|
case $ls_ld_tmpdir in
|
||||||
d????-?r-*) different_mode=700;;
|
d????-?r-*) different_mode=700;;
|
||||||
d????-?--*) different_mode=755;;
|
d????-?--*) different_mode=755;;
|
||||||
*) false;;
|
*) false;;
|
||||||
esac &&
|
esac &&
|
||||||
$mkdirprog -m$different_mode -p -- "$tmpdir" && {
|
$mkdirprog -m$different_mode -p -- "$tmpdir" && {
|
||||||
ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
|
ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
|
||||||
test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
|
test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
then posix_mkdir=:
|
then posix_mkdir=:
|
||||||
fi
|
fi
|
||||||
rmdir "$tmpdir/d" "$tmpdir"
|
rmdir "$tmpdir/d" "$tmpdir"
|
||||||
else
|
else
|
||||||
# Remove any dirs left behind by ancient mkdir implementations.
|
# Remove any dirs left behind by ancient mkdir implementations.
|
||||||
rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
|
rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
|
||||||
fi
|
fi
|
||||||
trap '' 0;;
|
trap '' 0;;
|
||||||
esac;;
|
esac;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if
|
if
|
||||||
$posix_mkdir && (
|
$posix_mkdir && (
|
||||||
umask $mkdir_umask &&
|
umask $mkdir_umask &&
|
||||||
$doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
|
$doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
|
||||||
)
|
)
|
||||||
then :
|
then :
|
||||||
else
|
else
|
||||||
|
@ -378,60 +370,51 @@ do
|
||||||
# directory the slow way, step by step, checking for races as we go.
|
# directory the slow way, step by step, checking for races as we go.
|
||||||
|
|
||||||
case $dstdir in
|
case $dstdir in
|
||||||
/*) prefix=/ ;;
|
/*) prefix='/';;
|
||||||
-*) prefix=./ ;;
|
[-=\(\)!]*) prefix='./';;
|
||||||
*) prefix= ;;
|
*) prefix='';;
|
||||||
esac
|
|
||||||
|
|
||||||
case $posix_glob in
|
|
||||||
'')
|
|
||||||
if (set -f) 2>/dev/null; then
|
|
||||||
posix_glob=true
|
|
||||||
else
|
|
||||||
posix_glob=false
|
|
||||||
fi ;;
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
oIFS=$IFS
|
oIFS=$IFS
|
||||||
IFS=/
|
IFS=/
|
||||||
$posix_glob && set -f
|
set -f
|
||||||
set fnord $dstdir
|
set fnord $dstdir
|
||||||
shift
|
shift
|
||||||
$posix_glob && set +f
|
set +f
|
||||||
IFS=$oIFS
|
IFS=$oIFS
|
||||||
|
|
||||||
prefixes=
|
prefixes=
|
||||||
|
|
||||||
for d
|
for d
|
||||||
do
|
do
|
||||||
test -z "$d" && continue
|
test X"$d" = X && continue
|
||||||
|
|
||||||
prefix=$prefix$d
|
prefix=$prefix$d
|
||||||
if test -d "$prefix"; then
|
if test -d "$prefix"; then
|
||||||
prefixes=
|
prefixes=
|
||||||
else
|
else
|
||||||
if $posix_mkdir; then
|
if $posix_mkdir; then
|
||||||
(umask=$mkdir_umask &&
|
(umask=$mkdir_umask &&
|
||||||
$doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
|
$doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
|
||||||
# Don't fail if two instances are running concurrently.
|
# Don't fail if two instances are running concurrently.
|
||||||
test -d "$prefix" || exit 1
|
test -d "$prefix" || exit 1
|
||||||
else
|
else
|
||||||
case $prefix in
|
case $prefix in
|
||||||
*\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
|
*\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
|
||||||
*) qprefix=$prefix;;
|
*) qprefix=$prefix;;
|
||||||
esac
|
esac
|
||||||
prefixes="$prefixes '$qprefix'"
|
prefixes="$prefixes '$qprefix'"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
prefix=$prefix/
|
prefix=$prefix/
|
||||||
done
|
done
|
||||||
|
|
||||||
if test -n "$prefixes"; then
|
if test -n "$prefixes"; then
|
||||||
# Don't fail if two instances are running concurrently.
|
# Don't fail if two instances are running concurrently.
|
||||||
(umask $mkdir_umask &&
|
(umask $mkdir_umask &&
|
||||||
eval "\$doit_exec \$mkdirprog $prefixes") ||
|
eval "\$doit_exec \$mkdirprog $prefixes") ||
|
||||||
test -d "$dstdir" || exit 1
|
test -d "$dstdir" || exit 1
|
||||||
obsolete_mkdir_used=true
|
obsolete_mkdir_used=true
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
@ -459,41 +442,51 @@ do
|
||||||
# ignore errors from any of these, just make sure not to ignore
|
# ignore errors from any of these, just make sure not to ignore
|
||||||
# errors from the above "$doit $cpprog $src $dsttmp" command.
|
# errors from the above "$doit $cpprog $src $dsttmp" command.
|
||||||
#
|
#
|
||||||
{ test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \
|
{ test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
|
||||||
&& { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \
|
{ test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
|
||||||
&& { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \
|
{ test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
|
||||||
&& { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
|
{ test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
|
||||||
|
|
||||||
# Now rename the file to the real destination.
|
# If -C, don't bother to copy if it wouldn't change the file.
|
||||||
{ $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null \
|
if $copy_on_change &&
|
||||||
|| {
|
old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
|
||||||
# The rename failed, perhaps because mv can't rename something else
|
new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
|
||||||
# to itself, or perhaps because mv is so ancient that it does not
|
set -f &&
|
||||||
# support -f.
|
set X $old && old=:$2:$4:$5:$6 &&
|
||||||
|
set X $new && new=:$2:$4:$5:$6 &&
|
||||||
|
set +f &&
|
||||||
|
test "$old" = "$new" &&
|
||||||
|
$cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
|
||||||
|
then
|
||||||
|
rm -f "$dsttmp"
|
||||||
|
else
|
||||||
|
# Rename the file to the real destination.
|
||||||
|
$doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
|
||||||
|
|
||||||
# Now remove or move aside any old file at destination location.
|
# The rename failed, perhaps because mv can't rename something else
|
||||||
# We try this two ways since rm can't unlink itself on some
|
# to itself, or perhaps because mv is so ancient that it does not
|
||||||
# systems and the destination file might be busy for other
|
# support -f.
|
||||||
# reasons. In this case, the final cleanup might fail but the new
|
{
|
||||||
# file should still install successfully.
|
# Now remove or move aside any old file at destination location.
|
||||||
{
|
# We try this two ways since rm can't unlink itself on some
|
||||||
if test -f "$dst"; then
|
# systems and the destination file might be busy for other
|
||||||
$doit $rmcmd -f "$dst" 2>/dev/null \
|
# reasons. In this case, the final cleanup might fail but the new
|
||||||
|| { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null \
|
# file should still install successfully.
|
||||||
&& { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }; }\
|
{
|
||||||
|| {
|
test ! -f "$dst" ||
|
||||||
echo "$0: cannot unlink or rename $dst" >&2
|
$doit $rmcmd -f "$dst" 2>/dev/null ||
|
||||||
(exit 1); exit 1
|
{ $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
|
||||||
}
|
{ $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
|
||||||
else
|
} ||
|
||||||
:
|
{ echo "$0: cannot unlink or rename $dst" >&2
|
||||||
fi
|
(exit 1); exit 1
|
||||||
} &&
|
}
|
||||||
|
} &&
|
||||||
|
|
||||||
# Now rename the file to the real destination.
|
# Now rename the file to the real destination.
|
||||||
$doit $mvcmd "$dsttmp" "$dst"
|
$doit $mvcmd "$dsttmp" "$dst"
|
||||||
}
|
}
|
||||||
} || exit 1
|
fi || exit 1
|
||||||
|
|
||||||
trap '' 0
|
trap '' 0
|
||||||
fi
|
fi
|
||||||
|
@ -503,5 +496,6 @@ done
|
||||||
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||||
# time-stamp-start: "scriptversion="
|
# time-stamp-start: "scriptversion="
|
||||||
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||||
# time-stamp-end: "$"
|
# time-stamp-time-zone: "UTC"
|
||||||
|
# time-stamp-end: "; # UTC"
|
||||||
# End:
|
# End:
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
|
||||||
|
appmandir = $(APP_MAN_DIR)
|
||||||
|
appman_PRE = iceauth.man
|
||||||
|
appman_DATA = $(appman_PRE:man=$(APP_MAN_SUFFIX))
|
||||||
|
|
||||||
|
EXTRA_DIST = $(appman_PRE)
|
||||||
|
CLEANFILES = $(appman_DATA)
|
||||||
|
SUFFIXES = .$(APP_MAN_SUFFIX) .man
|
||||||
|
|
||||||
|
# String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure
|
||||||
|
.man.$(APP_MAN_SUFFIX):
|
||||||
|
$(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
|
|
@ -0,0 +1,498 @@
|
||||||
|
# Makefile.in generated by automake 1.15 from Makefile.am.
|
||||||
|
# @configure_input@
|
||||||
|
|
||||||
|
# Copyright (C) 1994-2014 Free Software Foundation, Inc.
|
||||||
|
|
||||||
|
# This Makefile.in is free software; the Free Software Foundation
|
||||||
|
# gives unlimited permission to copy and/or distribute it,
|
||||||
|
# with or without modifications, as long as this notice is preserved.
|
||||||
|
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||||
|
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||||
|
# PARTICULAR PURPOSE.
|
||||||
|
|
||||||
|
@SET_MAKE@
|
||||||
|
|
||||||
|
VPATH = @srcdir@
|
||||||
|
am__is_gnu_make = { \
|
||||||
|
if test -z '$(MAKELEVEL)'; then \
|
||||||
|
false; \
|
||||||
|
elif test -n '$(MAKE_HOST)'; then \
|
||||||
|
true; \
|
||||||
|
elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
|
||||||
|
true; \
|
||||||
|
else \
|
||||||
|
false; \
|
||||||
|
fi; \
|
||||||
|
}
|
||||||
|
am__make_running_with_option = \
|
||||||
|
case $${target_option-} in \
|
||||||
|
?) ;; \
|
||||||
|
*) echo "am__make_running_with_option: internal error: invalid" \
|
||||||
|
"target option '$${target_option-}' specified" >&2; \
|
||||||
|
exit 1;; \
|
||||||
|
esac; \
|
||||||
|
has_opt=no; \
|
||||||
|
sane_makeflags=$$MAKEFLAGS; \
|
||||||
|
if $(am__is_gnu_make); then \
|
||||||
|
sane_makeflags=$$MFLAGS; \
|
||||||
|
else \
|
||||||
|
case $$MAKEFLAGS in \
|
||||||
|
*\\[\ \ ]*) \
|
||||||
|
bs=\\; \
|
||||||
|
sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
|
||||||
|
| sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
|
||||||
|
esac; \
|
||||||
|
fi; \
|
||||||
|
skip_next=no; \
|
||||||
|
strip_trailopt () \
|
||||||
|
{ \
|
||||||
|
flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
|
||||||
|
}; \
|
||||||
|
for flg in $$sane_makeflags; do \
|
||||||
|
test $$skip_next = yes && { skip_next=no; continue; }; \
|
||||||
|
case $$flg in \
|
||||||
|
*=*|--*) continue;; \
|
||||||
|
-*I) strip_trailopt 'I'; skip_next=yes;; \
|
||||||
|
-*I?*) strip_trailopt 'I';; \
|
||||||
|
-*O) strip_trailopt 'O'; skip_next=yes;; \
|
||||||
|
-*O?*) strip_trailopt 'O';; \
|
||||||
|
-*l) strip_trailopt 'l'; skip_next=yes;; \
|
||||||
|
-*l?*) strip_trailopt 'l';; \
|
||||||
|
-[dEDm]) skip_next=yes;; \
|
||||||
|
-[JT]) skip_next=yes;; \
|
||||||
|
esac; \
|
||||||
|
case $$flg in \
|
||||||
|
*$$target_option*) has_opt=yes; break;; \
|
||||||
|
esac; \
|
||||||
|
done; \
|
||||||
|
test $$has_opt = yes
|
||||||
|
am__make_dryrun = (target_option=n; $(am__make_running_with_option))
|
||||||
|
am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
|
||||||
|
pkgdatadir = $(datadir)/@PACKAGE@
|
||||||
|
pkgincludedir = $(includedir)/@PACKAGE@
|
||||||
|
pkglibdir = $(libdir)/@PACKAGE@
|
||||||
|
pkglibexecdir = $(libexecdir)/@PACKAGE@
|
||||||
|
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||||
|
install_sh_DATA = $(install_sh) -c -m 644
|
||||||
|
install_sh_PROGRAM = $(install_sh) -c
|
||||||
|
install_sh_SCRIPT = $(install_sh) -c
|
||||||
|
INSTALL_HEADER = $(INSTALL_DATA)
|
||||||
|
transform = $(program_transform_name)
|
||||||
|
NORMAL_INSTALL = :
|
||||||
|
PRE_INSTALL = :
|
||||||
|
POST_INSTALL = :
|
||||||
|
NORMAL_UNINSTALL = :
|
||||||
|
PRE_UNINSTALL = :
|
||||||
|
POST_UNINSTALL = :
|
||||||
|
build_triplet = @build@
|
||||||
|
host_triplet = @host@
|
||||||
|
subdir = man
|
||||||
|
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||||
|
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
|
||||||
|
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||||
|
$(ACLOCAL_M4)
|
||||||
|
DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
|
||||||
|
mkinstalldirs = $(install_sh) -d
|
||||||
|
CONFIG_HEADER = $(top_builddir)/config.h
|
||||||
|
CONFIG_CLEAN_FILES =
|
||||||
|
CONFIG_CLEAN_VPATH_FILES =
|
||||||
|
AM_V_P = $(am__v_P_@AM_V@)
|
||||||
|
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
|
||||||
|
am__v_P_0 = false
|
||||||
|
am__v_P_1 = :
|
||||||
|
AM_V_GEN = $(am__v_GEN_@AM_V@)
|
||||||
|
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
|
||||||
|
am__v_GEN_0 = @echo " GEN " $@;
|
||||||
|
am__v_GEN_1 =
|
||||||
|
AM_V_at = $(am__v_at_@AM_V@)
|
||||||
|
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
|
||||||
|
am__v_at_0 = @
|
||||||
|
am__v_at_1 =
|
||||||
|
SOURCES =
|
||||||
|
DIST_SOURCES =
|
||||||
|
am__can_run_installinfo = \
|
||||||
|
case $$AM_UPDATE_INFO_DIR in \
|
||||||
|
n|no|NO) false;; \
|
||||||
|
*) (install-info --version) >/dev/null 2>&1;; \
|
||||||
|
esac
|
||||||
|
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
|
||||||
|
am__vpath_adj = case $$p in \
|
||||||
|
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
||||||
|
*) f=$$p;; \
|
||||||
|
esac;
|
||||||
|
am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
|
||||||
|
am__install_max = 40
|
||||||
|
am__nobase_strip_setup = \
|
||||||
|
srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
|
||||||
|
am__nobase_strip = \
|
||||||
|
for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
|
||||||
|
am__nobase_list = $(am__nobase_strip_setup); \
|
||||||
|
for p in $$list; do echo "$$p $$p"; done | \
|
||||||
|
sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
|
||||||
|
$(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
|
||||||
|
if (++n[$$2] == $(am__install_max)) \
|
||||||
|
{ print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
|
||||||
|
END { for (dir in files) print dir, files[dir] }'
|
||||||
|
am__base_list = \
|
||||||
|
sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
|
||||||
|
sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
|
||||||
|
am__uninstall_files_from_dir = { \
|
||||||
|
test -z "$$files" \
|
||||||
|
|| { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
|
||||||
|
|| { echo " ( cd '$$dir' && rm -f" $$files ")"; \
|
||||||
|
$(am__cd) "$$dir" && rm -f $$files; }; \
|
||||||
|
}
|
||||||
|
am__installdirs = "$(DESTDIR)$(appmandir)"
|
||||||
|
DATA = $(appman_DATA)
|
||||||
|
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
|
||||||
|
am__DIST_COMMON = $(srcdir)/Makefile.in
|
||||||
|
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||||
|
ACLOCAL = @ACLOCAL@
|
||||||
|
ADMIN_MAN_DIR = @ADMIN_MAN_DIR@
|
||||||
|
ADMIN_MAN_SUFFIX = @ADMIN_MAN_SUFFIX@
|
||||||
|
AMTAR = @AMTAR@
|
||||||
|
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||||
|
APP_MAN_DIR = @APP_MAN_DIR@
|
||||||
|
APP_MAN_SUFFIX = @APP_MAN_SUFFIX@
|
||||||
|
AUTOCONF = @AUTOCONF@
|
||||||
|
AUTOHEADER = @AUTOHEADER@
|
||||||
|
AUTOMAKE = @AUTOMAKE@
|
||||||
|
AWK = @AWK@
|
||||||
|
BASE_CFLAGS = @BASE_CFLAGS@
|
||||||
|
CC = @CC@
|
||||||
|
CCDEPMODE = @CCDEPMODE@
|
||||||
|
CFLAGS = @CFLAGS@
|
||||||
|
CHANGELOG_CMD = @CHANGELOG_CMD@
|
||||||
|
CPP = @CPP@
|
||||||
|
CPPFLAGS = @CPPFLAGS@
|
||||||
|
CWARNFLAGS = @CWARNFLAGS@
|
||||||
|
CYGPATH_W = @CYGPATH_W@
|
||||||
|
DEFS = @DEFS@
|
||||||
|
DEPDIR = @DEPDIR@
|
||||||
|
DRIVER_MAN_DIR = @DRIVER_MAN_DIR@
|
||||||
|
DRIVER_MAN_SUFFIX = @DRIVER_MAN_SUFFIX@
|
||||||
|
ECHO_C = @ECHO_C@
|
||||||
|
ECHO_N = @ECHO_N@
|
||||||
|
ECHO_T = @ECHO_T@
|
||||||
|
EGREP = @EGREP@
|
||||||
|
EXEEXT = @EXEEXT@
|
||||||
|
FILE_MAN_DIR = @FILE_MAN_DIR@
|
||||||
|
FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@
|
||||||
|
GREP = @GREP@
|
||||||
|
ICEAUTH_CFLAGS = @ICEAUTH_CFLAGS@
|
||||||
|
ICEAUTH_LIBS = @ICEAUTH_LIBS@
|
||||||
|
INSTALL = @INSTALL@
|
||||||
|
INSTALL_CMD = @INSTALL_CMD@
|
||||||
|
INSTALL_DATA = @INSTALL_DATA@
|
||||||
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||||
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||||
|
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||||
|
LDFLAGS = @LDFLAGS@
|
||||||
|
LIBOBJS = @LIBOBJS@
|
||||||
|
LIBS = @LIBS@
|
||||||
|
LIB_MAN_DIR = @LIB_MAN_DIR@
|
||||||
|
LIB_MAN_SUFFIX = @LIB_MAN_SUFFIX@
|
||||||
|
LINT = @LINT@
|
||||||
|
LINT_FLAGS = @LINT_FLAGS@
|
||||||
|
LTLIBOBJS = @LTLIBOBJS@
|
||||||
|
MAKEINFO = @MAKEINFO@
|
||||||
|
MAN_SUBSTS = @MAN_SUBSTS@
|
||||||
|
MISC_MAN_DIR = @MISC_MAN_DIR@
|
||||||
|
MISC_MAN_SUFFIX = @MISC_MAN_SUFFIX@
|
||||||
|
MKDIR_P = @MKDIR_P@
|
||||||
|
OBJEXT = @OBJEXT@
|
||||||
|
PACKAGE = @PACKAGE@
|
||||||
|
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||||
|
PACKAGE_NAME = @PACKAGE_NAME@
|
||||||
|
PACKAGE_STRING = @PACKAGE_STRING@
|
||||||
|
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||||
|
PACKAGE_URL = @PACKAGE_URL@
|
||||||
|
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||||
|
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||||
|
PKG_CONFIG = @PKG_CONFIG@
|
||||||
|
PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
|
||||||
|
PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
|
||||||
|
SED = @SED@
|
||||||
|
SET_MAKE = @SET_MAKE@
|
||||||
|
SHELL = @SHELL@
|
||||||
|
STRICT_CFLAGS = @STRICT_CFLAGS@
|
||||||
|
STRIP = @STRIP@
|
||||||
|
VERSION = @VERSION@
|
||||||
|
XORG_MAN_PAGE = @XORG_MAN_PAGE@
|
||||||
|
abs_builddir = @abs_builddir@
|
||||||
|
abs_srcdir = @abs_srcdir@
|
||||||
|
abs_top_builddir = @abs_top_builddir@
|
||||||
|
abs_top_srcdir = @abs_top_srcdir@
|
||||||
|
ac_ct_CC = @ac_ct_CC@
|
||||||
|
am__include = @am__include@
|
||||||
|
am__leading_dot = @am__leading_dot@
|
||||||
|
am__quote = @am__quote@
|
||||||
|
am__tar = @am__tar@
|
||||||
|
am__untar = @am__untar@
|
||||||
|
bindir = @bindir@
|
||||||
|
build = @build@
|
||||||
|
build_alias = @build_alias@
|
||||||
|
build_cpu = @build_cpu@
|
||||||
|
build_os = @build_os@
|
||||||
|
build_vendor = @build_vendor@
|
||||||
|
builddir = @builddir@
|
||||||
|
datadir = @datadir@
|
||||||
|
datarootdir = @datarootdir@
|
||||||
|
docdir = @docdir@
|
||||||
|
dvidir = @dvidir@
|
||||||
|
exec_prefix = @exec_prefix@
|
||||||
|
host = @host@
|
||||||
|
host_alias = @host_alias@
|
||||||
|
host_cpu = @host_cpu@
|
||||||
|
host_os = @host_os@
|
||||||
|
host_vendor = @host_vendor@
|
||||||
|
htmldir = @htmldir@
|
||||||
|
includedir = @includedir@
|
||||||
|
infodir = @infodir@
|
||||||
|
install_sh = @install_sh@
|
||||||
|
libdir = @libdir@
|
||||||
|
libexecdir = @libexecdir@
|
||||||
|
localedir = @localedir@
|
||||||
|
localstatedir = @localstatedir@
|
||||||
|
mandir = @mandir@
|
||||||
|
mkdir_p = @mkdir_p@
|
||||||
|
oldincludedir = @oldincludedir@
|
||||||
|
pdfdir = @pdfdir@
|
||||||
|
prefix = @prefix@
|
||||||
|
program_transform_name = @program_transform_name@
|
||||||
|
psdir = @psdir@
|
||||||
|
sbindir = @sbindir@
|
||||||
|
sharedstatedir = @sharedstatedir@
|
||||||
|
srcdir = @srcdir@
|
||||||
|
sysconfdir = @sysconfdir@
|
||||||
|
target_alias = @target_alias@
|
||||||
|
top_build_prefix = @top_build_prefix@
|
||||||
|
top_builddir = @top_builddir@
|
||||||
|
top_srcdir = @top_srcdir@
|
||||||
|
appmandir = $(APP_MAN_DIR)
|
||||||
|
appman_PRE = iceauth.man
|
||||||
|
appman_DATA = $(appman_PRE:man=$(APP_MAN_SUFFIX))
|
||||||
|
EXTRA_DIST = $(appman_PRE)
|
||||||
|
CLEANFILES = $(appman_DATA)
|
||||||
|
SUFFIXES = .$(APP_MAN_SUFFIX) .man
|
||||||
|
all: all-am
|
||||||
|
|
||||||
|
.SUFFIXES:
|
||||||
|
.SUFFIXES: .$(APP_MAN_SUFFIX) .man
|
||||||
|
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
||||||
|
@for dep in $?; do \
|
||||||
|
case '$(am__configure_deps)' in \
|
||||||
|
*$$dep*) \
|
||||||
|
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
|
||||||
|
&& { if test -f $@; then exit 0; else break; fi; }; \
|
||||||
|
exit 1;; \
|
||||||
|
esac; \
|
||||||
|
done; \
|
||||||
|
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign man/Makefile'; \
|
||||||
|
$(am__cd) $(top_srcdir) && \
|
||||||
|
$(AUTOMAKE) --foreign man/Makefile
|
||||||
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||||
|
@case '$?' in \
|
||||||
|
*config.status*) \
|
||||||
|
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
||||||
|
*) \
|
||||||
|
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
|
||||||
|
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
||||||
|
esac;
|
||||||
|
|
||||||
|
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||||
|
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||||
|
|
||||||
|
$(top_srcdir)/configure: $(am__configure_deps)
|
||||||
|
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||||
|
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
||||||
|
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||||
|
$(am__aclocal_m4_deps):
|
||||||
|
install-appmanDATA: $(appman_DATA)
|
||||||
|
@$(NORMAL_INSTALL)
|
||||||
|
@list='$(appman_DATA)'; test -n "$(appmandir)" || list=; \
|
||||||
|
if test -n "$$list"; then \
|
||||||
|
echo " $(MKDIR_P) '$(DESTDIR)$(appmandir)'"; \
|
||||||
|
$(MKDIR_P) "$(DESTDIR)$(appmandir)" || exit 1; \
|
||||||
|
fi; \
|
||||||
|
for p in $$list; do \
|
||||||
|
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||||
|
echo "$$d$$p"; \
|
||||||
|
done | $(am__base_list) | \
|
||||||
|
while read files; do \
|
||||||
|
echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(appmandir)'"; \
|
||||||
|
$(INSTALL_DATA) $$files "$(DESTDIR)$(appmandir)" || exit $$?; \
|
||||||
|
done
|
||||||
|
|
||||||
|
uninstall-appmanDATA:
|
||||||
|
@$(NORMAL_UNINSTALL)
|
||||||
|
@list='$(appman_DATA)'; test -n "$(appmandir)" || list=; \
|
||||||
|
files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
|
||||||
|
dir='$(DESTDIR)$(appmandir)'; $(am__uninstall_files_from_dir)
|
||||||
|
tags TAGS:
|
||||||
|
|
||||||
|
ctags CTAGS:
|
||||||
|
|
||||||
|
cscope cscopelist:
|
||||||
|
|
||||||
|
|
||||||
|
distdir: $(DISTFILES)
|
||||||
|
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||||
|
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||||
|
list='$(DISTFILES)'; \
|
||||||
|
dist_files=`for file in $$list; do echo $$file; done | \
|
||||||
|
sed -e "s|^$$srcdirstrip/||;t" \
|
||||||
|
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
|
||||||
|
case $$dist_files in \
|
||||||
|
*/*) $(MKDIR_P) `echo "$$dist_files" | \
|
||||||
|
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
|
||||||
|
sort -u` ;; \
|
||||||
|
esac; \
|
||||||
|
for file in $$dist_files; do \
|
||||||
|
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||||
|
if test -d $$d/$$file; then \
|
||||||
|
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||||
|
if test -d "$(distdir)/$$file"; then \
|
||||||
|
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||||
|
fi; \
|
||||||
|
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||||
|
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
|
||||||
|
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||||
|
fi; \
|
||||||
|
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
|
||||||
|
else \
|
||||||
|
test -f "$(distdir)/$$file" \
|
||||||
|
|| cp -p $$d/$$file "$(distdir)/$$file" \
|
||||||
|
|| exit 1; \
|
||||||
|
fi; \
|
||||||
|
done
|
||||||
|
check-am: all-am
|
||||||
|
check: check-am
|
||||||
|
all-am: Makefile $(DATA)
|
||||||
|
installdirs:
|
||||||
|
for dir in "$(DESTDIR)$(appmandir)"; do \
|
||||||
|
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
|
||||||
|
done
|
||||||
|
install: install-am
|
||||||
|
install-exec: install-exec-am
|
||||||
|
install-data: install-data-am
|
||||||
|
uninstall: uninstall-am
|
||||||
|
|
||||||
|
install-am: all-am
|
||||||
|
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||||
|
|
||||||
|
installcheck: installcheck-am
|
||||||
|
install-strip:
|
||||||
|
if test -z '$(STRIP)'; then \
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||||
|
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||||
|
install; \
|
||||||
|
else \
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||||
|
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||||
|
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
|
||||||
|
fi
|
||||||
|
mostlyclean-generic:
|
||||||
|
|
||||||
|
clean-generic:
|
||||||
|
-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
|
||||||
|
|
||||||
|
distclean-generic:
|
||||||
|
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||||
|
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
|
||||||
|
|
||||||
|
maintainer-clean-generic:
|
||||||
|
@echo "This command is intended for maintainers to use"
|
||||||
|
@echo "it deletes files that may require special tools to rebuild."
|
||||||
|
clean: clean-am
|
||||||
|
|
||||||
|
clean-am: clean-generic mostlyclean-am
|
||||||
|
|
||||||
|
distclean: distclean-am
|
||||||
|
-rm -f Makefile
|
||||||
|
distclean-am: clean-am distclean-generic
|
||||||
|
|
||||||
|
dvi: dvi-am
|
||||||
|
|
||||||
|
dvi-am:
|
||||||
|
|
||||||
|
html: html-am
|
||||||
|
|
||||||
|
html-am:
|
||||||
|
|
||||||
|
info: info-am
|
||||||
|
|
||||||
|
info-am:
|
||||||
|
|
||||||
|
install-data-am: install-appmanDATA
|
||||||
|
|
||||||
|
install-dvi: install-dvi-am
|
||||||
|
|
||||||
|
install-dvi-am:
|
||||||
|
|
||||||
|
install-exec-am:
|
||||||
|
|
||||||
|
install-html: install-html-am
|
||||||
|
|
||||||
|
install-html-am:
|
||||||
|
|
||||||
|
install-info: install-info-am
|
||||||
|
|
||||||
|
install-info-am:
|
||||||
|
|
||||||
|
install-man:
|
||||||
|
|
||||||
|
install-pdf: install-pdf-am
|
||||||
|
|
||||||
|
install-pdf-am:
|
||||||
|
|
||||||
|
install-ps: install-ps-am
|
||||||
|
|
||||||
|
install-ps-am:
|
||||||
|
|
||||||
|
installcheck-am:
|
||||||
|
|
||||||
|
maintainer-clean: maintainer-clean-am
|
||||||
|
-rm -f Makefile
|
||||||
|
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||||
|
|
||||||
|
mostlyclean: mostlyclean-am
|
||||||
|
|
||||||
|
mostlyclean-am: mostlyclean-generic
|
||||||
|
|
||||||
|
pdf: pdf-am
|
||||||
|
|
||||||
|
pdf-am:
|
||||||
|
|
||||||
|
ps: ps-am
|
||||||
|
|
||||||
|
ps-am:
|
||||||
|
|
||||||
|
uninstall-am: uninstall-appmanDATA
|
||||||
|
|
||||||
|
.MAKE: install-am install-strip
|
||||||
|
|
||||||
|
.PHONY: all all-am check check-am clean clean-generic cscopelist-am \
|
||||||
|
ctags-am distclean distclean-generic distdir dvi dvi-am html \
|
||||||
|
html-am info info-am install install-am install-appmanDATA \
|
||||||
|
install-data install-data-am install-dvi install-dvi-am \
|
||||||
|
install-exec install-exec-am install-html install-html-am \
|
||||||
|
install-info install-info-am install-man install-pdf \
|
||||||
|
install-pdf-am install-ps install-ps-am install-strip \
|
||||||
|
installcheck installcheck-am installdirs maintainer-clean \
|
||||||
|
maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
|
||||||
|
pdf-am ps ps-am tags-am uninstall uninstall-am \
|
||||||
|
uninstall-appmanDATA
|
||||||
|
|
||||||
|
.PRECIOUS: Makefile
|
||||||
|
|
||||||
|
|
||||||
|
# String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure
|
||||||
|
.man.$(APP_MAN_SUFFIX):
|
||||||
|
$(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
|
||||||
|
|
||||||
|
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||||
|
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||||
|
.NOEXPORT:
|
|
@ -0,0 +1,126 @@
|
||||||
|
.\" Copyright 1994, 1998 The Open Group
|
||||||
|
.\"
|
||||||
|
.\" Permission to use, copy, modify, distribute, and sell this software and its
|
||||||
|
.\" documentation for any purpose is hereby granted without fee, provided that
|
||||||
|
.\" the above copyright notice appear in all copies and that both that
|
||||||
|
.\" copyright notice and this permission notice appear in supporting
|
||||||
|
.\" documentation.
|
||||||
|
.\"
|
||||||
|
.\" The above copyright notice and this permission notice shall be included in
|
||||||
|
.\" all copies or substantial portions of the Software.
|
||||||
|
.\"
|
||||||
|
.\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
.\" IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
.\" FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||||
|
.\" THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||||
|
.\" WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
|
||||||
|
.\" OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
.\" SOFTWARE.
|
||||||
|
.\"
|
||||||
|
.\" Except as contained in this notice, the name of The Open Group shall not
|
||||||
|
.\" be used in advertising or otherwise to promote the sale, use or other
|
||||||
|
.\" dealing in this Software without prior written authorization from the
|
||||||
|
.\" The Open Group.
|
||||||
|
.\"
|
||||||
|
.TH ICEAUTH 1 __xorgversion__
|
||||||
|
.SH NAME
|
||||||
|
iceauth \- ICE authority file utility
|
||||||
|
.SH SYNOPSIS
|
||||||
|
.B iceauth
|
||||||
|
[ \fB\-f\fP \fIauthfile\fP ] [ \fB\-vqibuV\fP ] [ \fIcommand arg ...\fP ]
|
||||||
|
.SH DESCRIPTION
|
||||||
|
.PP
|
||||||
|
The \fIiceauth\fP program is used to edit and display the authorization
|
||||||
|
information used in connecting with ICE. This program is usually
|
||||||
|
used to extract authorization records from one machine and merge them in on
|
||||||
|
another (as is the case when using remote logins or granting access to
|
||||||
|
other users). Commands (described below) may be entered interactively,
|
||||||
|
on the \fIiceauth\fP command line, or in scripts.
|
||||||
|
.SH OPTIONS
|
||||||
|
.PP
|
||||||
|
\fB\-f\fP \fIauthfile\fP Name of the authority file to use. Will default to
|
||||||
|
the file currently in use by the session.
|
||||||
|
.PP
|
||||||
|
\fB\-v\fP Turns on extra messages (verbose mode)
|
||||||
|
.PP
|
||||||
|
\fB\-q\fP Turns off extra messages (quiet mode)
|
||||||
|
.PP
|
||||||
|
\fB\-i\fP Ignore the locks on the authority file
|
||||||
|
.PP
|
||||||
|
\fB\-b\fP Break the locks on the authority file
|
||||||
|
.PP
|
||||||
|
\fB\-u\fP Print basic usage instructions
|
||||||
|
.PP
|
||||||
|
\fB\-V\fP Print version and exit
|
||||||
|
.PP
|
||||||
|
.SH USAGE
|
||||||
|
.PP
|
||||||
|
When \fIiceauth\fP is run it will allow the following set of commands
|
||||||
|
to be entered interactively or in scripts.
|
||||||
|
.PP
|
||||||
|
\fB?\fP
|
||||||
|
.PP
|
||||||
|
List available commands.
|
||||||
|
.PP
|
||||||
|
\fBhelp\fP
|
||||||
|
.PP
|
||||||
|
Print help information. You may supply a command name to \fIhelp\fP to
|
||||||
|
get specific information about it.
|
||||||
|
.PP
|
||||||
|
\fBinfo\fP
|
||||||
|
.PP
|
||||||
|
Print information about the entries in the authority file.
|
||||||
|
.PP
|
||||||
|
\fBlist\fP
|
||||||
|
.PP
|
||||||
|
List (print) entries in the authority file. You may specify optional
|
||||||
|
modifiers as below to specify which entries are listed.
|
||||||
|
.PP
|
||||||
|
\fIlist\fP [ \fIprotocol_name\fP ] [ \fIprotocol_data\fP ] [
|
||||||
|
\fInetid\fP ] [ \fIauthname\fP ]
|
||||||
|
.PP
|
||||||
|
\fBadd\fP
|
||||||
|
.PP
|
||||||
|
Add an entry to the authority file. This must be in the format
|
||||||
|
.PP
|
||||||
|
\fIadd\fP \fIprotocol_name\fP \fIprotocol_data\fP \fInetid\fP \fIauthname\fP \fIauthdata\fP
|
||||||
|
.PP
|
||||||
|
\fBremove\fP
|
||||||
|
.PP
|
||||||
|
Remove entries from the authority file.
|
||||||
|
.PP
|
||||||
|
\fIremove\fP [ \fIprotocol_name\fP ] [ \fIprotocol_data\fP ] [
|
||||||
|
\fInetid\fP ] [ \fIauthname\fP ]
|
||||||
|
.PP
|
||||||
|
\fBextract\fP
|
||||||
|
.PP
|
||||||
|
Extract entries from the authority file in to a destination file. You
|
||||||
|
must supply the path to the destination to this command as in the
|
||||||
|
following format. Optional specifiers allow you to narrow which
|
||||||
|
entries are extracted.
|
||||||
|
.PP
|
||||||
|
\fIextract\fP \fIfilename\fP [ \fIprotocol_name\fP ] [ \fIprotocol_data\fP ]
|
||||||
|
[ \fInetid\fP ] [ \fIauthname\fP ]
|
||||||
|
.PP
|
||||||
|
\fBmerge\fP
|
||||||
|
.PP
|
||||||
|
Merge entries from other files in to the authority file selected by the program. You may supply any number of file paths to this command as follows:
|
||||||
|
.PP
|
||||||
|
\fImerge\fP \fIfilename1\fP [ \fIfilename2\fP ] [ \fIfilename3\fP ] ...
|
||||||
|
.PP
|
||||||
|
\fBexit\fP
|
||||||
|
.PP
|
||||||
|
Save changes and exit the program.
|
||||||
|
.PP
|
||||||
|
\fBquit\fP
|
||||||
|
.PP
|
||||||
|
Abort changes and exit the program without saving.
|
||||||
|
.PP
|
||||||
|
\fBsource\fP
|
||||||
|
.PP
|
||||||
|
Read and execute commands from a file.
|
||||||
|
.PP
|
||||||
|
\fIsource\fP \fIfilename\fP
|
||||||
|
.PP
|
||||||
|
.SH AUTHOR
|
||||||
|
Ralph Mor, X Consortium
|
458
iceauth/missing
458
iceauth/missing
|
@ -1,11 +1,10 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# Common stub for a few missing GNU programs while installing.
|
# Common wrapper for a few potentially missing GNU programs.
|
||||||
|
|
||||||
scriptversion=2006-05-10.23
|
scriptversion=2013-10-28.13; # UTC
|
||||||
|
|
||||||
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006
|
# Copyright (C) 1996-2014 Free Software Foundation, Inc.
|
||||||
# Free Software Foundation, Inc.
|
# Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
|
||||||
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
|
|
||||||
|
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# 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
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
@ -18,9 +17,7 @@ scriptversion=2006-05-10.23
|
||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
||||||
# 02110-1301, USA.
|
|
||||||
|
|
||||||
# As a special exception to the GNU General Public License, if you
|
# As a special exception to the GNU General Public License, if you
|
||||||
# distribute this file as part of a program that contains a
|
# distribute this file as part of a program that contains a
|
||||||
|
@ -28,66 +25,40 @@ scriptversion=2006-05-10.23
|
||||||
# the same distribution terms that you use for the rest of that program.
|
# the same distribution terms that you use for the rest of that program.
|
||||||
|
|
||||||
if test $# -eq 0; then
|
if test $# -eq 0; then
|
||||||
echo 1>&2 "Try \`$0 --help' for more information"
|
echo 1>&2 "Try '$0 --help' for more information"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
run=:
|
|
||||||
sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
|
|
||||||
sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
|
|
||||||
|
|
||||||
# In the cases where this matters, `missing' is being run in the
|
|
||||||
# srcdir already.
|
|
||||||
if test -f configure.ac; then
|
|
||||||
configure_ac=configure.ac
|
|
||||||
else
|
|
||||||
configure_ac=configure.in
|
|
||||||
fi
|
|
||||||
|
|
||||||
msg="missing on your system"
|
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
--run)
|
|
||||||
# Try to run requested program, and just exit if it succeeds.
|
--is-lightweight)
|
||||||
run=
|
# Used by our autoconf macros to check whether the available missing
|
||||||
shift
|
# script is modern enough.
|
||||||
"$@" && exit 0
|
exit 0
|
||||||
# Exit code 63 means version mismatch. This often happens
|
;;
|
||||||
# when the user try to use an ancient version of a tool on
|
|
||||||
# a file that requires a minimum version. In this case we
|
--run)
|
||||||
# we should proceed has if the program had been absent, or
|
# Back-compat with the calling convention used by older automake.
|
||||||
# if --run hadn't been passed.
|
shift
|
||||||
if test $? = 63; then
|
;;
|
||||||
run=:
|
|
||||||
msg="probably too old"
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
|
|
||||||
-h|--h|--he|--hel|--help)
|
-h|--h|--he|--hel|--help)
|
||||||
echo "\
|
echo "\
|
||||||
$0 [OPTION]... PROGRAM [ARGUMENT]...
|
$0 [OPTION]... PROGRAM [ARGUMENT]...
|
||||||
|
|
||||||
Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
|
Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due
|
||||||
error status if there is no known handling for PROGRAM.
|
to PROGRAM being missing or too old.
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
-h, --help display this help and exit
|
-h, --help display this help and exit
|
||||||
-v, --version output version information and exit
|
-v, --version output version information and exit
|
||||||
--run try to run the given command, and emulate it if it fails
|
|
||||||
|
|
||||||
Supported PROGRAM values:
|
Supported PROGRAM values:
|
||||||
aclocal touch file \`aclocal.m4'
|
aclocal autoconf autoheader autom4te automake makeinfo
|
||||||
autoconf touch file \`configure'
|
bison yacc flex lex help2man
|
||||||
autoheader touch file \`config.h.in'
|
|
||||||
autom4te touch the output file, or create a stub one
|
Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and
|
||||||
automake touch all \`Makefile.in' files
|
'g' are ignored when checking the name.
|
||||||
bison create \`y.tab.[ch]', if possible, from existing .[ch]
|
|
||||||
flex create \`lex.yy.c', if possible, from existing .c
|
|
||||||
help2man touch the output file
|
|
||||||
lex create \`lex.yy.c', if possible, from existing .c
|
|
||||||
makeinfo touch the output file
|
|
||||||
tar try tar, gnutar, gtar, then tar without non-portable flags
|
|
||||||
yacc create \`y.tab.[ch]', if possible, from existing .[ch]
|
|
||||||
|
|
||||||
Send bug reports to <bug-automake@gnu.org>."
|
Send bug reports to <bug-automake@gnu.org>."
|
||||||
exit $?
|
exit $?
|
||||||
|
@ -99,269 +70,146 @@ Send bug reports to <bug-automake@gnu.org>."
|
||||||
;;
|
;;
|
||||||
|
|
||||||
-*)
|
-*)
|
||||||
echo 1>&2 "$0: Unknown \`$1' option"
|
echo 1>&2 "$0: unknown '$1' option"
|
||||||
echo 1>&2 "Try \`$0 --help' for more information"
|
echo 1>&2 "Try '$0 --help' for more information"
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Now exit if we have it, but it failed. Also exit now if we
|
# Run the given program, remember its exit status.
|
||||||
# don't have it and --version was passed (most likely to detect
|
"$@"; st=$?
|
||||||
# the program).
|
|
||||||
case $1 in
|
# If it succeeded, we are done.
|
||||||
lex|yacc)
|
test $st -eq 0 && exit 0
|
||||||
# Not GNU programs, they don't have --version.
|
|
||||||
|
# Also exit now if we it failed (or wasn't found), and '--version' was
|
||||||
|
# passed; such an option is passed most likely to detect whether the
|
||||||
|
# program is present and works.
|
||||||
|
case $2 in --version|--help) exit $st;; esac
|
||||||
|
|
||||||
|
# Exit code 63 means version mismatch. This often happens when the user
|
||||||
|
# tries to use an ancient version of a tool on a file that requires a
|
||||||
|
# minimum version.
|
||||||
|
if test $st -eq 63; then
|
||||||
|
msg="probably too old"
|
||||||
|
elif test $st -eq 127; then
|
||||||
|
# Program was missing.
|
||||||
|
msg="missing on your system"
|
||||||
|
else
|
||||||
|
# Program was found and executed, but failed. Give up.
|
||||||
|
exit $st
|
||||||
|
fi
|
||||||
|
|
||||||
|
perl_URL=http://www.perl.org/
|
||||||
|
flex_URL=http://flex.sourceforge.net/
|
||||||
|
gnu_software_URL=http://www.gnu.org/software
|
||||||
|
|
||||||
|
program_details ()
|
||||||
|
{
|
||||||
|
case $1 in
|
||||||
|
aclocal|automake)
|
||||||
|
echo "The '$1' program is part of the GNU Automake package:"
|
||||||
|
echo "<$gnu_software_URL/automake>"
|
||||||
|
echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:"
|
||||||
|
echo "<$gnu_software_URL/autoconf>"
|
||||||
|
echo "<$gnu_software_URL/m4/>"
|
||||||
|
echo "<$perl_URL>"
|
||||||
|
;;
|
||||||
|
autoconf|autom4te|autoheader)
|
||||||
|
echo "The '$1' program is part of the GNU Autoconf package:"
|
||||||
|
echo "<$gnu_software_URL/autoconf/>"
|
||||||
|
echo "It also requires GNU m4 and Perl in order to run:"
|
||||||
|
echo "<$gnu_software_URL/m4/>"
|
||||||
|
echo "<$perl_URL>"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
give_advice ()
|
||||||
|
{
|
||||||
|
# Normalize program name to check for.
|
||||||
|
normalized_program=`echo "$1" | sed '
|
||||||
|
s/^gnu-//; t
|
||||||
|
s/^gnu//; t
|
||||||
|
s/^g//; t'`
|
||||||
|
|
||||||
|
printf '%s\n' "'$1' is $msg."
|
||||||
|
|
||||||
|
configure_deps="'configure.ac' or m4 files included by 'configure.ac'"
|
||||||
|
case $normalized_program in
|
||||||
|
autoconf*)
|
||||||
|
echo "You should only need it if you modified 'configure.ac',"
|
||||||
|
echo "or m4 files included by it."
|
||||||
|
program_details 'autoconf'
|
||||||
|
;;
|
||||||
|
autoheader*)
|
||||||
|
echo "You should only need it if you modified 'acconfig.h' or"
|
||||||
|
echo "$configure_deps."
|
||||||
|
program_details 'autoheader'
|
||||||
|
;;
|
||||||
|
automake*)
|
||||||
|
echo "You should only need it if you modified 'Makefile.am' or"
|
||||||
|
echo "$configure_deps."
|
||||||
|
program_details 'automake'
|
||||||
|
;;
|
||||||
|
aclocal*)
|
||||||
|
echo "You should only need it if you modified 'acinclude.m4' or"
|
||||||
|
echo "$configure_deps."
|
||||||
|
program_details 'aclocal'
|
||||||
|
;;
|
||||||
|
autom4te*)
|
||||||
|
echo "You might have modified some maintainer files that require"
|
||||||
|
echo "the 'autom4te' program to be rebuilt."
|
||||||
|
program_details 'autom4te'
|
||||||
|
;;
|
||||||
|
bison*|yacc*)
|
||||||
|
echo "You should only need it if you modified a '.y' file."
|
||||||
|
echo "You may want to install the GNU Bison package:"
|
||||||
|
echo "<$gnu_software_URL/bison/>"
|
||||||
|
;;
|
||||||
|
lex*|flex*)
|
||||||
|
echo "You should only need it if you modified a '.l' file."
|
||||||
|
echo "You may want to install the Fast Lexical Analyzer package:"
|
||||||
|
echo "<$flex_URL>"
|
||||||
|
;;
|
||||||
|
help2man*)
|
||||||
|
echo "You should only need it if you modified a dependency" \
|
||||||
|
"of a man page."
|
||||||
|
echo "You may want to install the GNU Help2man package:"
|
||||||
|
echo "<$gnu_software_URL/help2man/>"
|
||||||
;;
|
;;
|
||||||
|
makeinfo*)
|
||||||
|
echo "You should only need it if you modified a '.texi' file, or"
|
||||||
|
echo "any other file indirectly affecting the aspect of the manual."
|
||||||
|
echo "You might want to install the Texinfo package:"
|
||||||
|
echo "<$gnu_software_URL/texinfo/>"
|
||||||
|
echo "The spurious makeinfo call might also be the consequence of"
|
||||||
|
echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might"
|
||||||
|
echo "want to install GNU make:"
|
||||||
|
echo "<$gnu_software_URL/make/>"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "You might have modified some files without having the proper"
|
||||||
|
echo "tools for further handling them. Check the 'README' file, it"
|
||||||
|
echo "often tells you about the needed prerequisites for installing"
|
||||||
|
echo "this package. You may also peek at any GNU archive site, in"
|
||||||
|
echo "case some other package contains this missing '$1' program."
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
tar)
|
give_advice "$1" | sed -e '1s/^/WARNING: /' \
|
||||||
if test -n "$run"; then
|
-e '2,$s/^/ /' >&2
|
||||||
echo 1>&2 "ERROR: \`tar' requires --run"
|
|
||||||
exit 1
|
|
||||||
elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
|
|
||||||
*)
|
# Propagate the correct exit status (expected to be 127 for a program
|
||||||
if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
|
# not found, 63 for a program that failed due to version mismatch).
|
||||||
# We have it, but it failed.
|
exit $st
|
||||||
exit 1
|
|
||||||
elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
|
|
||||||
# Could not run --version or --help. This is probably someone
|
|
||||||
# running `$TOOL --version' or `$TOOL --help' to check whether
|
|
||||||
# $TOOL exists and not knowing $TOOL uses missing.
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# If it does not exist, or fails to run (possibly an outdated version),
|
|
||||||
# try to emulate it.
|
|
||||||
case $1 in
|
|
||||||
aclocal*)
|
|
||||||
echo 1>&2 "\
|
|
||||||
WARNING: \`$1' is $msg. 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 $msg. 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 $msg. 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 $msg. You should only need it if
|
|
||||||
you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
|
|
||||||
You might want to install the \`Automake' and \`Perl' packages.
|
|
||||||
Grab them from any GNU archive site."
|
|
||||||
find . -type f -name Makefile.am -print |
|
|
||||||
sed 's/\.am$/.in/' |
|
|
||||||
while read f; do touch "$f"; done
|
|
||||||
;;
|
|
||||||
|
|
||||||
autom4te)
|
|
||||||
echo 1>&2 "\
|
|
||||||
WARNING: \`$1' is needed, but is $msg.
|
|
||||||
You might have modified some files without having the
|
|
||||||
proper tools for further handling them.
|
|
||||||
You can get \`$1' as part of \`Autoconf' from any GNU
|
|
||||||
archive site."
|
|
||||||
|
|
||||||
file=`echo "$*" | sed -n "$sed_output"`
|
|
||||||
test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
|
|
||||||
if test -f "$file"; then
|
|
||||||
touch $file
|
|
||||||
else
|
|
||||||
test -z "$file" || exec >$file
|
|
||||||
echo "#! /bin/sh"
|
|
||||||
echo "# Created by GNU Automake missing as a replacement of"
|
|
||||||
echo "# $ $@"
|
|
||||||
echo "exit 0"
|
|
||||||
chmod +x $file
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
|
|
||||||
bison|yacc)
|
|
||||||
echo 1>&2 "\
|
|
||||||
WARNING: \`$1' $msg. 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 test $# -ne 1; then
|
|
||||||
eval LASTARG="\${$#}"
|
|
||||||
case $LASTARG in
|
|
||||||
*.y)
|
|
||||||
SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
|
|
||||||
if test -f "$SRCFILE"; then
|
|
||||||
cp "$SRCFILE" y.tab.c
|
|
||||||
fi
|
|
||||||
SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
|
|
||||||
if test -f "$SRCFILE"; then
|
|
||||||
cp "$SRCFILE" y.tab.h
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
if test ! -f y.tab.h; then
|
|
||||||
echo >y.tab.h
|
|
||||||
fi
|
|
||||||
if test ! -f y.tab.c; then
|
|
||||||
echo 'main() { return 0; }' >y.tab.c
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
|
|
||||||
lex|flex)
|
|
||||||
echo 1>&2 "\
|
|
||||||
WARNING: \`$1' is $msg. 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 test $# -ne 1; then
|
|
||||||
eval LASTARG="\${$#}"
|
|
||||||
case $LASTARG in
|
|
||||||
*.l)
|
|
||||||
SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
|
|
||||||
if test -f "$SRCFILE"; then
|
|
||||||
cp "$SRCFILE" lex.yy.c
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
if test ! -f lex.yy.c; then
|
|
||||||
echo 'main() { return 0; }' >lex.yy.c
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
|
|
||||||
help2man)
|
|
||||||
echo 1>&2 "\
|
|
||||||
WARNING: \`$1' is $msg. You should only need it if
|
|
||||||
you modified a dependency of a manual page. You may need the
|
|
||||||
\`Help2man' package in order for those modifications to take
|
|
||||||
effect. You can get \`Help2man' from any GNU archive site."
|
|
||||||
|
|
||||||
file=`echo "$*" | sed -n "$sed_output"`
|
|
||||||
test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
|
|
||||||
if test -f "$file"; then
|
|
||||||
touch $file
|
|
||||||
else
|
|
||||||
test -z "$file" || exec >$file
|
|
||||||
echo ".ab help2man is required to generate this page"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
|
|
||||||
makeinfo)
|
|
||||||
echo 1>&2 "\
|
|
||||||
WARNING: \`$1' is $msg. 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."
|
|
||||||
# The file to touch is that specified with -o ...
|
|
||||||
file=`echo "$*" | sed -n "$sed_output"`
|
|
||||||
test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
|
|
||||||
if test -z "$file"; then
|
|
||||||
# ... or it is the one specified with @setfilename ...
|
|
||||||
infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
|
|
||||||
file=`sed -n '
|
|
||||||
/^@setfilename/{
|
|
||||||
s/.* \([^ ]*\) *$/\1/
|
|
||||||
p
|
|
||||||
q
|
|
||||||
}' $infile`
|
|
||||||
# ... or it is derived from the source name (dir/f.texi becomes f.info)
|
|
||||||
test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
|
|
||||||
fi
|
|
||||||
# If the file does not exist, the user really needs makeinfo;
|
|
||||||
# let's fail without touching anything.
|
|
||||||
test -f $file || exit 1
|
|
||||||
touch $file
|
|
||||||
;;
|
|
||||||
|
|
||||||
tar)
|
|
||||||
shift
|
|
||||||
|
|
||||||
# We have already tried tar in the generic part.
|
|
||||||
# Look for gnutar/gtar before invocation to avoid ugly error
|
|
||||||
# messages.
|
|
||||||
if (gnutar --version > /dev/null 2>&1); then
|
|
||||||
gnutar "$@" && exit 0
|
|
||||||
fi
|
|
||||||
if (gtar --version > /dev/null 2>&1); then
|
|
||||||
gtar "$@" && exit 0
|
|
||||||
fi
|
|
||||||
firstarg="$1"
|
|
||||||
if shift; then
|
|
||||||
case $firstarg in
|
|
||||||
*o*)
|
|
||||||
firstarg=`echo "$firstarg" | sed s/o//`
|
|
||||||
tar "$firstarg" "$@" && exit 0
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
case $firstarg in
|
|
||||||
*h*)
|
|
||||||
firstarg=`echo "$firstarg" | sed s/h//`
|
|
||||||
tar "$firstarg" "$@" && exit 0
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo 1>&2 "\
|
|
||||||
WARNING: I can't seem to be able to run \`tar' with the given arguments.
|
|
||||||
You may want to install GNU tar or Free paxutils, or check the
|
|
||||||
command line arguments."
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
|
|
||||||
*)
|
|
||||||
echo 1>&2 "\
|
|
||||||
WARNING: \`$1' is needed, and is $msg.
|
|
||||||
You might have modified some files without having the
|
|
||||||
proper tools for further handling them. Check the \`README' file,
|
|
||||||
it often tells you about the needed prerequisites for installing
|
|
||||||
this package. You may also peek at any GNU archive site, in case
|
|
||||||
some other package would contain this missing \`$1' program."
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
exit 0
|
|
||||||
|
|
||||||
# Local variables:
|
# Local variables:
|
||||||
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||||
# time-stamp-start: "scriptversion="
|
# time-stamp-start: "scriptversion="
|
||||||
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||||
# time-stamp-end: "$"
|
# time-stamp-time-zone: "UTC"
|
||||||
|
# time-stamp-end: "; # UTC"
|
||||||
# End:
|
# End:
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* $Xorg: process.c,v 1.5 2001/02/09 02:05:31 xorgcvs Exp $
|
|
||||||
* $XdotOrg: $
|
|
||||||
*
|
*
|
||||||
Copyright 1989, 1998 The Open Group
|
Copyright 1989, 1998 The Open Group
|
||||||
|
|
||||||
|
@ -28,8 +26,6 @@ in this Software without prior written authorization from The Open Group.
|
||||||
* Modified into "iceauth" : Ralph Mor, X Consortium
|
* Modified into "iceauth" : Ralph Mor, X Consortium
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $XFree86: xc/programs/iceauth/process.c,v 3.7 2001/12/14 20:00:49 dawes Exp $ */
|
|
||||||
|
|
||||||
#include "iceauth.h"
|
#include "iceauth.h"
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
@ -51,23 +47,23 @@ typedef struct _AuthList { /* linked list of entries */
|
||||||
|
|
||||||
#define add_to_list(h,t,e) {if (t) (t)->next = (e); else (h) = (e); (t) = (e);}
|
#define add_to_list(h,t,e) {if (t) (t)->next = (e); else (h) = (e); (t) = (e);}
|
||||||
|
|
||||||
typedef int (*ProcessFunc)(const char *, int, int, char **);
|
typedef int (*ProcessFunc)(const char *, int, int, const char **);
|
||||||
typedef int (*DoFunc)(const char *, int, IceAuthFileEntry *, char *);
|
typedef int (*DoFunc)(const char *, int, IceAuthFileEntry *, void *);
|
||||||
|
|
||||||
typedef struct _CommandTable { /* commands that are understood */
|
typedef struct _CommandTable { /* commands that are understood */
|
||||||
char *name; /* full name */
|
const char *name; /* full name */
|
||||||
int minlen; /* unique prefix */
|
unsigned int minlen; /* unique prefix */
|
||||||
int maxlen; /* strlen(name) */
|
unsigned int maxlen; /* strlen(name) */
|
||||||
ProcessFunc processfunc; /* handler */
|
ProcessFunc processfunc; /* handler */
|
||||||
char *helptext; /* what to print for help */
|
const char *helptext; /* what to print for help */
|
||||||
} CommandTable;
|
} CommandTable;
|
||||||
|
|
||||||
struct _extract_data { /* for iterating */
|
struct _extract_data { /* for iterating */
|
||||||
FILE *fp; /* input source */
|
FILE *fp; /* input source */
|
||||||
char *filename; /* name of input */
|
const char *filename; /* name of input */
|
||||||
Bool used_stdout; /* whether or not need to close */
|
Bool used_stdout; /* whether or not need to close */
|
||||||
int nwritten; /* number of entries written */
|
int nwritten; /* number of entries written */
|
||||||
char *cmd; /* for error messages */
|
const char *cmd; /* for error messages */
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _list_data { /* for iterating */
|
struct _list_data { /* for iterating */
|
||||||
|
@ -78,8 +74,8 @@ struct _list_data { /* for iterating */
|
||||||
/*
|
/*
|
||||||
* private data
|
* private data
|
||||||
*/
|
*/
|
||||||
static char *stdin_filename = "(stdin)"; /* for messages */
|
static const char *stdin_filename = "(stdin)"; /* for messages */
|
||||||
static char *stdout_filename = "(stdout)"; /* for messages */
|
static const char *stdout_filename = "(stdout)"; /* for messages */
|
||||||
static const char *Yes = "yes"; /* for messages */
|
static const char *Yes = "yes"; /* for messages */
|
||||||
static const char *No = "no"; /* for messages */
|
static const char *No = "no"; /* for messages */
|
||||||
|
|
||||||
|
@ -89,32 +85,32 @@ static void badcommandline ( const char *cmd );
|
||||||
static char *skip_space ( char *s );
|
static char *skip_space ( char *s );
|
||||||
static char *skip_nonspace ( char *s );
|
static char *skip_nonspace ( char *s );
|
||||||
static char **split_into_words ( char *src, int *argcp );
|
static char **split_into_words ( char *src, int *argcp );
|
||||||
static FILE *open_file ( char **filenamep, const char *mode, Bool *usedstdp, const char *srcfn, int srcln, const char *cmd );
|
static FILE *open_file ( const char **filenamep, const char *mode, Bool *usedstdp, const char *srcfn, int srcln, const char *cmd );
|
||||||
static int read_auth_entries ( FILE *fp, AuthList **headp, AuthList **tailp );
|
static int read_auth_entries ( FILE *fp, AuthList **headp, AuthList **tailp );
|
||||||
static int cvthexkey ( char *hexstr, char **ptrp );
|
static int cvthexkey ( const char *hexstr, char **ptrp );
|
||||||
static int dispatch_command ( const char *inputfilename, int lineno, int argc, char **argv, const CommandTable *tab, int *statusp );
|
static int dispatch_command ( const char *inputfilename, int lineno, int argc, const char **argv, const CommandTable *tab, int *statusp );
|
||||||
static void die ( int sig );
|
static void die ( int sig ) _X_NORETURN;
|
||||||
static void catchsig ( int sig );
|
static void catchsig ( int sig ) _X_NORETURN;
|
||||||
static void register_signals ( void );
|
static void register_signals ( void );
|
||||||
static int write_auth_file ( char *tmp_nam, size_t tmp_nam_len );
|
static int write_auth_file ( char *tmp_nam, size_t tmp_nam_len );
|
||||||
static void fprintfhex ( FILE *fp, unsigned int len, const char *cp );
|
static void fprintfhex ( FILE *fp, unsigned int len, const char *cp );
|
||||||
static int dump_entry ( const char *inputfilename, int lineno, IceAuthFileEntry *auth, char *data );
|
static int dump_entry ( const char *inputfilename, int lineno, IceAuthFileEntry *auth, void *data );
|
||||||
static int extract_entry ( const char *inputfilename, int lineno, IceAuthFileEntry *auth, char *data );
|
static int extract_entry ( const char *inputfilename, int lineno, IceAuthFileEntry *auth, void *data );
|
||||||
static int match_auth ( IceAuthFileEntry *a, IceAuthFileEntry *b, int *authDataSame );
|
static int match_auth ( IceAuthFileEntry *a, IceAuthFileEntry *b, int *authDataSame );
|
||||||
static int merge_entries ( AuthList **firstp, AuthList *second, int *nnewp, int *nreplp, int *ndupp );
|
static int merge_entries ( AuthList **firstp, AuthList *second, int *nnewp, int *nreplp, int *ndupp );
|
||||||
static int search_and_do ( const char *inputfilename, int lineno, int start, int argc, char *argv[], DoFunc do_func, char *data );
|
static int search_and_do ( const char *inputfilename, int lineno, int start, int argc, const char *argv[], DoFunc do_func, void *data );
|
||||||
static int remove_entry ( const char *inputfilename, int lineno, IceAuthFileEntry *auth, char *data );
|
static int remove_entry ( const char *inputfilename, int lineno, IceAuthFileEntry *auth, void *data );
|
||||||
static int do_help ( const char *inputfilename, int lineno, int argc, char **argv );
|
static int do_help ( const char *inputfilename, int lineno, int argc, const char **argv );
|
||||||
static int do_questionmark ( const char *inputfilename, int lineno, int argc, char **argv );
|
static int do_questionmark ( const char *inputfilename, int lineno, int argc, const char **argv );
|
||||||
static int do_list ( const char *inputfilename, int lineno, int argc, char **argv );
|
static int do_list ( const char *inputfilename, int lineno, int argc, const char **argv );
|
||||||
static int do_merge ( const char *inputfilename, int lineno, int argc, char **argv );
|
static int do_merge ( const char *inputfilename, int lineno, int argc, const char **argv );
|
||||||
static int do_extract ( const char *inputfilename, int lineno, int argc, char **argv );
|
static int do_extract ( const char *inputfilename, int lineno, int argc, const char **argv );
|
||||||
static int do_add ( const char *inputfilename, int lineno, int argc, char **argv );
|
static int do_add ( const char *inputfilename, int lineno, int argc, const char **argv );
|
||||||
static int do_remove ( const char *inputfilename, int lineno, int argc, char **argv );
|
static int do_remove ( const char *inputfilename, int lineno, int argc, const char **argv );
|
||||||
static int do_info ( const char *inputfilename, int lineno, int argc, char **argv );
|
static int do_info ( const char *inputfilename, int lineno, int argc, const char **argv );
|
||||||
static int do_exit ( const char *inputfilename, int lineno, int argc, char **argv );
|
static int do_exit ( const char *inputfilename, int lineno, int argc, const char **argv );
|
||||||
static int do_quit ( const char *inputfilename, int lineno, int argc, char **argv );
|
static int do_quit ( const char *inputfilename, int lineno, int argc, const char **argv );
|
||||||
static int do_source ( const char *inputfilename, int lineno, int argc, char **argv );
|
static int do_source ( const char *inputfilename, int lineno, int argc, const char **argv );
|
||||||
|
|
||||||
static const CommandTable command_table[] = { /* table of known commands */
|
static const CommandTable command_table[] = { /* table of known commands */
|
||||||
{ "add", 2, 3, do_add,
|
{ "add", 2, 3, do_add,
|
||||||
|
@ -302,9 +298,13 @@ static char **split_into_words ( /* argvify string */
|
||||||
savec = *src;
|
savec = *src;
|
||||||
*src = '\0';
|
*src = '\0';
|
||||||
if (cur == total) {
|
if (cur == total) {
|
||||||
|
char **prevargv = argv;
|
||||||
total += WORDSTOALLOC;
|
total += WORDSTOALLOC;
|
||||||
argv = (char **) realloc (argv, total * sizeof (char *));
|
argv = (char **) realloc (argv, total * sizeof (char *));
|
||||||
if (!argv) return NULL;
|
if (!argv) {
|
||||||
|
free (prevargv);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
argv[cur++] = jword;
|
argv[cur++] = jword;
|
||||||
if (savec) src++; /* if not last on line advance */
|
if (savec) src++; /* if not last on line advance */
|
||||||
|
@ -317,7 +317,7 @@ static char **split_into_words ( /* argvify string */
|
||||||
|
|
||||||
|
|
||||||
static FILE *open_file (
|
static FILE *open_file (
|
||||||
char **filenamep,
|
const char **filenamep,
|
||||||
const char *mode,
|
const char *mode,
|
||||||
Bool *usedstdp,
|
Bool *usedstdp,
|
||||||
const char *srcfn,
|
const char *srcfn,
|
||||||
|
@ -387,12 +387,13 @@ static int read_auth_entries (FILE *fp, AuthList **headp, AuthList **tailp)
|
||||||
|
|
||||||
|
|
||||||
static int cvthexkey ( /* turn hex key string into octets */
|
static int cvthexkey ( /* turn hex key string into octets */
|
||||||
char *hexstr,
|
const char *hexstr,
|
||||||
char **ptrp)
|
char **ptrp)
|
||||||
{
|
{
|
||||||
int i;
|
unsigned int i;
|
||||||
int len = 0;
|
unsigned int len = 0;
|
||||||
char *retval, *s;
|
char *retval;
|
||||||
|
const char *s;
|
||||||
unsigned char *us;
|
unsigned char *us;
|
||||||
char c;
|
char c;
|
||||||
char savec = '\0';
|
char savec = '\0';
|
||||||
|
@ -405,8 +406,8 @@ static int cvthexkey ( /* turn hex key string into octets */
|
||||||
len++;
|
len++;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* if odd then there was an error */
|
/* if 0 or odd, then there was an error */
|
||||||
if ((len & 1) == 1) return -1;
|
if (len == 0 || (len & 1) == 1) return -1;
|
||||||
|
|
||||||
|
|
||||||
/* now we know that the input is good */
|
/* now we know that the input is good */
|
||||||
|
@ -435,20 +436,20 @@ static int cvthexkey ( /* turn hex key string into octets */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*ptrp = retval;
|
*ptrp = retval;
|
||||||
return len;
|
return (int) len;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int dispatch_command (
|
static int dispatch_command (
|
||||||
const char *inputfilename,
|
const char *inputfilename,
|
||||||
int lineno,
|
int lineno,
|
||||||
int argc,
|
int argc,
|
||||||
char **argv,
|
const char **argv,
|
||||||
const CommandTable *tab,
|
const CommandTable *tab,
|
||||||
int *statusp)
|
int *statusp)
|
||||||
{
|
{
|
||||||
const CommandTable *ct;
|
const CommandTable *ct;
|
||||||
char *cmd;
|
const char *cmd;
|
||||||
int n;
|
size_t n;
|
||||||
/* scan table for command */
|
/* scan table for command */
|
||||||
cmd = argv[0];
|
cmd = argv[0];
|
||||||
n = strlen (cmd);
|
n = strlen (cmd);
|
||||||
|
@ -473,31 +474,18 @@ static Bool iceauth_allowed = True; /* if allowed to write auth file */
|
||||||
static char *iceauth_filename = NULL;
|
static char *iceauth_filename = NULL;
|
||||||
static volatile Bool dieing = False;
|
static volatile Bool dieing = False;
|
||||||
|
|
||||||
#ifdef RETSIGTYPE /* autoconf AC_TYPE_SIGNAL */
|
|
||||||
# define _signal_t RETSIGTYPE
|
|
||||||
#else /* Imake */
|
|
||||||
#ifdef SIGNALRETURNSINT
|
|
||||||
#define _signal_t int
|
|
||||||
#else
|
|
||||||
#define _signal_t void
|
|
||||||
#endif
|
|
||||||
#endif /* RETSIGTYPE */
|
|
||||||
|
|
||||||
/* poor man's puts(), for under signal handlers */
|
/* poor man's puts(), for under signal handlers */
|
||||||
#define WRITES(fd, S) (void)write((fd), (S), strlen((S)))
|
#define WRITES(fd, S) (void)write((fd), (S), strlen((S)))
|
||||||
|
|
||||||
/* ARGSUSED */
|
/* ARGSUSED */
|
||||||
static _signal_t die (int sig)
|
static void die (_X_UNUSED int sig)
|
||||||
{
|
{
|
||||||
dieing = True;
|
dieing = True;
|
||||||
_exit (auth_finalize ());
|
_exit (auth_finalize ());
|
||||||
/* NOTREACHED */
|
/* NOTREACHED */
|
||||||
#ifdef SIGNALRETURNSINT
|
|
||||||
return -1; /* for picky compilers */
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static _signal_t catchsig (int sig)
|
static void catchsig (int sig)
|
||||||
{
|
{
|
||||||
#ifdef SYSV
|
#ifdef SYSV
|
||||||
if (sig > 0) signal (sig, die); /* re-establish signal handler */
|
if (sig > 0) signal (sig, die); /* re-establish signal handler */
|
||||||
|
@ -513,9 +501,6 @@ static _signal_t catchsig (int sig)
|
||||||
#endif
|
#endif
|
||||||
die (sig);
|
die (sig);
|
||||||
/* NOTREACHED */
|
/* NOTREACHED */
|
||||||
#ifdef SIGNALRETURNSINT
|
|
||||||
return -1; /* for picky compilers */
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void register_signals (void)
|
static void register_signals (void)
|
||||||
|
@ -574,7 +559,7 @@ int auth_initialize ( char *authfilename )
|
||||||
ICEAUTH_DEFAULT_TIMEOUT,
|
ICEAUTH_DEFAULT_TIMEOUT,
|
||||||
(break_locks ? 0L : ICEAUTH_DEFAULT_DEADTIME));
|
(break_locks ? 0L : ICEAUTH_DEFAULT_DEADTIME));
|
||||||
if (n != IceAuthLockSuccess) {
|
if (n != IceAuthLockSuccess) {
|
||||||
char *reason = "unknown error";
|
const char *reason = "unknown error";
|
||||||
switch (n) {
|
switch (n) {
|
||||||
case IceAuthLockError:
|
case IceAuthLockError:
|
||||||
reason = "error";
|
reason = "error";
|
||||||
|
@ -704,7 +689,8 @@ int auth_finalize (void)
|
||||||
#if defined(WIN32) || defined(__UNIXOS2__)
|
#if defined(WIN32) || defined(__UNIXOS2__)
|
||||||
if (rename(temp_name, iceauth_filename) == -1)
|
if (rename(temp_name, iceauth_filename) == -1)
|
||||||
#else
|
#else
|
||||||
if (link (temp_name, iceauth_filename) == -1)
|
/* Attempt to rename() if link() fails, since this may be on a FS that does not support hard links */
|
||||||
|
if (link (temp_name, iceauth_filename) == -1 && rename(temp_name, iceauth_filename) == -1)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
fprintf (stderr,
|
fprintf (stderr,
|
||||||
|
@ -728,7 +714,7 @@ int process_command (
|
||||||
const char *inputfilename,
|
const char *inputfilename,
|
||||||
int lineno,
|
int lineno,
|
||||||
int argc,
|
int argc,
|
||||||
char **argv)
|
const char **argv)
|
||||||
{
|
{
|
||||||
int status;
|
int status;
|
||||||
|
|
||||||
|
@ -765,10 +751,10 @@ static void fprintfhex (
|
||||||
|
|
||||||
/* ARGSUSED */
|
/* ARGSUSED */
|
||||||
static int dump_entry (
|
static int dump_entry (
|
||||||
const char *inputfilename,
|
const char *inputfilename _X_UNUSED,
|
||||||
int lineno,
|
int lineno _X_UNUSED,
|
||||||
IceAuthFileEntry *auth,
|
IceAuthFileEntry *auth,
|
||||||
char *data)
|
void *data)
|
||||||
{
|
{
|
||||||
struct _list_data *ld = (struct _list_data *) data;
|
struct _list_data *ld = (struct _list_data *) data;
|
||||||
FILE *fp = ld->fp;
|
FILE *fp = ld->fp;
|
||||||
|
@ -801,7 +787,7 @@ static int extract_entry (
|
||||||
const char *inputfilename,
|
const char *inputfilename,
|
||||||
int lineno,
|
int lineno,
|
||||||
IceAuthFileEntry *auth,
|
IceAuthFileEntry *auth,
|
||||||
char *data)
|
void *data)
|
||||||
{
|
{
|
||||||
struct _extract_data *ed = (struct _extract_data *) data;
|
struct _extract_data *ed = (struct _extract_data *) data;
|
||||||
|
|
||||||
|
@ -938,15 +924,15 @@ static int search_and_do (
|
||||||
int lineno,
|
int lineno,
|
||||||
int start,
|
int start,
|
||||||
int argc,
|
int argc,
|
||||||
char *argv[],
|
const char *argv[],
|
||||||
DoFunc do_func,
|
DoFunc do_func,
|
||||||
char *data)
|
void *data)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
int status = 0;
|
int status = 0;
|
||||||
int errors = 0;
|
int errors = 0;
|
||||||
AuthList *l, *next;
|
AuthList *l, *next;
|
||||||
char *protoname, *protodata, *netid, *authname;
|
const char *protoname, *protodata, *netid, *authname;
|
||||||
|
|
||||||
for (l = iceauth_head; l; l = next)
|
for (l = iceauth_head; l; l = next)
|
||||||
{
|
{
|
||||||
|
@ -999,10 +985,10 @@ static int search_and_do (
|
||||||
|
|
||||||
/* ARGSUSED */
|
/* ARGSUSED */
|
||||||
static int remove_entry (
|
static int remove_entry (
|
||||||
const char *inputfilename,
|
const char *inputfilename _X_UNUSED,
|
||||||
int lineno,
|
int lineno _X_UNUSED,
|
||||||
IceAuthFileEntry *auth,
|
IceAuthFileEntry *auth,
|
||||||
char *data)
|
void *data)
|
||||||
{
|
{
|
||||||
int *nremovedp = (int *) data;
|
int *nremovedp = (int *) data;
|
||||||
AuthList **listp = &iceauth_head;
|
AuthList **listp = &iceauth_head;
|
||||||
|
@ -1042,7 +1028,7 @@ int print_help (
|
||||||
n++;
|
n++;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
int len = strlen (cmd);
|
size_t len = strlen (cmd);
|
||||||
for (ct = command_table; ct->name; ct++) {
|
for (ct = command_table; ct->name; ct++) {
|
||||||
if (strncmp (cmd, ct->name, len) == 0) {
|
if (strncmp (cmd, ct->name, len) == 0) {
|
||||||
fprintf (fp, "%s\n\n", ct->helptext);
|
fprintf (fp, "%s\n\n", ct->helptext);
|
||||||
|
@ -1058,9 +1044,9 @@ static int do_help (
|
||||||
const char *inputfilename,
|
const char *inputfilename,
|
||||||
int lineno,
|
int lineno,
|
||||||
int argc,
|
int argc,
|
||||||
char **argv)
|
const char **argv)
|
||||||
{
|
{
|
||||||
char *cmd = (argc > 1 ? argv[1] : NULL);
|
const char *cmd = (argc > 1 ? argv[1] : NULL);
|
||||||
int n;
|
int n;
|
||||||
|
|
||||||
n = print_help (stdout, cmd);
|
n = print_help (stdout, cmd);
|
||||||
|
@ -1078,7 +1064,7 @@ static int do_help (
|
||||||
if (n == 0) {
|
if (n == 0) {
|
||||||
prefix (inputfilename, lineno);
|
prefix (inputfilename, lineno);
|
||||||
/* already know that cmd is set in this case */
|
/* already know that cmd is set in this case */
|
||||||
fprintf (stderr, "no help for noexistent command \"%s\"\n", cmd);
|
fprintf (stderr, "no help for nonexistent command \"%s\"\n", cmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -1089,15 +1075,15 @@ static int do_help (
|
||||||
*/
|
*/
|
||||||
/* ARGSUSED */
|
/* ARGSUSED */
|
||||||
static int do_questionmark (
|
static int do_questionmark (
|
||||||
const char *inputfilename,
|
const char *inputfilename _X_UNUSED,
|
||||||
int lineno,
|
int lineno _X_UNUSED,
|
||||||
int argc,
|
int argc _X_UNUSED,
|
||||||
char **argv)
|
const char **argv _X_UNUSED)
|
||||||
{
|
{
|
||||||
const CommandTable *ct;
|
const CommandTable *ct;
|
||||||
int i;
|
unsigned int i;
|
||||||
#define WIDEST_COLUMN 72
|
#define WIDEST_COLUMN 72
|
||||||
int col = WIDEST_COLUMN;
|
unsigned int col = WIDEST_COLUMN;
|
||||||
|
|
||||||
printf ("Commands:\n");
|
printf ("Commands:\n");
|
||||||
for (ct = command_table; ct->name; ct++) {
|
for (ct = command_table; ct->name; ct++) {
|
||||||
|
@ -1130,7 +1116,7 @@ static int do_list (
|
||||||
const char *inputfilename,
|
const char *inputfilename,
|
||||||
int lineno,
|
int lineno,
|
||||||
int argc,
|
int argc,
|
||||||
char **argv)
|
const char **argv)
|
||||||
{
|
{
|
||||||
struct _list_data ld;
|
struct _list_data ld;
|
||||||
|
|
||||||
|
@ -1141,7 +1127,7 @@ static int do_list (
|
||||||
|
|
||||||
if (iceauth_head) {
|
if (iceauth_head) {
|
||||||
for (l = iceauth_head; l; l = l->next) {
|
for (l = iceauth_head; l; l = l->next) {
|
||||||
dump_entry (inputfilename, lineno, l->auth, (char *) &ld);
|
dump_entry (inputfilename, lineno, l->auth, &ld);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -1149,7 +1135,7 @@ static int do_list (
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return (search_and_do (inputfilename, lineno, 1, argc, argv,
|
return (search_and_do (inputfilename, lineno, 1, argc, argv,
|
||||||
dump_entry, (char *) &ld));
|
dump_entry, &ld));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1160,7 +1146,7 @@ static int do_merge (
|
||||||
const char *inputfilename,
|
const char *inputfilename,
|
||||||
int lineno,
|
int lineno,
|
||||||
int argc,
|
int argc,
|
||||||
char **argv)
|
const char **argv)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
int errors = 0;
|
int errors = 0;
|
||||||
|
@ -1176,7 +1162,7 @@ static int do_merge (
|
||||||
listhead = listtail = NULL;
|
listhead = listtail = NULL;
|
||||||
|
|
||||||
for (i = 1; i < argc; i++) {
|
for (i = 1; i < argc; i++) {
|
||||||
char *filename = argv[i];
|
const char *filename = argv[i];
|
||||||
FILE *fp;
|
FILE *fp;
|
||||||
Bool used_stdin = False;
|
Bool used_stdin = False;
|
||||||
|
|
||||||
|
@ -1224,7 +1210,7 @@ static int do_extract (
|
||||||
const char *inputfilename,
|
const char *inputfilename,
|
||||||
int lineno,
|
int lineno,
|
||||||
int argc,
|
int argc,
|
||||||
char **argv)
|
const char **argv)
|
||||||
{
|
{
|
||||||
int errors;
|
int errors;
|
||||||
struct _extract_data ed;
|
struct _extract_data ed;
|
||||||
|
@ -1241,7 +1227,7 @@ static int do_extract (
|
||||||
ed.cmd = argv[0];
|
ed.cmd = argv[0];
|
||||||
|
|
||||||
errors = search_and_do (inputfilename, lineno, 2, argc, argv,
|
errors = search_and_do (inputfilename, lineno, 2, argc, argv,
|
||||||
extract_entry, (char *) &ed);
|
extract_entry, &ed);
|
||||||
|
|
||||||
if (!ed.fp) {
|
if (!ed.fp) {
|
||||||
fprintf (stderr,
|
fprintf (stderr,
|
||||||
|
@ -1268,15 +1254,15 @@ static int do_add (
|
||||||
const char *inputfilename,
|
const char *inputfilename,
|
||||||
int lineno,
|
int lineno,
|
||||||
int argc,
|
int argc,
|
||||||
char **argv)
|
const char **argv)
|
||||||
{
|
{
|
||||||
int n, nnew, nrepl, ndup;
|
int n, nnew, nrepl, ndup;
|
||||||
char *protoname;
|
const char *protoname;
|
||||||
char *protodata_hex;
|
const char *protodata_hex;
|
||||||
char *protodata = NULL; /* not required */
|
char *protodata = NULL; /* not required */
|
||||||
char *netid;
|
const char *netid;
|
||||||
char *authname;
|
const char *authname;
|
||||||
char *authdata_hex;
|
const char *authdata_hex;
|
||||||
char *authdata = NULL;
|
char *authdata = NULL;
|
||||||
int protodata_len, authdata_len;
|
int protodata_len, authdata_len;
|
||||||
IceAuthFileEntry *auth = NULL;
|
IceAuthFileEntry *auth = NULL;
|
||||||
|
@ -1450,7 +1436,7 @@ static int do_remove (
|
||||||
const char *inputfilename,
|
const char *inputfilename,
|
||||||
int lineno,
|
int lineno,
|
||||||
int argc,
|
int argc,
|
||||||
char **argv)
|
const char **argv)
|
||||||
{
|
{
|
||||||
int nremoved = 0;
|
int nremoved = 0;
|
||||||
int errors;
|
int errors;
|
||||||
|
@ -1462,7 +1448,7 @@ static int do_remove (
|
||||||
}
|
}
|
||||||
|
|
||||||
errors = search_and_do (inputfilename, lineno, 1, argc, argv,
|
errors = search_and_do (inputfilename, lineno, 1, argc, argv,
|
||||||
remove_entry, (char *) &nremoved);
|
remove_entry, &nremoved);
|
||||||
if (verbose) printf ("%d entries removed\n", nremoved);
|
if (verbose) printf ("%d entries removed\n", nremoved);
|
||||||
return errors;
|
return errors;
|
||||||
}
|
}
|
||||||
|
@ -1474,7 +1460,7 @@ static int do_info (
|
||||||
const char *inputfilename,
|
const char *inputfilename,
|
||||||
int lineno,
|
int lineno,
|
||||||
int argc,
|
int argc,
|
||||||
char **argv)
|
const char **argv)
|
||||||
{
|
{
|
||||||
int n;
|
int n;
|
||||||
AuthList *l;
|
AuthList *l;
|
||||||
|
@ -1506,10 +1492,10 @@ static Bool alldone = False;
|
||||||
|
|
||||||
/* ARGSUSED */
|
/* ARGSUSED */
|
||||||
static int do_exit (
|
static int do_exit (
|
||||||
const char *inputfilename,
|
const char *inputfilename _X_UNUSED,
|
||||||
int lineno,
|
int lineno _X_UNUSED,
|
||||||
int argc,
|
int argc _X_UNUSED,
|
||||||
char **argv)
|
const char **argv _X_UNUSED)
|
||||||
{
|
{
|
||||||
/* allow bogus stuff */
|
/* allow bogus stuff */
|
||||||
alldone = True;
|
alldone = True;
|
||||||
|
@ -1521,10 +1507,10 @@ static int do_exit (
|
||||||
*/
|
*/
|
||||||
/* ARGSUSED */
|
/* ARGSUSED */
|
||||||
static int do_quit (
|
static int do_quit (
|
||||||
const char *inputfilename,
|
const char *inputfilename _X_UNUSED,
|
||||||
int lineno,
|
int lineno _X_UNUSED,
|
||||||
int argc,
|
int argc _X_UNUSED,
|
||||||
char **argv)
|
const char **argv _X_UNUSED)
|
||||||
{
|
{
|
||||||
/* allow bogus stuff */
|
/* allow bogus stuff */
|
||||||
die (0);
|
die (0);
|
||||||
|
@ -1540,13 +1526,13 @@ static int do_source (
|
||||||
const char *inputfilename,
|
const char *inputfilename,
|
||||||
int lineno,
|
int lineno,
|
||||||
int argc,
|
int argc,
|
||||||
char **argv)
|
const char **argv)
|
||||||
{
|
{
|
||||||
char *script;
|
const char *script;
|
||||||
char buf[BUFSIZ];
|
char buf[BUFSIZ];
|
||||||
FILE *fp;
|
FILE *fp;
|
||||||
Bool used_stdin = False;
|
Bool used_stdin = False;
|
||||||
int len;
|
size_t len;
|
||||||
int errors = 0, status;
|
int errors = 0, status;
|
||||||
int sublineno = 0;
|
int sublineno = 0;
|
||||||
char **subargv;
|
char **subargv;
|
||||||
|
@ -1587,7 +1573,8 @@ static int do_source (
|
||||||
buf[--len] = '\0'; /* remove new line */
|
buf[--len] = '\0'; /* remove new line */
|
||||||
subargv = split_into_words (buf, &subargc);
|
subargv = split_into_words (buf, &subargc);
|
||||||
if (subargv) {
|
if (subargv) {
|
||||||
status = process_command (script, sublineno, subargc, subargv);
|
status = process_command (script, sublineno, subargc,
|
||||||
|
(const char **) subargv);
|
||||||
free ((char *) subargv);
|
free ((char *) subargv);
|
||||||
errors += status;
|
errors += status;
|
||||||
} else {
|
} else {
|
||||||
|
|
21
rgb/COPYING
21
rgb/COPYING
|
@ -21,3 +21,24 @@ Except as contained in this notice, the name of The Open Group shall
|
||||||
not be used in advertising or otherwise to promote the sale, use or
|
not be used in advertising or otherwise to promote the sale, use or
|
||||||
other dealings in this Software without prior written authorization
|
other dealings in this Software without prior written authorization
|
||||||
from The Open Group.
|
from The Open Group.
|
||||||
|
|
||||||
|
Copyright (c) 1994, 2008, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
|
||||||
|
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 (including the next
|
||||||
|
paragraph) 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 AUTHORS OR COPYRIGHT HOLDERS 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.
|
||||||
|
|
587
rgb/ChangeLog
587
rgb/ChangeLog
|
@ -1,53 +1,576 @@
|
||||||
2006-05-15 Adam Jackson <ajax@freedesktop.org>
|
commit 41599a3703e7b95c73a44c548d2ba074aa3eb3d8
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Sat Nov 8 11:31:26 2014 -0800
|
||||||
|
|
||||||
* configure.ac:
|
rgb 1.0.6
|
||||||
Bump to 1.0.1
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
2006-04-28 Jeremy C. Reed <reed@reedmedia.net>
|
commit 436c80aa9fe73824b6438934897c4f810e52f6e7
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Sat Oct 25 11:04:57 2014 -0700
|
||||||
|
|
||||||
reviewed by: Adam Jackson
|
If opening argv[1] + ".txt" fails, try opening argv[1] without suffix
|
||||||
|
|
||||||
|
Previously, running "showrgb /usr/share/X11/rgb.txt" would give the
|
||||||
|
confusing error message:
|
||||||
|
showrgb: unable to open rgb database "/usr/share/X11/rgb.txt"
|
||||||
|
since it was really looking for rgb.txt.txt.
|
||||||
|
|
||||||
|
Now it just works, allowing users to use filename completion.
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
* configure.ac:
|
commit 3f1a7aac4b4c91e0d7b3c355b4148245ab8eb24d
|
||||||
pkg-config check for xproto instead of x11.
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Fri Oct 24 19:08:41 2014 -0700
|
||||||
|
|
||||||
2005-12-14 Kevin E. Martin <kem-at-freedesktop-dot-org>
|
Use asprintf() instead of malloc/strcpy/strcat, if its available
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Reviewed-by: Matthieu Herrb <matthieu@herrb.eu>
|
||||||
|
|
||||||
* configure.ac:
|
commit ca05c39d1c52734661d703d92c39cc3669c7b520
|
||||||
Update package version number for final X11R7 release candidate.
|
Author: Daphne Pfister <daphnediane@mac.com>
|
||||||
|
Date: Mon Jun 23 01:02:29 2014 -0400
|
||||||
|
|
||||||
2005-12-06 Kevin E. Martin <kem-at-freedesktop-dot-org>
|
Add aliases for colors that differ between X11 and CSS
|
||||||
|
|
||||||
|
While CSS colors are based on X11 color and mostly the same there
|
||||||
|
are a handful that have different values: gray, grey, green, and
|
||||||
|
maroon. Add versions of the color names with X11 and Web prefix so
|
||||||
|
that tools that process rgb.txt can get either version.
|
||||||
|
|
||||||
|
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
* Makefile.am:
|
commit ee2c453a748af6fbd0b31569b3b240517b9320f3
|
||||||
Change *man_SOURCES ==> *man_PRE to fix autotools warnings.
|
Author: Daphne Pfister <daphnediane@mac.com>
|
||||||
|
Date: Mon Jun 23 00:58:43 2014 -0400
|
||||||
|
|
||||||
2005-12-03 Kevin E. Martin <kem-at-freedesktop-dot-org>
|
Add missing colors from CSS Color Module Level 4
|
||||||
|
|
||||||
|
CSS web colors are based on the X11 rgb.txt file. There are a few
|
||||||
|
colors in CSS that were not in rgb.txt. Update rgb.txt to include
|
||||||
|
all CSS color names. Adding aqua, lime, fuchsia, crimson, indigo,
|
||||||
|
olive, rebecca purple, silver and teal.
|
||||||
|
|
||||||
|
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
* configure.ac:
|
commit 107c0c25bae9bf784df1fe5ad9c950cc48ff98ab
|
||||||
Update package version number for X11R7 RC3 release.
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Mon Jun 2 21:05:57 2014 -0700
|
||||||
|
|
||||||
2005-12-01 Kevin E. Martin <kem-at-freedesktop-dot-org>
|
autogen.sh: Honor NOCONFIGURE=1
|
||||||
|
|
||||||
|
See http://people.gnome.org/~walters/docs/build-api.txt
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
* configure.ac:
|
commit c9fb7603f4a9ea4a2a6bc7096769a2ae12140998
|
||||||
Change the default rgb dir to be the same path as the X server.
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Mon Jun 2 21:05:57 2014 -0700
|
||||||
|
|
||||||
2005-11-23 Alan Coopersmith <alan.coopersmith@sun.com>
|
configure: Drop AM_MAINTAINER_MODE
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
* configure.ac:
|
commit c78228c3948966c3dc8cdaa9ed68449c64150fbd
|
||||||
Fix --with-rgb-dir help string to give the right flag name.
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Sat Jan 19 16:16:39 2013 -0800
|
||||||
|
|
||||||
2005-11-19 Kevin E. Martin <kem-at-freedesktop-dot-org>
|
rgb 1.0.5
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
* Makefile.am:
|
commit c0fea07b26943cbb7eb9947b90013d77f73e573a
|
||||||
* configure.ac:
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
Update dependencies to work with separate build roots.
|
Date: Sat Jan 19 16:07:56 2013 -0800
|
||||||
|
|
||||||
2005-11-09 Kevin E. Martin <kem-at-freedesktop-dot-org>
|
config: Add missing AC_CONFIG_SRCDIR
|
||||||
|
|
||||||
|
Regroup AC statements under the Autoconf initialization section.
|
||||||
|
Regroup AM statements under the Automake initialization section.
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
* configure.ac:
|
commit 318ba2333984a7cadfba6ffc269427c61966b0f4
|
||||||
Update package version number for X11R7 RC2 release.
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Fri Jan 11 21:30:37 2013 -0800
|
||||||
|
|
||||||
2005-10-18 Kevin E. Martin <kem-at-freedesktop-dot-org>
|
Replace unbounded strcpy/strcat pairs with snprintf calls
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
* configure.ac:
|
commit c7af632206a794407dd5ee52fc0b18b2478668b4
|
||||||
Update package version number for RC1 release.
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Tue Jun 5 18:05:41 2012 -0700
|
||||||
|
|
||||||
|
unifdef __UNIXOS2__
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit e7d3ef457bff9d14b308b88d88f7942eca1cabb8
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Mon Sep 26 15:57:02 2011 -0700
|
||||||
|
|
||||||
|
Add const attributes to fix gcc -Wwrite-strings warnings
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit 37e97808cae61b7488ba0b3dfb9e7f66cbee1874
|
||||||
|
Author: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
Date: Fri Mar 4 20:22:38 2011 -0500
|
||||||
|
|
||||||
|
man: replace hard coded section number (1) and (3) with variables
|
||||||
|
|
||||||
|
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
|
||||||
|
commit 54bf7707422b51e0b28ec9e968e2eac85cbd0932
|
||||||
|
Author: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
Date: Wed Jan 12 16:28:02 2011 -0500
|
||||||
|
|
||||||
|
config: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERS
|
||||||
|
|
||||||
|
This silences an Autoconf warning
|
||||||
|
|
||||||
|
commit dcfac7570f8f92dfe3b79338439461c0d32567a1
|
||||||
|
Author: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
Date: Wed Jan 12 15:29:49 2011 -0500
|
||||||
|
|
||||||
|
config: replace deprecated AC_HELP_STRING with AS_HELP_STRING
|
||||||
|
|
||||||
|
This silences an Automake warning.
|
||||||
|
|
||||||
|
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
|
||||||
|
commit 20600faa8d0d44c0aeeb370d321da8a405fc0743
|
||||||
|
Author: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
Date: Wed Jan 12 13:33:47 2011 -0500
|
||||||
|
|
||||||
|
config: remove unrequired AC_SUBST([*_CFLAGS])
|
||||||
|
|
||||||
|
This macro is called by PKG_CHECK_MODULES
|
||||||
|
|
||||||
|
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
|
||||||
|
commit 9c6cb7bd5dfec4aedb943f618730c6235d84a740
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Wed Oct 6 20:17:27 2010 -0700
|
||||||
|
|
||||||
|
rgb 1.0.4
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit 70a7c2b1bbea37a8d84205f9c1725c0320364406
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Wed Sep 22 20:35:59 2010 -0700
|
||||||
|
|
||||||
|
Sun's copyrights belong to Oracle now
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit e20e3d90bbd535454573fb41f430d7ca449e432d
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Wed Sep 22 20:32:16 2010 -0700
|
||||||
|
|
||||||
|
config: Remove AC_PROG_CC & AC_PROG_INSTALL that XORG_DEFAULT_OPTIONS provide
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit 0aca4de2b5fc69f3ad36e00c020f916de44023b7
|
||||||
|
Author: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
Date: Tue Jul 20 18:45:18 2010 -0400
|
||||||
|
|
||||||
|
config: update AC_PREREQ statement to 2.60
|
||||||
|
|
||||||
|
Unrelated to the previous patches, the new value simply reflects
|
||||||
|
the reality that the minimum level for autoconf to configure
|
||||||
|
all x.org modules is 2.60 dated June 2006.
|
||||||
|
|
||||||
|
ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.60.tar.gz
|
||||||
|
|
||||||
|
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
|
||||||
|
commit a3acab7ea9ea4013b5d11b7ce4f1540134f32f37
|
||||||
|
Author: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
Date: Fri Aug 20 16:58:18 2010 -0400
|
||||||
|
|
||||||
|
config: upgrade to util-macros 1.8 for additional man page support
|
||||||
|
|
||||||
|
Use MAN_SUBST now supplied in XORG_MANPAGE_SECTIONS
|
||||||
|
The value of MAN_SUBST is the same for all X.Org packages.
|
||||||
|
|
||||||
|
Use AC_PROG_SED now supplied by XORG_DEFAULT_OPTIONS
|
||||||
|
Use the appropriate platform version of sed
|
||||||
|
|
||||||
|
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
|
||||||
|
commit 051b49b9ac4409f3af80e6b49b4dd675e4c217b2
|
||||||
|
Author: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
Date: Fri Aug 20 16:38:59 2010 -0400
|
||||||
|
|
||||||
|
man: remove trailing whitespace
|
||||||
|
|
||||||
|
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
|
||||||
|
commit 2e8280347b96968c847cc4fcf1eee186d458415b
|
||||||
|
Author: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
Date: Thu Feb 11 10:08:06 2010 -0500
|
||||||
|
|
||||||
|
config: move CWARNFLAGS from configure.ac to Makefile.am
|
||||||
|
|
||||||
|
Compiler warning flags should be explicitly set in the makefile
|
||||||
|
rather than being merged with other packages compiler flags.
|
||||||
|
|
||||||
|
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
|
||||||
|
commit 7e3f7e18ac6edbfb515eac97b7646f766d916d85
|
||||||
|
Author: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
Date: Thu Nov 26 09:54:19 2009 -0500
|
||||||
|
|
||||||
|
INSTALL, NEWS, README or AUTHORS files are missing/incorrect #24206
|
||||||
|
|
||||||
|
Add missing INSTALL file. Use standard GNU file on building tarball
|
||||||
|
Remove AUTHORS file as it is empty and no content available yet.
|
||||||
|
Remove NEWS file as it is empty and no content available yet.
|
||||||
|
|
||||||
|
commit 7a988f590cd5479de563cfd5f3dcffc058866989
|
||||||
|
Author: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
Date: Thu Nov 26 09:48:04 2009 -0500
|
||||||
|
|
||||||
|
Deploy the new XORG_DEFAULT_OPTIONS #24242
|
||||||
|
|
||||||
|
This macro aggregate a number of existing macros that sets commmon
|
||||||
|
X.Org components configuration options. It shields the configuration file from
|
||||||
|
future changes.
|
||||||
|
|
||||||
|
commit 7ba49b1c6d4b80ddc3306e50b768799381244583
|
||||||
|
Author: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
Date: Mon Oct 26 22:08:38 2009 -0400
|
||||||
|
|
||||||
|
Makefile.am: ChangeLog not required: EXTRA_DIST or *CLEANFILES #24432
|
||||||
|
|
||||||
|
ChangeLog filename is known to Automake and requires no further
|
||||||
|
coding in the makefile.
|
||||||
|
|
||||||
|
commit 4b7f8fdc83969ec1d9913dbd90c61f395c8d126e
|
||||||
|
Author: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
Date: Thu Oct 22 12:34:14 2009 -0400
|
||||||
|
|
||||||
|
.gitignore: use common defaults with custom section # 24239
|
||||||
|
|
||||||
|
Using common defaults will reduce errors and maintenance.
|
||||||
|
Only the very small or inexistent custom section need periodic maintenance
|
||||||
|
when the structure of the component changes. Do not edit defaults.
|
||||||
|
|
||||||
|
commit f9419e37d1f1bb35c1a84d797b4bd61e5e7fea65
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@sun.com>
|
||||||
|
Date: Fri Nov 20 22:45:52 2009 -0800
|
||||||
|
|
||||||
|
Migrate to xorg macros 1.3 & XORG_DEFAULT_OPTIONS
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
||||||
|
|
||||||
|
commit c83234dbf6d6a9744f9dc8a13533c0dfd3700bf3
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@sun.com>
|
||||||
|
Date: Fri Nov 20 22:33:22 2009 -0800
|
||||||
|
|
||||||
|
Update Sun license notices
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
||||||
|
|
||||||
|
commit 66e1f879b4165298b59fb98d05a28bdb0bc574c6
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@sun.com>
|
||||||
|
Date: Thu Oct 1 14:54:18 2009 -0700
|
||||||
|
|
||||||
|
Add README with pointers to mailing lists, bugzilla, & git
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
||||||
|
|
||||||
|
commit 58072d1db611ad95059044cb3ec1302c8475c754
|
||||||
|
Author: Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>
|
||||||
|
Date: Mon Jan 12 19:03:00 2009 -0200
|
||||||
|
|
||||||
|
Ansification and compile warning fixes.
|
||||||
|
|
||||||
|
This also uses XORG_CHANGELOG and XORG_CWARNFLAGS, corrects
|
||||||
|
make distcheck and all gcc 4.3 and sparse warnings.
|
||||||
|
|
||||||
|
commit f0c7399100f25d2c512ee7c922cf13a4bd9c507e
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@sun.com>
|
||||||
|
Date: Thu Jun 5 20:17:09 2008 -0700
|
||||||
|
|
||||||
|
rgb version 1.0.3
|
||||||
|
|
||||||
|
Don't you hate it when you push out a new version and then realize minutes
|
||||||
|
later than you've got a manpage in your distro that's not in upstream you
|
||||||
|
could have included?
|
||||||
|
|
||||||
|
commit 2e8b928b2176a67a0d533748f385078ad8829cc3
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@sun.com>
|
||||||
|
Date: Thu Jun 5 20:13:35 2008 -0700
|
||||||
|
|
||||||
|
Include rgb(1) man page from Solaris
|
||||||
|
|
||||||
|
commit bd94a52404b0e23a61e6ca330b759fdd82a59996
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@sun.com>
|
||||||
|
Date: Thu Jun 5 18:25:47 2008 -0700
|
||||||
|
|
||||||
|
rgb version 1.0.2
|
||||||
|
|
||||||
|
commit 7bb6478c651dcb576e2a0ff756365f52d9db04e4
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@sun.com>
|
||||||
|
Date: Wed Jun 4 20:24:05 2008 -0700
|
||||||
|
|
||||||
|
Update showrgb man page to better match current implementation
|
||||||
|
|
||||||
|
commit 749182c37cb455939ba327e9420dd652c0ff58a1
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@sun.com>
|
||||||
|
Date: Wed Jun 4 20:16:12 2008 -0700
|
||||||
|
|
||||||
|
Nuke CVS version tags
|
||||||
|
|
||||||
|
commit 11193caceaa02f639d1e8a701ed92947e7eaad36
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@sun.com>
|
||||||
|
Date: Wed Jun 4 20:09:01 2008 -0700
|
||||||
|
|
||||||
|
Fix build to work with --with-rgb-db-type=dbm
|
||||||
|
|
||||||
|
commit 0351f14a999264c152d7c585fc91ad4901e3c776
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@sun.com>
|
||||||
|
Date: Wed Jun 4 19:40:44 2008 -0700
|
||||||
|
|
||||||
|
Fix build to work with --with-rgb-db-type=ndbm
|
||||||
|
|
||||||
|
Also remove #includes of unused headers & convert K&R to ANSI C
|
||||||
|
|
||||||
|
commit 7a327431337875e81094aaed0002c89041a0f570
|
||||||
|
Author: James Cloos <cloos@jhcloos.com>
|
||||||
|
Date: Thu Dec 6 16:37:05 2007 -0500
|
||||||
|
|
||||||
|
Replace static ChangeLog with dist-hook to generate from git log
|
||||||
|
|
||||||
|
commit 42c6e9a89d45c897c82f7ec1973f66aa1190d241
|
||||||
|
Author: James Cloos <cloos@jhcloos.com>
|
||||||
|
Date: Mon Sep 3 05:51:08 2007 -0400
|
||||||
|
|
||||||
|
Add *~ to .gitignore to skip patch/emacs droppings
|
||||||
|
|
||||||
|
commit 654ea29b1abed12d88e5a38abbf538779c679922
|
||||||
|
Author: James Cloos <cloos@jhcloos.com>
|
||||||
|
Date: Thu Aug 23 19:24:33 2007 -0400
|
||||||
|
|
||||||
|
Rename .cvsignore to .gitignore
|
||||||
|
|
||||||
|
commit d96f362956d9e58cbb46740f825d5bad50f0fbf1
|
||||||
|
Author: Adam Jackson <ajax@nwnk.net>
|
||||||
|
Date: Fri May 19 18:30:39 2006 +0000
|
||||||
|
|
||||||
|
Bump to 1.0.1
|
||||||
|
|
||||||
|
commit 808ad54d56095cc09138e2d25580009daed47c8f
|
||||||
|
Author: Jeremy C. Reed <reed@reedmedia.net>
|
||||||
|
Date: Fri Apr 28 17:13:37 2006 +0000
|
||||||
|
|
||||||
|
pkg-config check for xproto instead of x11.
|
||||||
|
|
||||||
|
commit 4a9b01708d7d0ea08534e0699311a41e8b55a9d7
|
||||||
|
Author: Kevin E Martin <kem@kem.org>
|
||||||
|
Date: Thu Dec 15 00:24:03 2005 +0000
|
||||||
|
|
||||||
|
Update package version number for final X11R7 release candidate.
|
||||||
|
|
||||||
|
commit a5dfa8230f98bf7f21046f9217cee5461587e620
|
||||||
|
Author: Kevin E Martin <kem@kem.org>
|
||||||
|
Date: Tue Dec 6 22:48:18 2005 +0000
|
||||||
|
|
||||||
|
Change *man_SOURCES ==> *man_PRE to fix autotools warnings.
|
||||||
|
|
||||||
|
commit 159ab1fbe0dbb05699cc847862f135a216cfa8a0
|
||||||
|
Author: Kevin E Martin <kem@kem.org>
|
||||||
|
Date: Sat Dec 3 05:49:17 2005 +0000
|
||||||
|
|
||||||
|
Update package version number for X11R7 RC3 release.
|
||||||
|
|
||||||
|
commit f1226de089929e89ed0e77535ae129373935f4b5
|
||||||
|
Author: Kevin E Martin <kem@kem.org>
|
||||||
|
Date: Fri Dec 2 01:40:06 2005 +0000
|
||||||
|
|
||||||
|
Change the default rgb dir to be the same path as the X server.
|
||||||
|
|
||||||
|
commit 93b6b4cda7a0a2323a10405bb8b7af0e4a1a6110
|
||||||
|
Author: Alan Coopersmith <Alan.Coopersmith@sun.com>
|
||||||
|
Date: Mon Nov 28 22:01:38 2005 +0000
|
||||||
|
|
||||||
|
Change *mandir targets to use new *_MAN_DIR variables set by xorg-macros.m4
|
||||||
|
update to fix bug #5167 (Linux prefers *.1x man pages in man1 subdir)
|
||||||
|
|
||||||
|
commit 7b13cbbdbd82403fff16fbbde0c0150f051ebdfa
|
||||||
|
Author: Alan Coopersmith <Alan.Coopersmith@sun.com>
|
||||||
|
Date: Thu Nov 24 00:25:59 2005 +0000
|
||||||
|
|
||||||
|
Fix --with-rgb-dir help string to give the right flag name.
|
||||||
|
|
||||||
|
commit 191f46bdd6a7ed44e22d5a8a095939697649e669
|
||||||
|
Author: Eric Anholt <anholt@freebsd.org>
|
||||||
|
Date: Mon Nov 21 10:34:57 2005 +0000
|
||||||
|
|
||||||
|
Another pass at .cvsignores for apps.
|
||||||
|
|
||||||
|
commit 46f1e5df56048a5d93aca3cb800e78dbba084846
|
||||||
|
Author: Eric Anholt <anholt@freebsd.org>
|
||||||
|
Date: Sun Nov 20 22:08:49 2005 +0000
|
||||||
|
|
||||||
|
Add/improve .cvsignore files for apps.
|
||||||
|
|
||||||
|
commit f9fe12f84b6f774b696cc3075ec22b9605fdbb65
|
||||||
|
Author: Kevin E Martin <kem@kem.org>
|
||||||
|
Date: Sat Nov 19 07:15:35 2005 +0000
|
||||||
|
|
||||||
|
Update pkgconfig files to separate library build-time dependencies from
|
||||||
|
application build-time dependencies, and update package deps to work
|
||||||
|
with separate build roots.
|
||||||
|
|
||||||
|
commit 3a2f377dbbea0b5aca6986f90e92b54ddc106dfb
|
||||||
|
Author: Kevin E Martin <kem@kem.org>
|
||||||
|
Date: Wed Nov 9 21:09:20 2005 +0000
|
||||||
|
|
||||||
|
Update package version number for X11R7 RC2 release.
|
||||||
|
|
||||||
|
commit 93b884959f2a9ef4c893ffa3d26ecef13c1ca4e8
|
||||||
|
Author: Kean Johnson <kean@armory.com>
|
||||||
|
Date: Tue Nov 8 06:33:31 2005 +0000
|
||||||
|
|
||||||
|
See ChangeLog entry 2005-11-07 for details.
|
||||||
|
|
||||||
|
commit cb599821a3c8dd2136b3d207911c74c2e5ad571c
|
||||||
|
Author: Kevin E Martin <kem@kem.org>
|
||||||
|
Date: Wed Oct 19 02:47:49 2005 +0000
|
||||||
|
|
||||||
|
Update package version number for RC1 release.
|
||||||
|
|
||||||
|
commit e6ddb673f5835bf7b9804fa29e62edd20419ea47
|
||||||
|
Author: Alan Coopersmith <Alan.Coopersmith@sun.com>
|
||||||
|
Date: Mon Oct 17 23:56:20 2005 +0000
|
||||||
|
|
||||||
|
Use @APP_MAN_SUFFIX@ instead of $(APP_MAN_SUFFIX) in macro substitutions to
|
||||||
|
work better with BSD make
|
||||||
|
|
||||||
|
commit 15bccd547d6038edb9cbc4f9ad02dfbed6f9dcb8
|
||||||
|
Author: Alan Coopersmith <Alan.Coopersmith@sun.com>
|
||||||
|
Date: Fri Oct 14 00:25:42 2005 +0000
|
||||||
|
|
||||||
|
Use sed to fill in variables in man page
|
||||||
|
|
||||||
|
commit 9ee0a8cb83cfcf475441e393bfa04ea4fcbf49f9
|
||||||
|
Author: Alan Coopersmith <Alan.Coopersmith@sun.com>
|
||||||
|
Date: Mon Aug 1 22:35:37 2005 +0000
|
||||||
|
|
||||||
|
Change default install dir for rgb.txt from libdir to libdir/X11, since
|
||||||
|
that's where Xorg looks for it
|
||||||
|
|
||||||
|
commit fbb5f013d40c7a0ea26ac33a5abce1e9dd0ccadc
|
||||||
|
Author: Alan Coopersmith <Alan.Coopersmith@sun.com>
|
||||||
|
Date: Mon Aug 1 20:25:28 2005 +0000
|
||||||
|
|
||||||
|
Install man pages to section 1 instead of section m (Patch from Donnie
|
||||||
|
Berkholz)
|
||||||
|
|
||||||
|
commit 321c5f16ba1851a96a12bc5bafa832c3b9ac08e9
|
||||||
|
Author: Kevin E Martin <kem@kem.org>
|
||||||
|
Date: Fri Jul 29 21:22:30 2005 +0000
|
||||||
|
|
||||||
|
Various changes preparing packages for RC0:
|
||||||
|
- Verify and update package version numbers as needed
|
||||||
|
- Implement versioning scheme
|
||||||
|
- Change bug address to point to bugzilla bug entry form
|
||||||
|
- Disable loadable i18n in libX11 by default (use --enable-loadable-i18n to
|
||||||
|
reenable it)
|
||||||
|
- Fix makedepend to use pkgconfig and pass distcheck
|
||||||
|
- Update build script to build macros first
|
||||||
|
- Update modular Xorg version
|
||||||
|
|
||||||
|
commit 1dda7081659c8d5eacbfed77ee0aa594b17440a0
|
||||||
|
Author: Kevin E Martin <kem@kem.org>
|
||||||
|
Date: Thu Jul 28 15:57:12 2005 +0000
|
||||||
|
|
||||||
|
Fix distcheck for remaining apps
|
||||||
|
|
||||||
|
commit 794993251c8700061f84246f87ec3c060f2ffb37
|
||||||
|
Author: Søren Sandmann Pedersen <sandmann@daimi.au.dk>
|
||||||
|
Date: Wed Jul 27 19:40:28 2005 +0000
|
||||||
|
|
||||||
|
Check for xproto
|
||||||
|
|
||||||
|
commit 4531a95fde3e9e0dac1e24c0e140094d24503ce2
|
||||||
|
Author: Alan Coopersmith <Alan.Coopersmith@sun.com>
|
||||||
|
Date: Sat Jul 23 15:32:50 2005 +0000
|
||||||
|
|
||||||
|
Don't link in -lucb on Solaris
|
||||||
|
#ifdef HAVE_CONFIG_H/#include "config.h" for modularization
|
||||||
|
|
||||||
|
commit d468fba83ec0d963f70ac0f6be47c41ce4080803
|
||||||
|
Author: Alan Coopersmith <Alan.Coopersmith@sun.com>
|
||||||
|
Date: Thu Jul 21 04:21:06 2005 +0000
|
||||||
|
|
||||||
|
oops, forgot to cvs add autogen.sh
|
||||||
|
|
||||||
|
commit ab0ad07c8529ee5d5da88de28956f81b9ecf833c
|
||||||
|
Author: Alan Coopersmith <Alan.Coopersmith@sun.com>
|
||||||
|
Date: Thu Jul 21 04:20:35 2005 +0000
|
||||||
|
|
||||||
|
Initial autotooling of rgb/showrgb (Defaults to flat text file - dbm/ndbm
|
||||||
|
support partially implemented, but not yet buildable since it requires
|
||||||
|
site.h & rgb.h from Xserver/includes)
|
||||||
|
|
||||||
|
commit 7a676fdf168ed250baef3b99393f3dccbda91a7e
|
||||||
|
Author: Søren Sandmann Pedersen <sandmann@daimi.au.dk>
|
||||||
|
Date: Wed Jun 29 18:20:16 2005 +0000
|
||||||
|
|
||||||
|
Add build system for rgb symlink.sh: Link pmconfig.cpp, link various text
|
||||||
|
files for rgb xc/programs/rgb/showrgb.c: Don't include rgb.h and site.h
|
||||||
|
when USE_RGB_TXT is defined
|
||||||
|
|
||||||
|
commit ad45da26f8f399bad12c6af78cc211f1dc563e58
|
||||||
|
Author: Egbert Eich <eich@suse.de>
|
||||||
|
Date: Fri Apr 23 19:54:36 2004 +0000
|
||||||
|
|
||||||
|
Merging XORG-CURRENT into trunk
|
||||||
|
|
||||||
|
commit a1edb12b592188781e4a18898fb1cd3fab472e4f
|
||||||
|
Author: Egbert Eich <eich@suse.de>
|
||||||
|
Date: Sun Mar 14 08:34:55 2004 +0000
|
||||||
|
|
||||||
|
Importing vendor version xf86-4_4_99_1 on Sun Mar 14 00:26:39 PST 2004
|
||||||
|
|
||||||
|
commit 2c7849cf40d3f24e14a9668110a93e35a9120cd9
|
||||||
|
Author: Egbert Eich <eich@suse.de>
|
||||||
|
Date: Wed Mar 3 12:12:53 2004 +0000
|
||||||
|
|
||||||
|
Importing vendor version xf86-4_4_0 on Wed Mar 3 04:09:24 PST 2004
|
||||||
|
|
||||||
|
commit 3798295f9b9e66543233d7fd44e95a244f0f8b06
|
||||||
|
Author: Egbert Eich <eich@suse.de>
|
||||||
|
Date: Thu Feb 26 13:36:15 2004 +0000
|
||||||
|
|
||||||
|
readding XFree86's cvs IDs
|
||||||
|
|
||||||
|
commit 3bfe5e286e3ca975e1a0e12bbb527f73bbf443aa
|
||||||
|
Author: Egbert Eich <eich@suse.de>
|
||||||
|
Date: Thu Feb 26 09:23:57 2004 +0000
|
||||||
|
|
||||||
|
Importing vendor version xf86-4_3_99_903 on Wed Feb 26 01:21:00 PST 2004
|
||||||
|
|
||||||
|
commit da58b20fd4fd40bccb34ce2e8f1401fc994c973c
|
||||||
|
Author: Kaleb Keithley <kaleb@freedesktop.org>
|
||||||
|
Date: Fri Nov 14 16:48:58 2003 +0000
|
||||||
|
|
||||||
|
XFree86 4.3.0.1
|
||||||
|
|
||||||
|
commit 1f2079d6943e2c85edbeeb4309f7ec5e216ee640
|
||||||
|
Author: Kaleb Keithley <kaleb@freedesktop.org>
|
||||||
|
Date: Fri Nov 14 15:54:53 2003 +0000
|
||||||
|
|
||||||
|
R6.6 is the Xorg base-line
|
||||||
|
|
246
rgb/INSTALL
246
rgb/INSTALL
|
@ -1,16 +1,25 @@
|
||||||
Installation Instructions
|
Installation Instructions
|
||||||
*************************
|
*************************
|
||||||
|
|
||||||
Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005 Free
|
Copyright (C) 1994-1996, 1999-2002, 2004-2011 Free Software Foundation,
|
||||||
Software Foundation, Inc.
|
Inc.
|
||||||
|
|
||||||
This file is free documentation; the Free Software Foundation gives
|
Copying and distribution of this file, with or without modification,
|
||||||
unlimited permission to copy, distribute and modify it.
|
are permitted in any medium without royalty provided the copyright
|
||||||
|
notice and this notice are preserved. This file is offered as-is,
|
||||||
|
without warranty of any kind.
|
||||||
|
|
||||||
Basic Installation
|
Basic Installation
|
||||||
==================
|
==================
|
||||||
|
|
||||||
These are generic installation instructions.
|
Briefly, the shell commands `./configure; make; make install' should
|
||||||
|
configure, build, and install this package. The following
|
||||||
|
more-detailed instructions are generic; see the `README' file for
|
||||||
|
instructions specific to this package. Some packages provide this
|
||||||
|
`INSTALL' file but do not implement all of the features documented
|
||||||
|
below. The lack of an optional feature in a given package is not
|
||||||
|
necessarily a bug. More recommendations for GNU packages can be found
|
||||||
|
in *note Makefile Conventions: (standards)Makefile Conventions.
|
||||||
|
|
||||||
The `configure' shell script attempts to guess correct values for
|
The `configure' shell script attempts to guess correct values for
|
||||||
various system-dependent variables used during compilation. It uses
|
various system-dependent variables used during compilation. It uses
|
||||||
|
@ -23,9 +32,9 @@ debugging `configure').
|
||||||
|
|
||||||
It can also use an optional file (typically called `config.cache'
|
It can also use an optional file (typically called `config.cache'
|
||||||
and enabled with `--cache-file=config.cache' or simply `-C') that saves
|
and enabled with `--cache-file=config.cache' or simply `-C') that saves
|
||||||
the results of its tests to speed up reconfiguring. (Caching is
|
the results of its tests to speed up reconfiguring. Caching is
|
||||||
disabled by default to prevent problems with accidental use of stale
|
disabled by default to prevent problems with accidental use of stale
|
||||||
cache files.)
|
cache files.
|
||||||
|
|
||||||
If you need to do unusual things to compile the package, please try
|
If you need to do unusual things to compile the package, please try
|
||||||
to figure out how `configure' could check whether to do them, and mail
|
to figure out how `configure' could check whether to do them, and mail
|
||||||
|
@ -35,30 +44,37 @@ some point `config.cache' contains results you don't want to keep, you
|
||||||
may remove or edit it.
|
may remove or edit it.
|
||||||
|
|
||||||
The file `configure.ac' (or `configure.in') is used to create
|
The file `configure.ac' (or `configure.in') is used to create
|
||||||
`configure' by a program called `autoconf'. You only need
|
`configure' by a program called `autoconf'. You need `configure.ac' if
|
||||||
`configure.ac' if you want to change it or regenerate `configure' using
|
you want to change it or regenerate `configure' using a newer version
|
||||||
a newer version of `autoconf'.
|
of `autoconf'.
|
||||||
|
|
||||||
The simplest way to compile this package is:
|
The simplest way to compile this package is:
|
||||||
|
|
||||||
1. `cd' to the directory containing the package's source code and type
|
1. `cd' to the directory containing the package's source code and type
|
||||||
`./configure' to configure the package for your system. If you're
|
`./configure' to configure the package for your system.
|
||||||
using `csh' on an old version of System V, you might need to type
|
|
||||||
`sh ./configure' instead to prevent `csh' from trying to execute
|
|
||||||
`configure' itself.
|
|
||||||
|
|
||||||
Running `configure' takes awhile. While running, it prints some
|
Running `configure' might take a while. While running, it prints
|
||||||
messages telling which features it is checking for.
|
some messages telling which features it is checking for.
|
||||||
|
|
||||||
2. Type `make' to compile the package.
|
2. Type `make' to compile the package.
|
||||||
|
|
||||||
3. Optionally, type `make check' to run any self-tests that come with
|
3. Optionally, type `make check' to run any self-tests that come with
|
||||||
the package.
|
the package, generally using the just-built uninstalled binaries.
|
||||||
|
|
||||||
4. Type `make install' to install the programs and any data files and
|
4. Type `make install' to install the programs and any data files and
|
||||||
documentation.
|
documentation. When installing into a prefix owned by root, it is
|
||||||
|
recommended that the package be configured and built as a regular
|
||||||
|
user, and only the `make install' phase executed with root
|
||||||
|
privileges.
|
||||||
|
|
||||||
5. You can remove the program binaries and object files from the
|
5. Optionally, type `make installcheck' to repeat any self-tests, but
|
||||||
|
this time using the binaries in their final installed location.
|
||||||
|
This target does not install anything. Running this target as a
|
||||||
|
regular user, particularly if the prior `make install' required
|
||||||
|
root privileges, verifies that the installation completed
|
||||||
|
correctly.
|
||||||
|
|
||||||
|
6. You can remove the program binaries and object files from the
|
||||||
source code directory by typing `make clean'. To also remove the
|
source code directory by typing `make clean'. To also remove the
|
||||||
files that `configure' created (so you can compile the package for
|
files that `configure' created (so you can compile the package for
|
||||||
a different kind of computer), type `make distclean'. There is
|
a different kind of computer), type `make distclean'. There is
|
||||||
|
@ -67,45 +83,69 @@ The simplest way to compile this package is:
|
||||||
all sorts of other programs in order to regenerate files that came
|
all sorts of other programs in order to regenerate files that came
|
||||||
with the distribution.
|
with the distribution.
|
||||||
|
|
||||||
|
7. Often, you can also type `make uninstall' to remove the installed
|
||||||
|
files again. In practice, not all packages have tested that
|
||||||
|
uninstallation works correctly, even though it is required by the
|
||||||
|
GNU Coding Standards.
|
||||||
|
|
||||||
|
8. Some packages, particularly those that use Automake, provide `make
|
||||||
|
distcheck', which can by used by developers to test that all other
|
||||||
|
targets like `make install' and `make uninstall' work correctly.
|
||||||
|
This target is generally not run by end users.
|
||||||
|
|
||||||
Compilers and Options
|
Compilers and Options
|
||||||
=====================
|
=====================
|
||||||
|
|
||||||
Some systems require unusual options for compilation or linking that the
|
Some systems require unusual options for compilation or linking that
|
||||||
`configure' script does not know about. Run `./configure --help' for
|
the `configure' script does not know about. Run `./configure --help'
|
||||||
details on some of the pertinent environment variables.
|
for details on some of the pertinent environment variables.
|
||||||
|
|
||||||
You can give `configure' initial values for configuration parameters
|
You can give `configure' initial values for configuration parameters
|
||||||
by setting variables in the command line or in the environment. Here
|
by setting variables in the command line or in the environment. Here
|
||||||
is an example:
|
is an example:
|
||||||
|
|
||||||
./configure CC=c89 CFLAGS=-O2 LIBS=-lposix
|
./configure CC=c99 CFLAGS=-g LIBS=-lposix
|
||||||
|
|
||||||
*Note Defining Variables::, for more details.
|
*Note Defining Variables::, for more details.
|
||||||
|
|
||||||
Compiling For Multiple Architectures
|
Compiling For Multiple Architectures
|
||||||
====================================
|
====================================
|
||||||
|
|
||||||
You can compile the package for more than one kind of computer at the
|
You can compile the package for more than one kind of computer at the
|
||||||
same time, by placing the object files for each architecture in their
|
same time, by placing the object files for each architecture in their
|
||||||
own directory. To do this, you must use a version of `make' that
|
own directory. To do this, you can use GNU `make'. `cd' to the
|
||||||
supports the `VPATH' variable, such as GNU `make'. `cd' to the
|
|
||||||
directory where you want the object files and executables to go and run
|
directory where you want the object files and executables to go and run
|
||||||
the `configure' script. `configure' automatically checks for the
|
the `configure' script. `configure' automatically checks for the
|
||||||
source code in the directory that `configure' is in and in `..'.
|
source code in the directory that `configure' is in and in `..'. This
|
||||||
|
is known as a "VPATH" build.
|
||||||
|
|
||||||
If you have to use a `make' that does not support the `VPATH'
|
With a non-GNU `make', it is safer to compile the package for one
|
||||||
variable, you have to compile the package for one architecture at a
|
architecture at a time in the source code directory. After you have
|
||||||
time in the source code directory. After you have installed the
|
installed the package for one architecture, use `make distclean' before
|
||||||
package for one architecture, use `make distclean' before reconfiguring
|
reconfiguring for another architecture.
|
||||||
for another architecture.
|
|
||||||
|
On MacOS X 10.5 and later systems, you can create libraries and
|
||||||
|
executables that work on multiple system types--known as "fat" or
|
||||||
|
"universal" binaries--by specifying multiple `-arch' options to the
|
||||||
|
compiler but only a single `-arch' option to the preprocessor. Like
|
||||||
|
this:
|
||||||
|
|
||||||
|
./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
|
||||||
|
CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
|
||||||
|
CPP="gcc -E" CXXCPP="g++ -E"
|
||||||
|
|
||||||
|
This is not guaranteed to produce working output in all cases, you
|
||||||
|
may have to build one architecture at a time and combine the results
|
||||||
|
using the `lipo' tool if you have problems.
|
||||||
|
|
||||||
Installation Names
|
Installation Names
|
||||||
==================
|
==================
|
||||||
|
|
||||||
By default, `make install' installs the package's commands under
|
By default, `make install' installs the package's commands under
|
||||||
`/usr/local/bin', include files under `/usr/local/include', etc. You
|
`/usr/local/bin', include files under `/usr/local/include', etc. You
|
||||||
can specify an installation prefix other than `/usr/local' by giving
|
can specify an installation prefix other than `/usr/local' by giving
|
||||||
`configure' the option `--prefix=PREFIX'.
|
`configure' the option `--prefix=PREFIX', where PREFIX must be an
|
||||||
|
absolute file name.
|
||||||
|
|
||||||
You can specify separate installation prefixes for
|
You can specify separate installation prefixes for
|
||||||
architecture-specific files and architecture-independent files. If you
|
architecture-specific files and architecture-independent files. If you
|
||||||
|
@ -116,16 +156,47 @@ Documentation and other data files still use the regular prefix.
|
||||||
In addition, if you use an unusual directory layout you can give
|
In addition, if you use an unusual directory layout you can give
|
||||||
options like `--bindir=DIR' to specify different values for particular
|
options like `--bindir=DIR' to specify different values for particular
|
||||||
kinds of files. Run `configure --help' for a list of the directories
|
kinds of files. Run `configure --help' for a list of the directories
|
||||||
you can set and what kinds of files go in them.
|
you can set and what kinds of files go in them. In general, the
|
||||||
|
default for these options is expressed in terms of `${prefix}', so that
|
||||||
|
specifying just `--prefix' will affect all of the other directory
|
||||||
|
specifications that were not explicitly provided.
|
||||||
|
|
||||||
|
The most portable way to affect installation locations is to pass the
|
||||||
|
correct locations to `configure'; however, many packages provide one or
|
||||||
|
both of the following shortcuts of passing variable assignments to the
|
||||||
|
`make install' command line to change installation locations without
|
||||||
|
having to reconfigure or recompile.
|
||||||
|
|
||||||
|
The first method involves providing an override variable for each
|
||||||
|
affected directory. For example, `make install
|
||||||
|
prefix=/alternate/directory' will choose an alternate location for all
|
||||||
|
directory configuration variables that were expressed in terms of
|
||||||
|
`${prefix}'. Any directories that were specified during `configure',
|
||||||
|
but not in terms of `${prefix}', must each be overridden at install
|
||||||
|
time for the entire installation to be relocated. The approach of
|
||||||
|
makefile variable overrides for each directory variable is required by
|
||||||
|
the GNU Coding Standards, and ideally causes no recompilation.
|
||||||
|
However, some platforms have known limitations with the semantics of
|
||||||
|
shared libraries that end up requiring recompilation when using this
|
||||||
|
method, particularly noticeable in packages that use GNU Libtool.
|
||||||
|
|
||||||
|
The second method involves providing the `DESTDIR' variable. For
|
||||||
|
example, `make install DESTDIR=/alternate/directory' will prepend
|
||||||
|
`/alternate/directory' before all installation names. The approach of
|
||||||
|
`DESTDIR' overrides is not required by the GNU Coding Standards, and
|
||||||
|
does not work on platforms that have drive letters. On the other hand,
|
||||||
|
it does better at avoiding recompilation issues, and works well even
|
||||||
|
when some directory options were not specified in terms of `${prefix}'
|
||||||
|
at `configure' time.
|
||||||
|
|
||||||
|
Optional Features
|
||||||
|
=================
|
||||||
|
|
||||||
If the package supports it, you can cause programs to be installed
|
If the package supports it, you can cause programs to be installed
|
||||||
with an extra prefix or suffix on their names by giving `configure' the
|
with an extra prefix or suffix on their names by giving `configure' the
|
||||||
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
|
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
|
||||||
|
|
||||||
Optional Features
|
Some packages pay attention to `--enable-FEATURE' options to
|
||||||
=================
|
|
||||||
|
|
||||||
Some packages pay attention to `--enable-FEATURE' options to
|
|
||||||
`configure', where FEATURE indicates an optional part of the package.
|
`configure', where FEATURE indicates an optional part of the package.
|
||||||
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
|
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
|
||||||
is something like `gnu-as' or `x' (for the X Window System). The
|
is something like `gnu-as' or `x' (for the X Window System). The
|
||||||
|
@ -137,14 +208,58 @@ find the X include and library files automatically, but if it doesn't,
|
||||||
you can use the `configure' options `--x-includes=DIR' and
|
you can use the `configure' options `--x-includes=DIR' and
|
||||||
`--x-libraries=DIR' to specify their locations.
|
`--x-libraries=DIR' to specify their locations.
|
||||||
|
|
||||||
|
Some packages offer the ability to configure how verbose the
|
||||||
|
execution of `make' will be. For these packages, running `./configure
|
||||||
|
--enable-silent-rules' sets the default to minimal output, which can be
|
||||||
|
overridden with `make V=1'; while running `./configure
|
||||||
|
--disable-silent-rules' sets the default to verbose, which can be
|
||||||
|
overridden with `make V=0'.
|
||||||
|
|
||||||
|
Particular systems
|
||||||
|
==================
|
||||||
|
|
||||||
|
On HP-UX, the default C compiler is not ANSI C compatible. If GNU
|
||||||
|
CC is not installed, it is recommended to use the following options in
|
||||||
|
order to use an ANSI C compiler:
|
||||||
|
|
||||||
|
./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
|
||||||
|
|
||||||
|
and if that doesn't work, install pre-built binaries of GCC for HP-UX.
|
||||||
|
|
||||||
|
HP-UX `make' updates targets which have the same time stamps as
|
||||||
|
their prerequisites, which makes it generally unusable when shipped
|
||||||
|
generated files such as `configure' are involved. Use GNU `make'
|
||||||
|
instead.
|
||||||
|
|
||||||
|
On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
|
||||||
|
parse its `<wchar.h>' header file. The option `-nodtk' can be used as
|
||||||
|
a workaround. If GNU CC is not installed, it is therefore recommended
|
||||||
|
to try
|
||||||
|
|
||||||
|
./configure CC="cc"
|
||||||
|
|
||||||
|
and if that doesn't work, try
|
||||||
|
|
||||||
|
./configure CC="cc -nodtk"
|
||||||
|
|
||||||
|
On Solaris, don't put `/usr/ucb' early in your `PATH'. This
|
||||||
|
directory contains several dysfunctional programs; working variants of
|
||||||
|
these programs are available in `/usr/bin'. So, if you need `/usr/ucb'
|
||||||
|
in your `PATH', put it _after_ `/usr/bin'.
|
||||||
|
|
||||||
|
On Haiku, software installed for all users goes in `/boot/common',
|
||||||
|
not `/usr/local'. It is recommended to use the following options:
|
||||||
|
|
||||||
|
./configure --prefix=/boot/common
|
||||||
|
|
||||||
Specifying the System Type
|
Specifying the System Type
|
||||||
==========================
|
==========================
|
||||||
|
|
||||||
There may be some features `configure' cannot figure out automatically,
|
There may be some features `configure' cannot figure out
|
||||||
but needs to determine by the type of machine the package will run on.
|
automatically, but needs to determine by the type of machine the package
|
||||||
Usually, assuming the package is built to be run on the _same_
|
will run on. Usually, assuming the package is built to be run on the
|
||||||
architectures, `configure' can figure that out, but if it prints a
|
_same_ architectures, `configure' can figure that out, but if it prints
|
||||||
message saying it cannot guess the machine type, give it the
|
a message saying it cannot guess the machine type, give it the
|
||||||
`--build=TYPE' option. TYPE can either be a short name for the system
|
`--build=TYPE' option. TYPE can either be a short name for the system
|
||||||
type, such as `sun4', or a canonical name which has the form:
|
type, such as `sun4', or a canonical name which has the form:
|
||||||
|
|
||||||
|
@ -152,7 +267,8 @@ type, such as `sun4', or a canonical name which has the form:
|
||||||
|
|
||||||
where SYSTEM can have one of these forms:
|
where SYSTEM can have one of these forms:
|
||||||
|
|
||||||
OS KERNEL-OS
|
OS
|
||||||
|
KERNEL-OS
|
||||||
|
|
||||||
See the file `config.sub' for the possible values of each field. If
|
See the file `config.sub' for the possible values of each field. If
|
||||||
`config.sub' isn't included in this package, then this package doesn't
|
`config.sub' isn't included in this package, then this package doesn't
|
||||||
|
@ -170,9 +286,9 @@ eventually be run) with `--host=TYPE'.
|
||||||
Sharing Defaults
|
Sharing Defaults
|
||||||
================
|
================
|
||||||
|
|
||||||
If you want to set default values for `configure' scripts to share, you
|
If you want to set default values for `configure' scripts to share,
|
||||||
can create a site shell script called `config.site' that gives default
|
you can create a site shell script called `config.site' that gives
|
||||||
values for variables like `CC', `cache_file', and `prefix'.
|
default values for variables like `CC', `cache_file', and `prefix'.
|
||||||
`configure' looks for `PREFIX/share/config.site' if it exists, then
|
`configure' looks for `PREFIX/share/config.site' if it exists, then
|
||||||
`PREFIX/etc/config.site' if it exists. Or, you can set the
|
`PREFIX/etc/config.site' if it exists. Or, you can set the
|
||||||
`CONFIG_SITE' environment variable to the location of the site script.
|
`CONFIG_SITE' environment variable to the location of the site script.
|
||||||
|
@ -181,7 +297,7 @@ A warning: not all `configure' scripts look for a site script.
|
||||||
Defining Variables
|
Defining Variables
|
||||||
==================
|
==================
|
||||||
|
|
||||||
Variables not defined in a site shell script can be set in the
|
Variables not defined in a site shell script can be set in the
|
||||||
environment passed to `configure'. However, some packages may run
|
environment passed to `configure'. However, some packages may run
|
||||||
configure again during the build, and the customized values of these
|
configure again during the build, and the customized values of these
|
||||||
variables may be lost. In order to avoid this problem, you should set
|
variables may be lost. In order to avoid this problem, you should set
|
||||||
|
@ -190,21 +306,29 @@ them in the `configure' command line, using `VAR=value'. For example:
|
||||||
./configure CC=/usr/local2/bin/gcc
|
./configure CC=/usr/local2/bin/gcc
|
||||||
|
|
||||||
causes the specified `gcc' to be used as the C compiler (unless it is
|
causes the specified `gcc' to be used as the C compiler (unless it is
|
||||||
overridden in the site shell script). Here is a another example:
|
overridden in the site shell script).
|
||||||
|
|
||||||
/bin/bash ./configure CONFIG_SHELL=/bin/bash
|
Unfortunately, this technique does not work for `CONFIG_SHELL' due to
|
||||||
|
an Autoconf bug. Until the bug is fixed you can use this workaround:
|
||||||
|
|
||||||
Here the `CONFIG_SHELL=/bin/bash' operand causes subsequent
|
CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
|
||||||
configuration-related scripts to be executed by `/bin/bash'.
|
|
||||||
|
|
||||||
`configure' Invocation
|
`configure' Invocation
|
||||||
======================
|
======================
|
||||||
|
|
||||||
`configure' recognizes the following options to control how it operates.
|
`configure' recognizes the following options to control how it
|
||||||
|
operates.
|
||||||
|
|
||||||
`--help'
|
`--help'
|
||||||
`-h'
|
`-h'
|
||||||
Print a summary of the options to `configure', and exit.
|
Print a summary of all of the options to `configure', and exit.
|
||||||
|
|
||||||
|
`--help=short'
|
||||||
|
`--help=recursive'
|
||||||
|
Print a summary of the options unique to this package's
|
||||||
|
`configure', and exit. The `short' variant lists options used
|
||||||
|
only in the top level, while the `recursive' variant lists options
|
||||||
|
also present in any nested packages.
|
||||||
|
|
||||||
`--version'
|
`--version'
|
||||||
`-V'
|
`-V'
|
||||||
|
@ -231,6 +355,16 @@ configuration-related scripts to be executed by `/bin/bash'.
|
||||||
Look for the package's source code in directory DIR. Usually
|
Look for the package's source code in directory DIR. Usually
|
||||||
`configure' can determine that directory automatically.
|
`configure' can determine that directory automatically.
|
||||||
|
|
||||||
|
`--prefix=DIR'
|
||||||
|
Use DIR as the installation prefix. *note Installation Names::
|
||||||
|
for more details, including other options available for fine-tuning
|
||||||
|
the installation locations.
|
||||||
|
|
||||||
|
`--no-create'
|
||||||
|
`-n'
|
||||||
|
Run the configure checks, but stop before creating any output
|
||||||
|
files.
|
||||||
|
|
||||||
`configure' also accepts some other, not widely useful, options. Run
|
`configure' also accepts some other, not widely useful, options. Run
|
||||||
`configure --help' for more details.
|
`configure --help' for more details.
|
||||||
|
|
||||||
|
|
103
rgb/Makefile.am
103
rgb/Makefile.am
|
@ -1,50 +1,44 @@
|
||||||
# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
|
# Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved.
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person obtaining a
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
# copy of this software and associated documentation files (the
|
# copy of this software and associated documentation files (the "Software"),
|
||||||
# "Software"), to deal in the Software without restriction, including
|
# to deal in the Software without restriction, including without limitation
|
||||||
# without limitation the rights to use, copy, modify, merge, publish,
|
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||||
# distribute, and/or sell copies of the Software, and to permit persons
|
# and/or sell copies of the Software, and to permit persons to whom the
|
||||||
# to whom the Software is furnished to do so, provided that the above
|
# Software is furnished to do so, subject to the following conditions:
|
||||||
# copyright notice(s) and this permission notice appear in all copies of
|
#
|
||||||
# the Software and that both the above copyright notice(s) and this
|
# The above copyright notice and this permission notice (including the next
|
||||||
# permission notice appear in supporting documentation.
|
# paragraph) 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
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||||
# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
|
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
|
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||||
# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
|
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
|
# DEALINGS IN THE SOFTWARE.
|
||||||
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
#
|
||||||
#
|
|
||||||
# Except as contained in this notice, the name of a copyright holder
|
|
||||||
# shall not be used in advertising or otherwise to promote the sale, use
|
|
||||||
# or other dealings in this Software without prior written authorization
|
|
||||||
# of the copyright holder.
|
|
||||||
#
|
|
||||||
|
|
||||||
|
SUBDIRS=man
|
||||||
if RGB_TXT
|
|
||||||
bin_PROGRAMS = showrgb
|
bin_PROGRAMS = showrgb
|
||||||
else
|
|
||||||
bin_PROGRAMS = rgb showrgb
|
|
||||||
|
|
||||||
rgb_CFLAGS = $(RGB_CFLAGS) $(RGB_DB_DEFINES)
|
showrgb_SOURCES = showrgb.c
|
||||||
rgb_SOURCES = rgb.c
|
|
||||||
|
if RGB_DB
|
||||||
|
bin_PROGRAMS += rgb
|
||||||
|
|
||||||
|
rgb_SOURCES = rgb.c
|
||||||
|
|
||||||
|
$(RGB_DB_FILES): rgb rgb.txt
|
||||||
|
-rm -f $(RGB_DB_FILES)
|
||||||
|
./rgb rgb < $(srcdir)/rgb.txt
|
||||||
endif
|
endif
|
||||||
|
|
||||||
rgbdir = $(db_dir)
|
rgbdir = $(db_dir)
|
||||||
rgb_DATA = $(db_file).txt $(RGB_DB_FILES)
|
rgb_DATA = $(db_file).txt $(RGB_DB_FILES)
|
||||||
RGB_DB_DEFINES = -DRGB_DB=\"$(db_dir)/$(db_file)\"
|
RGB_DB_DEFINES = -DRGB_DB=\"$(db_dir)/$(db_file)\"
|
||||||
|
AM_CFLAGS = $(RGB_CFLAGS) $(RGB_DB_DEFINES) $(CWARNFLAGS)
|
||||||
showrgb_CFLAGS = $(RGB_CFLAGS) $(RGB_DB_DEFINES)
|
|
||||||
showrgb_SOURCES = showrgb.c
|
|
||||||
|
|
||||||
appman_PRE = \
|
|
||||||
showrgb.man
|
|
||||||
|
|
||||||
EXTRA_DIST= \
|
EXTRA_DIST= \
|
||||||
rgb.txt \
|
rgb.txt \
|
||||||
|
@ -53,33 +47,14 @@ EXTRA_DIST= \
|
||||||
others/raveling.txt \
|
others/raveling.txt \
|
||||||
others/thomas.txt
|
others/thomas.txt
|
||||||
|
|
||||||
appmandir = $(APP_MAN_DIR)
|
MAINTAINERCLEANFILES = ChangeLog INSTALL
|
||||||
|
|
||||||
appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@)
|
.PHONY: ChangeLog INSTALL
|
||||||
|
|
||||||
EXTRA_DIST += $(appman_PRE)
|
INSTALL:
|
||||||
CLEANFILES = $(appman_DATA)
|
$(INSTALL_CMD)
|
||||||
|
|
||||||
SED = sed
|
ChangeLog:
|
||||||
|
$(CHANGELOG_CMD)
|
||||||
|
|
||||||
# Strings to replace in man pages
|
dist-hook: ChangeLog INSTALL
|
||||||
XORGRELSTRING = @PACKAGE_STRING@
|
|
||||||
XORGMANNAME = X Version 11
|
|
||||||
|
|
||||||
MAN_SUBSTS = \
|
|
||||||
-e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
|
|
||||||
-e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
|
|
||||||
-e 's|__xservername__|Xorg|g' \
|
|
||||||
-e 's|__xconfigfile__|xorg.conf|g' \
|
|
||||||
-e 's|__projectroot__|$(prefix)|g' \
|
|
||||||
-e 's|__apploaddir__|$(appdefaultdir)|' \
|
|
||||||
-e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \
|
|
||||||
-e 's|__libmansuffix__|$(LIB_MAN_SUFFIX)|g' \
|
|
||||||
-e 's|__adminmansuffix__|$(ADMIN_MAN_SUFFIX)|g' \
|
|
||||||
-e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \
|
|
||||||
-e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g'
|
|
||||||
|
|
||||||
SUFFIXES = .$(APP_MAN_SUFFIX) .man
|
|
||||||
|
|
||||||
.man.$(APP_MAN_SUFFIX):
|
|
||||||
sed $(MAN_SUBSTS) < $< > $@
|
|
||||||
|
|
928
rgb/Makefile.in
928
rgb/Makefile.in
File diff suppressed because it is too large
Load Diff
31
rgb/README
31
rgb/README
|
@ -0,0 +1,31 @@
|
||||||
|
X color name database
|
||||||
|
|
||||||
|
This package includes both the list mapping X color names to RGB values
|
||||||
|
(rgb.txt) and, if configured to use a database for color lookup, the
|
||||||
|
rgb program to convert the text file into the binary database format.
|
||||||
|
|
||||||
|
The "others" subdirectory contains some alternate color databases.
|
||||||
|
|
||||||
|
All questions regarding this software should be directed at the
|
||||||
|
Xorg mailing list:
|
||||||
|
|
||||||
|
http://lists.freedesktop.org/mailman/listinfo/xorg
|
||||||
|
|
||||||
|
Please submit bug reports to the Xorg bugzilla:
|
||||||
|
|
||||||
|
https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
|
||||||
|
|
||||||
|
The master development code repository can be found at:
|
||||||
|
|
||||||
|
git://anongit.freedesktop.org/git/xorg/app/rgb
|
||||||
|
|
||||||
|
http://cgit.freedesktop.org/xorg/app/rgb
|
||||||
|
|
||||||
|
For patch submission instructions, see:
|
||||||
|
|
||||||
|
http://www.x.org/wiki/Development/Documentation/SubmittingPatches
|
||||||
|
|
||||||
|
For more information on the git code manager, see:
|
||||||
|
|
||||||
|
http://wiki.x.org/wiki/GitPage
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
245
rgb/compile
245
rgb/compile
|
@ -1,9 +1,9 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# Wrapper for compilers which do not understand `-c -o'.
|
# Wrapper for compilers which do not understand '-c -o'.
|
||||||
|
|
||||||
scriptversion=2005-05-14.22
|
scriptversion=2012-10-14.11; # UTC
|
||||||
|
|
||||||
# Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
|
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
|
||||||
# Written by Tom Tromey <tromey@cygnus.com>.
|
# Written by Tom Tromey <tromey@cygnus.com>.
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
|
@ -17,8 +17,7 @@ scriptversion=2005-05-14.22
|
||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
|
|
||||||
# As a special exception to the GNU General Public License, if you
|
# As a special exception to the GNU General Public License, if you
|
||||||
# distribute this file as part of a program that contains a
|
# distribute this file as part of a program that contains a
|
||||||
|
@ -29,21 +28,224 @@ scriptversion=2005-05-14.22
|
||||||
# bugs to <bug-automake@gnu.org> or send patches to
|
# bugs to <bug-automake@gnu.org> or send patches to
|
||||||
# <automake-patches@gnu.org>.
|
# <automake-patches@gnu.org>.
|
||||||
|
|
||||||
|
nl='
|
||||||
|
'
|
||||||
|
|
||||||
|
# We need space, tab and new line, in precisely that order. Quoting is
|
||||||
|
# there to prevent tools from complaining about whitespace usage.
|
||||||
|
IFS=" "" $nl"
|
||||||
|
|
||||||
|
file_conv=
|
||||||
|
|
||||||
|
# func_file_conv build_file lazy
|
||||||
|
# Convert a $build file to $host form and store it in $file
|
||||||
|
# Currently only supports Windows hosts. If the determined conversion
|
||||||
|
# type is listed in (the comma separated) LAZY, no conversion will
|
||||||
|
# take place.
|
||||||
|
func_file_conv ()
|
||||||
|
{
|
||||||
|
file=$1
|
||||||
|
case $file in
|
||||||
|
/ | /[!/]*) # absolute file, and not a UNC file
|
||||||
|
if test -z "$file_conv"; then
|
||||||
|
# lazily determine how to convert abs files
|
||||||
|
case `uname -s` in
|
||||||
|
MINGW*)
|
||||||
|
file_conv=mingw
|
||||||
|
;;
|
||||||
|
CYGWIN*)
|
||||||
|
file_conv=cygwin
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
file_conv=wine
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
case $file_conv/,$2, in
|
||||||
|
*,$file_conv,*)
|
||||||
|
;;
|
||||||
|
mingw/*)
|
||||||
|
file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
|
||||||
|
;;
|
||||||
|
cygwin/*)
|
||||||
|
file=`cygpath -m "$file" || echo "$file"`
|
||||||
|
;;
|
||||||
|
wine/*)
|
||||||
|
file=`winepath -w "$file" || echo "$file"`
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
# func_cl_dashL linkdir
|
||||||
|
# Make cl look for libraries in LINKDIR
|
||||||
|
func_cl_dashL ()
|
||||||
|
{
|
||||||
|
func_file_conv "$1"
|
||||||
|
if test -z "$lib_path"; then
|
||||||
|
lib_path=$file
|
||||||
|
else
|
||||||
|
lib_path="$lib_path;$file"
|
||||||
|
fi
|
||||||
|
linker_opts="$linker_opts -LIBPATH:$file"
|
||||||
|
}
|
||||||
|
|
||||||
|
# func_cl_dashl library
|
||||||
|
# Do a library search-path lookup for cl
|
||||||
|
func_cl_dashl ()
|
||||||
|
{
|
||||||
|
lib=$1
|
||||||
|
found=no
|
||||||
|
save_IFS=$IFS
|
||||||
|
IFS=';'
|
||||||
|
for dir in $lib_path $LIB
|
||||||
|
do
|
||||||
|
IFS=$save_IFS
|
||||||
|
if $shared && test -f "$dir/$lib.dll.lib"; then
|
||||||
|
found=yes
|
||||||
|
lib=$dir/$lib.dll.lib
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
if test -f "$dir/$lib.lib"; then
|
||||||
|
found=yes
|
||||||
|
lib=$dir/$lib.lib
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
if test -f "$dir/lib$lib.a"; then
|
||||||
|
found=yes
|
||||||
|
lib=$dir/lib$lib.a
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
IFS=$save_IFS
|
||||||
|
|
||||||
|
if test "$found" != yes; then
|
||||||
|
lib=$lib.lib
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# func_cl_wrapper cl arg...
|
||||||
|
# Adjust compile command to suit cl
|
||||||
|
func_cl_wrapper ()
|
||||||
|
{
|
||||||
|
# Assume a capable shell
|
||||||
|
lib_path=
|
||||||
|
shared=:
|
||||||
|
linker_opts=
|
||||||
|
for arg
|
||||||
|
do
|
||||||
|
if test -n "$eat"; then
|
||||||
|
eat=
|
||||||
|
else
|
||||||
|
case $1 in
|
||||||
|
-o)
|
||||||
|
# configure might choose to run compile as 'compile cc -o foo foo.c'.
|
||||||
|
eat=1
|
||||||
|
case $2 in
|
||||||
|
*.o | *.[oO][bB][jJ])
|
||||||
|
func_file_conv "$2"
|
||||||
|
set x "$@" -Fo"$file"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
func_file_conv "$2"
|
||||||
|
set x "$@" -Fe"$file"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
-I)
|
||||||
|
eat=1
|
||||||
|
func_file_conv "$2" mingw
|
||||||
|
set x "$@" -I"$file"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
-I*)
|
||||||
|
func_file_conv "${1#-I}" mingw
|
||||||
|
set x "$@" -I"$file"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
-l)
|
||||||
|
eat=1
|
||||||
|
func_cl_dashl "$2"
|
||||||
|
set x "$@" "$lib"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
-l*)
|
||||||
|
func_cl_dashl "${1#-l}"
|
||||||
|
set x "$@" "$lib"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
-L)
|
||||||
|
eat=1
|
||||||
|
func_cl_dashL "$2"
|
||||||
|
;;
|
||||||
|
-L*)
|
||||||
|
func_cl_dashL "${1#-L}"
|
||||||
|
;;
|
||||||
|
-static)
|
||||||
|
shared=false
|
||||||
|
;;
|
||||||
|
-Wl,*)
|
||||||
|
arg=${1#-Wl,}
|
||||||
|
save_ifs="$IFS"; IFS=','
|
||||||
|
for flag in $arg; do
|
||||||
|
IFS="$save_ifs"
|
||||||
|
linker_opts="$linker_opts $flag"
|
||||||
|
done
|
||||||
|
IFS="$save_ifs"
|
||||||
|
;;
|
||||||
|
-Xlinker)
|
||||||
|
eat=1
|
||||||
|
linker_opts="$linker_opts $2"
|
||||||
|
;;
|
||||||
|
-*)
|
||||||
|
set x "$@" "$1"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
*.cc | *.CC | *.cxx | *.CXX | *.[cC]++)
|
||||||
|
func_file_conv "$1"
|
||||||
|
set x "$@" -Tp"$file"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
*.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO])
|
||||||
|
func_file_conv "$1" mingw
|
||||||
|
set x "$@" "$file"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
set x "$@" "$1"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
if test -n "$linker_opts"; then
|
||||||
|
linker_opts="-link$linker_opts"
|
||||||
|
fi
|
||||||
|
exec "$@" $linker_opts
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
eat=
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
'')
|
'')
|
||||||
echo "$0: No command. Try \`$0 --help' for more information." 1>&2
|
echo "$0: No command. Try '$0 --help' for more information." 1>&2
|
||||||
exit 1;
|
exit 1;
|
||||||
;;
|
;;
|
||||||
-h | --h*)
|
-h | --h*)
|
||||||
cat <<\EOF
|
cat <<\EOF
|
||||||
Usage: compile [--help] [--version] PROGRAM [ARGS]
|
Usage: compile [--help] [--version] PROGRAM [ARGS]
|
||||||
|
|
||||||
Wrapper for compilers which do not understand `-c -o'.
|
Wrapper for compilers which do not understand '-c -o'.
|
||||||
Remove `-o dest.o' from ARGS, run PROGRAM with the remaining
|
Remove '-o dest.o' from ARGS, run PROGRAM with the remaining
|
||||||
arguments, and rename the output as expected.
|
arguments, and rename the output as expected.
|
||||||
|
|
||||||
If you are trying to build a whole package this is not the
|
If you are trying to build a whole package this is not the
|
||||||
right script to run: please start by reading the file `INSTALL'.
|
right script to run: please start by reading the file 'INSTALL'.
|
||||||
|
|
||||||
Report bugs to <bug-automake@gnu.org>.
|
Report bugs to <bug-automake@gnu.org>.
|
||||||
EOF
|
EOF
|
||||||
|
@ -53,11 +255,13 @@ EOF
|
||||||
echo "compile $scriptversion"
|
echo "compile $scriptversion"
|
||||||
exit $?
|
exit $?
|
||||||
;;
|
;;
|
||||||
|
cl | *[/\\]cl | cl.exe | *[/\\]cl.exe )
|
||||||
|
func_cl_wrapper "$@" # Doesn't return...
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
ofile=
|
ofile=
|
||||||
cfile=
|
cfile=
|
||||||
eat=
|
|
||||||
|
|
||||||
for arg
|
for arg
|
||||||
do
|
do
|
||||||
|
@ -66,8 +270,8 @@ do
|
||||||
else
|
else
|
||||||
case $1 in
|
case $1 in
|
||||||
-o)
|
-o)
|
||||||
# configure might choose to run compile as `compile cc -o foo foo.c'.
|
# configure might choose to run compile as 'compile cc -o foo foo.c'.
|
||||||
# So we strip `-o arg' only if arg is an object.
|
# So we strip '-o arg' only if arg is an object.
|
||||||
eat=1
|
eat=1
|
||||||
case $2 in
|
case $2 in
|
||||||
*.o | *.obj)
|
*.o | *.obj)
|
||||||
|
@ -94,22 +298,22 @@ do
|
||||||
done
|
done
|
||||||
|
|
||||||
if test -z "$ofile" || test -z "$cfile"; then
|
if test -z "$ofile" || test -z "$cfile"; then
|
||||||
# If no `-o' option was seen then we might have been invoked from a
|
# If no '-o' option was seen then we might have been invoked from a
|
||||||
# pattern rule where we don't need one. That is ok -- this is a
|
# pattern rule where we don't need one. That is ok -- this is a
|
||||||
# normal compilation that the losing compiler can handle. If no
|
# normal compilation that the losing compiler can handle. If no
|
||||||
# `.c' file was seen then we are probably linking. That is also
|
# '.c' file was seen then we are probably linking. That is also
|
||||||
# ok.
|
# ok.
|
||||||
exec "$@"
|
exec "$@"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Name of file we expect compiler to create.
|
# Name of file we expect compiler to create.
|
||||||
cofile=`echo "$cfile" | sed -e 's|^.*/||' -e 's/\.c$/.o/'`
|
cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
|
||||||
|
|
||||||
# Create the lock directory.
|
# Create the lock directory.
|
||||||
# Note: use `[/.-]' here to ensure that we don't use the same name
|
# Note: use '[/\\:.-]' here to ensure that we don't use the same name
|
||||||
# that we are using for the .o file. Also, base the name on the expected
|
# that we are using for the .o file. Also, base the name on the expected
|
||||||
# object file name, since that is what matters with a parallel build.
|
# object file name, since that is what matters with a parallel build.
|
||||||
lockdir=`echo "$cofile" | sed -e 's|[/.-]|_|g'`.d
|
lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d
|
||||||
while true; do
|
while true; do
|
||||||
if mkdir "$lockdir" >/dev/null 2>&1; then
|
if mkdir "$lockdir" >/dev/null 2>&1; then
|
||||||
break
|
break
|
||||||
|
@ -124,9 +328,9 @@ trap "rmdir '$lockdir'; exit 1" 1 2 15
|
||||||
ret=$?
|
ret=$?
|
||||||
|
|
||||||
if test -f "$cofile"; then
|
if test -f "$cofile"; then
|
||||||
mv "$cofile" "$ofile"
|
test "$cofile" = "$ofile" || mv "$cofile" "$ofile"
|
||||||
elif test -f "${cofile}bj"; then
|
elif test -f "${cofile}bj"; then
|
||||||
mv "${cofile}bj" "$ofile"
|
test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rmdir "$lockdir"
|
rmdir "$lockdir"
|
||||||
|
@ -138,5 +342,6 @@ exit $ret
|
||||||
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||||
# time-stamp-start: "scriptversion="
|
# time-stamp-start: "scriptversion="
|
||||||
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||||
# time-stamp-end: "$"
|
# time-stamp-time-zone: "UTC"
|
||||||
|
# time-stamp-end: "; # UTC"
|
||||||
# End:
|
# End:
|
||||||
|
|
|
@ -1,14 +1,12 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# Attempt to guess a canonical system name.
|
# Attempt to guess a canonical system name.
|
||||||
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
|
# Copyright 1992-2013 Free Software Foundation, Inc.
|
||||||
# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
|
|
||||||
# Inc.
|
|
||||||
|
|
||||||
timestamp='2007-03-06'
|
timestamp='2013-11-29'
|
||||||
|
|
||||||
# This file is free software; you can redistribute it and/or modify it
|
# This file is free software; you can redistribute it and/or modify it
|
||||||
# under the terms of the GNU General Public License as published by
|
# under the terms of the GNU General Public License as published by
|
||||||
# the Free Software Foundation; either version 2 of the License, or
|
# the Free Software Foundation; either version 3 of the License, or
|
||||||
# (at your option) any later version.
|
# (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful, but
|
# This program is distributed in the hope that it will be useful, but
|
||||||
|
@ -17,26 +15,22 @@ timestamp='2007-03-06'
|
||||||
# General Public License for more details.
|
# General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||||
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
|
|
||||||
# 02110-1301, USA.
|
|
||||||
#
|
#
|
||||||
# As a special exception to the GNU General Public License, if you
|
# As a special exception to the GNU General Public License, if you
|
||||||
# distribute this file as part of a program that contains a
|
# distribute this file as part of a program that contains a
|
||||||
# configuration script generated by Autoconf, you may include it under
|
# configuration script generated by Autoconf, you may include it under
|
||||||
# the same distribution terms that you use for the rest of that program.
|
# the same distribution terms that you use for the rest of that
|
||||||
|
# program. This Exception is an additional permission under section 7
|
||||||
|
# of the GNU General Public License, version 3 ("GPLv3").
|
||||||
# Originally written by Per Bothner <per@bothner.com>.
|
|
||||||
# Please send patches to <config-patches@gnu.org>. Submit a context
|
|
||||||
# diff and a properly formatted ChangeLog entry.
|
|
||||||
#
|
#
|
||||||
# This script attempts to guess a canonical system name similar to
|
# Originally written by Per Bothner.
|
||||||
# config.sub. If it succeeds, it prints the system name on stdout, and
|
|
||||||
# exits with 0. Otherwise, it exits with 1.
|
|
||||||
#
|
#
|
||||||
# The plan is that this can be called by configure scripts if you
|
# You can get the latest version of this script from:
|
||||||
# don't specify an explicit build system type.
|
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
|
||||||
|
#
|
||||||
|
# Please send patches with a ChangeLog entry to config-patches@gnu.org.
|
||||||
|
|
||||||
|
|
||||||
me=`echo "$0" | sed -e 's,.*/,,'`
|
me=`echo "$0" | sed -e 's,.*/,,'`
|
||||||
|
|
||||||
|
@ -56,8 +50,7 @@ version="\
|
||||||
GNU config.guess ($timestamp)
|
GNU config.guess ($timestamp)
|
||||||
|
|
||||||
Originally written by Per Bothner.
|
Originally written by Per Bothner.
|
||||||
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
|
Copyright 1992-2013 Free Software Foundation, Inc.
|
||||||
Free Software Foundation, Inc.
|
|
||||||
|
|
||||||
This is free software; see the source for copying conditions. There is NO
|
This is free software; see the source for copying conditions. There is NO
|
||||||
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
|
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
|
||||||
|
@ -139,12 +132,33 @@ UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
|
||||||
UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
|
UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
|
||||||
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
|
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
|
||||||
|
|
||||||
|
case "${UNAME_SYSTEM}" in
|
||||||
|
Linux|GNU|GNU/*)
|
||||||
|
# If the system lacks a compiler, then just pick glibc.
|
||||||
|
# We could probably try harder.
|
||||||
|
LIBC=gnu
|
||||||
|
|
||||||
|
eval $set_cc_for_build
|
||||||
|
cat <<-EOF > $dummy.c
|
||||||
|
#include <features.h>
|
||||||
|
#if defined(__UCLIBC__)
|
||||||
|
LIBC=uclibc
|
||||||
|
#elif defined(__dietlibc__)
|
||||||
|
LIBC=dietlibc
|
||||||
|
#else
|
||||||
|
LIBC=gnu
|
||||||
|
#endif
|
||||||
|
EOF
|
||||||
|
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
# Note: order is significant - the case branches are not exclusive.
|
# Note: order is significant - the case branches are not exclusive.
|
||||||
|
|
||||||
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
||||||
*:NetBSD:*:*)
|
*:NetBSD:*:*)
|
||||||
# NetBSD (nbsd) targets should (where applicable) match one or
|
# NetBSD (nbsd) targets should (where applicable) match one or
|
||||||
# more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
|
# more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
|
||||||
# *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
|
# *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
|
||||||
# switched to ELF, *-*-netbsd* would select the old
|
# switched to ELF, *-*-netbsd* would select the old
|
||||||
# object file format. This provides both forward
|
# object file format. This provides both forward
|
||||||
|
@ -170,7 +184,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
||||||
arm*|i386|m68k|ns32k|sh3*|sparc|vax)
|
arm*|i386|m68k|ns32k|sh3*|sparc|vax)
|
||||||
eval $set_cc_for_build
|
eval $set_cc_for_build
|
||||||
if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
|
if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
|
||||||
| grep __ELF__ >/dev/null
|
| grep -q __ELF__
|
||||||
then
|
then
|
||||||
# Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
|
# Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
|
||||||
# Return netbsd for either. FIX?
|
# Return netbsd for either. FIX?
|
||||||
|
@ -180,7 +194,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
os=netbsd
|
os=netbsd
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
# The OS release
|
# The OS release
|
||||||
|
@ -201,6 +215,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
||||||
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
|
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
|
||||||
echo "${machine}-${os}${release}"
|
echo "${machine}-${os}${release}"
|
||||||
exit ;;
|
exit ;;
|
||||||
|
*:Bitrig:*:*)
|
||||||
|
UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
|
||||||
|
echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
|
||||||
|
exit ;;
|
||||||
*:OpenBSD:*:*)
|
*:OpenBSD:*:*)
|
||||||
UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
|
UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
|
||||||
echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
|
echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
|
||||||
|
@ -223,7 +241,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
||||||
UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
|
UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
|
||||||
;;
|
;;
|
||||||
*5.*)
|
*5.*)
|
||||||
UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
|
UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
# According to Compaq, /usr/sbin/psrinfo has been available on
|
# According to Compaq, /usr/sbin/psrinfo has been available on
|
||||||
|
@ -269,7 +287,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
||||||
# A Xn.n version is an unreleased experimental baselevel.
|
# A Xn.n version is an unreleased experimental baselevel.
|
||||||
# 1.2 uses "1.2" for uname -r.
|
# 1.2 uses "1.2" for uname -r.
|
||||||
echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
|
echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
|
||||||
exit ;;
|
# Reset EXIT trap before exiting to avoid spurious non-zero exit code.
|
||||||
|
exitcode=$?
|
||||||
|
trap '' 0
|
||||||
|
exit $exitcode ;;
|
||||||
Alpha\ *:Windows_NT*:*)
|
Alpha\ *:Windows_NT*:*)
|
||||||
# How do we know it's Interix rather than the generic POSIX subsystem?
|
# How do we know it's Interix rather than the generic POSIX subsystem?
|
||||||
# Should we change UNAME_MACHINE based on the output of uname instead
|
# Should we change UNAME_MACHINE based on the output of uname instead
|
||||||
|
@ -295,12 +316,12 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
||||||
echo s390-ibm-zvmoe
|
echo s390-ibm-zvmoe
|
||||||
exit ;;
|
exit ;;
|
||||||
*:OS400:*:*)
|
*:OS400:*:*)
|
||||||
echo powerpc-ibm-os400
|
echo powerpc-ibm-os400
|
||||||
exit ;;
|
exit ;;
|
||||||
arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
|
arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
|
||||||
echo arm-acorn-riscix${UNAME_RELEASE}
|
echo arm-acorn-riscix${UNAME_RELEASE}
|
||||||
exit ;;
|
exit ;;
|
||||||
arm:riscos:*:*|arm:RISCOS:*:*)
|
arm*:riscos:*:*|arm*:RISCOS:*:*)
|
||||||
echo arm-unknown-riscos
|
echo arm-unknown-riscos
|
||||||
exit ;;
|
exit ;;
|
||||||
SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
|
SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
|
||||||
|
@ -324,14 +345,33 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
||||||
case `/usr/bin/uname -p` in
|
case `/usr/bin/uname -p` in
|
||||||
sparc) echo sparc-icl-nx7; exit ;;
|
sparc) echo sparc-icl-nx7; exit ;;
|
||||||
esac ;;
|
esac ;;
|
||||||
|
s390x:SunOS:*:*)
|
||||||
|
echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
||||||
|
exit ;;
|
||||||
sun4H:SunOS:5.*:*)
|
sun4H:SunOS:5.*:*)
|
||||||
echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
||||||
exit ;;
|
exit ;;
|
||||||
sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
|
sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
|
||||||
echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
||||||
exit ;;
|
exit ;;
|
||||||
i86pc:SunOS:5.*:*)
|
i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
|
||||||
echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
echo i386-pc-auroraux${UNAME_RELEASE}
|
||||||
|
exit ;;
|
||||||
|
i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
|
||||||
|
eval $set_cc_for_build
|
||||||
|
SUN_ARCH="i386"
|
||||||
|
# If there is a compiler, see if it is configured for 64-bit objects.
|
||||||
|
# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
|
||||||
|
# This test works for both compilers.
|
||||||
|
if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
|
||||||
|
if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
|
||||||
|
(CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
|
||||||
|
grep IS_64BIT_ARCH >/dev/null
|
||||||
|
then
|
||||||
|
SUN_ARCH="x86_64"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
||||||
exit ;;
|
exit ;;
|
||||||
sun4*:SunOS:6*:*)
|
sun4*:SunOS:6*:*)
|
||||||
# According to config.sub, this is the proper way to canonicalize
|
# According to config.sub, this is the proper way to canonicalize
|
||||||
|
@ -375,23 +415,23 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
||||||
# MiNT. But MiNT is downward compatible to TOS, so this should
|
# MiNT. But MiNT is downward compatible to TOS, so this should
|
||||||
# be no problem.
|
# be no problem.
|
||||||
atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
|
atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
|
||||||
echo m68k-atari-mint${UNAME_RELEASE}
|
echo m68k-atari-mint${UNAME_RELEASE}
|
||||||
exit ;;
|
exit ;;
|
||||||
atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
|
atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
|
||||||
echo m68k-atari-mint${UNAME_RELEASE}
|
echo m68k-atari-mint${UNAME_RELEASE}
|
||||||
exit ;;
|
exit ;;
|
||||||
*falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
|
*falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
|
||||||
echo m68k-atari-mint${UNAME_RELEASE}
|
echo m68k-atari-mint${UNAME_RELEASE}
|
||||||
exit ;;
|
exit ;;
|
||||||
milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
|
milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
|
||||||
echo m68k-milan-mint${UNAME_RELEASE}
|
echo m68k-milan-mint${UNAME_RELEASE}
|
||||||
exit ;;
|
exit ;;
|
||||||
hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
|
hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
|
||||||
echo m68k-hades-mint${UNAME_RELEASE}
|
echo m68k-hades-mint${UNAME_RELEASE}
|
||||||
exit ;;
|
exit ;;
|
||||||
*:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
|
*:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
|
||||||
echo m68k-unknown-mint${UNAME_RELEASE}
|
echo m68k-unknown-mint${UNAME_RELEASE}
|
||||||
exit ;;
|
exit ;;
|
||||||
m68k:machten:*:*)
|
m68k:machten:*:*)
|
||||||
echo m68k-apple-machten${UNAME_RELEASE}
|
echo m68k-apple-machten${UNAME_RELEASE}
|
||||||
exit ;;
|
exit ;;
|
||||||
|
@ -461,8 +501,8 @@ EOF
|
||||||
echo m88k-motorola-sysv3
|
echo m88k-motorola-sysv3
|
||||||
exit ;;
|
exit ;;
|
||||||
AViiON:dgux:*:*)
|
AViiON:dgux:*:*)
|
||||||
# DG/UX returns AViiON for all architectures
|
# DG/UX returns AViiON for all architectures
|
||||||
UNAME_PROCESSOR=`/usr/bin/uname -p`
|
UNAME_PROCESSOR=`/usr/bin/uname -p`
|
||||||
if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
|
if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
|
||||||
then
|
then
|
||||||
if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
|
if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
|
||||||
|
@ -475,7 +515,7 @@ EOF
|
||||||
else
|
else
|
||||||
echo i586-dg-dgux${UNAME_RELEASE}
|
echo i586-dg-dgux${UNAME_RELEASE}
|
||||||
fi
|
fi
|
||||||
exit ;;
|
exit ;;
|
||||||
M88*:DolphinOS:*:*) # DolphinOS (SVR3)
|
M88*:DolphinOS:*:*) # DolphinOS (SVR3)
|
||||||
echo m88k-dolphin-sysv3
|
echo m88k-dolphin-sysv3
|
||||||
exit ;;
|
exit ;;
|
||||||
|
@ -532,7 +572,7 @@ EOF
|
||||||
echo rs6000-ibm-aix3.2
|
echo rs6000-ibm-aix3.2
|
||||||
fi
|
fi
|
||||||
exit ;;
|
exit ;;
|
||||||
*:AIX:*:[45])
|
*:AIX:*:[4567])
|
||||||
IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
|
IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
|
||||||
if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
|
if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
|
||||||
IBM_ARCH=rs6000
|
IBM_ARCH=rs6000
|
||||||
|
@ -575,52 +615,52 @@ EOF
|
||||||
9000/[678][0-9][0-9])
|
9000/[678][0-9][0-9])
|
||||||
if [ -x /usr/bin/getconf ]; then
|
if [ -x /usr/bin/getconf ]; then
|
||||||
sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
|
sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
|
||||||
sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
|
sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
|
||||||
case "${sc_cpu_version}" in
|
case "${sc_cpu_version}" in
|
||||||
523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
|
523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
|
||||||
528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
|
528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
|
||||||
532) # CPU_PA_RISC2_0
|
532) # CPU_PA_RISC2_0
|
||||||
case "${sc_kernel_bits}" in
|
case "${sc_kernel_bits}" in
|
||||||
32) HP_ARCH="hppa2.0n" ;;
|
32) HP_ARCH="hppa2.0n" ;;
|
||||||
64) HP_ARCH="hppa2.0w" ;;
|
64) HP_ARCH="hppa2.0w" ;;
|
||||||
'') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
|
'') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
|
||||||
esac ;;
|
esac ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
if [ "${HP_ARCH}" = "" ]; then
|
if [ "${HP_ARCH}" = "" ]; then
|
||||||
eval $set_cc_for_build
|
eval $set_cc_for_build
|
||||||
sed 's/^ //' << EOF >$dummy.c
|
sed 's/^ //' << EOF >$dummy.c
|
||||||
|
|
||||||
#define _HPUX_SOURCE
|
#define _HPUX_SOURCE
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
int main ()
|
int main ()
|
||||||
{
|
{
|
||||||
#if defined(_SC_KERNEL_BITS)
|
#if defined(_SC_KERNEL_BITS)
|
||||||
long bits = sysconf(_SC_KERNEL_BITS);
|
long bits = sysconf(_SC_KERNEL_BITS);
|
||||||
#endif
|
#endif
|
||||||
long cpu = sysconf (_SC_CPU_VERSION);
|
long cpu = sysconf (_SC_CPU_VERSION);
|
||||||
|
|
||||||
switch (cpu)
|
switch (cpu)
|
||||||
{
|
{
|
||||||
case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
|
case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
|
||||||
case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
|
case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
|
||||||
case CPU_PA_RISC2_0:
|
case CPU_PA_RISC2_0:
|
||||||
#if defined(_SC_KERNEL_BITS)
|
#if defined(_SC_KERNEL_BITS)
|
||||||
switch (bits)
|
switch (bits)
|
||||||
{
|
{
|
||||||
case 64: puts ("hppa2.0w"); break;
|
case 64: puts ("hppa2.0w"); break;
|
||||||
case 32: puts ("hppa2.0n"); break;
|
case 32: puts ("hppa2.0n"); break;
|
||||||
default: puts ("hppa2.0"); break;
|
default: puts ("hppa2.0"); break;
|
||||||
} break;
|
} break;
|
||||||
#else /* !defined(_SC_KERNEL_BITS) */
|
#else /* !defined(_SC_KERNEL_BITS) */
|
||||||
puts ("hppa2.0"); break;
|
puts ("hppa2.0"); break;
|
||||||
#endif
|
#endif
|
||||||
default: puts ("hppa1.0"); break;
|
default: puts ("hppa1.0"); break;
|
||||||
}
|
}
|
||||||
exit (0);
|
exit (0);
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
(CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
|
(CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
|
||||||
test -z "$HP_ARCH" && HP_ARCH=hppa
|
test -z "$HP_ARCH" && HP_ARCH=hppa
|
||||||
|
@ -640,7 +680,7 @@ EOF
|
||||||
# => hppa64-hp-hpux11.23
|
# => hppa64-hp-hpux11.23
|
||||||
|
|
||||||
if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
|
if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
|
||||||
grep __LP64__ >/dev/null
|
grep -q __LP64__
|
||||||
then
|
then
|
||||||
HP_ARCH="hppa2.0w"
|
HP_ARCH="hppa2.0w"
|
||||||
else
|
else
|
||||||
|
@ -711,22 +751,22 @@ EOF
|
||||||
exit ;;
|
exit ;;
|
||||||
C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
|
C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
|
||||||
echo c1-convex-bsd
|
echo c1-convex-bsd
|
||||||
exit ;;
|
exit ;;
|
||||||
C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
|
C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
|
||||||
if getsysinfo -f scalar_acc
|
if getsysinfo -f scalar_acc
|
||||||
then echo c32-convex-bsd
|
then echo c32-convex-bsd
|
||||||
else echo c2-convex-bsd
|
else echo c2-convex-bsd
|
||||||
fi
|
fi
|
||||||
exit ;;
|
exit ;;
|
||||||
C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
|
C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
|
||||||
echo c34-convex-bsd
|
echo c34-convex-bsd
|
||||||
exit ;;
|
exit ;;
|
||||||
C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
|
C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
|
||||||
echo c38-convex-bsd
|
echo c38-convex-bsd
|
||||||
exit ;;
|
exit ;;
|
||||||
C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
|
C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
|
||||||
echo c4-convex-bsd
|
echo c4-convex-bsd
|
||||||
exit ;;
|
exit ;;
|
||||||
CRAY*Y-MP:*:*:*)
|
CRAY*Y-MP:*:*:*)
|
||||||
echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
|
echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
|
||||||
exit ;;
|
exit ;;
|
||||||
|
@ -750,14 +790,14 @@ EOF
|
||||||
exit ;;
|
exit ;;
|
||||||
F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
|
F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
|
||||||
FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
|
FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
|
||||||
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
|
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
|
||||||
FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
|
FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
|
||||||
echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
|
echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
|
||||||
exit ;;
|
exit ;;
|
||||||
5000:UNIX_System_V:4.*:*)
|
5000:UNIX_System_V:4.*:*)
|
||||||
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
|
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
|
||||||
FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
|
FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
|
||||||
echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
|
echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
|
||||||
exit ;;
|
exit ;;
|
||||||
i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
|
i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
|
||||||
echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
|
echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
|
||||||
|
@ -769,40 +809,51 @@ EOF
|
||||||
echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
|
echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
|
||||||
exit ;;
|
exit ;;
|
||||||
*:FreeBSD:*:*)
|
*:FreeBSD:*:*)
|
||||||
case ${UNAME_MACHINE} in
|
UNAME_PROCESSOR=`/usr/bin/uname -p`
|
||||||
pc98)
|
case ${UNAME_PROCESSOR} in
|
||||||
echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
|
|
||||||
amd64)
|
amd64)
|
||||||
echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
|
echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
|
||||||
*)
|
*)
|
||||||
echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
|
echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
|
||||||
esac
|
esac
|
||||||
exit ;;
|
exit ;;
|
||||||
i*:CYGWIN*:*)
|
i*:CYGWIN*:*)
|
||||||
echo ${UNAME_MACHINE}-pc-cygwin
|
echo ${UNAME_MACHINE}-pc-cygwin
|
||||||
exit ;;
|
exit ;;
|
||||||
|
*:MINGW64*:*)
|
||||||
|
echo ${UNAME_MACHINE}-pc-mingw64
|
||||||
|
exit ;;
|
||||||
*:MINGW*:*)
|
*:MINGW*:*)
|
||||||
echo ${UNAME_MACHINE}-pc-mingw32
|
echo ${UNAME_MACHINE}-pc-mingw32
|
||||||
exit ;;
|
exit ;;
|
||||||
|
i*:MSYS*:*)
|
||||||
|
echo ${UNAME_MACHINE}-pc-msys
|
||||||
|
exit ;;
|
||||||
i*:windows32*:*)
|
i*:windows32*:*)
|
||||||
# uname -m includes "-pc" on this system.
|
# uname -m includes "-pc" on this system.
|
||||||
echo ${UNAME_MACHINE}-mingw32
|
echo ${UNAME_MACHINE}-mingw32
|
||||||
exit ;;
|
exit ;;
|
||||||
i*:PW*:*)
|
i*:PW*:*)
|
||||||
echo ${UNAME_MACHINE}-pc-pw32
|
echo ${UNAME_MACHINE}-pc-pw32
|
||||||
exit ;;
|
exit ;;
|
||||||
*:Interix*:[3456]*)
|
*:Interix*:*)
|
||||||
case ${UNAME_MACHINE} in
|
case ${UNAME_MACHINE} in
|
||||||
x86)
|
x86)
|
||||||
echo i586-pc-interix${UNAME_RELEASE}
|
echo i586-pc-interix${UNAME_RELEASE}
|
||||||
exit ;;
|
exit ;;
|
||||||
EM64T | authenticamd)
|
authenticamd | genuineintel | EM64T)
|
||||||
echo x86_64-unknown-interix${UNAME_RELEASE}
|
echo x86_64-unknown-interix${UNAME_RELEASE}
|
||||||
exit ;;
|
exit ;;
|
||||||
|
IA64)
|
||||||
|
echo ia64-unknown-interix${UNAME_RELEASE}
|
||||||
|
exit ;;
|
||||||
esac ;;
|
esac ;;
|
||||||
[345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
|
[345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
|
||||||
echo i${UNAME_MACHINE}-pc-mks
|
echo i${UNAME_MACHINE}-pc-mks
|
||||||
exit ;;
|
exit ;;
|
||||||
|
8664:Windows_NT:*)
|
||||||
|
echo x86_64-pc-mks
|
||||||
|
exit ;;
|
||||||
i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
|
i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
|
||||||
# How do we know it's Interix rather than the generic POSIX subsystem?
|
# How do we know it's Interix rather than the generic POSIX subsystem?
|
||||||
# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
|
# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
|
||||||
|
@ -823,93 +874,21 @@ EOF
|
||||||
exit ;;
|
exit ;;
|
||||||
*:GNU:*:*)
|
*:GNU:*:*)
|
||||||
# the GNU system
|
# the GNU system
|
||||||
echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
|
echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
|
||||||
exit ;;
|
exit ;;
|
||||||
*:GNU/*:*:*)
|
*:GNU/*:*:*)
|
||||||
# other systems with GNU libc and userland
|
# other systems with GNU libc and userland
|
||||||
echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
|
echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
|
||||||
exit ;;
|
exit ;;
|
||||||
i*86:Minix:*:*)
|
i*86:Minix:*:*)
|
||||||
echo ${UNAME_MACHINE}-pc-minix
|
echo ${UNAME_MACHINE}-pc-minix
|
||||||
exit ;;
|
exit ;;
|
||||||
arm*:Linux:*:*)
|
aarch64:Linux:*:*)
|
||||||
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
||||||
exit ;;
|
exit ;;
|
||||||
avr32*:Linux:*:*)
|
aarch64_be:Linux:*:*)
|
||||||
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
UNAME_MACHINE=aarch64_be
|
||||||
exit ;;
|
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
||||||
cris:Linux:*:*)
|
|
||||||
echo cris-axis-linux-gnu
|
|
||||||
exit ;;
|
|
||||||
crisv32:Linux:*:*)
|
|
||||||
echo crisv32-axis-linux-gnu
|
|
||||||
exit ;;
|
|
||||||
frv:Linux:*:*)
|
|
||||||
echo frv-unknown-linux-gnu
|
|
||||||
exit ;;
|
|
||||||
ia64:Linux:*:*)
|
|
||||||
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
|
||||||
exit ;;
|
|
||||||
m32r*:Linux:*:*)
|
|
||||||
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
|
||||||
exit ;;
|
|
||||||
m68*:Linux:*:*)
|
|
||||||
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
|
||||||
exit ;;
|
|
||||||
mips:Linux:*:*)
|
|
||||||
eval $set_cc_for_build
|
|
||||||
sed 's/^ //' << EOF >$dummy.c
|
|
||||||
#undef CPU
|
|
||||||
#undef mips
|
|
||||||
#undef mipsel
|
|
||||||
#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
|
|
||||||
CPU=mipsel
|
|
||||||
#else
|
|
||||||
#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
|
|
||||||
CPU=mips
|
|
||||||
#else
|
|
||||||
CPU=
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
EOF
|
|
||||||
eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
|
|
||||||
/^CPU/{
|
|
||||||
s: ::g
|
|
||||||
p
|
|
||||||
}'`"
|
|
||||||
test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
|
|
||||||
;;
|
|
||||||
mips64:Linux:*:*)
|
|
||||||
eval $set_cc_for_build
|
|
||||||
sed 's/^ //' << EOF >$dummy.c
|
|
||||||
#undef CPU
|
|
||||||
#undef mips64
|
|
||||||
#undef mips64el
|
|
||||||
#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
|
|
||||||
CPU=mips64el
|
|
||||||
#else
|
|
||||||
#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
|
|
||||||
CPU=mips64
|
|
||||||
#else
|
|
||||||
CPU=
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
EOF
|
|
||||||
eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
|
|
||||||
/^CPU/{
|
|
||||||
s: ::g
|
|
||||||
p
|
|
||||||
}'`"
|
|
||||||
test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
|
|
||||||
;;
|
|
||||||
or32:Linux:*:*)
|
|
||||||
echo or32-unknown-linux-gnu
|
|
||||||
exit ;;
|
|
||||||
ppc:Linux:*:*)
|
|
||||||
echo powerpc-unknown-linux-gnu
|
|
||||||
exit ;;
|
|
||||||
ppc64:Linux:*:*)
|
|
||||||
echo powerpc64-unknown-linux-gnu
|
|
||||||
exit ;;
|
exit ;;
|
||||||
alpha:Linux:*:*)
|
alpha:Linux:*:*)
|
||||||
case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
|
case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
|
||||||
|
@ -920,106 +899,132 @@ EOF
|
||||||
EV6) UNAME_MACHINE=alphaev6 ;;
|
EV6) UNAME_MACHINE=alphaev6 ;;
|
||||||
EV67) UNAME_MACHINE=alphaev67 ;;
|
EV67) UNAME_MACHINE=alphaev67 ;;
|
||||||
EV68*) UNAME_MACHINE=alphaev68 ;;
|
EV68*) UNAME_MACHINE=alphaev68 ;;
|
||||||
esac
|
esac
|
||||||
objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
|
objdump --private-headers /bin/sh | grep -q ld.so.1
|
||||||
if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
|
if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
|
||||||
echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
|
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
||||||
|
exit ;;
|
||||||
|
arc:Linux:*:* | arceb:Linux:*:*)
|
||||||
|
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
||||||
|
exit ;;
|
||||||
|
arm*:Linux:*:*)
|
||||||
|
eval $set_cc_for_build
|
||||||
|
if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
|
||||||
|
| grep -q __ARM_EABI__
|
||||||
|
then
|
||||||
|
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
||||||
|
else
|
||||||
|
if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
|
||||||
|
| grep -q __ARM_PCS_VFP
|
||||||
|
then
|
||||||
|
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
|
||||||
|
else
|
||||||
|
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
exit ;;
|
||||||
|
avr32*:Linux:*:*)
|
||||||
|
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
||||||
|
exit ;;
|
||||||
|
cris:Linux:*:*)
|
||||||
|
echo ${UNAME_MACHINE}-axis-linux-${LIBC}
|
||||||
|
exit ;;
|
||||||
|
crisv32:Linux:*:*)
|
||||||
|
echo ${UNAME_MACHINE}-axis-linux-${LIBC}
|
||||||
|
exit ;;
|
||||||
|
frv:Linux:*:*)
|
||||||
|
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
||||||
|
exit ;;
|
||||||
|
hexagon:Linux:*:*)
|
||||||
|
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
||||||
|
exit ;;
|
||||||
|
i*86:Linux:*:*)
|
||||||
|
echo ${UNAME_MACHINE}-pc-linux-${LIBC}
|
||||||
|
exit ;;
|
||||||
|
ia64:Linux:*:*)
|
||||||
|
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
||||||
|
exit ;;
|
||||||
|
m32r*:Linux:*:*)
|
||||||
|
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
||||||
|
exit ;;
|
||||||
|
m68*:Linux:*:*)
|
||||||
|
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
||||||
|
exit ;;
|
||||||
|
mips:Linux:*:* | mips64:Linux:*:*)
|
||||||
|
eval $set_cc_for_build
|
||||||
|
sed 's/^ //' << EOF >$dummy.c
|
||||||
|
#undef CPU
|
||||||
|
#undef ${UNAME_MACHINE}
|
||||||
|
#undef ${UNAME_MACHINE}el
|
||||||
|
#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
|
||||||
|
CPU=${UNAME_MACHINE}el
|
||||||
|
#else
|
||||||
|
#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
|
||||||
|
CPU=${UNAME_MACHINE}
|
||||||
|
#else
|
||||||
|
CPU=
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
EOF
|
||||||
|
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
|
||||||
|
test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
|
||||||
|
;;
|
||||||
|
or1k:Linux:*:*)
|
||||||
|
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
||||||
|
exit ;;
|
||||||
|
or32:Linux:*:*)
|
||||||
|
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
||||||
|
exit ;;
|
||||||
|
padre:Linux:*:*)
|
||||||
|
echo sparc-unknown-linux-${LIBC}
|
||||||
|
exit ;;
|
||||||
|
parisc64:Linux:*:* | hppa64:Linux:*:*)
|
||||||
|
echo hppa64-unknown-linux-${LIBC}
|
||||||
exit ;;
|
exit ;;
|
||||||
parisc:Linux:*:* | hppa:Linux:*:*)
|
parisc:Linux:*:* | hppa:Linux:*:*)
|
||||||
# Look for CPU level
|
# Look for CPU level
|
||||||
case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
|
case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
|
||||||
PA7*) echo hppa1.1-unknown-linux-gnu ;;
|
PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
|
||||||
PA8*) echo hppa2.0-unknown-linux-gnu ;;
|
PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
|
||||||
*) echo hppa-unknown-linux-gnu ;;
|
*) echo hppa-unknown-linux-${LIBC} ;;
|
||||||
esac
|
esac
|
||||||
exit ;;
|
exit ;;
|
||||||
parisc64:Linux:*:* | hppa64:Linux:*:*)
|
ppc64:Linux:*:*)
|
||||||
echo hppa64-unknown-linux-gnu
|
echo powerpc64-unknown-linux-${LIBC}
|
||||||
|
exit ;;
|
||||||
|
ppc:Linux:*:*)
|
||||||
|
echo powerpc-unknown-linux-${LIBC}
|
||||||
|
exit ;;
|
||||||
|
ppc64le:Linux:*:*)
|
||||||
|
echo powerpc64le-unknown-linux-${LIBC}
|
||||||
|
exit ;;
|
||||||
|
ppcle:Linux:*:*)
|
||||||
|
echo powerpcle-unknown-linux-${LIBC}
|
||||||
exit ;;
|
exit ;;
|
||||||
s390:Linux:*:* | s390x:Linux:*:*)
|
s390:Linux:*:* | s390x:Linux:*:*)
|
||||||
echo ${UNAME_MACHINE}-ibm-linux
|
echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
|
||||||
exit ;;
|
exit ;;
|
||||||
sh64*:Linux:*:*)
|
sh64*:Linux:*:*)
|
||||||
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
||||||
exit ;;
|
exit ;;
|
||||||
sh*:Linux:*:*)
|
sh*:Linux:*:*)
|
||||||
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
||||||
exit ;;
|
exit ;;
|
||||||
sparc:Linux:*:* | sparc64:Linux:*:*)
|
sparc:Linux:*:* | sparc64:Linux:*:*)
|
||||||
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
||||||
|
exit ;;
|
||||||
|
tile*:Linux:*:*)
|
||||||
|
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
||||||
exit ;;
|
exit ;;
|
||||||
vax:Linux:*:*)
|
vax:Linux:*:*)
|
||||||
echo ${UNAME_MACHINE}-dec-linux-gnu
|
echo ${UNAME_MACHINE}-dec-linux-${LIBC}
|
||||||
exit ;;
|
exit ;;
|
||||||
x86_64:Linux:*:*)
|
x86_64:Linux:*:*)
|
||||||
echo x86_64-unknown-linux-gnu
|
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
||||||
exit ;;
|
exit ;;
|
||||||
xtensa:Linux:*:*)
|
xtensa*:Linux:*:*)
|
||||||
echo xtensa-unknown-linux-gnu
|
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
||||||
exit ;;
|
exit ;;
|
||||||
i*86:Linux:*:*)
|
|
||||||
# The BFD linker knows what the default object file format is, so
|
|
||||||
# first see if it will tell us. cd to the root directory to prevent
|
|
||||||
# problems with other programs or directories called `ld' in the path.
|
|
||||||
# Set LC_ALL=C to ensure ld outputs messages in English.
|
|
||||||
ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
|
|
||||||
| sed -ne '/supported targets:/!d
|
|
||||||
s/[ ][ ]*/ /g
|
|
||||||
s/.*supported targets: *//
|
|
||||||
s/ .*//
|
|
||||||
p'`
|
|
||||||
case "$ld_supported_targets" in
|
|
||||||
elf32-i386)
|
|
||||||
TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
|
|
||||||
;;
|
|
||||||
a.out-i386-linux)
|
|
||||||
echo "${UNAME_MACHINE}-pc-linux-gnuaout"
|
|
||||||
exit ;;
|
|
||||||
coff-i386)
|
|
||||||
echo "${UNAME_MACHINE}-pc-linux-gnucoff"
|
|
||||||
exit ;;
|
|
||||||
"")
|
|
||||||
# Either a pre-BFD a.out linker (linux-gnuoldld) or
|
|
||||||
# one that does not give us useful --help.
|
|
||||||
echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
|
|
||||||
exit ;;
|
|
||||||
esac
|
|
||||||
# Determine whether the default compiler is a.out or elf
|
|
||||||
eval $set_cc_for_build
|
|
||||||
sed 's/^ //' << EOF >$dummy.c
|
|
||||||
#include <features.h>
|
|
||||||
#ifdef __ELF__
|
|
||||||
# ifdef __GLIBC__
|
|
||||||
# if __GLIBC__ >= 2
|
|
||||||
LIBC=gnu
|
|
||||||
# else
|
|
||||||
LIBC=gnulibc1
|
|
||||||
# endif
|
|
||||||
# else
|
|
||||||
LIBC=gnulibc1
|
|
||||||
# endif
|
|
||||||
#else
|
|
||||||
#if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
|
|
||||||
LIBC=gnu
|
|
||||||
#else
|
|
||||||
LIBC=gnuaout
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
#ifdef __dietlibc__
|
|
||||||
LIBC=dietlibc
|
|
||||||
#endif
|
|
||||||
EOF
|
|
||||||
eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
|
|
||||||
/^LIBC/{
|
|
||||||
s: ::g
|
|
||||||
p
|
|
||||||
}'`"
|
|
||||||
test x"${LIBC}" != x && {
|
|
||||||
echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
|
|
||||||
exit
|
|
||||||
}
|
|
||||||
test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
|
|
||||||
;;
|
|
||||||
i*86:DYNIX/ptx:4*:*)
|
i*86:DYNIX/ptx:4*:*)
|
||||||
# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
|
# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
|
||||||
# earlier versions are messed up and put the nodename in both
|
# earlier versions are messed up and put the nodename in both
|
||||||
|
@ -1027,11 +1032,11 @@ EOF
|
||||||
echo i386-sequent-sysv4
|
echo i386-sequent-sysv4
|
||||||
exit ;;
|
exit ;;
|
||||||
i*86:UNIX_SV:4.2MP:2.*)
|
i*86:UNIX_SV:4.2MP:2.*)
|
||||||
# Unixware is an offshoot of SVR4, but it has its own version
|
# Unixware is an offshoot of SVR4, but it has its own version
|
||||||
# number series starting with 2...
|
# number series starting with 2...
|
||||||
# I am not positive that other SVR4 systems won't match this,
|
# I am not positive that other SVR4 systems won't match this,
|
||||||
# I just have to hope. -- rms.
|
# I just have to hope. -- rms.
|
||||||
# Use sysv4.2uw... so that sysv4* matches it.
|
# Use sysv4.2uw... so that sysv4* matches it.
|
||||||
echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
|
echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
|
||||||
exit ;;
|
exit ;;
|
||||||
i*86:OS/2:*:*)
|
i*86:OS/2:*:*)
|
||||||
|
@ -1048,7 +1053,7 @@ EOF
|
||||||
i*86:syllable:*:*)
|
i*86:syllable:*:*)
|
||||||
echo ${UNAME_MACHINE}-pc-syllable
|
echo ${UNAME_MACHINE}-pc-syllable
|
||||||
exit ;;
|
exit ;;
|
||||||
i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
|
i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
|
||||||
echo i386-unknown-lynxos${UNAME_RELEASE}
|
echo i386-unknown-lynxos${UNAME_RELEASE}
|
||||||
exit ;;
|
exit ;;
|
||||||
i*86:*DOS:*:*)
|
i*86:*DOS:*:*)
|
||||||
|
@ -1063,7 +1068,7 @@ EOF
|
||||||
fi
|
fi
|
||||||
exit ;;
|
exit ;;
|
||||||
i*86:*:5:[678]*)
|
i*86:*:5:[678]*)
|
||||||
# UnixWare 7.x, OpenUNIX and OpenServer 6.
|
# UnixWare 7.x, OpenUNIX and OpenServer 6.
|
||||||
case `/bin/uname -X | grep "^Machine"` in
|
case `/bin/uname -X | grep "^Machine"` in
|
||||||
*486*) UNAME_MACHINE=i486 ;;
|
*486*) UNAME_MACHINE=i486 ;;
|
||||||
*Pentium) UNAME_MACHINE=i586 ;;
|
*Pentium) UNAME_MACHINE=i586 ;;
|
||||||
|
@ -1091,10 +1096,13 @@ EOF
|
||||||
exit ;;
|
exit ;;
|
||||||
pc:*:*:*)
|
pc:*:*:*)
|
||||||
# Left here for compatibility:
|
# Left here for compatibility:
|
||||||
# uname -m prints for DJGPP always 'pc', but it prints nothing about
|
# uname -m prints for DJGPP always 'pc', but it prints nothing about
|
||||||
# the processor, so we play safe by assuming i386.
|
# the processor, so we play safe by assuming i586.
|
||||||
echo i386-pc-msdosdjgpp
|
# Note: whatever this is, it MUST be the same as what config.sub
|
||||||
exit ;;
|
# prints for the "djgpp" host, or else GDB configury will decide that
|
||||||
|
# this is a cross-build.
|
||||||
|
echo i586-pc-msdosdjgpp
|
||||||
|
exit ;;
|
||||||
Intel:Mach:3*:*)
|
Intel:Mach:3*:*)
|
||||||
echo i386-pc-mach3
|
echo i386-pc-mach3
|
||||||
exit ;;
|
exit ;;
|
||||||
|
@ -1129,8 +1137,18 @@ EOF
|
||||||
/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
|
/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
|
||||||
&& { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
|
&& { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
|
||||||
3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
|
3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
|
||||||
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
|
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
|
||||||
&& { echo i486-ncr-sysv4; exit; } ;;
|
&& { echo i486-ncr-sysv4; exit; } ;;
|
||||||
|
NCR*:*:4.2:* | MPRAS*:*:4.2:*)
|
||||||
|
OS_REL='.3'
|
||||||
|
test -r /etc/.relid \
|
||||||
|
&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
|
||||||
|
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
|
||||||
|
&& { echo i486-ncr-sysv4.3${OS_REL}; exit; }
|
||||||
|
/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
|
||||||
|
&& { echo i586-ncr-sysv4.3${OS_REL}; exit; }
|
||||||
|
/bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
|
||||||
|
&& { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
|
||||||
m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
|
m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
|
||||||
echo m68k-unknown-lynxos${UNAME_RELEASE}
|
echo m68k-unknown-lynxos${UNAME_RELEASE}
|
||||||
exit ;;
|
exit ;;
|
||||||
|
@ -1143,7 +1161,7 @@ EOF
|
||||||
rs6000:LynxOS:2.*:*)
|
rs6000:LynxOS:2.*:*)
|
||||||
echo rs6000-unknown-lynxos${UNAME_RELEASE}
|
echo rs6000-unknown-lynxos${UNAME_RELEASE}
|
||||||
exit ;;
|
exit ;;
|
||||||
PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
|
PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
|
||||||
echo powerpc-unknown-lynxos${UNAME_RELEASE}
|
echo powerpc-unknown-lynxos${UNAME_RELEASE}
|
||||||
exit ;;
|
exit ;;
|
||||||
SM[BE]S:UNIX_SV:*:*)
|
SM[BE]S:UNIX_SV:*:*)
|
||||||
|
@ -1163,10 +1181,10 @@ EOF
|
||||||
echo ns32k-sni-sysv
|
echo ns32k-sni-sysv
|
||||||
fi
|
fi
|
||||||
exit ;;
|
exit ;;
|
||||||
PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
|
PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
|
||||||
# says <Richard.M.Bartel@ccMail.Census.GOV>
|
# says <Richard.M.Bartel@ccMail.Census.GOV>
|
||||||
echo i586-unisys-sysv4
|
echo i586-unisys-sysv4
|
||||||
exit ;;
|
exit ;;
|
||||||
*:UNIX_System_V:4*:FTX*)
|
*:UNIX_System_V:4*:FTX*)
|
||||||
# From Gerald Hewes <hewes@openmarket.com>.
|
# From Gerald Hewes <hewes@openmarket.com>.
|
||||||
# How about differentiating between stratus architectures? -djm
|
# How about differentiating between stratus architectures? -djm
|
||||||
|
@ -1192,11 +1210,11 @@ EOF
|
||||||
exit ;;
|
exit ;;
|
||||||
R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
|
R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
|
||||||
if [ -d /usr/nec ]; then
|
if [ -d /usr/nec ]; then
|
||||||
echo mips-nec-sysv${UNAME_RELEASE}
|
echo mips-nec-sysv${UNAME_RELEASE}
|
||||||
else
|
else
|
||||||
echo mips-unknown-sysv${UNAME_RELEASE}
|
echo mips-unknown-sysv${UNAME_RELEASE}
|
||||||
fi
|
fi
|
||||||
exit ;;
|
exit ;;
|
||||||
BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
|
BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
|
||||||
echo powerpc-be-beos
|
echo powerpc-be-beos
|
||||||
exit ;;
|
exit ;;
|
||||||
|
@ -1206,6 +1224,12 @@ EOF
|
||||||
BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
|
BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
|
||||||
echo i586-pc-beos
|
echo i586-pc-beos
|
||||||
exit ;;
|
exit ;;
|
||||||
|
BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
|
||||||
|
echo i586-pc-haiku
|
||||||
|
exit ;;
|
||||||
|
x86_64:Haiku:*:*)
|
||||||
|
echo x86_64-unknown-haiku
|
||||||
|
exit ;;
|
||||||
SX-4:SUPER-UX:*:*)
|
SX-4:SUPER-UX:*:*)
|
||||||
echo sx4-nec-superux${UNAME_RELEASE}
|
echo sx4-nec-superux${UNAME_RELEASE}
|
||||||
exit ;;
|
exit ;;
|
||||||
|
@ -1232,9 +1256,31 @@ EOF
|
||||||
exit ;;
|
exit ;;
|
||||||
*:Darwin:*:*)
|
*:Darwin:*:*)
|
||||||
UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
|
UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
|
||||||
case $UNAME_PROCESSOR in
|
eval $set_cc_for_build
|
||||||
unknown) UNAME_PROCESSOR=powerpc ;;
|
if test "$UNAME_PROCESSOR" = unknown ; then
|
||||||
esac
|
UNAME_PROCESSOR=powerpc
|
||||||
|
fi
|
||||||
|
if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
|
||||||
|
if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
|
||||||
|
if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
|
||||||
|
(CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
|
||||||
|
grep IS_64BIT_ARCH >/dev/null
|
||||||
|
then
|
||||||
|
case $UNAME_PROCESSOR in
|
||||||
|
i386) UNAME_PROCESSOR=x86_64 ;;
|
||||||
|
powerpc) UNAME_PROCESSOR=powerpc64 ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
elif test "$UNAME_PROCESSOR" = i386 ; then
|
||||||
|
# Avoid executing cc on OS X 10.9, as it ships with a stub
|
||||||
|
# that puts up a graphical alert prompting to install
|
||||||
|
# developer tools. Any system running Mac OS X 10.7 or
|
||||||
|
# later (Darwin 11 and later) is required to have a 64-bit
|
||||||
|
# processor. This is not true of the ARM version of Darwin
|
||||||
|
# that Apple uses in portable devices.
|
||||||
|
UNAME_PROCESSOR=x86_64
|
||||||
|
fi
|
||||||
echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
|
echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
|
||||||
exit ;;
|
exit ;;
|
||||||
*:procnto*:*:* | *:QNX:[0123456789]*:*)
|
*:procnto*:*:* | *:QNX:[0123456789]*:*)
|
||||||
|
@ -1248,7 +1294,10 @@ EOF
|
||||||
*:QNX:*:4*)
|
*:QNX:*:4*)
|
||||||
echo i386-pc-qnx
|
echo i386-pc-qnx
|
||||||
exit ;;
|
exit ;;
|
||||||
NSE-?:NONSTOP_KERNEL:*:*)
|
NEO-?:NONSTOP_KERNEL:*:*)
|
||||||
|
echo neo-tandem-nsk${UNAME_RELEASE}
|
||||||
|
exit ;;
|
||||||
|
NSE-*:NONSTOP_KERNEL:*:*)
|
||||||
echo nse-tandem-nsk${UNAME_RELEASE}
|
echo nse-tandem-nsk${UNAME_RELEASE}
|
||||||
exit ;;
|
exit ;;
|
||||||
NSR-?:NONSTOP_KERNEL:*:*)
|
NSR-?:NONSTOP_KERNEL:*:*)
|
||||||
|
@ -1293,13 +1342,13 @@ EOF
|
||||||
echo pdp10-unknown-its
|
echo pdp10-unknown-its
|
||||||
exit ;;
|
exit ;;
|
||||||
SEI:*:*:SEIUX)
|
SEI:*:*:SEIUX)
|
||||||
echo mips-sei-seiux${UNAME_RELEASE}
|
echo mips-sei-seiux${UNAME_RELEASE}
|
||||||
exit ;;
|
exit ;;
|
||||||
*:DragonFly:*:*)
|
*:DragonFly:*:*)
|
||||||
echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
|
echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
|
||||||
exit ;;
|
exit ;;
|
||||||
*:*VMS:*:*)
|
*:*VMS:*:*)
|
||||||
UNAME_MACHINE=`(uname -p) 2>/dev/null`
|
UNAME_MACHINE=`(uname -p) 2>/dev/null`
|
||||||
case "${UNAME_MACHINE}" in
|
case "${UNAME_MACHINE}" in
|
||||||
A*) echo alpha-dec-vms ; exit ;;
|
A*) echo alpha-dec-vms ; exit ;;
|
||||||
I*) echo ia64-dec-vms ; exit ;;
|
I*) echo ia64-dec-vms ; exit ;;
|
||||||
|
@ -1314,11 +1363,14 @@ EOF
|
||||||
i*86:rdos:*:*)
|
i*86:rdos:*:*)
|
||||||
echo ${UNAME_MACHINE}-pc-rdos
|
echo ${UNAME_MACHINE}-pc-rdos
|
||||||
exit ;;
|
exit ;;
|
||||||
|
i*86:AROS:*:*)
|
||||||
|
echo ${UNAME_MACHINE}-pc-aros
|
||||||
|
exit ;;
|
||||||
|
x86_64:VMkernel:*:*)
|
||||||
|
echo ${UNAME_MACHINE}-unknown-esx
|
||||||
|
exit ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
#echo '(No uname command or uname output not recognized.)' 1>&2
|
|
||||||
#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
|
|
||||||
|
|
||||||
eval $set_cc_for_build
|
eval $set_cc_for_build
|
||||||
cat >$dummy.c <<EOF
|
cat >$dummy.c <<EOF
|
||||||
#ifdef _SEQUENT_
|
#ifdef _SEQUENT_
|
||||||
|
@ -1336,11 +1388,11 @@ main ()
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
printf ("m68k-sony-newsos%s\n",
|
printf ("m68k-sony-newsos%s\n",
|
||||||
#ifdef NEWSOS4
|
#ifdef NEWSOS4
|
||||||
"4"
|
"4"
|
||||||
#else
|
#else
|
||||||
""
|
""
|
||||||
#endif
|
#endif
|
||||||
); exit (0);
|
); exit (0);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -1474,9 +1526,9 @@ This script, last modified $timestamp, has failed to recognize
|
||||||
the operating system you are using. It is advised that you
|
the operating system you are using. It is advised that you
|
||||||
download the most up to date version of the config scripts from
|
download the most up to date version of the config scripts from
|
||||||
|
|
||||||
http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
|
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
|
||||||
and
|
and
|
||||||
http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
|
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
|
||||||
|
|
||||||
If the version you run ($0) is already up to date, please
|
If the version you run ($0) is already up to date, please
|
||||||
send the following data and any information you think might be
|
send the following data and any information you think might be
|
||||||
|
|
|
@ -1,5 +1,38 @@
|
||||||
/* config.h.in. Generated from configure.ac by autoheader. */
|
/* config.h.in. Generated from configure.ac by autoheader. */
|
||||||
|
|
||||||
|
/* Header file to include for dbm functions */
|
||||||
|
#undef DBM_HEADER
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `asprintf' function. */
|
||||||
|
#undef HAVE_ASPRINTF
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||||
|
#undef HAVE_INTTYPES_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <memory.h> header file. */
|
||||||
|
#undef HAVE_MEMORY_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <stdint.h> header file. */
|
||||||
|
#undef HAVE_STDINT_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <stdlib.h> header file. */
|
||||||
|
#undef HAVE_STDLIB_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <strings.h> header file. */
|
||||||
|
#undef HAVE_STRINGS_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <string.h> header file. */
|
||||||
|
#undef HAVE_STRING_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <sys/stat.h> header file. */
|
||||||
|
#undef HAVE_SYS_STAT_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <sys/types.h> header file. */
|
||||||
|
#undef HAVE_SYS_TYPES_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <unistd.h> header file. */
|
||||||
|
#undef HAVE_UNISTD_H
|
||||||
|
|
||||||
/* Define to 1 if you have ndbm.h interfaces */
|
/* Define to 1 if you have ndbm.h interfaces */
|
||||||
#undef NDBM
|
#undef NDBM
|
||||||
|
|
||||||
|
@ -18,6 +51,9 @@
|
||||||
/* Define to the one symbol short name of this package. */
|
/* Define to the one symbol short name of this package. */
|
||||||
#undef PACKAGE_TARNAME
|
#undef PACKAGE_TARNAME
|
||||||
|
|
||||||
|
/* Define to the home page for this package. */
|
||||||
|
#undef PACKAGE_URL
|
||||||
|
|
||||||
/* Define to the version of this package. */
|
/* Define to the version of this package. */
|
||||||
#undef PACKAGE_VERSION
|
#undef PACKAGE_VERSION
|
||||||
|
|
||||||
|
@ -30,8 +66,43 @@
|
||||||
/* Patch version of this package */
|
/* Patch version of this package */
|
||||||
#undef PACKAGE_VERSION_PATCHLEVEL
|
#undef PACKAGE_VERSION_PATCHLEVEL
|
||||||
|
|
||||||
|
/* Define to 1 if you have the ANSI C header files. */
|
||||||
|
#undef STDC_HEADERS
|
||||||
|
|
||||||
/* Define to 1 to use plain text files for rgb database */
|
/* Define to 1 to use plain text files for rgb database */
|
||||||
#undef USE_RGB_TXT
|
#undef USE_RGB_TXT
|
||||||
|
|
||||||
|
/* Enable extensions on AIX 3, Interix. */
|
||||||
|
#ifndef _ALL_SOURCE
|
||||||
|
# undef _ALL_SOURCE
|
||||||
|
#endif
|
||||||
|
/* Enable GNU extensions on systems that have them. */
|
||||||
|
#ifndef _GNU_SOURCE
|
||||||
|
# undef _GNU_SOURCE
|
||||||
|
#endif
|
||||||
|
/* Enable threading extensions on Solaris. */
|
||||||
|
#ifndef _POSIX_PTHREAD_SEMANTICS
|
||||||
|
# undef _POSIX_PTHREAD_SEMANTICS
|
||||||
|
#endif
|
||||||
|
/* Enable extensions on HP NonStop. */
|
||||||
|
#ifndef _TANDEM_SOURCE
|
||||||
|
# undef _TANDEM_SOURCE
|
||||||
|
#endif
|
||||||
|
/* Enable general extensions on Solaris. */
|
||||||
|
#ifndef __EXTENSIONS__
|
||||||
|
# undef __EXTENSIONS__
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* Version number of package */
|
/* Version number of package */
|
||||||
#undef VERSION
|
#undef VERSION
|
||||||
|
|
||||||
|
/* Define to 1 if on MINIX. */
|
||||||
|
#undef _MINIX
|
||||||
|
|
||||||
|
/* Define to 2 if the system does not provide POSIX.1 features except with
|
||||||
|
this defined. */
|
||||||
|
#undef _POSIX_1_SOURCE
|
||||||
|
|
||||||
|
/* Define to 1 if you need to in order for `stat' and other things to work. */
|
||||||
|
#undef _POSIX_SOURCE
|
||||||
|
|
|
@ -1,44 +1,40 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# Configuration validation subroutine script.
|
# Configuration validation subroutine script.
|
||||||
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
|
# Copyright 1992-2013 Free Software Foundation, Inc.
|
||||||
# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
|
|
||||||
# Inc.
|
|
||||||
|
|
||||||
timestamp='2007-01-18'
|
timestamp='2013-10-01'
|
||||||
|
|
||||||
# This file is (in principle) common to ALL GNU software.
|
# This file is free software; you can redistribute it and/or modify it
|
||||||
# The presence of a machine in this file suggests that SOME GNU software
|
# under the terms of the GNU General Public License as published by
|
||||||
# can handle that machine. It does not imply ALL GNU software can.
|
# the Free Software Foundation; either version 3 of the License, or
|
||||||
#
|
|
||||||
# This file 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.
|
# (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful, but
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
# GNU General Public License for more details.
|
# General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||||
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
|
|
||||||
# 02110-1301, USA.
|
|
||||||
#
|
#
|
||||||
# As a special exception to the GNU General Public License, if you
|
# As a special exception to the GNU General Public License, if you
|
||||||
# distribute this file as part of a program that contains a
|
# distribute this file as part of a program that contains a
|
||||||
# configuration script generated by Autoconf, you may include it under
|
# configuration script generated by Autoconf, you may include it under
|
||||||
# the same distribution terms that you use for the rest of that program.
|
# the same distribution terms that you use for the rest of that
|
||||||
|
# program. This Exception is an additional permission under section 7
|
||||||
|
# of the GNU General Public License, version 3 ("GPLv3").
|
||||||
|
|
||||||
|
|
||||||
# Please send patches to <config-patches@gnu.org>. Submit a context
|
# Please send patches with a ChangeLog entry to config-patches@gnu.org.
|
||||||
# diff and a properly formatted ChangeLog entry.
|
|
||||||
#
|
#
|
||||||
# Configuration subroutine to validate and canonicalize a configuration type.
|
# Configuration subroutine to validate and canonicalize a configuration type.
|
||||||
# Supply the specified configuration type as an argument.
|
# Supply the specified configuration type as an argument.
|
||||||
# If it is invalid, we print an error message on stderr and exit with code 1.
|
# If it is invalid, we print an error message on stderr and exit with code 1.
|
||||||
# Otherwise, we print the canonical config type on stdout and succeed.
|
# Otherwise, we print the canonical config type on stdout and succeed.
|
||||||
|
|
||||||
|
# You can get the latest version of this script from:
|
||||||
|
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
|
||||||
|
|
||||||
# This file is supposed to be the same for all GNU packages
|
# This file is supposed to be the same for all GNU packages
|
||||||
# and recognize all the CPU types, system types and aliases
|
# and recognize all the CPU types, system types and aliases
|
||||||
# that are meaningful with *any* GNU software.
|
# that are meaningful with *any* GNU software.
|
||||||
|
@ -72,8 +68,7 @@ Report bugs and patches to <config-patches@gnu.org>."
|
||||||
version="\
|
version="\
|
||||||
GNU config.sub ($timestamp)
|
GNU config.sub ($timestamp)
|
||||||
|
|
||||||
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
|
Copyright 1992-2013 Free Software Foundation, Inc.
|
||||||
Free Software Foundation, Inc.
|
|
||||||
|
|
||||||
This is free software; see the source for copying conditions. There is NO
|
This is free software; see the source for copying conditions. There is NO
|
||||||
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
|
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
|
||||||
|
@ -120,12 +115,18 @@ esac
|
||||||
# Here we must recognize all the valid KERNEL-OS combinations.
|
# Here we must recognize all the valid KERNEL-OS combinations.
|
||||||
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
|
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
|
||||||
case $maybe_os in
|
case $maybe_os in
|
||||||
nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
|
nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
|
||||||
uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
|
linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
|
||||||
|
knetbsd*-gnu* | netbsd*-gnu* | \
|
||||||
|
kopensolaris*-gnu* | \
|
||||||
storm-chaos* | os2-emx* | rtmk-nova*)
|
storm-chaos* | os2-emx* | rtmk-nova*)
|
||||||
os=-$maybe_os
|
os=-$maybe_os
|
||||||
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
|
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
|
||||||
;;
|
;;
|
||||||
|
android-linux)
|
||||||
|
os=-linux-android
|
||||||
|
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
basic_machine=`echo $1 | sed 's/-[^-]*$//'`
|
basic_machine=`echo $1 | sed 's/-[^-]*$//'`
|
||||||
if [ $basic_machine != $1 ]
|
if [ $basic_machine != $1 ]
|
||||||
|
@ -148,10 +149,13 @@ case $os in
|
||||||
-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
|
-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
|
||||||
-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
|
-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
|
||||||
-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
|
-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
|
||||||
-apple | -axis | -knuth | -cray)
|
-apple | -axis | -knuth | -cray | -microblaze*)
|
||||||
os=
|
os=
|
||||||
basic_machine=$1
|
basic_machine=$1
|
||||||
;;
|
;;
|
||||||
|
-bluegene*)
|
||||||
|
os=-cnk
|
||||||
|
;;
|
||||||
-sim | -cisco | -oki | -wec | -winbond)
|
-sim | -cisco | -oki | -wec | -winbond)
|
||||||
os=
|
os=
|
||||||
basic_machine=$1
|
basic_machine=$1
|
||||||
|
@ -166,10 +170,10 @@ case $os in
|
||||||
os=-chorusos
|
os=-chorusos
|
||||||
basic_machine=$1
|
basic_machine=$1
|
||||||
;;
|
;;
|
||||||
-chorusrdb)
|
-chorusrdb)
|
||||||
os=-chorusrdb
|
os=-chorusrdb
|
||||||
basic_machine=$1
|
basic_machine=$1
|
||||||
;;
|
;;
|
||||||
-hiux*)
|
-hiux*)
|
||||||
os=-hiuxwe2
|
os=-hiuxwe2
|
||||||
;;
|
;;
|
||||||
|
@ -214,6 +218,12 @@ case $os in
|
||||||
-isc*)
|
-isc*)
|
||||||
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
|
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
|
||||||
;;
|
;;
|
||||||
|
-lynx*178)
|
||||||
|
os=-lynxos178
|
||||||
|
;;
|
||||||
|
-lynx*5)
|
||||||
|
os=-lynxos5
|
||||||
|
;;
|
||||||
-lynx*)
|
-lynx*)
|
||||||
os=-lynxos
|
os=-lynxos
|
||||||
;;
|
;;
|
||||||
|
@ -238,24 +248,35 @@ case $basic_machine in
|
||||||
# Some are omitted here because they have special meanings below.
|
# Some are omitted here because they have special meanings below.
|
||||||
1750a | 580 \
|
1750a | 580 \
|
||||||
| a29k \
|
| a29k \
|
||||||
|
| aarch64 | aarch64_be \
|
||||||
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
|
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
|
||||||
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
|
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
|
||||||
| am33_2.0 \
|
| am33_2.0 \
|
||||||
| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
|
| arc | arceb \
|
||||||
|
| arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
|
||||||
|
| avr | avr32 \
|
||||||
|
| be32 | be64 \
|
||||||
| bfin \
|
| bfin \
|
||||||
| c4x | clipper \
|
| c4x | c8051 | clipper \
|
||||||
| d10v | d30v | dlx | dsp16xx \
|
| d10v | d30v | dlx | dsp16xx \
|
||||||
|
| epiphany \
|
||||||
| fido | fr30 | frv \
|
| fido | fr30 | frv \
|
||||||
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
|
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
|
||||||
|
| hexagon \
|
||||||
| i370 | i860 | i960 | ia64 \
|
| i370 | i860 | i960 | ia64 \
|
||||||
| ip2k | iq2000 \
|
| ip2k | iq2000 \
|
||||||
|
| k1om \
|
||||||
|
| le32 | le64 \
|
||||||
|
| lm32 \
|
||||||
| m32c | m32r | m32rle | m68000 | m68k | m88k \
|
| m32c | m32r | m32rle | m68000 | m68k | m88k \
|
||||||
| maxq | mb | microblaze | mcore | mep \
|
| maxq | mb | microblaze | microblazeel | mcore | mep | metag \
|
||||||
| mips | mipsbe | mipseb | mipsel | mipsle \
|
| mips | mipsbe | mipseb | mipsel | mipsle \
|
||||||
| mips16 \
|
| mips16 \
|
||||||
| mips64 | mips64el \
|
| mips64 | mips64el \
|
||||||
| mips64vr | mips64vrel \
|
| mips64octeon | mips64octeonel \
|
||||||
| mips64orion | mips64orionel \
|
| mips64orion | mips64orionel \
|
||||||
|
| mips64r5900 | mips64r5900el \
|
||||||
|
| mips64vr | mips64vrel \
|
||||||
| mips64vr4100 | mips64vr4100el \
|
| mips64vr4100 | mips64vr4100el \
|
||||||
| mips64vr4300 | mips64vr4300el \
|
| mips64vr4300 | mips64vr4300el \
|
||||||
| mips64vr5000 | mips64vr5000el \
|
| mips64vr5000 | mips64vr5000el \
|
||||||
|
@ -266,31 +287,45 @@ case $basic_machine in
|
||||||
| mipsisa64r2 | mipsisa64r2el \
|
| mipsisa64r2 | mipsisa64r2el \
|
||||||
| mipsisa64sb1 | mipsisa64sb1el \
|
| mipsisa64sb1 | mipsisa64sb1el \
|
||||||
| mipsisa64sr71k | mipsisa64sr71kel \
|
| mipsisa64sr71k | mipsisa64sr71kel \
|
||||||
|
| mipsr5900 | mipsr5900el \
|
||||||
| mipstx39 | mipstx39el \
|
| mipstx39 | mipstx39el \
|
||||||
| mn10200 | mn10300 \
|
| mn10200 | mn10300 \
|
||||||
|
| moxie \
|
||||||
| mt \
|
| mt \
|
||||||
| msp430 \
|
| msp430 \
|
||||||
| nios | nios2 \
|
| nds32 | nds32le | nds32be \
|
||||||
|
| nios | nios2 | nios2eb | nios2el \
|
||||||
| ns16k | ns32k \
|
| ns16k | ns32k \
|
||||||
| or32 \
|
| open8 \
|
||||||
|
| or1k | or32 \
|
||||||
| pdp10 | pdp11 | pj | pjl \
|
| pdp10 | pdp11 | pj | pjl \
|
||||||
| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
|
| powerpc | powerpc64 | powerpc64le | powerpcle \
|
||||||
| pyramid \
|
| pyramid \
|
||||||
|
| rl78 | rx \
|
||||||
| score \
|
| score \
|
||||||
| sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
|
| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
|
||||||
| sh64 | sh64le \
|
| sh64 | sh64le \
|
||||||
| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
|
| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
|
||||||
| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
|
| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
|
||||||
| spu | strongarm \
|
| spu \
|
||||||
| tahoe | thumb | tic4x | tic80 | tron \
|
| tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
|
||||||
| v850 | v850e \
|
| ubicom32 \
|
||||||
|
| v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
|
||||||
| we32k \
|
| we32k \
|
||||||
| x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
|
| x86 | xc16x | xstormy16 | xtensa \
|
||||||
| z8k)
|
| z8k | z80)
|
||||||
basic_machine=$basic_machine-unknown
|
basic_machine=$basic_machine-unknown
|
||||||
;;
|
;;
|
||||||
m6811 | m68hc11 | m6812 | m68hc12)
|
c54x)
|
||||||
# Motorola 68HC11/12.
|
basic_machine=tic54x-unknown
|
||||||
|
;;
|
||||||
|
c55x)
|
||||||
|
basic_machine=tic55x-unknown
|
||||||
|
;;
|
||||||
|
c6x)
|
||||||
|
basic_machine=tic6x-unknown
|
||||||
|
;;
|
||||||
|
m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
|
||||||
basic_machine=$basic_machine-unknown
|
basic_machine=$basic_machine-unknown
|
||||||
os=-none
|
os=-none
|
||||||
;;
|
;;
|
||||||
|
@ -300,6 +335,21 @@ case $basic_machine in
|
||||||
basic_machine=mt-unknown
|
basic_machine=mt-unknown
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
strongarm | thumb | xscale)
|
||||||
|
basic_machine=arm-unknown
|
||||||
|
;;
|
||||||
|
xgate)
|
||||||
|
basic_machine=$basic_machine-unknown
|
||||||
|
os=-none
|
||||||
|
;;
|
||||||
|
xscaleeb)
|
||||||
|
basic_machine=armeb-unknown
|
||||||
|
;;
|
||||||
|
|
||||||
|
xscaleel)
|
||||||
|
basic_machine=armel-unknown
|
||||||
|
;;
|
||||||
|
|
||||||
# We use `pc' rather than `unknown'
|
# We use `pc' rather than `unknown'
|
||||||
# because (1) that's what they normally are, and
|
# because (1) that's what they normally are, and
|
||||||
# (2) the word "unknown" tends to confuse beginning users.
|
# (2) the word "unknown" tends to confuse beginning users.
|
||||||
|
@ -314,29 +364,38 @@ case $basic_machine in
|
||||||
# Recognize the basic CPU types with company name.
|
# Recognize the basic CPU types with company name.
|
||||||
580-* \
|
580-* \
|
||||||
| a29k-* \
|
| a29k-* \
|
||||||
|
| aarch64-* | aarch64_be-* \
|
||||||
| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
|
| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
|
||||||
| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
|
| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
|
||||||
| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
|
| alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
|
||||||
| arm-* | armbe-* | armle-* | armeb-* | armv*-* \
|
| arm-* | armbe-* | armle-* | armeb-* | armv*-* \
|
||||||
| avr-* | avr32-* \
|
| avr-* | avr32-* \
|
||||||
|
| be32-* | be64-* \
|
||||||
| bfin-* | bs2000-* \
|
| bfin-* | bs2000-* \
|
||||||
| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
|
| c[123]* | c30-* | [cjt]90-* | c4x-* \
|
||||||
| clipper-* | craynv-* | cydra-* \
|
| c8051-* | clipper-* | craynv-* | cydra-* \
|
||||||
| d10v-* | d30v-* | dlx-* \
|
| d10v-* | d30v-* | dlx-* \
|
||||||
| elxsi-* \
|
| elxsi-* \
|
||||||
| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
|
| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
|
||||||
| h8300-* | h8500-* \
|
| h8300-* | h8500-* \
|
||||||
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
|
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
|
||||||
|
| hexagon-* \
|
||||||
| i*86-* | i860-* | i960-* | ia64-* \
|
| i*86-* | i860-* | i960-* | ia64-* \
|
||||||
| ip2k-* | iq2000-* \
|
| ip2k-* | iq2000-* \
|
||||||
|
| k1om-* \
|
||||||
|
| le32-* | le64-* \
|
||||||
|
| lm32-* \
|
||||||
| m32c-* | m32r-* | m32rle-* \
|
| m32c-* | m32r-* | m32rle-* \
|
||||||
| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
|
| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
|
||||||
| m88110-* | m88k-* | maxq-* | mcore-* \
|
| m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
|
||||||
|
| microblaze-* | microblazeel-* \
|
||||||
| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
|
| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
|
||||||
| mips16-* \
|
| mips16-* \
|
||||||
| mips64-* | mips64el-* \
|
| mips64-* | mips64el-* \
|
||||||
| mips64vr-* | mips64vrel-* \
|
| mips64octeon-* | mips64octeonel-* \
|
||||||
| mips64orion-* | mips64orionel-* \
|
| mips64orion-* | mips64orionel-* \
|
||||||
|
| mips64r5900-* | mips64r5900el-* \
|
||||||
|
| mips64vr-* | mips64vrel-* \
|
||||||
| mips64vr4100-* | mips64vr4100el-* \
|
| mips64vr4100-* | mips64vr4100el-* \
|
||||||
| mips64vr4300-* | mips64vr4300el-* \
|
| mips64vr4300-* | mips64vr4300el-* \
|
||||||
| mips64vr5000-* | mips64vr5000el-* \
|
| mips64vr5000-* | mips64vr5000el-* \
|
||||||
|
@ -347,31 +406,41 @@ case $basic_machine in
|
||||||
| mipsisa64r2-* | mipsisa64r2el-* \
|
| mipsisa64r2-* | mipsisa64r2el-* \
|
||||||
| mipsisa64sb1-* | mipsisa64sb1el-* \
|
| mipsisa64sb1-* | mipsisa64sb1el-* \
|
||||||
| mipsisa64sr71k-* | mipsisa64sr71kel-* \
|
| mipsisa64sr71k-* | mipsisa64sr71kel-* \
|
||||||
|
| mipsr5900-* | mipsr5900el-* \
|
||||||
| mipstx39-* | mipstx39el-* \
|
| mipstx39-* | mipstx39el-* \
|
||||||
| mmix-* \
|
| mmix-* \
|
||||||
| mt-* \
|
| mt-* \
|
||||||
| msp430-* \
|
| msp430-* \
|
||||||
| nios-* | nios2-* \
|
| nds32-* | nds32le-* | nds32be-* \
|
||||||
|
| nios-* | nios2-* | nios2eb-* | nios2el-* \
|
||||||
| none-* | np1-* | ns16k-* | ns32k-* \
|
| none-* | np1-* | ns16k-* | ns32k-* \
|
||||||
|
| open8-* \
|
||||||
| orion-* \
|
| orion-* \
|
||||||
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
|
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
|
||||||
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
|
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
|
||||||
| pyramid-* \
|
| pyramid-* \
|
||||||
| romp-* | rs6000-* \
|
| rl78-* | romp-* | rs6000-* | rx-* \
|
||||||
| sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
|
| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
|
||||||
| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
|
| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
|
||||||
| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
|
| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
|
||||||
| sparclite-* \
|
| sparclite-* \
|
||||||
| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
|
| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
|
||||||
| tahoe-* | thumb-* \
|
| tahoe-* \
|
||||||
| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
|
| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
|
||||||
|
| tile*-* \
|
||||||
| tron-* \
|
| tron-* \
|
||||||
| v850-* | v850e-* | vax-* \
|
| ubicom32-* \
|
||||||
|
| v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
|
||||||
|
| vax-* \
|
||||||
| we32k-* \
|
| we32k-* \
|
||||||
| x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
|
| x86-* | x86_64-* | xc16x-* | xps100-* \
|
||||||
| xstormy16-* | xtensa-* \
|
| xstormy16-* | xtensa*-* \
|
||||||
| ymp-* \
|
| ymp-* \
|
||||||
| z8k-*)
|
| z8k-* | z80-*)
|
||||||
|
;;
|
||||||
|
# Recognize the basic CPU types without company name, with glob match.
|
||||||
|
xtensa*)
|
||||||
|
basic_machine=$basic_machine-unknown
|
||||||
;;
|
;;
|
||||||
# Recognize the various machine names and aliases which stand
|
# Recognize the various machine names and aliases which stand
|
||||||
# for a CPU type and a company and sometimes even an OS.
|
# for a CPU type and a company and sometimes even an OS.
|
||||||
|
@ -389,7 +458,7 @@ case $basic_machine in
|
||||||
basic_machine=a29k-amd
|
basic_machine=a29k-amd
|
||||||
os=-udi
|
os=-udi
|
||||||
;;
|
;;
|
||||||
abacus)
|
abacus)
|
||||||
basic_machine=abacus-unknown
|
basic_machine=abacus-unknown
|
||||||
;;
|
;;
|
||||||
adobe68k)
|
adobe68k)
|
||||||
|
@ -435,6 +504,10 @@ case $basic_machine in
|
||||||
basic_machine=m68k-apollo
|
basic_machine=m68k-apollo
|
||||||
os=-bsd
|
os=-bsd
|
||||||
;;
|
;;
|
||||||
|
aros)
|
||||||
|
basic_machine=i386-pc
|
||||||
|
os=-aros
|
||||||
|
;;
|
||||||
aux)
|
aux)
|
||||||
basic_machine=m68k-apple
|
basic_machine=m68k-apple
|
||||||
os=-aux
|
os=-aux
|
||||||
|
@ -443,10 +516,35 @@ case $basic_machine in
|
||||||
basic_machine=ns32k-sequent
|
basic_machine=ns32k-sequent
|
||||||
os=-dynix
|
os=-dynix
|
||||||
;;
|
;;
|
||||||
|
blackfin)
|
||||||
|
basic_machine=bfin-unknown
|
||||||
|
os=-linux
|
||||||
|
;;
|
||||||
|
blackfin-*)
|
||||||
|
basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
|
||||||
|
os=-linux
|
||||||
|
;;
|
||||||
|
bluegene*)
|
||||||
|
basic_machine=powerpc-ibm
|
||||||
|
os=-cnk
|
||||||
|
;;
|
||||||
|
c54x-*)
|
||||||
|
basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
|
||||||
|
;;
|
||||||
|
c55x-*)
|
||||||
|
basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
|
||||||
|
;;
|
||||||
|
c6x-*)
|
||||||
|
basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
|
||||||
|
;;
|
||||||
c90)
|
c90)
|
||||||
basic_machine=c90-cray
|
basic_machine=c90-cray
|
||||||
os=-unicos
|
os=-unicos
|
||||||
;;
|
;;
|
||||||
|
cegcc)
|
||||||
|
basic_machine=arm-unknown
|
||||||
|
os=-cegcc
|
||||||
|
;;
|
||||||
convex-c1)
|
convex-c1)
|
||||||
basic_machine=c1-convex
|
basic_machine=c1-convex
|
||||||
os=-bsd
|
os=-bsd
|
||||||
|
@ -475,8 +573,8 @@ case $basic_machine in
|
||||||
basic_machine=craynv-cray
|
basic_machine=craynv-cray
|
||||||
os=-unicosmp
|
os=-unicosmp
|
||||||
;;
|
;;
|
||||||
cr16c)
|
cr16 | cr16-*)
|
||||||
basic_machine=cr16c-unknown
|
basic_machine=cr16-unknown
|
||||||
os=-elf
|
os=-elf
|
||||||
;;
|
;;
|
||||||
crds | unos)
|
crds | unos)
|
||||||
|
@ -514,6 +612,10 @@ case $basic_machine in
|
||||||
basic_machine=m88k-motorola
|
basic_machine=m88k-motorola
|
||||||
os=-sysv3
|
os=-sysv3
|
||||||
;;
|
;;
|
||||||
|
dicos)
|
||||||
|
basic_machine=i686-pc
|
||||||
|
os=-dicos
|
||||||
|
;;
|
||||||
djgpp)
|
djgpp)
|
||||||
basic_machine=i586-pc
|
basic_machine=i586-pc
|
||||||
os=-msdosdjgpp
|
os=-msdosdjgpp
|
||||||
|
@ -629,7 +731,6 @@ case $basic_machine in
|
||||||
i370-ibm* | ibm*)
|
i370-ibm* | ibm*)
|
||||||
basic_machine=i370-ibm
|
basic_machine=i370-ibm
|
||||||
;;
|
;;
|
||||||
# I'm not sure what "Sysv32" means. Should this be sysv3.2?
|
|
||||||
i*86v32)
|
i*86v32)
|
||||||
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
|
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
|
||||||
os=-sysv32
|
os=-sysv32
|
||||||
|
@ -668,6 +769,14 @@ case $basic_machine in
|
||||||
basic_machine=m68k-isi
|
basic_machine=m68k-isi
|
||||||
os=-sysv
|
os=-sysv
|
||||||
;;
|
;;
|
||||||
|
m68knommu)
|
||||||
|
basic_machine=m68k-unknown
|
||||||
|
os=-linux
|
||||||
|
;;
|
||||||
|
m68knommu-*)
|
||||||
|
basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
|
||||||
|
os=-linux
|
||||||
|
;;
|
||||||
m88k-omron*)
|
m88k-omron*)
|
||||||
basic_machine=m88k-omron
|
basic_machine=m88k-omron
|
||||||
;;
|
;;
|
||||||
|
@ -679,10 +788,21 @@ case $basic_machine in
|
||||||
basic_machine=ns32k-utek
|
basic_machine=ns32k-utek
|
||||||
os=-sysv
|
os=-sysv
|
||||||
;;
|
;;
|
||||||
|
microblaze*)
|
||||||
|
basic_machine=microblaze-xilinx
|
||||||
|
;;
|
||||||
|
mingw64)
|
||||||
|
basic_machine=x86_64-pc
|
||||||
|
os=-mingw64
|
||||||
|
;;
|
||||||
mingw32)
|
mingw32)
|
||||||
basic_machine=i386-pc
|
basic_machine=i686-pc
|
||||||
os=-mingw32
|
os=-mingw32
|
||||||
;;
|
;;
|
||||||
|
mingw32ce)
|
||||||
|
basic_machine=arm-unknown
|
||||||
|
os=-mingw32ce
|
||||||
|
;;
|
||||||
miniframe)
|
miniframe)
|
||||||
basic_machine=m68000-convergent
|
basic_machine=m68000-convergent
|
||||||
;;
|
;;
|
||||||
|
@ -711,10 +831,18 @@ case $basic_machine in
|
||||||
ms1-*)
|
ms1-*)
|
||||||
basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
|
basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
|
||||||
;;
|
;;
|
||||||
|
msys)
|
||||||
|
basic_machine=i686-pc
|
||||||
|
os=-msys
|
||||||
|
;;
|
||||||
mvs)
|
mvs)
|
||||||
basic_machine=i370-ibm
|
basic_machine=i370-ibm
|
||||||
os=-mvs
|
os=-mvs
|
||||||
;;
|
;;
|
||||||
|
nacl)
|
||||||
|
basic_machine=le32-unknown
|
||||||
|
os=-nacl
|
||||||
|
;;
|
||||||
ncr3000)
|
ncr3000)
|
||||||
basic_machine=i486-ncr
|
basic_machine=i486-ncr
|
||||||
os=-sysv4
|
os=-sysv4
|
||||||
|
@ -779,6 +907,12 @@ case $basic_machine in
|
||||||
np1)
|
np1)
|
||||||
basic_machine=np1-gould
|
basic_machine=np1-gould
|
||||||
;;
|
;;
|
||||||
|
neo-tandem)
|
||||||
|
basic_machine=neo-tandem
|
||||||
|
;;
|
||||||
|
nse-tandem)
|
||||||
|
basic_machine=nse-tandem
|
||||||
|
;;
|
||||||
nsr-tandem)
|
nsr-tandem)
|
||||||
basic_machine=nsr-tandem
|
basic_machine=nsr-tandem
|
||||||
;;
|
;;
|
||||||
|
@ -809,6 +943,14 @@ case $basic_machine in
|
||||||
basic_machine=i860-intel
|
basic_machine=i860-intel
|
||||||
os=-osf
|
os=-osf
|
||||||
;;
|
;;
|
||||||
|
parisc)
|
||||||
|
basic_machine=hppa-unknown
|
||||||
|
os=-linux
|
||||||
|
;;
|
||||||
|
parisc-*)
|
||||||
|
basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
|
||||||
|
os=-linux
|
||||||
|
;;
|
||||||
pbd)
|
pbd)
|
||||||
basic_machine=sparc-tti
|
basic_machine=sparc-tti
|
||||||
;;
|
;;
|
||||||
|
@ -853,9 +995,10 @@ case $basic_machine in
|
||||||
;;
|
;;
|
||||||
power) basic_machine=power-ibm
|
power) basic_machine=power-ibm
|
||||||
;;
|
;;
|
||||||
ppc) basic_machine=powerpc-unknown
|
ppc | ppcbe) basic_machine=powerpc-unknown
|
||||||
;;
|
;;
|
||||||
ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
|
ppc-* | ppcbe-*)
|
||||||
|
basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
|
||||||
;;
|
;;
|
||||||
ppcle | powerpclittle | ppc-le | powerpc-little)
|
ppcle | powerpclittle | ppc-le | powerpc-little)
|
||||||
basic_machine=powerpcle-unknown
|
basic_machine=powerpcle-unknown
|
||||||
|
@ -880,7 +1023,11 @@ case $basic_machine in
|
||||||
basic_machine=i586-unknown
|
basic_machine=i586-unknown
|
||||||
os=-pw32
|
os=-pw32
|
||||||
;;
|
;;
|
||||||
rdos)
|
rdos | rdos64)
|
||||||
|
basic_machine=x86_64-pc
|
||||||
|
os=-rdos
|
||||||
|
;;
|
||||||
|
rdos32)
|
||||||
basic_machine=i386-pc
|
basic_machine=i386-pc
|
||||||
os=-rdos
|
os=-rdos
|
||||||
;;
|
;;
|
||||||
|
@ -949,6 +1096,9 @@ case $basic_machine in
|
||||||
basic_machine=i860-stratus
|
basic_machine=i860-stratus
|
||||||
os=-sysv4
|
os=-sysv4
|
||||||
;;
|
;;
|
||||||
|
strongarm-* | thumb-*)
|
||||||
|
basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
|
||||||
|
;;
|
||||||
sun2)
|
sun2)
|
||||||
basic_machine=m68000-sun
|
basic_machine=m68000-sun
|
||||||
;;
|
;;
|
||||||
|
@ -1005,17 +1155,9 @@ case $basic_machine in
|
||||||
basic_machine=t90-cray
|
basic_machine=t90-cray
|
||||||
os=-unicos
|
os=-unicos
|
||||||
;;
|
;;
|
||||||
tic54x | c54x*)
|
tile*)
|
||||||
basic_machine=tic54x-unknown
|
basic_machine=$basic_machine-unknown
|
||||||
os=-coff
|
os=-linux-gnu
|
||||||
;;
|
|
||||||
tic55x | c55x*)
|
|
||||||
basic_machine=tic55x-unknown
|
|
||||||
os=-coff
|
|
||||||
;;
|
|
||||||
tic6x | c6x*)
|
|
||||||
basic_machine=tic6x-unknown
|
|
||||||
os=-coff
|
|
||||||
;;
|
;;
|
||||||
tx39)
|
tx39)
|
||||||
basic_machine=mipstx39-unknown
|
basic_machine=mipstx39-unknown
|
||||||
|
@ -1084,6 +1226,9 @@ case $basic_machine in
|
||||||
xps | xps100)
|
xps | xps100)
|
||||||
basic_machine=xps100-honeywell
|
basic_machine=xps100-honeywell
|
||||||
;;
|
;;
|
||||||
|
xscale-* | xscalee[bl]-*)
|
||||||
|
basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
|
||||||
|
;;
|
||||||
ymp)
|
ymp)
|
||||||
basic_machine=ymp-cray
|
basic_machine=ymp-cray
|
||||||
os=-unicos
|
os=-unicos
|
||||||
|
@ -1092,6 +1237,10 @@ case $basic_machine in
|
||||||
basic_machine=z8k-unknown
|
basic_machine=z8k-unknown
|
||||||
os=-sim
|
os=-sim
|
||||||
;;
|
;;
|
||||||
|
z80-*-coff)
|
||||||
|
basic_machine=z80-unknown
|
||||||
|
os=-sim
|
||||||
|
;;
|
||||||
none)
|
none)
|
||||||
basic_machine=none-none
|
basic_machine=none-none
|
||||||
os=-none
|
os=-none
|
||||||
|
@ -1130,7 +1279,7 @@ case $basic_machine in
|
||||||
we32k)
|
we32k)
|
||||||
basic_machine=we32k-att
|
basic_machine=we32k-att
|
||||||
;;
|
;;
|
||||||
sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
|
sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
|
||||||
basic_machine=sh-unknown
|
basic_machine=sh-unknown
|
||||||
;;
|
;;
|
||||||
sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
|
sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
|
||||||
|
@ -1177,9 +1326,12 @@ esac
|
||||||
if [ x"$os" != x"" ]
|
if [ x"$os" != x"" ]
|
||||||
then
|
then
|
||||||
case $os in
|
case $os in
|
||||||
# First match some system type aliases
|
# First match some system type aliases
|
||||||
# that might get confused with valid system types.
|
# that might get confused with valid system types.
|
||||||
# -solaris* is a basic system type, with this one exception.
|
# -solaris* is a basic system type, with this one exception.
|
||||||
|
-auroraux)
|
||||||
|
os=-auroraux
|
||||||
|
;;
|
||||||
-solaris1 | -solaris1.*)
|
-solaris1 | -solaris1.*)
|
||||||
os=`echo $os | sed -e 's|solaris1|sunos4|'`
|
os=`echo $os | sed -e 's|solaris1|sunos4|'`
|
||||||
;;
|
;;
|
||||||
|
@ -1200,21 +1352,23 @@ case $os in
|
||||||
# Each alternative MUST END IN A *, to match a version number.
|
# Each alternative MUST END IN A *, to match a version number.
|
||||||
# -sysv* is not here because it comes later, after sysvr4.
|
# -sysv* is not here because it comes later, after sysvr4.
|
||||||
-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
|
-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
|
||||||
| -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
|
| -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
|
||||||
| -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
|
| -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
|
||||||
|
| -sym* | -kopensolaris* | -plan9* \
|
||||||
| -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
|
| -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
|
||||||
| -aos* \
|
| -aos* | -aros* \
|
||||||
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
|
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
|
||||||
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
|
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
|
||||||
| -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
|
| -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
|
||||||
| -openbsd* | -solidbsd* \
|
| -bitrig* | -openbsd* | -solidbsd* \
|
||||||
| -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
|
| -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
|
||||||
| -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
|
| -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
|
||||||
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
|
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
|
||||||
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
|
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
|
||||||
| -chorusos* | -chorusrdb* \
|
| -chorusos* | -chorusrdb* | -cegcc* \
|
||||||
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
|
| -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
|
||||||
| -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
|
| -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
|
||||||
|
| -linux-newlib* | -linux-musl* | -linux-uclibc* \
|
||||||
| -uxpv* | -beos* | -mpeix* | -udk* \
|
| -uxpv* | -beos* | -mpeix* | -udk* \
|
||||||
| -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
|
| -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
|
||||||
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
|
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
|
||||||
|
@ -1222,7 +1376,7 @@ case $os in
|
||||||
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
|
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
|
||||||
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
|
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
|
||||||
| -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
|
| -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
|
||||||
| -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
|
| -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
|
||||||
# Remember, each alternative MUST END IN *, to match a version number.
|
# Remember, each alternative MUST END IN *, to match a version number.
|
||||||
;;
|
;;
|
||||||
-qnx*)
|
-qnx*)
|
||||||
|
@ -1261,7 +1415,7 @@ case $os in
|
||||||
-opened*)
|
-opened*)
|
||||||
os=-openedition
|
os=-openedition
|
||||||
;;
|
;;
|
||||||
-os400*)
|
-os400*)
|
||||||
os=-os400
|
os=-os400
|
||||||
;;
|
;;
|
||||||
-wince*)
|
-wince*)
|
||||||
|
@ -1310,7 +1464,7 @@ case $os in
|
||||||
-sinix*)
|
-sinix*)
|
||||||
os=-sysv4
|
os=-sysv4
|
||||||
;;
|
;;
|
||||||
-tpf*)
|
-tpf*)
|
||||||
os=-tpf
|
os=-tpf
|
||||||
;;
|
;;
|
||||||
-triton*)
|
-triton*)
|
||||||
|
@ -1346,12 +1500,14 @@ case $os in
|
||||||
-aros*)
|
-aros*)
|
||||||
os=-aros
|
os=-aros
|
||||||
;;
|
;;
|
||||||
-kaos*)
|
|
||||||
os=-kaos
|
|
||||||
;;
|
|
||||||
-zvmoe)
|
-zvmoe)
|
||||||
os=-zvmoe
|
os=-zvmoe
|
||||||
;;
|
;;
|
||||||
|
-dicos*)
|
||||||
|
os=-dicos
|
||||||
|
;;
|
||||||
|
-nacl*)
|
||||||
|
;;
|
||||||
-none)
|
-none)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
@ -1374,10 +1530,10 @@ else
|
||||||
# system, and we'll never get to this point.
|
# system, and we'll never get to this point.
|
||||||
|
|
||||||
case $basic_machine in
|
case $basic_machine in
|
||||||
score-*)
|
score-*)
|
||||||
os=-elf
|
os=-elf
|
||||||
;;
|
;;
|
||||||
spu-*)
|
spu-*)
|
||||||
os=-elf
|
os=-elf
|
||||||
;;
|
;;
|
||||||
*-acorn)
|
*-acorn)
|
||||||
|
@ -1389,8 +1545,23 @@ case $basic_machine in
|
||||||
arm*-semi)
|
arm*-semi)
|
||||||
os=-aout
|
os=-aout
|
||||||
;;
|
;;
|
||||||
c4x-* | tic4x-*)
|
c4x-* | tic4x-*)
|
||||||
os=-coff
|
os=-coff
|
||||||
|
;;
|
||||||
|
c8051-*)
|
||||||
|
os=-elf
|
||||||
|
;;
|
||||||
|
hexagon-*)
|
||||||
|
os=-elf
|
||||||
|
;;
|
||||||
|
tic54x-*)
|
||||||
|
os=-coff
|
||||||
|
;;
|
||||||
|
tic55x-*)
|
||||||
|
os=-coff
|
||||||
|
;;
|
||||||
|
tic6x-*)
|
||||||
|
os=-coff
|
||||||
;;
|
;;
|
||||||
# This must come before the *-dec entry.
|
# This must come before the *-dec entry.
|
||||||
pdp10-*)
|
pdp10-*)
|
||||||
|
@ -1410,14 +1581,11 @@ case $basic_machine in
|
||||||
;;
|
;;
|
||||||
m68000-sun)
|
m68000-sun)
|
||||||
os=-sunos3
|
os=-sunos3
|
||||||
# This also exists in the configure program, but was not the
|
|
||||||
# default.
|
|
||||||
# os=-sunos4
|
|
||||||
;;
|
;;
|
||||||
m68*-cisco)
|
m68*-cisco)
|
||||||
os=-aout
|
os=-aout
|
||||||
;;
|
;;
|
||||||
mep-*)
|
mep-*)
|
||||||
os=-elf
|
os=-elf
|
||||||
;;
|
;;
|
||||||
mips*-cisco)
|
mips*-cisco)
|
||||||
|
@ -1426,6 +1594,9 @@ case $basic_machine in
|
||||||
mips*-*)
|
mips*-*)
|
||||||
os=-elf
|
os=-elf
|
||||||
;;
|
;;
|
||||||
|
or1k-*)
|
||||||
|
os=-elf
|
||||||
|
;;
|
||||||
or32-*)
|
or32-*)
|
||||||
os=-coff
|
os=-coff
|
||||||
;;
|
;;
|
||||||
|
@ -1444,7 +1615,7 @@ case $basic_machine in
|
||||||
*-ibm)
|
*-ibm)
|
||||||
os=-aix
|
os=-aix
|
||||||
;;
|
;;
|
||||||
*-knuth)
|
*-knuth)
|
||||||
os=-mmixware
|
os=-mmixware
|
||||||
;;
|
;;
|
||||||
*-wec)
|
*-wec)
|
||||||
|
@ -1549,7 +1720,7 @@ case $basic_machine in
|
||||||
-sunos*)
|
-sunos*)
|
||||||
vendor=sun
|
vendor=sun
|
||||||
;;
|
;;
|
||||||
-aix*)
|
-cnk*|-aix*)
|
||||||
vendor=ibm
|
vendor=ibm
|
||||||
;;
|
;;
|
||||||
-beos*)
|
-beos*)
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
103
rgb/configure.ac
103
rgb/configure.ac
|
@ -1,45 +1,50 @@
|
||||||
dnl Copyright 2005 Sun Microsystems, Inc. All rights reserved.
|
dnl Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.
|
||||||
dnl
|
dnl
|
||||||
dnl Permission is hereby granted, free of charge, to any person obtaining a
|
dnl Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
dnl copy of this software and associated documentation files (the
|
dnl copy of this software and associated documentation files (the "Software"),
|
||||||
dnl "Software"), to deal in the Software without restriction, including
|
dnl to deal in the Software without restriction, including without limitation
|
||||||
dnl without limitation the rights to use, copy, modify, merge, publish,
|
dnl the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||||
dnl distribute, and/or sell copies of the Software, and to permit persons
|
dnl and/or sell copies of the Software, and to permit persons to whom the
|
||||||
dnl to whom the Software is furnished to do so, provided that the above
|
dnl Software is furnished to do so, subject to the following conditions:
|
||||||
dnl copyright notice(s) and this permission notice appear in all copies of
|
|
||||||
dnl the Software and that both the above copyright notice(s) and this
|
|
||||||
dnl permission notice appear in supporting documentation.
|
|
||||||
dnl
|
dnl
|
||||||
dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
dnl The above copyright notice and this permission notice (including the next
|
||||||
dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
dnl paragraph) shall be included in all copies or substantial portions of the
|
||||||
dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
dnl Software.
|
||||||
dnl OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
|
||||||
dnl HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
|
|
||||||
dnl INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
|
|
||||||
dnl FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
|
|
||||||
dnl NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
|
|
||||||
dnl WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
||||||
dnl
|
dnl
|
||||||
dnl Except as contained in this notice, the name of a copyright holder
|
dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
dnl shall not be used in advertising or otherwise to promote the sale, use
|
dnl IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
dnl or other dealings in this Software without prior written authorization
|
dnl FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||||
dnl of the copyright holder.
|
dnl THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
dnl LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||||
|
dnl FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
|
dnl DEALINGS IN THE SOFTWARE.
|
||||||
dnl
|
dnl
|
||||||
dnl Process this file with autoconf to create configure.
|
dnl Process this file with autoconf to create configure.
|
||||||
|
|
||||||
AC_PREREQ([2.57])
|
# Initialize Autoconf
|
||||||
AC_INIT(rgb,[1.0.1],[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],rgb)
|
AC_PREREQ([2.60])
|
||||||
AM_INIT_AUTOMAKE([dist-bzip2])
|
AC_INIT([rgb], [1.0.6],
|
||||||
AM_MAINTAINER_MODE
|
[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [rgb])
|
||||||
|
AC_CONFIG_SRCDIR([Makefile.am])
|
||||||
|
AC_CONFIG_HEADERS([config.h])
|
||||||
|
AC_USE_SYSTEM_EXTENSIONS
|
||||||
|
|
||||||
AM_CONFIG_HEADER(config.h)
|
# Initialize Automake
|
||||||
|
AM_INIT_AUTOMAKE([foreign dist-bzip2])
|
||||||
|
|
||||||
AC_PROG_CC
|
# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
|
||||||
AC_PROG_INSTALL
|
m4_ifndef([XORG_MACROS_VERSION],
|
||||||
|
[m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
|
||||||
|
XORG_MACROS_VERSION(1.8)
|
||||||
|
XORG_DEFAULT_OPTIONS
|
||||||
|
|
||||||
|
AC_CHECK_FUNCS([asprintf])
|
||||||
|
|
||||||
|
PKG_CHECK_MODULES(RGB, xproto)
|
||||||
|
|
||||||
AC_MSG_CHECKING([for rgb database location])
|
AC_MSG_CHECKING([for rgb database location])
|
||||||
AC_ARG_WITH([rgb-db-dir],
|
AC_ARG_WITH([rgb-db-dir],
|
||||||
AC_HELP_STRING([--with-rgb-db-dir=<path>],
|
AS_HELP_STRING([--with-rgb-db-dir=<path>],
|
||||||
[rgb database location (default is ${datadir}/X11/rgb)]),
|
[rgb database location (default is ${datadir}/X11/rgb)]),
|
||||||
[db_path=$withval], [db_path=${datadir}/X11/rgb])
|
[db_path=$withval], [db_path=${datadir}/X11/rgb])
|
||||||
AC_MSG_RESULT([$db_path])
|
AC_MSG_RESULT([$db_path])
|
||||||
|
@ -51,11 +56,13 @@ AC_SUBST([db_dir])
|
||||||
|
|
||||||
AC_MSG_CHECKING([for rgb database format])
|
AC_MSG_CHECKING([for rgb database format])
|
||||||
AC_ARG_WITH([rgb-db-type],
|
AC_ARG_WITH([rgb-db-type],
|
||||||
AC_HELP_STRING([--with-rgb-db-type=(text|dbm|ndbm)],
|
AS_HELP_STRING([--with-rgb-db-type=(text|dbm|ndbm)],
|
||||||
[rgb database type (default is text)]),
|
[rgb database type (default is text)]),
|
||||||
[db_type=$withval], [db_type="text"])
|
[db_type=$withval], [db_type="text"])
|
||||||
AC_MSG_RESULT([$db_type])
|
AC_MSG_RESULT([$db_type])
|
||||||
|
|
||||||
|
RGB_DB_TYPE=$db_type
|
||||||
|
|
||||||
case $db_type in
|
case $db_type in
|
||||||
text)
|
text)
|
||||||
RGB_DB_FILES=""
|
RGB_DB_FILES=""
|
||||||
|
@ -63,26 +70,36 @@ case $db_type in
|
||||||
[Define to 1 to use plain text files for rgb database])
|
[Define to 1 to use plain text files for rgb database])
|
||||||
;;
|
;;
|
||||||
dbm)
|
dbm)
|
||||||
AC_SEARCH_LIBS([dbminit], [db dbm], [],
|
AC_SEARCH_LIBS([dbminit], [db dbm nsl], [],
|
||||||
AC_MSG_ERROR([dbm requested but dbminit() not found in any libraries]))
|
AC_MSG_ERROR([dbm requested but dbminit() not found in any libraries]))
|
||||||
RGB_DB_FILES="$(db_file).dir $(db_file).pag"
|
AC_CHECK_HEADER([dbm.h], [DBM_HEADER='<dbm.h>'],
|
||||||
|
[AC_CHECK_HEADER([rpcsvc/dbm.h], [DBM_HEADER='<rpcsvc/dbm.h>'],
|
||||||
|
[AC_MSG_ERROR([dbm requested but dbm.h not found])])])
|
||||||
|
PKG_CHECK_MODULES(XORG, [xorg-server])
|
||||||
|
RGB_CFLAGS="$RGB_CFLAGS $XORG_CFLAGS"
|
||||||
|
RGB_DB_FILES='$(db_file).dir $(db_file).pag'
|
||||||
;;
|
;;
|
||||||
ndbm)
|
ndbm)
|
||||||
# Find a dbm or ndbm implementation
|
# Find a dbm or ndbm implementation
|
||||||
AC_SEARCH_LIBS([dbm_open], [db ndbm dbm],
|
AC_SEARCH_LIBS([dbm_open], [db ndbm dbm],
|
||||||
AC_DEFINE([NDBM], [1],
|
AC_DEFINE([NDBM], [1],
|
||||||
[Define to 1 if you have ndbm.h interfaces]),
|
[Define to 1 if you have ndbm.h interfaces]),
|
||||||
AC_MSG_ERROR([ndbm requested but dbm_open() not found in any libraries]))
|
AC_MSG_ERROR([ndbm requested but dbm_open() not found in any libraries]))
|
||||||
RGB_DB_FILES="$(db_file).dir $(db_file).pag"
|
DBM_HEADER='<ndbm.h>'
|
||||||
|
PKG_CHECK_MODULES(XORG, [xorg-server])
|
||||||
|
RGB_CFLAGS="$RGB_CFLAGS $XORG_CFLAGS"
|
||||||
|
RGB_DB_FILES='$(db_file).dir $(db_file).pag'
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
if test x$DBM_HEADER != x ; then
|
||||||
|
AC_DEFINE_UNQUOTED([DBM_HEADER], [$DBM_HEADER],
|
||||||
|
[Header file to include for dbm functions])
|
||||||
|
fi
|
||||||
|
AC_SUBST([RGB_DB_TYPE])
|
||||||
AC_SUBST([RGB_DB_FILES])
|
AC_SUBST([RGB_DB_FILES])
|
||||||
AM_CONDITIONAL(RGB_TXT, [test x$db_type = xtext])
|
AM_CONDITIONAL(RGB_DB, [test x$db_type != xtext])
|
||||||
|
|
||||||
PKG_CHECK_MODULES(RGB, xproto)
|
AC_CONFIG_FILES([Makefile
|
||||||
AC_SUBST(RGB_CFLAGS)
|
man/Makefile])
|
||||||
|
|
||||||
XORG_MANPAGE_SECTIONS
|
AC_OUTPUT
|
||||||
XORG_RELEASE_VERSION
|
|
||||||
|
|
||||||
AC_OUTPUT([Makefile])
|
|
||||||
|
|
633
rgb/depcomp
633
rgb/depcomp
|
@ -1,9 +1,9 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# depcomp - compile a program generating dependencies as side-effects
|
# depcomp - compile a program generating dependencies as side-effects
|
||||||
|
|
||||||
scriptversion=2005-07-09.11
|
scriptversion=2013-05-30.07; # UTC
|
||||||
|
|
||||||
# Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
|
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
|
||||||
|
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# 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
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
@ -16,9 +16,7 @@ scriptversion=2005-07-09.11
|
||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
||||||
# 02110-1301, USA.
|
|
||||||
|
|
||||||
# As a special exception to the GNU General Public License, if you
|
# As a special exception to the GNU General Public License, if you
|
||||||
# distribute this file as part of a program that contains a
|
# distribute this file as part of a program that contains a
|
||||||
|
@ -29,9 +27,9 @@ scriptversion=2005-07-09.11
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
'')
|
'')
|
||||||
echo "$0: No command. Try \`$0 --help' for more information." 1>&2
|
echo "$0: No command. Try '$0 --help' for more information." 1>&2
|
||||||
exit 1;
|
exit 1;
|
||||||
;;
|
;;
|
||||||
-h | --h*)
|
-h | --h*)
|
||||||
cat <<\EOF
|
cat <<\EOF
|
||||||
Usage: depcomp [--help] [--version] PROGRAM [ARGS]
|
Usage: depcomp [--help] [--version] PROGRAM [ARGS]
|
||||||
|
@ -41,11 +39,11 @@ as side-effects.
|
||||||
|
|
||||||
Environment variables:
|
Environment variables:
|
||||||
depmode Dependency tracking mode.
|
depmode Dependency tracking mode.
|
||||||
source Source file read by `PROGRAMS ARGS'.
|
source Source file read by 'PROGRAMS ARGS'.
|
||||||
object Object file output by `PROGRAMS ARGS'.
|
object Object file output by 'PROGRAMS ARGS'.
|
||||||
DEPDIR directory where to store dependencies.
|
DEPDIR directory where to store dependencies.
|
||||||
depfile Dependency file to output.
|
depfile Dependency file to output.
|
||||||
tmpdepfile Temporary file to use when outputing dependencies.
|
tmpdepfile Temporary file to use when outputting dependencies.
|
||||||
libtool Whether libtool is used (yes/no).
|
libtool Whether libtool is used (yes/no).
|
||||||
|
|
||||||
Report bugs to <bug-automake@gnu.org>.
|
Report bugs to <bug-automake@gnu.org>.
|
||||||
|
@ -58,6 +56,66 @@ EOF
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# Get the directory component of the given path, and save it in the
|
||||||
|
# global variables '$dir'. Note that this directory component will
|
||||||
|
# be either empty or ending with a '/' character. This is deliberate.
|
||||||
|
set_dir_from ()
|
||||||
|
{
|
||||||
|
case $1 in
|
||||||
|
*/*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;;
|
||||||
|
*) dir=;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
# Get the suffix-stripped basename of the given path, and save it the
|
||||||
|
# global variable '$base'.
|
||||||
|
set_base_from ()
|
||||||
|
{
|
||||||
|
base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'`
|
||||||
|
}
|
||||||
|
|
||||||
|
# If no dependency file was actually created by the compiler invocation,
|
||||||
|
# we still have to create a dummy depfile, to avoid errors with the
|
||||||
|
# Makefile "include basename.Plo" scheme.
|
||||||
|
make_dummy_depfile ()
|
||||||
|
{
|
||||||
|
echo "#dummy" > "$depfile"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Factor out some common post-processing of the generated depfile.
|
||||||
|
# Requires the auxiliary global variable '$tmpdepfile' to be set.
|
||||||
|
aix_post_process_depfile ()
|
||||||
|
{
|
||||||
|
# If the compiler actually managed to produce a dependency file,
|
||||||
|
# post-process it.
|
||||||
|
if test -f "$tmpdepfile"; then
|
||||||
|
# Each line is of the form 'foo.o: dependency.h'.
|
||||||
|
# Do two passes, one to just change these to
|
||||||
|
# $object: dependency.h
|
||||||
|
# and one to simply output
|
||||||
|
# dependency.h:
|
||||||
|
# which is needed to avoid the deleted-header problem.
|
||||||
|
{ sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile"
|
||||||
|
sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile"
|
||||||
|
} > "$depfile"
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
else
|
||||||
|
make_dummy_depfile
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# A tabulation character.
|
||||||
|
tab=' '
|
||||||
|
# A newline character.
|
||||||
|
nl='
|
||||||
|
'
|
||||||
|
# Character ranges might be problematic outside the C locale.
|
||||||
|
# These definitions help.
|
||||||
|
upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ
|
||||||
|
lower=abcdefghijklmnopqrstuvwxyz
|
||||||
|
digits=0123456789
|
||||||
|
alpha=${upper}${lower}
|
||||||
|
|
||||||
if test -z "$depmode" || test -z "$source" || test -z "$object"; then
|
if test -z "$depmode" || test -z "$source" || test -z "$object"; then
|
||||||
echo "depcomp: Variables source, object and depmode must be set" 1>&2
|
echo "depcomp: Variables source, object and depmode must be set" 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -70,6 +128,9 @@ tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
|
||||||
|
|
||||||
rm -f "$tmpdepfile"
|
rm -f "$tmpdepfile"
|
||||||
|
|
||||||
|
# Avoid interferences from the environment.
|
||||||
|
gccflag= dashmflag=
|
||||||
|
|
||||||
# Some modes work just like other modes, but use different flags. We
|
# Some modes work just like other modes, but use different flags. We
|
||||||
# parameterize here, but still list the modes in the big case below,
|
# parameterize here, but still list the modes in the big case below,
|
||||||
# to make depend.m4 easier to write. Note that we *cannot* use a case
|
# to make depend.m4 easier to write. Note that we *cannot* use a case
|
||||||
|
@ -81,9 +142,32 @@ if test "$depmode" = hp; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$depmode" = dashXmstdout; then
|
if test "$depmode" = dashXmstdout; then
|
||||||
# This is just like dashmstdout with a different argument.
|
# This is just like dashmstdout with a different argument.
|
||||||
dashmflag=-xM
|
dashmflag=-xM
|
||||||
depmode=dashmstdout
|
depmode=dashmstdout
|
||||||
|
fi
|
||||||
|
|
||||||
|
cygpath_u="cygpath -u -f -"
|
||||||
|
if test "$depmode" = msvcmsys; then
|
||||||
|
# This is just like msvisualcpp but w/o cygpath translation.
|
||||||
|
# Just convert the backslash-escaped backslashes to single forward
|
||||||
|
# slashes to satisfy depend.m4
|
||||||
|
cygpath_u='sed s,\\\\,/,g'
|
||||||
|
depmode=msvisualcpp
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$depmode" = msvc7msys; then
|
||||||
|
# This is just like msvc7 but w/o cygpath translation.
|
||||||
|
# Just convert the backslash-escaped backslashes to single forward
|
||||||
|
# slashes to satisfy depend.m4
|
||||||
|
cygpath_u='sed s,\\\\,/,g'
|
||||||
|
depmode=msvc7
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$depmode" = xlc; then
|
||||||
|
# IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information.
|
||||||
|
gccflag=-qmakedep=gcc,-MF
|
||||||
|
depmode=gcc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case "$depmode" in
|
case "$depmode" in
|
||||||
|
@ -91,10 +175,22 @@ gcc3)
|
||||||
## gcc 3 implements dependency tracking that does exactly what
|
## gcc 3 implements dependency tracking that does exactly what
|
||||||
## we want. Yay! Note: for some reason libtool 1.4 doesn't like
|
## we want. Yay! Note: for some reason libtool 1.4 doesn't like
|
||||||
## it if -MD -MP comes after the -MF stuff. Hmm.
|
## it if -MD -MP comes after the -MF stuff. Hmm.
|
||||||
"$@" -MT "$object" -MD -MP -MF "$tmpdepfile"
|
## Unfortunately, FreeBSD c89 acceptance of flags depends upon
|
||||||
|
## the command line argument order; so add the flags where they
|
||||||
|
## appear in depend2.am. Note that the slowdown incurred here
|
||||||
|
## affects only configure: in makefiles, %FASTDEP% shortcuts this.
|
||||||
|
for arg
|
||||||
|
do
|
||||||
|
case $arg in
|
||||||
|
-c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
|
||||||
|
*) set fnord "$@" "$arg" ;;
|
||||||
|
esac
|
||||||
|
shift # fnord
|
||||||
|
shift # $arg
|
||||||
|
done
|
||||||
|
"$@"
|
||||||
stat=$?
|
stat=$?
|
||||||
if test $stat -eq 0; then :
|
if test $stat -ne 0; then
|
||||||
else
|
|
||||||
rm -f "$tmpdepfile"
|
rm -f "$tmpdepfile"
|
||||||
exit $stat
|
exit $stat
|
||||||
fi
|
fi
|
||||||
|
@ -102,13 +198,17 @@ gcc3)
|
||||||
;;
|
;;
|
||||||
|
|
||||||
gcc)
|
gcc)
|
||||||
|
## Note that this doesn't just cater to obsosete pre-3.x GCC compilers.
|
||||||
|
## but also to in-use compilers like IMB xlc/xlC and the HP C compiler.
|
||||||
|
## (see the conditional assignment to $gccflag above).
|
||||||
## There are various ways to get dependency output from gcc. Here's
|
## There are various ways to get dependency output from gcc. Here's
|
||||||
## why we pick this rather obscure method:
|
## why we pick this rather obscure method:
|
||||||
## - Don't want to use -MD because we'd like the dependencies to end
|
## - Don't want to use -MD because we'd like the dependencies to end
|
||||||
## up in a subdir. Having to rename by hand is ugly.
|
## up in a subdir. Having to rename by hand is ugly.
|
||||||
## (We might end up doing this anyway to support other compilers.)
|
## (We might end up doing this anyway to support other compilers.)
|
||||||
## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
|
## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
|
||||||
## -MM, not -M (despite what the docs say).
|
## -MM, not -M (despite what the docs say). Also, it might not be
|
||||||
|
## supported by the other compilers which use the 'gcc' depmode.
|
||||||
## - Using -M directly means running the compiler twice (even worse
|
## - Using -M directly means running the compiler twice (even worse
|
||||||
## than renaming).
|
## than renaming).
|
||||||
if test -z "$gccflag"; then
|
if test -z "$gccflag"; then
|
||||||
|
@ -116,31 +216,31 @@ gcc)
|
||||||
fi
|
fi
|
||||||
"$@" -Wp,"$gccflag$tmpdepfile"
|
"$@" -Wp,"$gccflag$tmpdepfile"
|
||||||
stat=$?
|
stat=$?
|
||||||
if test $stat -eq 0; then :
|
if test $stat -ne 0; then
|
||||||
else
|
|
||||||
rm -f "$tmpdepfile"
|
rm -f "$tmpdepfile"
|
||||||
exit $stat
|
exit $stat
|
||||||
fi
|
fi
|
||||||
rm -f "$depfile"
|
rm -f "$depfile"
|
||||||
echo "$object : \\" > "$depfile"
|
echo "$object : \\" > "$depfile"
|
||||||
alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
|
# The second -e expression handles DOS-style file names with drive
|
||||||
## The second -e expression handles DOS-style file names with drive letters.
|
# letters.
|
||||||
sed -e 's/^[^:]*: / /' \
|
sed -e 's/^[^:]*: / /' \
|
||||||
-e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
|
-e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
|
||||||
## This next piece of magic avoids the `deleted header file' problem.
|
## This next piece of magic avoids the "deleted header file" problem.
|
||||||
## The problem is that when a header file which appears in a .P file
|
## The problem is that when a header file which appears in a .P file
|
||||||
## is deleted, the dependency causes make to die (because there is
|
## is deleted, the dependency causes make to die (because there is
|
||||||
## typically no way to rebuild the header). We avoid this by adding
|
## typically no way to rebuild the header). We avoid this by adding
|
||||||
## dummy dependencies for each header file. Too bad gcc doesn't do
|
## dummy dependencies for each header file. Too bad gcc doesn't do
|
||||||
## this for us directly.
|
## this for us directly.
|
||||||
tr ' ' '
|
## Some versions of gcc put a space before the ':'. On the theory
|
||||||
' < "$tmpdepfile" |
|
|
||||||
## Some versions of gcc put a space before the `:'. On the theory
|
|
||||||
## that the space means something, we add a space to the output as
|
## that the space means something, we add a space to the output as
|
||||||
## well.
|
## well. hp depmode also adds that space, but also prefixes the VPATH
|
||||||
|
## to the object. Take care to not repeat it in the output.
|
||||||
## Some versions of the HPUX 10.20 sed can't process this invocation
|
## Some versions of the HPUX 10.20 sed can't process this invocation
|
||||||
## correctly. Breaking it into two sed invocations is a workaround.
|
## correctly. Breaking it into two sed invocations is a workaround.
|
||||||
sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
|
tr ' ' "$nl" < "$tmpdepfile" \
|
||||||
|
| sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \
|
||||||
|
| sed -e 's/$/ :/' >> "$depfile"
|
||||||
rm -f "$tmpdepfile"
|
rm -f "$tmpdepfile"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
@ -158,8 +258,7 @@ sgi)
|
||||||
"$@" -MDupdate "$tmpdepfile"
|
"$@" -MDupdate "$tmpdepfile"
|
||||||
fi
|
fi
|
||||||
stat=$?
|
stat=$?
|
||||||
if test $stat -eq 0; then :
|
if test $stat -ne 0; then
|
||||||
else
|
|
||||||
rm -f "$tmpdepfile"
|
rm -f "$tmpdepfile"
|
||||||
exit $stat
|
exit $stat
|
||||||
fi
|
fi
|
||||||
|
@ -167,99 +266,156 @@ sgi)
|
||||||
|
|
||||||
if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
|
if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
|
||||||
echo "$object : \\" > "$depfile"
|
echo "$object : \\" > "$depfile"
|
||||||
|
|
||||||
# Clip off the initial element (the dependent). Don't try to be
|
# Clip off the initial element (the dependent). Don't try to be
|
||||||
# clever and replace this with sed code, as IRIX sed won't handle
|
# clever and replace this with sed code, as IRIX sed won't handle
|
||||||
# lines with more than a fixed number of characters (4096 in
|
# lines with more than a fixed number of characters (4096 in
|
||||||
# IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
|
# IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
|
||||||
# the IRIX cc adds comments like `#:fec' to the end of the
|
# the IRIX cc adds comments like '#:fec' to the end of the
|
||||||
# dependency line.
|
# dependency line.
|
||||||
tr ' ' '
|
tr ' ' "$nl" < "$tmpdepfile" \
|
||||||
' < "$tmpdepfile" \
|
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \
|
||||||
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
|
| tr "$nl" ' ' >> "$depfile"
|
||||||
tr '
|
echo >> "$depfile"
|
||||||
' ' ' >> $depfile
|
|
||||||
echo >> $depfile
|
|
||||||
|
|
||||||
# The second pass generates a dummy entry for each header file.
|
# The second pass generates a dummy entry for each header file.
|
||||||
tr ' ' '
|
tr ' ' "$nl" < "$tmpdepfile" \
|
||||||
' < "$tmpdepfile" \
|
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
|
||||||
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
|
>> "$depfile"
|
||||||
>> $depfile
|
|
||||||
else
|
else
|
||||||
# The sourcefile does not contain any dependencies, so just
|
make_dummy_depfile
|
||||||
# store a dummy comment line, to avoid errors with the Makefile
|
|
||||||
# "include basename.Plo" scheme.
|
|
||||||
echo "#dummy" > "$depfile"
|
|
||||||
fi
|
fi
|
||||||
rm -f "$tmpdepfile"
|
rm -f "$tmpdepfile"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
xlc)
|
||||||
|
# This case exists only to let depend.m4 do its work. It works by
|
||||||
|
# looking at the text of this script. This case will never be run,
|
||||||
|
# since it is checked for above.
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
|
||||||
aix)
|
aix)
|
||||||
# The C for AIX Compiler uses -M and outputs the dependencies
|
# The C for AIX Compiler uses -M and outputs the dependencies
|
||||||
# in a .u file. In older versions, this file always lives in the
|
# in a .u file. In older versions, this file always lives in the
|
||||||
# current directory. Also, the AIX compiler puts `$object:' at the
|
# current directory. Also, the AIX compiler puts '$object:' at the
|
||||||
# start of each line; $object doesn't have directory information.
|
# start of each line; $object doesn't have directory information.
|
||||||
# Version 6 uses the directory in both cases.
|
# Version 6 uses the directory in both cases.
|
||||||
stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'`
|
set_dir_from "$object"
|
||||||
tmpdepfile="$stripped.u"
|
set_base_from "$object"
|
||||||
if test "$libtool" = yes; then
|
if test "$libtool" = yes; then
|
||||||
|
tmpdepfile1=$dir$base.u
|
||||||
|
tmpdepfile2=$base.u
|
||||||
|
tmpdepfile3=$dir.libs/$base.u
|
||||||
"$@" -Wc,-M
|
"$@" -Wc,-M
|
||||||
else
|
else
|
||||||
|
tmpdepfile1=$dir$base.u
|
||||||
|
tmpdepfile2=$dir$base.u
|
||||||
|
tmpdepfile3=$dir$base.u
|
||||||
"$@" -M
|
"$@" -M
|
||||||
fi
|
fi
|
||||||
stat=$?
|
stat=$?
|
||||||
|
if test $stat -ne 0; then
|
||||||
if test -f "$tmpdepfile"; then :
|
rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
|
||||||
else
|
|
||||||
stripped=`echo "$stripped" | sed 's,^.*/,,'`
|
|
||||||
tmpdepfile="$stripped.u"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test $stat -eq 0; then :
|
|
||||||
else
|
|
||||||
rm -f "$tmpdepfile"
|
|
||||||
exit $stat
|
exit $stat
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test -f "$tmpdepfile"; then
|
for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
|
||||||
outname="$stripped.o"
|
do
|
||||||
# Each line is of the form `foo.o: dependent.h'.
|
test -f "$tmpdepfile" && break
|
||||||
# Do two passes, one to just change these to
|
done
|
||||||
# `$object: dependent.h' and one to simply `dependent.h:'.
|
aix_post_process_depfile
|
||||||
sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
|
;;
|
||||||
sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
|
|
||||||
else
|
tcc)
|
||||||
# The sourcefile does not contain any dependencies, so just
|
# tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26
|
||||||
# store a dummy comment line, to avoid errors with the Makefile
|
# FIXME: That version still under development at the moment of writing.
|
||||||
# "include basename.Plo" scheme.
|
# Make that this statement remains true also for stable, released
|
||||||
echo "#dummy" > "$depfile"
|
# versions.
|
||||||
|
# It will wrap lines (doesn't matter whether long or short) with a
|
||||||
|
# trailing '\', as in:
|
||||||
|
#
|
||||||
|
# foo.o : \
|
||||||
|
# foo.c \
|
||||||
|
# foo.h \
|
||||||
|
#
|
||||||
|
# It will put a trailing '\' even on the last line, and will use leading
|
||||||
|
# spaces rather than leading tabs (at least since its commit 0394caf7
|
||||||
|
# "Emit spaces for -MD").
|
||||||
|
"$@" -MD -MF "$tmpdepfile"
|
||||||
|
stat=$?
|
||||||
|
if test $stat -ne 0; then
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
exit $stat
|
||||||
fi
|
fi
|
||||||
|
rm -f "$depfile"
|
||||||
|
# Each non-empty line is of the form 'foo.o : \' or ' dep.h \'.
|
||||||
|
# We have to change lines of the first kind to '$object: \'.
|
||||||
|
sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile"
|
||||||
|
# And for each line of the second kind, we have to emit a 'dep.h:'
|
||||||
|
# dummy dependency, to avoid the deleted-header problem.
|
||||||
|
sed -n -e 's|^ *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile"
|
||||||
rm -f "$tmpdepfile"
|
rm -f "$tmpdepfile"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
icc)
|
## The order of this option in the case statement is important, since the
|
||||||
# Intel's C compiler understands `-MD -MF file'. However on
|
## shell code in configure will try each of these formats in the order
|
||||||
# icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
|
## listed in this file. A plain '-MD' option would be understood by many
|
||||||
# ICC 7.0 will fill foo.d with something like
|
## compilers, so we must ensure this comes after the gcc and icc options.
|
||||||
# foo.o: sub/foo.c
|
pgcc)
|
||||||
# foo.o: sub/foo.h
|
# Portland's C compiler understands '-MD'.
|
||||||
# which is wrong. We want:
|
# Will always output deps to 'file.d' where file is the root name of the
|
||||||
# sub/foo.o: sub/foo.c
|
# source file under compilation, even if file resides in a subdirectory.
|
||||||
# sub/foo.o: sub/foo.h
|
# The object file name does not affect the name of the '.d' file.
|
||||||
# sub/foo.c:
|
# pgcc 10.2 will output
|
||||||
# sub/foo.h:
|
|
||||||
# ICC 7.1 will output
|
|
||||||
# foo.o: sub/foo.c sub/foo.h
|
# foo.o: sub/foo.c sub/foo.h
|
||||||
# and will wrap long lines using \ :
|
# and will wrap long lines using '\' :
|
||||||
# foo.o: sub/foo.c ... \
|
# foo.o: sub/foo.c ... \
|
||||||
# sub/foo.h ... \
|
# sub/foo.h ... \
|
||||||
# ...
|
# ...
|
||||||
|
set_dir_from "$object"
|
||||||
|
# Use the source, not the object, to determine the base name, since
|
||||||
|
# that's sadly what pgcc will do too.
|
||||||
|
set_base_from "$source"
|
||||||
|
tmpdepfile=$base.d
|
||||||
|
|
||||||
"$@" -MD -MF "$tmpdepfile"
|
# For projects that build the same source file twice into different object
|
||||||
stat=$?
|
# files, the pgcc approach of using the *source* file root name can cause
|
||||||
if test $stat -eq 0; then :
|
# problems in parallel builds. Use a locking strategy to avoid stomping on
|
||||||
else
|
# the same $tmpdepfile.
|
||||||
|
lockdir=$base.d-lock
|
||||||
|
trap "
|
||||||
|
echo '$0: caught signal, cleaning up...' >&2
|
||||||
|
rmdir '$lockdir'
|
||||||
|
exit 1
|
||||||
|
" 1 2 13 15
|
||||||
|
numtries=100
|
||||||
|
i=$numtries
|
||||||
|
while test $i -gt 0; do
|
||||||
|
# mkdir is a portable test-and-set.
|
||||||
|
if mkdir "$lockdir" 2>/dev/null; then
|
||||||
|
# This process acquired the lock.
|
||||||
|
"$@" -MD
|
||||||
|
stat=$?
|
||||||
|
# Release the lock.
|
||||||
|
rmdir "$lockdir"
|
||||||
|
break
|
||||||
|
else
|
||||||
|
# If the lock is being held by a different process, wait
|
||||||
|
# until the winning process is done or we timeout.
|
||||||
|
while test -d "$lockdir" && test $i -gt 0; do
|
||||||
|
sleep 1
|
||||||
|
i=`expr $i - 1`
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
i=`expr $i - 1`
|
||||||
|
done
|
||||||
|
trap - 1 2 13 15
|
||||||
|
if test $i -le 0; then
|
||||||
|
echo "$0: failed to acquire lock after $numtries attempts" >&2
|
||||||
|
echo "$0: check lockdir '$lockdir'" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test $stat -ne 0; then
|
||||||
rm -f "$tmpdepfile"
|
rm -f "$tmpdepfile"
|
||||||
exit $stat
|
exit $stat
|
||||||
fi
|
fi
|
||||||
|
@ -271,68 +427,141 @@ icc)
|
||||||
sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
|
sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
|
||||||
# Some versions of the HPUX 10.20 sed can't process this invocation
|
# Some versions of the HPUX 10.20 sed can't process this invocation
|
||||||
# correctly. Breaking it into two sed invocations is a workaround.
|
# correctly. Breaking it into two sed invocations is a workaround.
|
||||||
sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
|
sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \
|
||||||
sed -e 's/$/ :/' >> "$depfile"
|
| sed -e 's/$/ :/' >> "$depfile"
|
||||||
rm -f "$tmpdepfile"
|
rm -f "$tmpdepfile"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
hp2)
|
||||||
|
# The "hp" stanza above does not work with aCC (C++) and HP's ia64
|
||||||
|
# compilers, which have integrated preprocessors. The correct option
|
||||||
|
# to use with these is +Maked; it writes dependencies to a file named
|
||||||
|
# 'foo.d', which lands next to the object file, wherever that
|
||||||
|
# happens to be.
|
||||||
|
# Much of this is similar to the tru64 case; see comments there.
|
||||||
|
set_dir_from "$object"
|
||||||
|
set_base_from "$object"
|
||||||
|
if test "$libtool" = yes; then
|
||||||
|
tmpdepfile1=$dir$base.d
|
||||||
|
tmpdepfile2=$dir.libs/$base.d
|
||||||
|
"$@" -Wc,+Maked
|
||||||
|
else
|
||||||
|
tmpdepfile1=$dir$base.d
|
||||||
|
tmpdepfile2=$dir$base.d
|
||||||
|
"$@" +Maked
|
||||||
|
fi
|
||||||
|
stat=$?
|
||||||
|
if test $stat -ne 0; then
|
||||||
|
rm -f "$tmpdepfile1" "$tmpdepfile2"
|
||||||
|
exit $stat
|
||||||
|
fi
|
||||||
|
|
||||||
|
for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
|
||||||
|
do
|
||||||
|
test -f "$tmpdepfile" && break
|
||||||
|
done
|
||||||
|
if test -f "$tmpdepfile"; then
|
||||||
|
sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile"
|
||||||
|
# Add 'dependent.h:' lines.
|
||||||
|
sed -ne '2,${
|
||||||
|
s/^ *//
|
||||||
|
s/ \\*$//
|
||||||
|
s/$/:/
|
||||||
|
p
|
||||||
|
}' "$tmpdepfile" >> "$depfile"
|
||||||
|
else
|
||||||
|
make_dummy_depfile
|
||||||
|
fi
|
||||||
|
rm -f "$tmpdepfile" "$tmpdepfile2"
|
||||||
|
;;
|
||||||
|
|
||||||
tru64)
|
tru64)
|
||||||
# The Tru64 compiler uses -MD to generate dependencies as a side
|
# The Tru64 compiler uses -MD to generate dependencies as a side
|
||||||
# effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
|
# effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'.
|
||||||
# At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
|
# At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
|
||||||
# dependencies in `foo.d' instead, so we check for that too.
|
# dependencies in 'foo.d' instead, so we check for that too.
|
||||||
# Subdirectories are respected.
|
# Subdirectories are respected.
|
||||||
dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
|
set_dir_from "$object"
|
||||||
test "x$dir" = "x$object" && dir=
|
set_base_from "$object"
|
||||||
base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
|
|
||||||
|
|
||||||
if test "$libtool" = yes; then
|
if test "$libtool" = yes; then
|
||||||
# With Tru64 cc, shared objects can also be used to make a
|
# Libtool generates 2 separate objects for the 2 libraries. These
|
||||||
# static library. This mecanism is used in libtool 1.4 series to
|
# two compilations output dependencies in $dir.libs/$base.o.d and
|
||||||
# handle both shared and static libraries in a single compilation.
|
# in $dir$base.o.d. We have to check for both files, because
|
||||||
# With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
|
# one of the two compilations can be disabled. We should prefer
|
||||||
#
|
# $dir$base.o.d over $dir.libs/$base.o.d because the latter is
|
||||||
# With libtool 1.5 this exception was removed, and libtool now
|
# automatically cleaned when .libs/ is deleted, while ignoring
|
||||||
# generates 2 separate objects for the 2 libraries. These two
|
# the former would cause a distcleancheck panic.
|
||||||
# compilations output dependencies in in $dir.libs/$base.o.d and
|
tmpdepfile1=$dir$base.o.d # libtool 1.5
|
||||||
# in $dir$base.o.d. We have to check for both files, because
|
tmpdepfile2=$dir.libs/$base.o.d # Likewise.
|
||||||
# one of the two compilations can be disabled. We should prefer
|
tmpdepfile3=$dir.libs/$base.d # Compaq CCC V6.2-504
|
||||||
# $dir$base.o.d over $dir.libs/$base.o.d because the latter is
|
"$@" -Wc,-MD
|
||||||
# automatically cleaned when .libs/ is deleted, while ignoring
|
else
|
||||||
# the former would cause a distcleancheck panic.
|
tmpdepfile1=$dir$base.d
|
||||||
tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
|
tmpdepfile2=$dir$base.d
|
||||||
tmpdepfile2=$dir$base.o.d # libtool 1.5
|
tmpdepfile3=$dir$base.d
|
||||||
tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
|
"$@" -MD
|
||||||
tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
|
fi
|
||||||
"$@" -Wc,-MD
|
|
||||||
else
|
|
||||||
tmpdepfile1=$dir$base.o.d
|
|
||||||
tmpdepfile2=$dir$base.d
|
|
||||||
tmpdepfile3=$dir$base.d
|
|
||||||
tmpdepfile4=$dir$base.d
|
|
||||||
"$@" -MD
|
|
||||||
fi
|
|
||||||
|
|
||||||
stat=$?
|
stat=$?
|
||||||
if test $stat -eq 0; then :
|
if test $stat -ne 0; then
|
||||||
else
|
rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
|
||||||
rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
|
exit $stat
|
||||||
exit $stat
|
fi
|
||||||
fi
|
|
||||||
|
|
||||||
for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
|
for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
|
||||||
do
|
do
|
||||||
test -f "$tmpdepfile" && break
|
test -f "$tmpdepfile" && break
|
||||||
done
|
done
|
||||||
if test -f "$tmpdepfile"; then
|
# Same post-processing that is required for AIX mode.
|
||||||
sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
|
aix_post_process_depfile
|
||||||
# That's a tab and a space in the [].
|
;;
|
||||||
sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
|
|
||||||
else
|
msvc7)
|
||||||
echo "#dummy" > "$depfile"
|
if test "$libtool" = yes; then
|
||||||
fi
|
showIncludes=-Wc,-showIncludes
|
||||||
rm -f "$tmpdepfile"
|
else
|
||||||
;;
|
showIncludes=-showIncludes
|
||||||
|
fi
|
||||||
|
"$@" $showIncludes > "$tmpdepfile"
|
||||||
|
stat=$?
|
||||||
|
grep -v '^Note: including file: ' "$tmpdepfile"
|
||||||
|
if test $stat -ne 0; then
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
exit $stat
|
||||||
|
fi
|
||||||
|
rm -f "$depfile"
|
||||||
|
echo "$object : \\" > "$depfile"
|
||||||
|
# The first sed program below extracts the file names and escapes
|
||||||
|
# backslashes for cygpath. The second sed program outputs the file
|
||||||
|
# name when reading, but also accumulates all include files in the
|
||||||
|
# hold buffer in order to output them again at the end. This only
|
||||||
|
# works with sed implementations that can handle large buffers.
|
||||||
|
sed < "$tmpdepfile" -n '
|
||||||
|
/^Note: including file: *\(.*\)/ {
|
||||||
|
s//\1/
|
||||||
|
s/\\/\\\\/g
|
||||||
|
p
|
||||||
|
}' | $cygpath_u | sort -u | sed -n '
|
||||||
|
s/ /\\ /g
|
||||||
|
s/\(.*\)/'"$tab"'\1 \\/p
|
||||||
|
s/.\(.*\) \\/\1:/
|
||||||
|
H
|
||||||
|
$ {
|
||||||
|
s/.*/'"$tab"'/
|
||||||
|
G
|
||||||
|
p
|
||||||
|
}' >> "$depfile"
|
||||||
|
echo >> "$depfile" # make sure the fragment doesn't end with a backslash
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
;;
|
||||||
|
|
||||||
|
msvc7msys)
|
||||||
|
# This case exists only to let depend.m4 do its work. It works by
|
||||||
|
# looking at the text of this script. This case will never be run,
|
||||||
|
# since it is checked for above.
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
|
||||||
#nosideeffect)
|
#nosideeffect)
|
||||||
# This comment above is used by automake to tell side-effect
|
# This comment above is used by automake to tell side-effect
|
||||||
|
@ -345,13 +574,13 @@ dashmstdout)
|
||||||
|
|
||||||
# Remove the call to Libtool.
|
# Remove the call to Libtool.
|
||||||
if test "$libtool" = yes; then
|
if test "$libtool" = yes; then
|
||||||
while test $1 != '--mode=compile'; do
|
while test "X$1" != 'X--mode=compile'; do
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
shift
|
shift
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Remove `-o $object'.
|
# Remove '-o $object'.
|
||||||
IFS=" "
|
IFS=" "
|
||||||
for arg
|
for arg
|
||||||
do
|
do
|
||||||
|
@ -371,18 +600,18 @@ dashmstdout)
|
||||||
done
|
done
|
||||||
|
|
||||||
test -z "$dashmflag" && dashmflag=-M
|
test -z "$dashmflag" && dashmflag=-M
|
||||||
# Require at least two characters before searching for `:'
|
# Require at least two characters before searching for ':'
|
||||||
# in the target name. This is to cope with DOS-style filenames:
|
# in the target name. This is to cope with DOS-style filenames:
|
||||||
# a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
|
# a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise.
|
||||||
"$@" $dashmflag |
|
"$@" $dashmflag |
|
||||||
sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
|
sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile"
|
||||||
rm -f "$depfile"
|
rm -f "$depfile"
|
||||||
cat < "$tmpdepfile" > "$depfile"
|
cat < "$tmpdepfile" > "$depfile"
|
||||||
tr ' ' '
|
# Some versions of the HPUX 10.20 sed can't process this sed invocation
|
||||||
' < "$tmpdepfile" | \
|
# correctly. Breaking it into two sed invocations is a workaround.
|
||||||
## Some versions of the HPUX 10.20 sed can't process this invocation
|
tr ' ' "$nl" < "$tmpdepfile" \
|
||||||
## correctly. Breaking it into two sed invocations is a workaround.
|
| sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
|
||||||
sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
|
| sed -e 's/$/ :/' >> "$depfile"
|
||||||
rm -f "$tmpdepfile"
|
rm -f "$tmpdepfile"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
@ -396,41 +625,51 @@ makedepend)
|
||||||
"$@" || exit $?
|
"$@" || exit $?
|
||||||
# Remove any Libtool call
|
# Remove any Libtool call
|
||||||
if test "$libtool" = yes; then
|
if test "$libtool" = yes; then
|
||||||
while test $1 != '--mode=compile'; do
|
while test "X$1" != 'X--mode=compile'; do
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
shift
|
shift
|
||||||
fi
|
fi
|
||||||
# X makedepend
|
# X makedepend
|
||||||
shift
|
shift
|
||||||
cleared=no
|
cleared=no eat=no
|
||||||
for arg in "$@"; do
|
for arg
|
||||||
|
do
|
||||||
case $cleared in
|
case $cleared in
|
||||||
no)
|
no)
|
||||||
set ""; shift
|
set ""; shift
|
||||||
cleared=yes ;;
|
cleared=yes ;;
|
||||||
esac
|
esac
|
||||||
|
if test $eat = yes; then
|
||||||
|
eat=no
|
||||||
|
continue
|
||||||
|
fi
|
||||||
case "$arg" in
|
case "$arg" in
|
||||||
-D*|-I*)
|
-D*|-I*)
|
||||||
set fnord "$@" "$arg"; shift ;;
|
set fnord "$@" "$arg"; shift ;;
|
||||||
# Strip any option that makedepend may not understand. Remove
|
# Strip any option that makedepend may not understand. Remove
|
||||||
# the object too, otherwise makedepend will parse it as a source file.
|
# the object too, otherwise makedepend will parse it as a source file.
|
||||||
|
-arch)
|
||||||
|
eat=yes ;;
|
||||||
-*|$object)
|
-*|$object)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
set fnord "$@" "$arg"; shift ;;
|
set fnord "$@" "$arg"; shift ;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
obj_suffix="`echo $object | sed 's/^.*\././'`"
|
obj_suffix=`echo "$object" | sed 's/^.*\././'`
|
||||||
touch "$tmpdepfile"
|
touch "$tmpdepfile"
|
||||||
${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
|
${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
|
||||||
rm -f "$depfile"
|
rm -f "$depfile"
|
||||||
cat < "$tmpdepfile" > "$depfile"
|
# makedepend may prepend the VPATH from the source file name to the object.
|
||||||
sed '1,2d' "$tmpdepfile" | tr ' ' '
|
# No need to regex-escape $object, excess matching of '.' is harmless.
|
||||||
' | \
|
sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile"
|
||||||
## Some versions of the HPUX 10.20 sed can't process this invocation
|
# Some versions of the HPUX 10.20 sed can't process the last invocation
|
||||||
## correctly. Breaking it into two sed invocations is a workaround.
|
# correctly. Breaking it into two sed invocations is a workaround.
|
||||||
sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
|
sed '1,2d' "$tmpdepfile" \
|
||||||
|
| tr ' ' "$nl" \
|
||||||
|
| sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
|
||||||
|
| sed -e 's/$/ :/' >> "$depfile"
|
||||||
rm -f "$tmpdepfile" "$tmpdepfile".bak
|
rm -f "$tmpdepfile" "$tmpdepfile".bak
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
@ -441,13 +680,13 @@ cpp)
|
||||||
|
|
||||||
# Remove the call to Libtool.
|
# Remove the call to Libtool.
|
||||||
if test "$libtool" = yes; then
|
if test "$libtool" = yes; then
|
||||||
while test $1 != '--mode=compile'; do
|
while test "X$1" != 'X--mode=compile'; do
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
shift
|
shift
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Remove `-o $object'.
|
# Remove '-o $object'.
|
||||||
IFS=" "
|
IFS=" "
|
||||||
for arg
|
for arg
|
||||||
do
|
do
|
||||||
|
@ -466,10 +705,10 @@ cpp)
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
"$@" -E |
|
"$@" -E \
|
||||||
sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
|
| sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
|
||||||
-e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
|
-e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
|
||||||
sed '$ s: \\$::' > "$tmpdepfile"
|
| sed '$ s: \\$::' > "$tmpdepfile"
|
||||||
rm -f "$depfile"
|
rm -f "$depfile"
|
||||||
echo "$object : \\" > "$depfile"
|
echo "$object : \\" > "$depfile"
|
||||||
cat < "$tmpdepfile" >> "$depfile"
|
cat < "$tmpdepfile" >> "$depfile"
|
||||||
|
@ -479,35 +718,56 @@ cpp)
|
||||||
|
|
||||||
msvisualcpp)
|
msvisualcpp)
|
||||||
# Important note: in order to support this mode, a compiler *must*
|
# Important note: in order to support this mode, a compiler *must*
|
||||||
# always write the preprocessed file to stdout, regardless of -o,
|
# always write the preprocessed file to stdout.
|
||||||
# because we must use -o when running libtool.
|
|
||||||
"$@" || exit $?
|
"$@" || exit $?
|
||||||
|
|
||||||
|
# Remove the call to Libtool.
|
||||||
|
if test "$libtool" = yes; then
|
||||||
|
while test "X$1" != 'X--mode=compile'; do
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
shift
|
||||||
|
fi
|
||||||
|
|
||||||
IFS=" "
|
IFS=" "
|
||||||
for arg
|
for arg
|
||||||
do
|
do
|
||||||
case "$arg" in
|
case "$arg" in
|
||||||
|
-o)
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
$object)
|
||||||
|
shift
|
||||||
|
;;
|
||||||
"-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
|
"-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
|
||||||
set fnord "$@"
|
set fnord "$@"
|
||||||
shift
|
shift
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
set fnord "$@" "$arg"
|
set fnord "$@" "$arg"
|
||||||
shift
|
shift
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
"$@" -E |
|
"$@" -E 2>/dev/null |
|
||||||
sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
|
sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
|
||||||
rm -f "$depfile"
|
rm -f "$depfile"
|
||||||
echo "$object : \\" > "$depfile"
|
echo "$object : \\" > "$depfile"
|
||||||
. "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
|
sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile"
|
||||||
echo " " >> "$depfile"
|
echo "$tab" >> "$depfile"
|
||||||
. "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
|
sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
|
||||||
rm -f "$tmpdepfile"
|
rm -f "$tmpdepfile"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
msvcmsys)
|
||||||
|
# This case exists only to let depend.m4 do its work. It works by
|
||||||
|
# looking at the text of this script. This case will never be run,
|
||||||
|
# since it is checked for above.
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
|
||||||
none)
|
none)
|
||||||
exec "$@"
|
exec "$@"
|
||||||
;;
|
;;
|
||||||
|
@ -526,5 +786,6 @@ exit 0
|
||||||
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||||
# time-stamp-start: "scriptversion="
|
# time-stamp-start: "scriptversion="
|
||||||
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||||
# time-stamp-end: "$"
|
# time-stamp-time-zone: "UTC"
|
||||||
|
# time-stamp-end: "; # UTC"
|
||||||
# End:
|
# End:
|
||||||
|
|
532
rgb/install-sh
532
rgb/install-sh
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# install - install a program, script, or datafile
|
# install - install a program, script, or datafile
|
||||||
|
|
||||||
scriptversion=2005-05-14.22
|
scriptversion=2011-11-20.07; # UTC
|
||||||
|
|
||||||
# This originates from X11R5 (mit/util/scripts/install.sh), which was
|
# This originates from X11R5 (mit/util/scripts/install.sh), which was
|
||||||
# later released in X11R6 (xc/config/util/install.sh) with the
|
# later released in X11R6 (xc/config/util/install.sh) with the
|
||||||
|
@ -35,42 +35,72 @@ scriptversion=2005-05-14.22
|
||||||
# FSF changes to this file are in the public domain.
|
# FSF changes to this file are in the public domain.
|
||||||
#
|
#
|
||||||
# Calling this script install-sh is preferred over install.sh, to prevent
|
# Calling this script install-sh is preferred over install.sh, to prevent
|
||||||
# `make' implicit rules from creating a file called install from it
|
# 'make' implicit rules from creating a file called install from it
|
||||||
# when there is no Makefile.
|
# when there is no Makefile.
|
||||||
#
|
#
|
||||||
# This script is compatible with the BSD install script, but was written
|
# 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
|
# from scratch.
|
||||||
# shared with many OS's install programs.
|
|
||||||
|
nl='
|
||||||
|
'
|
||||||
|
IFS=" "" $nl"
|
||||||
|
|
||||||
# set DOITPROG to echo to test this script
|
# set DOITPROG to echo to test this script
|
||||||
|
|
||||||
# Don't use :- since 4.3BSD and earlier shells don't like it.
|
# Don't use :- since 4.3BSD and earlier shells don't like it.
|
||||||
doit="${DOITPROG-}"
|
doit=${DOITPROG-}
|
||||||
|
if test -z "$doit"; then
|
||||||
|
doit_exec=exec
|
||||||
|
else
|
||||||
|
doit_exec=$doit
|
||||||
|
fi
|
||||||
|
|
||||||
# put in absolute paths if you don't have them in your path; or use env. vars.
|
# Put in absolute file names if you don't have them in your path;
|
||||||
|
# or use environment vars.
|
||||||
|
|
||||||
mvprog="${MVPROG-mv}"
|
chgrpprog=${CHGRPPROG-chgrp}
|
||||||
cpprog="${CPPROG-cp}"
|
chmodprog=${CHMODPROG-chmod}
|
||||||
chmodprog="${CHMODPROG-chmod}"
|
chownprog=${CHOWNPROG-chown}
|
||||||
chownprog="${CHOWNPROG-chown}"
|
cmpprog=${CMPPROG-cmp}
|
||||||
chgrpprog="${CHGRPPROG-chgrp}"
|
cpprog=${CPPROG-cp}
|
||||||
stripprog="${STRIPPROG-strip}"
|
mkdirprog=${MKDIRPROG-mkdir}
|
||||||
rmprog="${RMPROG-rm}"
|
mvprog=${MVPROG-mv}
|
||||||
mkdirprog="${MKDIRPROG-mkdir}"
|
rmprog=${RMPROG-rm}
|
||||||
|
stripprog=${STRIPPROG-strip}
|
||||||
|
|
||||||
|
posix_glob='?'
|
||||||
|
initialize_posix_glob='
|
||||||
|
test "$posix_glob" != "?" || {
|
||||||
|
if (set -f) 2>/dev/null; then
|
||||||
|
posix_glob=
|
||||||
|
else
|
||||||
|
posix_glob=:
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
'
|
||||||
|
|
||||||
|
posix_mkdir=
|
||||||
|
|
||||||
|
# Desired mode of installed file.
|
||||||
|
mode=0755
|
||||||
|
|
||||||
chmodcmd="$chmodprog 0755"
|
|
||||||
chowncmd=
|
|
||||||
chgrpcmd=
|
chgrpcmd=
|
||||||
stripcmd=
|
chmodcmd=$chmodprog
|
||||||
|
chowncmd=
|
||||||
|
mvcmd=$mvprog
|
||||||
rmcmd="$rmprog -f"
|
rmcmd="$rmprog -f"
|
||||||
mvcmd="$mvprog"
|
stripcmd=
|
||||||
|
|
||||||
src=
|
src=
|
||||||
dst=
|
dst=
|
||||||
dir_arg=
|
dir_arg=
|
||||||
dstarg=
|
dst_arg=
|
||||||
|
|
||||||
|
copy_on_change=false
|
||||||
no_target_directory=
|
no_target_directory=
|
||||||
|
|
||||||
usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
|
usage="\
|
||||||
|
Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
|
||||||
or: $0 [OPTION]... SRCFILES... DIRECTORY
|
or: $0 [OPTION]... SRCFILES... DIRECTORY
|
||||||
or: $0 [OPTION]... -t DIRECTORY SRCFILES...
|
or: $0 [OPTION]... -t DIRECTORY SRCFILES...
|
||||||
or: $0 [OPTION]... -d DIRECTORIES...
|
or: $0 [OPTION]... -d DIRECTORIES...
|
||||||
|
@ -80,108 +110,148 @@ In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
|
||||||
In the 4th, create DIRECTORIES.
|
In the 4th, create DIRECTORIES.
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
-c (ignored)
|
--help display this help and exit.
|
||||||
-d create directories instead of installing files.
|
--version display version info and exit.
|
||||||
-g GROUP $chgrpprog installed files to GROUP.
|
|
||||||
-m MODE $chmodprog installed files to MODE.
|
-c (ignored)
|
||||||
-o USER $chownprog installed files to USER.
|
-C install only if different (preserve the last data modification time)
|
||||||
-s $stripprog installed files.
|
-d create directories instead of installing files.
|
||||||
-t DIRECTORY install into DIRECTORY.
|
-g GROUP $chgrpprog installed files to GROUP.
|
||||||
-T report an error if DSTFILE is a directory.
|
-m MODE $chmodprog installed files to MODE.
|
||||||
--help display this help and exit.
|
-o USER $chownprog installed files to USER.
|
||||||
--version display version info and exit.
|
-s $stripprog installed files.
|
||||||
|
-t DIRECTORY install into DIRECTORY.
|
||||||
|
-T report an error if DSTFILE is a directory.
|
||||||
|
|
||||||
Environment variables override the default commands:
|
Environment variables override the default commands:
|
||||||
CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG
|
CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
|
||||||
|
RMPROG STRIPPROG
|
||||||
"
|
"
|
||||||
|
|
||||||
while test -n "$1"; do
|
while test $# -ne 0; do
|
||||||
case $1 in
|
case $1 in
|
||||||
-c) shift
|
-c) ;;
|
||||||
continue;;
|
|
||||||
|
|
||||||
-d) dir_arg=true
|
-C) copy_on_change=true;;
|
||||||
shift
|
|
||||||
continue;;
|
-d) dir_arg=true;;
|
||||||
|
|
||||||
-g) chgrpcmd="$chgrpprog $2"
|
-g) chgrpcmd="$chgrpprog $2"
|
||||||
shift
|
shift;;
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
|
|
||||||
--help) echo "$usage"; exit $?;;
|
--help) echo "$usage"; exit $?;;
|
||||||
|
|
||||||
-m) chmodcmd="$chmodprog $2"
|
-m) mode=$2
|
||||||
shift
|
case $mode in
|
||||||
shift
|
*' '* | *' '* | *'
|
||||||
continue;;
|
'* | *'*'* | *'?'* | *'['*)
|
||||||
|
echo "$0: invalid mode: $mode" >&2
|
||||||
|
exit 1;;
|
||||||
|
esac
|
||||||
|
shift;;
|
||||||
|
|
||||||
-o) chowncmd="$chownprog $2"
|
-o) chowncmd="$chownprog $2"
|
||||||
shift
|
shift;;
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
|
|
||||||
-s) stripcmd=$stripprog
|
-s) stripcmd=$stripprog;;
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
|
|
||||||
-t) dstarg=$2
|
-t) dst_arg=$2
|
||||||
shift
|
# Protect names problematic for 'test' and other utilities.
|
||||||
shift
|
case $dst_arg in
|
||||||
continue;;
|
-* | [=\(\)!]) dst_arg=./$dst_arg;;
|
||||||
|
esac
|
||||||
|
shift;;
|
||||||
|
|
||||||
-T) no_target_directory=true
|
-T) no_target_directory=true;;
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
|
|
||||||
--version) echo "$0 $scriptversion"; exit $?;;
|
--version) echo "$0 $scriptversion"; exit $?;;
|
||||||
|
|
||||||
*) # When -d is used, all remaining arguments are directories to create.
|
--) shift
|
||||||
# When -t is used, the destination is already specified.
|
|
||||||
test -n "$dir_arg$dstarg" && break
|
|
||||||
# Otherwise, the last argument is the destination. Remove it from $@.
|
|
||||||
for arg
|
|
||||||
do
|
|
||||||
if test -n "$dstarg"; then
|
|
||||||
# $@ is not empty: it contains at least $arg.
|
|
||||||
set fnord "$@" "$dstarg"
|
|
||||||
shift # fnord
|
|
||||||
fi
|
|
||||||
shift # arg
|
|
||||||
dstarg=$arg
|
|
||||||
done
|
|
||||||
break;;
|
break;;
|
||||||
|
|
||||||
|
-*) echo "$0: invalid option: $1" >&2
|
||||||
|
exit 1;;
|
||||||
|
|
||||||
|
*) break;;
|
||||||
esac
|
esac
|
||||||
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
if test -z "$1"; then
|
if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
|
||||||
|
# When -d is used, all remaining arguments are directories to create.
|
||||||
|
# When -t is used, the destination is already specified.
|
||||||
|
# Otherwise, the last argument is the destination. Remove it from $@.
|
||||||
|
for arg
|
||||||
|
do
|
||||||
|
if test -n "$dst_arg"; then
|
||||||
|
# $@ is not empty: it contains at least $arg.
|
||||||
|
set fnord "$@" "$dst_arg"
|
||||||
|
shift # fnord
|
||||||
|
fi
|
||||||
|
shift # arg
|
||||||
|
dst_arg=$arg
|
||||||
|
# Protect names problematic for 'test' and other utilities.
|
||||||
|
case $dst_arg in
|
||||||
|
-* | [=\(\)!]) dst_arg=./$dst_arg;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test $# -eq 0; then
|
||||||
if test -z "$dir_arg"; then
|
if test -z "$dir_arg"; then
|
||||||
echo "$0: no input file specified." >&2
|
echo "$0: no input file specified." >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
# It's OK to call `install-sh -d' without argument.
|
# It's OK to call 'install-sh -d' without argument.
|
||||||
# This can happen when creating conditional directories.
|
# This can happen when creating conditional directories.
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test -z "$dir_arg"; then
|
||||||
|
do_exit='(exit $ret); exit $ret'
|
||||||
|
trap "ret=129; $do_exit" 1
|
||||||
|
trap "ret=130; $do_exit" 2
|
||||||
|
trap "ret=141; $do_exit" 13
|
||||||
|
trap "ret=143; $do_exit" 15
|
||||||
|
|
||||||
|
# Set umask so as not to create temps with too-generous modes.
|
||||||
|
# However, 'strip' requires both read and write access to temps.
|
||||||
|
case $mode in
|
||||||
|
# Optimize common cases.
|
||||||
|
*644) cp_umask=133;;
|
||||||
|
*755) cp_umask=22;;
|
||||||
|
|
||||||
|
*[0-7])
|
||||||
|
if test -z "$stripcmd"; then
|
||||||
|
u_plus_rw=
|
||||||
|
else
|
||||||
|
u_plus_rw='% 200'
|
||||||
|
fi
|
||||||
|
cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
|
||||||
|
*)
|
||||||
|
if test -z "$stripcmd"; then
|
||||||
|
u_plus_rw=
|
||||||
|
else
|
||||||
|
u_plus_rw=,u+rw
|
||||||
|
fi
|
||||||
|
cp_umask=$mode$u_plus_rw;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
for src
|
for src
|
||||||
do
|
do
|
||||||
# Protect names starting with `-'.
|
# Protect names problematic for 'test' and other utilities.
|
||||||
case $src in
|
case $src in
|
||||||
-*) src=./$src ;;
|
-* | [=\(\)!]) src=./$src;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if test -n "$dir_arg"; then
|
if test -n "$dir_arg"; then
|
||||||
dst=$src
|
dst=$src
|
||||||
src=
|
dstdir=$dst
|
||||||
|
test -d "$dstdir"
|
||||||
if test -d "$dst"; then
|
dstdir_status=$?
|
||||||
mkdircmd=:
|
|
||||||
chmodcmd=
|
|
||||||
else
|
|
||||||
mkdircmd=$mkdirprog
|
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
|
|
||||||
# Waiting for this to be detected by the "$cpprog $src $dsttmp" command
|
# Waiting for this to be detected by the "$cpprog $src $dsttmp" command
|
||||||
# might cause directories to be created, which would be especially bad
|
# might cause directories to be created, which would be especially bad
|
||||||
# if $src (and thus $dsttmp) contains '*'.
|
# if $src (and thus $dsttmp) contains '*'.
|
||||||
|
@ -190,71 +260,194 @@ do
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test -z "$dstarg"; then
|
if test -z "$dst_arg"; then
|
||||||
echo "$0: no destination specified." >&2
|
echo "$0: no destination specified." >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
dst=$dst_arg
|
||||||
dst=$dstarg
|
|
||||||
# Protect names starting with `-'.
|
|
||||||
case $dst in
|
|
||||||
-*) dst=./$dst ;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# If destination is a directory, append the input filename; won't work
|
# If destination is a directory, append the input filename; won't work
|
||||||
# if double slashes aren't ignored.
|
# if double slashes aren't ignored.
|
||||||
if test -d "$dst"; then
|
if test -d "$dst"; then
|
||||||
if test -n "$no_target_directory"; then
|
if test -n "$no_target_directory"; then
|
||||||
echo "$0: $dstarg: Is a directory" >&2
|
echo "$0: $dst_arg: Is a directory" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
dst=$dst/`basename "$src"`
|
dstdir=$dst
|
||||||
|
dst=$dstdir/`basename "$src"`
|
||||||
|
dstdir_status=0
|
||||||
|
else
|
||||||
|
# Prefer dirname, but fall back on a substitute if dirname fails.
|
||||||
|
dstdir=`
|
||||||
|
(dirname "$dst") 2>/dev/null ||
|
||||||
|
expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
||||||
|
X"$dst" : 'X\(//\)[^/]' \| \
|
||||||
|
X"$dst" : 'X\(//\)$' \| \
|
||||||
|
X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
|
||||||
|
echo X"$dst" |
|
||||||
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
||||||
|
s//\1/
|
||||||
|
q
|
||||||
|
}
|
||||||
|
/^X\(\/\/\)[^/].*/{
|
||||||
|
s//\1/
|
||||||
|
q
|
||||||
|
}
|
||||||
|
/^X\(\/\/\)$/{
|
||||||
|
s//\1/
|
||||||
|
q
|
||||||
|
}
|
||||||
|
/^X\(\/\).*/{
|
||||||
|
s//\1/
|
||||||
|
q
|
||||||
|
}
|
||||||
|
s/.*/./; q'
|
||||||
|
`
|
||||||
|
|
||||||
|
test -d "$dstdir"
|
||||||
|
dstdir_status=$?
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# This sed command emulates the dirname command.
|
obsolete_mkdir_used=false
|
||||||
dstdir=`echo "$dst" | sed -e 's,/*$,,;s,[^/]*$,,;s,/*$,,;s,^$,.,'`
|
|
||||||
|
|
||||||
# Make sure that the destination directory exists.
|
if test $dstdir_status != 0; then
|
||||||
|
case $posix_mkdir in
|
||||||
|
'')
|
||||||
|
# Create intermediate dirs using mode 755 as modified by the umask.
|
||||||
|
# This is like FreeBSD 'install' as of 1997-10-28.
|
||||||
|
umask=`umask`
|
||||||
|
case $stripcmd.$umask in
|
||||||
|
# Optimize common cases.
|
||||||
|
*[2367][2367]) mkdir_umask=$umask;;
|
||||||
|
.*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
|
||||||
|
|
||||||
# Skip lots of stat calls in the usual case.
|
*[0-7])
|
||||||
if test ! -d "$dstdir"; then
|
mkdir_umask=`expr $umask + 22 \
|
||||||
defaultIFS='
|
- $umask % 100 % 40 + $umask % 20 \
|
||||||
'
|
- $umask % 10 % 4 + $umask % 2
|
||||||
IFS="${IFS-$defaultIFS}"
|
`;;
|
||||||
|
*) mkdir_umask=$umask,go-w;;
|
||||||
|
esac
|
||||||
|
|
||||||
oIFS=$IFS
|
# With -d, create the new directory with the user-specified mode.
|
||||||
# Some sh's can't handle IFS=/ for some reason.
|
# Otherwise, rely on $mkdir_umask.
|
||||||
IFS='%'
|
if test -n "$dir_arg"; then
|
||||||
set x `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'`
|
mkdir_mode=-m$mode
|
||||||
shift
|
else
|
||||||
IFS=$oIFS
|
mkdir_mode=
|
||||||
|
fi
|
||||||
|
|
||||||
pathcomp=
|
posix_mkdir=false
|
||||||
|
case $umask in
|
||||||
|
*[123567][0-7][0-7])
|
||||||
|
# POSIX mkdir -p sets u+wx bits regardless of umask, which
|
||||||
|
# is incompatible with FreeBSD 'install' when (umask & 300) != 0.
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
|
||||||
|
trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
|
||||||
|
|
||||||
while test $# -ne 0 ; do
|
if (umask $mkdir_umask &&
|
||||||
pathcomp=$pathcomp$1
|
exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
|
||||||
|
then
|
||||||
|
if test -z "$dir_arg" || {
|
||||||
|
# Check for POSIX incompatibilities with -m.
|
||||||
|
# HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
|
||||||
|
# other-writable bit of parent directory when it shouldn't.
|
||||||
|
# FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
|
||||||
|
ls_ld_tmpdir=`ls -ld "$tmpdir"`
|
||||||
|
case $ls_ld_tmpdir in
|
||||||
|
d????-?r-*) different_mode=700;;
|
||||||
|
d????-?--*) different_mode=755;;
|
||||||
|
*) false;;
|
||||||
|
esac &&
|
||||||
|
$mkdirprog -m$different_mode -p -- "$tmpdir" && {
|
||||||
|
ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
|
||||||
|
test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
then posix_mkdir=:
|
||||||
|
fi
|
||||||
|
rmdir "$tmpdir/d" "$tmpdir"
|
||||||
|
else
|
||||||
|
# Remove any dirs left behind by ancient mkdir implementations.
|
||||||
|
rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
|
||||||
|
fi
|
||||||
|
trap '' 0;;
|
||||||
|
esac;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if
|
||||||
|
$posix_mkdir && (
|
||||||
|
umask $mkdir_umask &&
|
||||||
|
$doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
|
||||||
|
)
|
||||||
|
then :
|
||||||
|
else
|
||||||
|
|
||||||
|
# The umask is ridiculous, or mkdir does not conform to POSIX,
|
||||||
|
# or it failed possibly due to a race condition. Create the
|
||||||
|
# directory the slow way, step by step, checking for races as we go.
|
||||||
|
|
||||||
|
case $dstdir in
|
||||||
|
/*) prefix='/';;
|
||||||
|
[-=\(\)!]*) prefix='./';;
|
||||||
|
*) prefix='';;
|
||||||
|
esac
|
||||||
|
|
||||||
|
eval "$initialize_posix_glob"
|
||||||
|
|
||||||
|
oIFS=$IFS
|
||||||
|
IFS=/
|
||||||
|
$posix_glob set -f
|
||||||
|
set fnord $dstdir
|
||||||
shift
|
shift
|
||||||
if test ! -d "$pathcomp"; then
|
$posix_glob set +f
|
||||||
$mkdirprog "$pathcomp"
|
IFS=$oIFS
|
||||||
# mkdir can fail with a `File exist' error in case several
|
|
||||||
# install-sh are creating the directory concurrently. This
|
prefixes=
|
||||||
# is OK.
|
|
||||||
test -d "$pathcomp" || exit
|
for d
|
||||||
|
do
|
||||||
|
test X"$d" = X && continue
|
||||||
|
|
||||||
|
prefix=$prefix$d
|
||||||
|
if test -d "$prefix"; then
|
||||||
|
prefixes=
|
||||||
|
else
|
||||||
|
if $posix_mkdir; then
|
||||||
|
(umask=$mkdir_umask &&
|
||||||
|
$doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
|
||||||
|
# Don't fail if two instances are running concurrently.
|
||||||
|
test -d "$prefix" || exit 1
|
||||||
|
else
|
||||||
|
case $prefix in
|
||||||
|
*\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
|
||||||
|
*) qprefix=$prefix;;
|
||||||
|
esac
|
||||||
|
prefixes="$prefixes '$qprefix'"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
prefix=$prefix/
|
||||||
|
done
|
||||||
|
|
||||||
|
if test -n "$prefixes"; then
|
||||||
|
# Don't fail if two instances are running concurrently.
|
||||||
|
(umask $mkdir_umask &&
|
||||||
|
eval "\$doit_exec \$mkdirprog $prefixes") ||
|
||||||
|
test -d "$dstdir" || exit 1
|
||||||
|
obsolete_mkdir_used=true
|
||||||
fi
|
fi
|
||||||
pathcomp=$pathcomp/
|
fi
|
||||||
done
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test -n "$dir_arg"; then
|
if test -n "$dir_arg"; then
|
||||||
$doit $mkdircmd "$dst" \
|
{ test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
|
||||||
&& { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \
|
{ test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
|
||||||
&& { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \
|
{ test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
|
||||||
&& { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \
|
test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
|
||||||
&& { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; }
|
|
||||||
|
|
||||||
else
|
else
|
||||||
dstfile=`basename "$dst"`
|
|
||||||
|
|
||||||
# Make a couple of temp file names in the proper directory.
|
# Make a couple of temp file names in the proper directory.
|
||||||
dsttmp=$dstdir/_inst.$$_
|
dsttmp=$dstdir/_inst.$$_
|
||||||
|
@ -262,10 +455,9 @@ do
|
||||||
|
|
||||||
# Trap to clean up those temp files at exit.
|
# Trap to clean up those temp files at exit.
|
||||||
trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
|
trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
|
||||||
trap '(exit $?); exit' 1 2 13 15
|
|
||||||
|
|
||||||
# Copy the file name to the temp name.
|
# Copy the file name to the temp name.
|
||||||
$doit $cpprog "$src" "$dsttmp" &&
|
(umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
|
||||||
|
|
||||||
# and set any options; do chmod last to preserve setuid bits.
|
# and set any options; do chmod last to preserve setuid bits.
|
||||||
#
|
#
|
||||||
|
@ -273,51 +465,63 @@ do
|
||||||
# ignore errors from any of these, just make sure not to ignore
|
# ignore errors from any of these, just make sure not to ignore
|
||||||
# errors from the above "$doit $cpprog $src $dsttmp" command.
|
# errors from the above "$doit $cpprog $src $dsttmp" command.
|
||||||
#
|
#
|
||||||
{ test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \
|
{ test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
|
||||||
&& { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \
|
{ test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
|
||||||
&& { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \
|
{ test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
|
||||||
&& { test -z "$chmodcmd" || $doit $chmodcmd "$dsttmp"; } &&
|
{ test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
|
||||||
|
|
||||||
# Now rename the file to the real destination.
|
# If -C, don't bother to copy if it wouldn't change the file.
|
||||||
{ $doit $mvcmd -f "$dsttmp" "$dstdir/$dstfile" 2>/dev/null \
|
if $copy_on_change &&
|
||||||
|| {
|
old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
|
||||||
# The rename failed, perhaps because mv can't rename something else
|
new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
|
||||||
# to itself, or perhaps because mv is so ancient that it does not
|
|
||||||
# support -f.
|
|
||||||
|
|
||||||
# Now remove or move aside any old file at destination location.
|
eval "$initialize_posix_glob" &&
|
||||||
# We try this two ways since rm can't unlink itself on some
|
$posix_glob set -f &&
|
||||||
# systems and the destination file might be busy for other
|
set X $old && old=:$2:$4:$5:$6 &&
|
||||||
# reasons. In this case, the final cleanup might fail but the new
|
set X $new && new=:$2:$4:$5:$6 &&
|
||||||
# file should still install successfully.
|
$posix_glob set +f &&
|
||||||
{
|
|
||||||
if test -f "$dstdir/$dstfile"; then
|
|
||||||
$doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \
|
|
||||||
|| $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \
|
|
||||||
|| {
|
|
||||||
echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2
|
|
||||||
(exit 1); exit 1
|
|
||||||
}
|
|
||||||
else
|
|
||||||
:
|
|
||||||
fi
|
|
||||||
} &&
|
|
||||||
|
|
||||||
# Now rename the file to the real destination.
|
test "$old" = "$new" &&
|
||||||
$doit $mvcmd "$dsttmp" "$dstdir/$dstfile"
|
$cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
|
||||||
}
|
then
|
||||||
}
|
rm -f "$dsttmp"
|
||||||
fi || { (exit 1); exit 1; }
|
else
|
||||||
|
# Rename the file to the real destination.
|
||||||
|
$doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
|
||||||
|
|
||||||
|
# The rename failed, perhaps because mv can't rename something else
|
||||||
|
# to itself, or perhaps because mv is so ancient that it does not
|
||||||
|
# support -f.
|
||||||
|
{
|
||||||
|
# Now remove or move aside any old file at destination location.
|
||||||
|
# We try this two ways since rm can't unlink itself on some
|
||||||
|
# systems and the destination file might be busy for other
|
||||||
|
# reasons. In this case, the final cleanup might fail but the new
|
||||||
|
# file should still install successfully.
|
||||||
|
{
|
||||||
|
test ! -f "$dst" ||
|
||||||
|
$doit $rmcmd -f "$dst" 2>/dev/null ||
|
||||||
|
{ $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
|
||||||
|
{ $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
|
||||||
|
} ||
|
||||||
|
{ echo "$0: cannot unlink or rename $dst" >&2
|
||||||
|
(exit 1); exit 1
|
||||||
|
}
|
||||||
|
} &&
|
||||||
|
|
||||||
|
# Now rename the file to the real destination.
|
||||||
|
$doit $mvcmd "$dsttmp" "$dst"
|
||||||
|
}
|
||||||
|
fi || exit 1
|
||||||
|
|
||||||
|
trap '' 0
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# The final little trick to "correctly" pass the exit status to the exit trap.
|
|
||||||
{
|
|
||||||
(exit 0); exit 0
|
|
||||||
}
|
|
||||||
|
|
||||||
# Local variables:
|
# Local variables:
|
||||||
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||||
# time-stamp-start: "scriptversion="
|
# time-stamp-start: "scriptversion="
|
||||||
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||||
# time-stamp-end: "$"
|
# time-stamp-time-zone: "UTC"
|
||||||
|
# time-stamp-end: "; # UTC"
|
||||||
# End:
|
# End:
|
||||||
|
|
|
@ -0,0 +1,41 @@
|
||||||
|
#
|
||||||
|
# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
#
|
||||||
|
# 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 (including the next
|
||||||
|
# paragraph) 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 AUTHORS OR COPYRIGHT HOLDERS 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.
|
||||||
|
#
|
||||||
|
|
||||||
|
appmandir = $(APP_MAN_DIR)
|
||||||
|
appman_PRE = rgb.man showrgb.man
|
||||||
|
appman_DATA = showrgb.$(APP_MAN_SUFFIX)
|
||||||
|
if RGB_DB
|
||||||
|
appman_DATA += rgb.$(APP_MAN_SUFFIX)
|
||||||
|
endif
|
||||||
|
|
||||||
|
EXTRA_DIST = $(appman_PRE)
|
||||||
|
CLEANFILES = $(appman_DATA)
|
||||||
|
SUFFIXES = .$(APP_MAN_SUFFIX) .man
|
||||||
|
MAN_SUBSTS += -e 's|__RGB_DB__|$(db_dir)/$(db_file)|g' \
|
||||||
|
-e 's|__RGB_DB_DIR__|$(db_dir)|g' \
|
||||||
|
-e 's|__RGB_DB_TYPE__|$(RGB_DB_TYPE)|g' \
|
||||||
|
-e 's|__RGB_DB_FILES__|$(RGB_DB_FILES)|g'
|
||||||
|
|
||||||
|
# String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure
|
||||||
|
.man.$(APP_MAN_SUFFIX):
|
||||||
|
$(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
|
|
@ -0,0 +1,515 @@
|
||||||
|
# Makefile.in generated by automake 1.14.1 from Makefile.am.
|
||||||
|
# @configure_input@
|
||||||
|
|
||||||
|
# Copyright (C) 1994-2013 Free Software Foundation, Inc.
|
||||||
|
|
||||||
|
# This Makefile.in is free software; the Free Software Foundation
|
||||||
|
# gives unlimited permission to copy and/or distribute it,
|
||||||
|
# with or without modifications, as long as this notice is preserved.
|
||||||
|
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||||
|
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||||
|
# PARTICULAR PURPOSE.
|
||||||
|
|
||||||
|
@SET_MAKE@
|
||||||
|
|
||||||
|
#
|
||||||
|
# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
#
|
||||||
|
# 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 (including the next
|
||||||
|
# paragraph) 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 AUTHORS OR COPYRIGHT HOLDERS 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.
|
||||||
|
#
|
||||||
|
|
||||||
|
VPATH = @srcdir@
|
||||||
|
am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
|
||||||
|
am__make_running_with_option = \
|
||||||
|
case $${target_option-} in \
|
||||||
|
?) ;; \
|
||||||
|
*) echo "am__make_running_with_option: internal error: invalid" \
|
||||||
|
"target option '$${target_option-}' specified" >&2; \
|
||||||
|
exit 1;; \
|
||||||
|
esac; \
|
||||||
|
has_opt=no; \
|
||||||
|
sane_makeflags=$$MAKEFLAGS; \
|
||||||
|
if $(am__is_gnu_make); then \
|
||||||
|
sane_makeflags=$$MFLAGS; \
|
||||||
|
else \
|
||||||
|
case $$MAKEFLAGS in \
|
||||||
|
*\\[\ \ ]*) \
|
||||||
|
bs=\\; \
|
||||||
|
sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
|
||||||
|
| sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
|
||||||
|
esac; \
|
||||||
|
fi; \
|
||||||
|
skip_next=no; \
|
||||||
|
strip_trailopt () \
|
||||||
|
{ \
|
||||||
|
flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
|
||||||
|
}; \
|
||||||
|
for flg in $$sane_makeflags; do \
|
||||||
|
test $$skip_next = yes && { skip_next=no; continue; }; \
|
||||||
|
case $$flg in \
|
||||||
|
*=*|--*) continue;; \
|
||||||
|
-*I) strip_trailopt 'I'; skip_next=yes;; \
|
||||||
|
-*I?*) strip_trailopt 'I';; \
|
||||||
|
-*O) strip_trailopt 'O'; skip_next=yes;; \
|
||||||
|
-*O?*) strip_trailopt 'O';; \
|
||||||
|
-*l) strip_trailopt 'l'; skip_next=yes;; \
|
||||||
|
-*l?*) strip_trailopt 'l';; \
|
||||||
|
-[dEDm]) skip_next=yes;; \
|
||||||
|
-[JT]) skip_next=yes;; \
|
||||||
|
esac; \
|
||||||
|
case $$flg in \
|
||||||
|
*$$target_option*) has_opt=yes; break;; \
|
||||||
|
esac; \
|
||||||
|
done; \
|
||||||
|
test $$has_opt = yes
|
||||||
|
am__make_dryrun = (target_option=n; $(am__make_running_with_option))
|
||||||
|
am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
|
||||||
|
pkgdatadir = $(datadir)/@PACKAGE@
|
||||||
|
pkgincludedir = $(includedir)/@PACKAGE@
|
||||||
|
pkglibdir = $(libdir)/@PACKAGE@
|
||||||
|
pkglibexecdir = $(libexecdir)/@PACKAGE@
|
||||||
|
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||||
|
install_sh_DATA = $(install_sh) -c -m 644
|
||||||
|
install_sh_PROGRAM = $(install_sh) -c
|
||||||
|
install_sh_SCRIPT = $(install_sh) -c
|
||||||
|
INSTALL_HEADER = $(INSTALL_DATA)
|
||||||
|
transform = $(program_transform_name)
|
||||||
|
NORMAL_INSTALL = :
|
||||||
|
PRE_INSTALL = :
|
||||||
|
POST_INSTALL = :
|
||||||
|
NORMAL_UNINSTALL = :
|
||||||
|
PRE_UNINSTALL = :
|
||||||
|
POST_UNINSTALL = :
|
||||||
|
build_triplet = @build@
|
||||||
|
host_triplet = @host@
|
||||||
|
@RGB_DB_TRUE@am__append_1 = rgb.$(APP_MAN_SUFFIX)
|
||||||
|
subdir = man
|
||||||
|
DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
|
||||||
|
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||||
|
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
|
||||||
|
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||||
|
$(ACLOCAL_M4)
|
||||||
|
mkinstalldirs = $(install_sh) -d
|
||||||
|
CONFIG_HEADER = $(top_builddir)/config.h
|
||||||
|
CONFIG_CLEAN_FILES =
|
||||||
|
CONFIG_CLEAN_VPATH_FILES =
|
||||||
|
AM_V_P = $(am__v_P_@AM_V@)
|
||||||
|
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
|
||||||
|
am__v_P_0 = false
|
||||||
|
am__v_P_1 = :
|
||||||
|
AM_V_GEN = $(am__v_GEN_@AM_V@)
|
||||||
|
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
|
||||||
|
am__v_GEN_0 = @echo " GEN " $@;
|
||||||
|
am__v_GEN_1 =
|
||||||
|
AM_V_at = $(am__v_at_@AM_V@)
|
||||||
|
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
|
||||||
|
am__v_at_0 = @
|
||||||
|
am__v_at_1 =
|
||||||
|
SOURCES =
|
||||||
|
DIST_SOURCES =
|
||||||
|
am__can_run_installinfo = \
|
||||||
|
case $$AM_UPDATE_INFO_DIR in \
|
||||||
|
n|no|NO) false;; \
|
||||||
|
*) (install-info --version) >/dev/null 2>&1;; \
|
||||||
|
esac
|
||||||
|
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
|
||||||
|
am__vpath_adj = case $$p in \
|
||||||
|
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
||||||
|
*) f=$$p;; \
|
||||||
|
esac;
|
||||||
|
am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
|
||||||
|
am__install_max = 40
|
||||||
|
am__nobase_strip_setup = \
|
||||||
|
srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
|
||||||
|
am__nobase_strip = \
|
||||||
|
for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
|
||||||
|
am__nobase_list = $(am__nobase_strip_setup); \
|
||||||
|
for p in $$list; do echo "$$p $$p"; done | \
|
||||||
|
sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
|
||||||
|
$(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
|
||||||
|
if (++n[$$2] == $(am__install_max)) \
|
||||||
|
{ print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
|
||||||
|
END { for (dir in files) print dir, files[dir] }'
|
||||||
|
am__base_list = \
|
||||||
|
sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
|
||||||
|
sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
|
||||||
|
am__uninstall_files_from_dir = { \
|
||||||
|
test -z "$$files" \
|
||||||
|
|| { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
|
||||||
|
|| { echo " ( cd '$$dir' && rm -f" $$files ")"; \
|
||||||
|
$(am__cd) "$$dir" && rm -f $$files; }; \
|
||||||
|
}
|
||||||
|
am__installdirs = "$(DESTDIR)$(appmandir)"
|
||||||
|
DATA = $(appman_DATA)
|
||||||
|
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
|
||||||
|
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||||
|
ACLOCAL = @ACLOCAL@
|
||||||
|
ADMIN_MAN_DIR = @ADMIN_MAN_DIR@
|
||||||
|
ADMIN_MAN_SUFFIX = @ADMIN_MAN_SUFFIX@
|
||||||
|
AMTAR = @AMTAR@
|
||||||
|
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||||
|
APP_MAN_DIR = @APP_MAN_DIR@
|
||||||
|
APP_MAN_SUFFIX = @APP_MAN_SUFFIX@
|
||||||
|
AUTOCONF = @AUTOCONF@
|
||||||
|
AUTOHEADER = @AUTOHEADER@
|
||||||
|
AUTOMAKE = @AUTOMAKE@
|
||||||
|
AWK = @AWK@
|
||||||
|
BASE_CFLAGS = @BASE_CFLAGS@
|
||||||
|
CC = @CC@
|
||||||
|
CCDEPMODE = @CCDEPMODE@
|
||||||
|
CFLAGS = @CFLAGS@
|
||||||
|
CHANGELOG_CMD = @CHANGELOG_CMD@
|
||||||
|
CPP = @CPP@
|
||||||
|
CPPFLAGS = @CPPFLAGS@
|
||||||
|
CWARNFLAGS = @CWARNFLAGS@
|
||||||
|
CYGPATH_W = @CYGPATH_W@
|
||||||
|
DEFS = @DEFS@
|
||||||
|
DEPDIR = @DEPDIR@
|
||||||
|
DRIVER_MAN_DIR = @DRIVER_MAN_DIR@
|
||||||
|
DRIVER_MAN_SUFFIX = @DRIVER_MAN_SUFFIX@
|
||||||
|
ECHO_C = @ECHO_C@
|
||||||
|
ECHO_N = @ECHO_N@
|
||||||
|
ECHO_T = @ECHO_T@
|
||||||
|
EGREP = @EGREP@
|
||||||
|
EXEEXT = @EXEEXT@
|
||||||
|
FILE_MAN_DIR = @FILE_MAN_DIR@
|
||||||
|
FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@
|
||||||
|
GREP = @GREP@
|
||||||
|
INSTALL = @INSTALL@
|
||||||
|
INSTALL_CMD = @INSTALL_CMD@
|
||||||
|
INSTALL_DATA = @INSTALL_DATA@
|
||||||
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||||
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||||
|
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||||
|
LDFLAGS = @LDFLAGS@
|
||||||
|
LIBOBJS = @LIBOBJS@
|
||||||
|
LIBS = @LIBS@
|
||||||
|
LIB_MAN_DIR = @LIB_MAN_DIR@
|
||||||
|
LIB_MAN_SUFFIX = @LIB_MAN_SUFFIX@
|
||||||
|
LTLIBOBJS = @LTLIBOBJS@
|
||||||
|
MAKEINFO = @MAKEINFO@
|
||||||
|
MAN_SUBSTS = @MAN_SUBSTS@ -e 's|__RGB_DB__|$(db_dir)/$(db_file)|g' -e \
|
||||||
|
's|__RGB_DB_DIR__|$(db_dir)|g' -e \
|
||||||
|
's|__RGB_DB_TYPE__|$(RGB_DB_TYPE)|g' -e \
|
||||||
|
's|__RGB_DB_FILES__|$(RGB_DB_FILES)|g'
|
||||||
|
MISC_MAN_DIR = @MISC_MAN_DIR@
|
||||||
|
MISC_MAN_SUFFIX = @MISC_MAN_SUFFIX@
|
||||||
|
MKDIR_P = @MKDIR_P@
|
||||||
|
OBJEXT = @OBJEXT@
|
||||||
|
PACKAGE = @PACKAGE@
|
||||||
|
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||||
|
PACKAGE_NAME = @PACKAGE_NAME@
|
||||||
|
PACKAGE_STRING = @PACKAGE_STRING@
|
||||||
|
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||||
|
PACKAGE_URL = @PACKAGE_URL@
|
||||||
|
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||||
|
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||||
|
PKG_CONFIG = @PKG_CONFIG@
|
||||||
|
RGB_CFLAGS = @RGB_CFLAGS@
|
||||||
|
RGB_DB_FILES = @RGB_DB_FILES@
|
||||||
|
RGB_DB_TYPE = @RGB_DB_TYPE@
|
||||||
|
RGB_LIBS = @RGB_LIBS@
|
||||||
|
SED = @SED@
|
||||||
|
SET_MAKE = @SET_MAKE@
|
||||||
|
SHELL = @SHELL@
|
||||||
|
STRICT_CFLAGS = @STRICT_CFLAGS@
|
||||||
|
STRIP = @STRIP@
|
||||||
|
VERSION = @VERSION@
|
||||||
|
XORG_CFLAGS = @XORG_CFLAGS@
|
||||||
|
XORG_LIBS = @XORG_LIBS@
|
||||||
|
XORG_MAN_PAGE = @XORG_MAN_PAGE@
|
||||||
|
abs_builddir = @abs_builddir@
|
||||||
|
abs_srcdir = @abs_srcdir@
|
||||||
|
abs_top_builddir = @abs_top_builddir@
|
||||||
|
abs_top_srcdir = @abs_top_srcdir@
|
||||||
|
ac_ct_CC = @ac_ct_CC@
|
||||||
|
am__include = @am__include@
|
||||||
|
am__leading_dot = @am__leading_dot@
|
||||||
|
am__quote = @am__quote@
|
||||||
|
am__tar = @am__tar@
|
||||||
|
am__untar = @am__untar@
|
||||||
|
bindir = @bindir@
|
||||||
|
build = @build@
|
||||||
|
build_alias = @build_alias@
|
||||||
|
build_cpu = @build_cpu@
|
||||||
|
build_os = @build_os@
|
||||||
|
build_vendor = @build_vendor@
|
||||||
|
builddir = @builddir@
|
||||||
|
datadir = @datadir@
|
||||||
|
datarootdir = @datarootdir@
|
||||||
|
db_dir = @db_dir@
|
||||||
|
db_file = @db_file@
|
||||||
|
docdir = @docdir@
|
||||||
|
dvidir = @dvidir@
|
||||||
|
exec_prefix = @exec_prefix@
|
||||||
|
host = @host@
|
||||||
|
host_alias = @host_alias@
|
||||||
|
host_cpu = @host_cpu@
|
||||||
|
host_os = @host_os@
|
||||||
|
host_vendor = @host_vendor@
|
||||||
|
htmldir = @htmldir@
|
||||||
|
includedir = @includedir@
|
||||||
|
infodir = @infodir@
|
||||||
|
install_sh = @install_sh@
|
||||||
|
libdir = @libdir@
|
||||||
|
libexecdir = @libexecdir@
|
||||||
|
localedir = @localedir@
|
||||||
|
localstatedir = @localstatedir@
|
||||||
|
mandir = @mandir@
|
||||||
|
mkdir_p = @mkdir_p@
|
||||||
|
oldincludedir = @oldincludedir@
|
||||||
|
pdfdir = @pdfdir@
|
||||||
|
prefix = @prefix@
|
||||||
|
program_transform_name = @program_transform_name@
|
||||||
|
psdir = @psdir@
|
||||||
|
sbindir = @sbindir@
|
||||||
|
sharedstatedir = @sharedstatedir@
|
||||||
|
srcdir = @srcdir@
|
||||||
|
sysconfdir = @sysconfdir@
|
||||||
|
target_alias = @target_alias@
|
||||||
|
top_build_prefix = @top_build_prefix@
|
||||||
|
top_builddir = @top_builddir@
|
||||||
|
top_srcdir = @top_srcdir@
|
||||||
|
appmandir = $(APP_MAN_DIR)
|
||||||
|
appman_PRE = rgb.man showrgb.man
|
||||||
|
appman_DATA = showrgb.$(APP_MAN_SUFFIX) $(am__append_1)
|
||||||
|
EXTRA_DIST = $(appman_PRE)
|
||||||
|
CLEANFILES = $(appman_DATA)
|
||||||
|
SUFFIXES = .$(APP_MAN_SUFFIX) .man
|
||||||
|
all: all-am
|
||||||
|
|
||||||
|
.SUFFIXES:
|
||||||
|
.SUFFIXES: .$(APP_MAN_SUFFIX) .man
|
||||||
|
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
||||||
|
@for dep in $?; do \
|
||||||
|
case '$(am__configure_deps)' in \
|
||||||
|
*$$dep*) \
|
||||||
|
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
|
||||||
|
&& { if test -f $@; then exit 0; else break; fi; }; \
|
||||||
|
exit 1;; \
|
||||||
|
esac; \
|
||||||
|
done; \
|
||||||
|
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign man/Makefile'; \
|
||||||
|
$(am__cd) $(top_srcdir) && \
|
||||||
|
$(AUTOMAKE) --foreign man/Makefile
|
||||||
|
.PRECIOUS: Makefile
|
||||||
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||||
|
@case '$?' in \
|
||||||
|
*config.status*) \
|
||||||
|
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
||||||
|
*) \
|
||||||
|
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
|
||||||
|
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
||||||
|
esac;
|
||||||
|
|
||||||
|
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||||
|
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||||
|
|
||||||
|
$(top_srcdir)/configure: $(am__configure_deps)
|
||||||
|
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||||
|
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
||||||
|
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||||
|
$(am__aclocal_m4_deps):
|
||||||
|
install-appmanDATA: $(appman_DATA)
|
||||||
|
@$(NORMAL_INSTALL)
|
||||||
|
@list='$(appman_DATA)'; test -n "$(appmandir)" || list=; \
|
||||||
|
if test -n "$$list"; then \
|
||||||
|
echo " $(MKDIR_P) '$(DESTDIR)$(appmandir)'"; \
|
||||||
|
$(MKDIR_P) "$(DESTDIR)$(appmandir)" || exit 1; \
|
||||||
|
fi; \
|
||||||
|
for p in $$list; do \
|
||||||
|
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||||
|
echo "$$d$$p"; \
|
||||||
|
done | $(am__base_list) | \
|
||||||
|
while read files; do \
|
||||||
|
echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(appmandir)'"; \
|
||||||
|
$(INSTALL_DATA) $$files "$(DESTDIR)$(appmandir)" || exit $$?; \
|
||||||
|
done
|
||||||
|
|
||||||
|
uninstall-appmanDATA:
|
||||||
|
@$(NORMAL_UNINSTALL)
|
||||||
|
@list='$(appman_DATA)'; test -n "$(appmandir)" || list=; \
|
||||||
|
files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
|
||||||
|
dir='$(DESTDIR)$(appmandir)'; $(am__uninstall_files_from_dir)
|
||||||
|
tags TAGS:
|
||||||
|
|
||||||
|
ctags CTAGS:
|
||||||
|
|
||||||
|
cscope cscopelist:
|
||||||
|
|
||||||
|
|
||||||
|
distdir: $(DISTFILES)
|
||||||
|
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||||
|
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||||
|
list='$(DISTFILES)'; \
|
||||||
|
dist_files=`for file in $$list; do echo $$file; done | \
|
||||||
|
sed -e "s|^$$srcdirstrip/||;t" \
|
||||||
|
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
|
||||||
|
case $$dist_files in \
|
||||||
|
*/*) $(MKDIR_P) `echo "$$dist_files" | \
|
||||||
|
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
|
||||||
|
sort -u` ;; \
|
||||||
|
esac; \
|
||||||
|
for file in $$dist_files; do \
|
||||||
|
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||||
|
if test -d $$d/$$file; then \
|
||||||
|
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||||
|
if test -d "$(distdir)/$$file"; then \
|
||||||
|
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||||
|
fi; \
|
||||||
|
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||||
|
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
|
||||||
|
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||||
|
fi; \
|
||||||
|
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
|
||||||
|
else \
|
||||||
|
test -f "$(distdir)/$$file" \
|
||||||
|
|| cp -p $$d/$$file "$(distdir)/$$file" \
|
||||||
|
|| exit 1; \
|
||||||
|
fi; \
|
||||||
|
done
|
||||||
|
check-am: all-am
|
||||||
|
check: check-am
|
||||||
|
all-am: Makefile $(DATA)
|
||||||
|
installdirs:
|
||||||
|
for dir in "$(DESTDIR)$(appmandir)"; do \
|
||||||
|
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
|
||||||
|
done
|
||||||
|
install: install-am
|
||||||
|
install-exec: install-exec-am
|
||||||
|
install-data: install-data-am
|
||||||
|
uninstall: uninstall-am
|
||||||
|
|
||||||
|
install-am: all-am
|
||||||
|
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||||
|
|
||||||
|
installcheck: installcheck-am
|
||||||
|
install-strip:
|
||||||
|
if test -z '$(STRIP)'; then \
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||||
|
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||||
|
install; \
|
||||||
|
else \
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||||
|
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||||
|
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
|
||||||
|
fi
|
||||||
|
mostlyclean-generic:
|
||||||
|
|
||||||
|
clean-generic:
|
||||||
|
-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
|
||||||
|
|
||||||
|
distclean-generic:
|
||||||
|
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||||
|
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
|
||||||
|
|
||||||
|
maintainer-clean-generic:
|
||||||
|
@echo "This command is intended for maintainers to use"
|
||||||
|
@echo "it deletes files that may require special tools to rebuild."
|
||||||
|
clean: clean-am
|
||||||
|
|
||||||
|
clean-am: clean-generic mostlyclean-am
|
||||||
|
|
||||||
|
distclean: distclean-am
|
||||||
|
-rm -f Makefile
|
||||||
|
distclean-am: clean-am distclean-generic
|
||||||
|
|
||||||
|
dvi: dvi-am
|
||||||
|
|
||||||
|
dvi-am:
|
||||||
|
|
||||||
|
html: html-am
|
||||||
|
|
||||||
|
html-am:
|
||||||
|
|
||||||
|
info: info-am
|
||||||
|
|
||||||
|
info-am:
|
||||||
|
|
||||||
|
install-data-am: install-appmanDATA
|
||||||
|
|
||||||
|
install-dvi: install-dvi-am
|
||||||
|
|
||||||
|
install-dvi-am:
|
||||||
|
|
||||||
|
install-exec-am:
|
||||||
|
|
||||||
|
install-html: install-html-am
|
||||||
|
|
||||||
|
install-html-am:
|
||||||
|
|
||||||
|
install-info: install-info-am
|
||||||
|
|
||||||
|
install-info-am:
|
||||||
|
|
||||||
|
install-man:
|
||||||
|
|
||||||
|
install-pdf: install-pdf-am
|
||||||
|
|
||||||
|
install-pdf-am:
|
||||||
|
|
||||||
|
install-ps: install-ps-am
|
||||||
|
|
||||||
|
install-ps-am:
|
||||||
|
|
||||||
|
installcheck-am:
|
||||||
|
|
||||||
|
maintainer-clean: maintainer-clean-am
|
||||||
|
-rm -f Makefile
|
||||||
|
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||||
|
|
||||||
|
mostlyclean: mostlyclean-am
|
||||||
|
|
||||||
|
mostlyclean-am: mostlyclean-generic
|
||||||
|
|
||||||
|
pdf: pdf-am
|
||||||
|
|
||||||
|
pdf-am:
|
||||||
|
|
||||||
|
ps: ps-am
|
||||||
|
|
||||||
|
ps-am:
|
||||||
|
|
||||||
|
uninstall-am: uninstall-appmanDATA
|
||||||
|
|
||||||
|
.MAKE: install-am install-strip
|
||||||
|
|
||||||
|
.PHONY: all all-am check check-am clean clean-generic cscopelist-am \
|
||||||
|
ctags-am distclean distclean-generic distdir dvi dvi-am html \
|
||||||
|
html-am info info-am install install-am install-appmanDATA \
|
||||||
|
install-data install-data-am install-dvi install-dvi-am \
|
||||||
|
install-exec install-exec-am install-html install-html-am \
|
||||||
|
install-info install-info-am install-man install-pdf \
|
||||||
|
install-pdf-am install-ps install-ps-am install-strip \
|
||||||
|
installcheck installcheck-am installdirs maintainer-clean \
|
||||||
|
maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
|
||||||
|
pdf-am ps ps-am tags-am uninstall uninstall-am \
|
||||||
|
uninstall-appmanDATA
|
||||||
|
|
||||||
|
|
||||||
|
# String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure
|
||||||
|
.man.$(APP_MAN_SUFFIX):
|
||||||
|
$(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
|
||||||
|
|
||||||
|
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||||
|
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||||
|
.NOEXPORT:
|
|
@ -0,0 +1,85 @@
|
||||||
|
.\" Copyright (c) 1994, 2008, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
.\"
|
||||||
|
.\" 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 (including the next
|
||||||
|
.\" paragraph) 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 AUTHORS OR COPYRIGHT HOLDERS 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.
|
||||||
|
.\"
|
||||||
|
.TH rgb __appmansuffix__ __xorgversion__
|
||||||
|
.IX "rgb" "" "\f3rgb\fP(1) \(em build colorname database" ""
|
||||||
|
.IX "color" "build" "color" "building the colorname database \(em \f3rgb\fP(1)" ""
|
||||||
|
.SH NAME
|
||||||
|
rgb \- build the color name database
|
||||||
|
.SH SYNOPSIS
|
||||||
|
.B rgb
|
||||||
|
[
|
||||||
|
.I dbname
|
||||||
|
]
|
||||||
|
.SH DESCRIPTION
|
||||||
|
.B rgb
|
||||||
|
reads from standard input lines of the form:
|
||||||
|
.PP
|
||||||
|
.nf
|
||||||
|
.I
|
||||||
|
red\ \ green\ \ blue\ \ \ \ \ \ name
|
||||||
|
.fi
|
||||||
|
.PP
|
||||||
|
where
|
||||||
|
.I red
|
||||||
|
/
|
||||||
|
.I green
|
||||||
|
/
|
||||||
|
.I blue
|
||||||
|
are decimal values between the range 0 to 255, and
|
||||||
|
.I name
|
||||||
|
is a description of the color.
|
||||||
|
.B rgb
|
||||||
|
then builds a color name database in
|
||||||
|
.B __RGB_DB_TYPE__
|
||||||
|
format. The color name database provides a mapping between ASCII color
|
||||||
|
names and RGB color values. It is useful for increasing the
|
||||||
|
portability of color programs. The input source for the database is
|
||||||
|
in \fI__RGB_DB__.txt\fP. \fIrgb.txt\fP
|
||||||
|
is compiled into the __RGB_DB_TYPE__ files
|
||||||
|
.IR "__RGB_DB_FILES__" .
|
||||||
|
When the server first starts up, it consults the contents of these
|
||||||
|
files to build an internal representation of their contents. This
|
||||||
|
internal representation is consulted to map color names to color
|
||||||
|
values.
|
||||||
|
.PP
|
||||||
|
.B rgb
|
||||||
|
uses the default color name database of \fI__RGB_DB__.txt\fP.
|
||||||
|
.SH OPTIONS
|
||||||
|
.IP "\fIdbname" 1i
|
||||||
|
Color name database.
|
||||||
|
.SH EXAMPLES
|
||||||
|
example% rgb rgb < __RGB_DB__.txt
|
||||||
|
.PP
|
||||||
|
example% cat __RGB_DB__.txt
|
||||||
|
.SH FILES
|
||||||
|
.PD 0
|
||||||
|
.TP 30
|
||||||
|
.B __RGB_DB__.txt
|
||||||
|
color name database source.
|
||||||
|
Maps color names to RGB color values.
|
||||||
|
.TP
|
||||||
|
.B __RGB_DB_DIR__/__RGB_DB_FILES__
|
||||||
|
__RGB_DB_TYPE__ files containing color name to RGB mapping.
|
||||||
|
.PD
|
||||||
|
.SH SEE ALSO
|
||||||
|
.BR cat (__appmansuffix__),
|
||||||
|
.BR __RGB_DB_TYPE__ (__libmansuffix__)
|
|
@ -1,15 +1,14 @@
|
||||||
.\" $Xorg: showrgb.man,v 1.4 2001/02/09 02:05:35 xorgcvs Exp $
|
|
||||||
.\" Copyright 1993, 1998 The Open Group
|
.\" Copyright 1993, 1998 The Open Group
|
||||||
.\"
|
.\"
|
||||||
.\" Permission to use, copy, modify, distribute, and sell this software and its
|
.\" Permission to use, copy, modify, distribute, and sell this software and its
|
||||||
.\" documentation for any purpose is hereby granted without fee, provided that
|
.\" documentation for any purpose is hereby granted without fee, provided that
|
||||||
.\" the above copyright notice appear in all copies and that both that
|
.\" the above copyright notice appear in all copies and that both that
|
||||||
.\" copyright notice and this permission notice appear in supporting
|
.\" copyright notice and this permission notice appear in supporting
|
||||||
.\" documentation.
|
.\" documentation.
|
||||||
.\"
|
.\"
|
||||||
.\" The above copyright notice and this permission notice shall be included
|
.\" The above copyright notice and this permission notice shall be included
|
||||||
.\" in all copies or substantial portions of the Software.
|
.\" in all copies or substantial portions of the Software.
|
||||||
.\"
|
.\"
|
||||||
.\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
.\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||||
.\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
.\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
.\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
.\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||||
|
@ -17,17 +16,15 @@
|
||||||
.\" OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
.\" 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
|
.\" ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||||
.\" OTHER DEALINGS IN THE SOFTWARE.
|
.\" OTHER DEALINGS IN THE SOFTWARE.
|
||||||
.\"
|
.\"
|
||||||
.\" Except as contained in this notice, the name of The Open Group shall
|
.\" Except as contained in this notice, the name of The Open Group shall
|
||||||
.\" not be used in advertising or otherwise to promote the sale, use or
|
.\" not be used in advertising or otherwise to promote the sale, use or
|
||||||
.\" other dealings in this Software without prior written authorization
|
.\" other dealings in this Software without prior written authorization
|
||||||
.\" from The Open Group.
|
.\" from The Open Group.
|
||||||
.\"
|
.\"
|
||||||
.\" $XFree86: xc/programs/rgb/showrgb.man,v 1.7 2001/12/14 20:01:04 dawes Exp $
|
|
||||||
.\"
|
|
||||||
.TH SHOWRGB 1 __xorgversion__
|
.TH SHOWRGB 1 __xorgversion__
|
||||||
.SH NAME
|
.SH NAME
|
||||||
showrgb \- uncompile an rgb color-name database
|
showrgb \- display an rgb color-name database
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.B showrgb
|
.B showrgb
|
||||||
[
|
[
|
||||||
|
@ -36,13 +33,13 @@ showrgb \- uncompile an rgb color-name database
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
The
|
The
|
||||||
.I showrgb
|
.I showrgb
|
||||||
program reads an rgb color-name database compiled for use with the dbm
|
program reads an rgb color-name database from a __RGB_DB_TYPE__ file
|
||||||
database routines and converts it back to source form, printing the
|
and converts it back to source form, printing the
|
||||||
result to standard output. The default
|
result to standard output. The default
|
||||||
database is the one that X was built with, and may be overridden on
|
database is the one that X was built with, and may be overridden on
|
||||||
the command line. Specify the database name without
|
the command line. Specify the database name without
|
||||||
the \fI.pag\fP or \fI.dir\fP suffix.
|
the \fI.txt\fP, \fI.pag\fP or \fI.dir\fP suffix.
|
||||||
.SH FILES
|
.SH FILES
|
||||||
.TP 20
|
.TP 20
|
||||||
.I __projectroot__/lib/X11/rgb
|
.I __RGB_DB__
|
||||||
default database.
|
default database.
|
449
rgb/missing
449
rgb/missing
|
@ -1,11 +1,10 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# Common stub for a few missing GNU programs while installing.
|
# Common wrapper for a few potentially missing GNU programs.
|
||||||
|
|
||||||
scriptversion=2005-06-08.21
|
scriptversion=2013-10-28.13; # UTC
|
||||||
|
|
||||||
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005
|
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
|
||||||
# Free Software Foundation, Inc.
|
# Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
|
||||||
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
|
|
||||||
|
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# 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
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
@ -18,9 +17,7 @@ scriptversion=2005-06-08.21
|
||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
||||||
# 02110-1301, USA.
|
|
||||||
|
|
||||||
# As a special exception to the GNU General Public License, if you
|
# As a special exception to the GNU General Public License, if you
|
||||||
# distribute this file as part of a program that contains a
|
# distribute this file as part of a program that contains a
|
||||||
|
@ -28,63 +25,40 @@ scriptversion=2005-06-08.21
|
||||||
# the same distribution terms that you use for the rest of that program.
|
# the same distribution terms that you use for the rest of that program.
|
||||||
|
|
||||||
if test $# -eq 0; then
|
if test $# -eq 0; then
|
||||||
echo 1>&2 "Try \`$0 --help' for more information"
|
echo 1>&2 "Try '$0 --help' for more information"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
run=:
|
case $1 in
|
||||||
|
|
||||||
# In the cases where this matters, `missing' is being run in the
|
--is-lightweight)
|
||||||
# srcdir already.
|
# Used by our autoconf macros to check whether the available missing
|
||||||
if test -f configure.ac; then
|
# script is modern enough.
|
||||||
configure_ac=configure.ac
|
exit 0
|
||||||
else
|
;;
|
||||||
configure_ac=configure.in
|
|
||||||
fi
|
|
||||||
|
|
||||||
msg="missing on your system"
|
--run)
|
||||||
|
# Back-compat with the calling convention used by older automake.
|
||||||
case "$1" in
|
shift
|
||||||
--run)
|
;;
|
||||||
# Try to run requested program, and just exit if it succeeds.
|
|
||||||
run=
|
|
||||||
shift
|
|
||||||
"$@" && exit 0
|
|
||||||
# Exit code 63 means version mismatch. This often happens
|
|
||||||
# when the user try to use an ancient version of a tool on
|
|
||||||
# a file that requires a minimum version. In this case we
|
|
||||||
# we should proceed has if the program had been absent, or
|
|
||||||
# if --run hadn't been passed.
|
|
||||||
if test $? = 63; then
|
|
||||||
run=:
|
|
||||||
msg="probably too old"
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
|
|
||||||
-h|--h|--he|--hel|--help)
|
-h|--h|--he|--hel|--help)
|
||||||
echo "\
|
echo "\
|
||||||
$0 [OPTION]... PROGRAM [ARGUMENT]...
|
$0 [OPTION]... PROGRAM [ARGUMENT]...
|
||||||
|
|
||||||
Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
|
Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due
|
||||||
error status if there is no known handling for PROGRAM.
|
to PROGRAM being missing or too old.
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
-h, --help display this help and exit
|
-h, --help display this help and exit
|
||||||
-v, --version output version information and exit
|
-v, --version output version information and exit
|
||||||
--run try to run the given command, and emulate it if it fails
|
|
||||||
|
|
||||||
Supported PROGRAM values:
|
Supported PROGRAM values:
|
||||||
aclocal touch file \`aclocal.m4'
|
aclocal autoconf autoheader autom4te automake makeinfo
|
||||||
autoconf touch file \`configure'
|
bison yacc flex lex help2man
|
||||||
autoheader touch file \`config.h.in'
|
|
||||||
automake touch all \`Makefile.in' files
|
Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and
|
||||||
bison create \`y.tab.[ch]', if possible, from existing .[ch]
|
'g' are ignored when checking the name.
|
||||||
flex create \`lex.yy.c', if possible, from existing .c
|
|
||||||
help2man touch the output file
|
|
||||||
lex create \`lex.yy.c', if possible, from existing .c
|
|
||||||
makeinfo touch the output file
|
|
||||||
tar try tar, gnutar, gtar, then tar without non-portable flags
|
|
||||||
yacc create \`y.tab.[ch]', if possible, from existing .[ch]
|
|
||||||
|
|
||||||
Send bug reports to <bug-automake@gnu.org>."
|
Send bug reports to <bug-automake@gnu.org>."
|
||||||
exit $?
|
exit $?
|
||||||
|
@ -96,265 +70,146 @@ Send bug reports to <bug-automake@gnu.org>."
|
||||||
;;
|
;;
|
||||||
|
|
||||||
-*)
|
-*)
|
||||||
echo 1>&2 "$0: Unknown \`$1' option"
|
echo 1>&2 "$0: unknown '$1' option"
|
||||||
echo 1>&2 "Try \`$0 --help' for more information"
|
echo 1>&2 "Try '$0 --help' for more information"
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Now exit if we have it, but it failed. Also exit now if we
|
# Run the given program, remember its exit status.
|
||||||
# don't have it and --version was passed (most likely to detect
|
"$@"; st=$?
|
||||||
# the program).
|
|
||||||
case "$1" in
|
# If it succeeded, we are done.
|
||||||
lex|yacc)
|
test $st -eq 0 && exit 0
|
||||||
# Not GNU programs, they don't have --version.
|
|
||||||
|
# Also exit now if we it failed (or wasn't found), and '--version' was
|
||||||
|
# passed; such an option is passed most likely to detect whether the
|
||||||
|
# program is present and works.
|
||||||
|
case $2 in --version|--help) exit $st;; esac
|
||||||
|
|
||||||
|
# Exit code 63 means version mismatch. This often happens when the user
|
||||||
|
# tries to use an ancient version of a tool on a file that requires a
|
||||||
|
# minimum version.
|
||||||
|
if test $st -eq 63; then
|
||||||
|
msg="probably too old"
|
||||||
|
elif test $st -eq 127; then
|
||||||
|
# Program was missing.
|
||||||
|
msg="missing on your system"
|
||||||
|
else
|
||||||
|
# Program was found and executed, but failed. Give up.
|
||||||
|
exit $st
|
||||||
|
fi
|
||||||
|
|
||||||
|
perl_URL=http://www.perl.org/
|
||||||
|
flex_URL=http://flex.sourceforge.net/
|
||||||
|
gnu_software_URL=http://www.gnu.org/software
|
||||||
|
|
||||||
|
program_details ()
|
||||||
|
{
|
||||||
|
case $1 in
|
||||||
|
aclocal|automake)
|
||||||
|
echo "The '$1' program is part of the GNU Automake package:"
|
||||||
|
echo "<$gnu_software_URL/automake>"
|
||||||
|
echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:"
|
||||||
|
echo "<$gnu_software_URL/autoconf>"
|
||||||
|
echo "<$gnu_software_URL/m4/>"
|
||||||
|
echo "<$perl_URL>"
|
||||||
|
;;
|
||||||
|
autoconf|autom4te|autoheader)
|
||||||
|
echo "The '$1' program is part of the GNU Autoconf package:"
|
||||||
|
echo "<$gnu_software_URL/autoconf/>"
|
||||||
|
echo "It also requires GNU m4 and Perl in order to run:"
|
||||||
|
echo "<$gnu_software_URL/m4/>"
|
||||||
|
echo "<$perl_URL>"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
give_advice ()
|
||||||
|
{
|
||||||
|
# Normalize program name to check for.
|
||||||
|
normalized_program=`echo "$1" | sed '
|
||||||
|
s/^gnu-//; t
|
||||||
|
s/^gnu//; t
|
||||||
|
s/^g//; t'`
|
||||||
|
|
||||||
|
printf '%s\n' "'$1' is $msg."
|
||||||
|
|
||||||
|
configure_deps="'configure.ac' or m4 files included by 'configure.ac'"
|
||||||
|
case $normalized_program in
|
||||||
|
autoconf*)
|
||||||
|
echo "You should only need it if you modified 'configure.ac',"
|
||||||
|
echo "or m4 files included by it."
|
||||||
|
program_details 'autoconf'
|
||||||
|
;;
|
||||||
|
autoheader*)
|
||||||
|
echo "You should only need it if you modified 'acconfig.h' or"
|
||||||
|
echo "$configure_deps."
|
||||||
|
program_details 'autoheader'
|
||||||
|
;;
|
||||||
|
automake*)
|
||||||
|
echo "You should only need it if you modified 'Makefile.am' or"
|
||||||
|
echo "$configure_deps."
|
||||||
|
program_details 'automake'
|
||||||
|
;;
|
||||||
|
aclocal*)
|
||||||
|
echo "You should only need it if you modified 'acinclude.m4' or"
|
||||||
|
echo "$configure_deps."
|
||||||
|
program_details 'aclocal'
|
||||||
|
;;
|
||||||
|
autom4te*)
|
||||||
|
echo "You might have modified some maintainer files that require"
|
||||||
|
echo "the 'autom4te' program to be rebuilt."
|
||||||
|
program_details 'autom4te'
|
||||||
|
;;
|
||||||
|
bison*|yacc*)
|
||||||
|
echo "You should only need it if you modified a '.y' file."
|
||||||
|
echo "You may want to install the GNU Bison package:"
|
||||||
|
echo "<$gnu_software_URL/bison/>"
|
||||||
|
;;
|
||||||
|
lex*|flex*)
|
||||||
|
echo "You should only need it if you modified a '.l' file."
|
||||||
|
echo "You may want to install the Fast Lexical Analyzer package:"
|
||||||
|
echo "<$flex_URL>"
|
||||||
|
;;
|
||||||
|
help2man*)
|
||||||
|
echo "You should only need it if you modified a dependency" \
|
||||||
|
"of a man page."
|
||||||
|
echo "You may want to install the GNU Help2man package:"
|
||||||
|
echo "<$gnu_software_URL/help2man/>"
|
||||||
;;
|
;;
|
||||||
|
makeinfo*)
|
||||||
|
echo "You should only need it if you modified a '.texi' file, or"
|
||||||
|
echo "any other file indirectly affecting the aspect of the manual."
|
||||||
|
echo "You might want to install the Texinfo package:"
|
||||||
|
echo "<$gnu_software_URL/texinfo/>"
|
||||||
|
echo "The spurious makeinfo call might also be the consequence of"
|
||||||
|
echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might"
|
||||||
|
echo "want to install GNU make:"
|
||||||
|
echo "<$gnu_software_URL/make/>"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "You might have modified some files without having the proper"
|
||||||
|
echo "tools for further handling them. Check the 'README' file, it"
|
||||||
|
echo "often tells you about the needed prerequisites for installing"
|
||||||
|
echo "this package. You may also peek at any GNU archive site, in"
|
||||||
|
echo "case some other package contains this missing '$1' program."
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
tar)
|
give_advice "$1" | sed -e '1s/^/WARNING: /' \
|
||||||
if test -n "$run"; then
|
-e '2,$s/^/ /' >&2
|
||||||
echo 1>&2 "ERROR: \`tar' requires --run"
|
|
||||||
exit 1
|
|
||||||
elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
|
|
||||||
*)
|
# Propagate the correct exit status (expected to be 127 for a program
|
||||||
if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
|
# not found, 63 for a program that failed due to version mismatch).
|
||||||
# We have it, but it failed.
|
exit $st
|
||||||
exit 1
|
|
||||||
elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
|
|
||||||
# Could not run --version or --help. This is probably someone
|
|
||||||
# running `$TOOL --version' or `$TOOL --help' to check whether
|
|
||||||
# $TOOL exists and not knowing $TOOL uses missing.
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# If it does not exist, or fails to run (possibly an outdated version),
|
|
||||||
# try to emulate it.
|
|
||||||
case "$1" in
|
|
||||||
aclocal*)
|
|
||||||
echo 1>&2 "\
|
|
||||||
WARNING: \`$1' is $msg. 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 $msg. 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 $msg. 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 $msg. You should only need it if
|
|
||||||
you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
|
|
||||||
You might want to install the \`Automake' and \`Perl' packages.
|
|
||||||
Grab them from any GNU archive site."
|
|
||||||
find . -type f -name Makefile.am -print |
|
|
||||||
sed 's/\.am$/.in/' |
|
|
||||||
while read f; do touch "$f"; done
|
|
||||||
;;
|
|
||||||
|
|
||||||
autom4te)
|
|
||||||
echo 1>&2 "\
|
|
||||||
WARNING: \`$1' is needed, but is $msg.
|
|
||||||
You might have modified some files without having the
|
|
||||||
proper tools for further handling them.
|
|
||||||
You can get \`$1' as part of \`Autoconf' from any GNU
|
|
||||||
archive site."
|
|
||||||
|
|
||||||
file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
|
|
||||||
test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
|
|
||||||
if test -f "$file"; then
|
|
||||||
touch $file
|
|
||||||
else
|
|
||||||
test -z "$file" || exec >$file
|
|
||||||
echo "#! /bin/sh"
|
|
||||||
echo "# Created by GNU Automake missing as a replacement of"
|
|
||||||
echo "# $ $@"
|
|
||||||
echo "exit 0"
|
|
||||||
chmod +x $file
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
|
|
||||||
bison|yacc)
|
|
||||||
echo 1>&2 "\
|
|
||||||
WARNING: \`$1' $msg. 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 $msg. You should only need it if
|
|
||||||
you modified a \`.l' file. You may need the \`Flex' package
|
|
||||||
in order for those modifications to take effect. You can get
|
|
||||||
\`Flex' from any GNU archive site."
|
|
||||||
rm -f lex.yy.c
|
|
||||||
if [ $# -ne 1 ]; then
|
|
||||||
eval LASTARG="\${$#}"
|
|
||||||
case "$LASTARG" in
|
|
||||||
*.l)
|
|
||||||
SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
|
|
||||||
if [ -f "$SRCFILE" ]; then
|
|
||||||
cp "$SRCFILE" lex.yy.c
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
if [ ! -f lex.yy.c ]; then
|
|
||||||
echo 'main() { return 0; }' >lex.yy.c
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
|
|
||||||
help2man)
|
|
||||||
echo 1>&2 "\
|
|
||||||
WARNING: \`$1' is $msg. You should only need it if
|
|
||||||
you modified a dependency of a manual page. You may need the
|
|
||||||
\`Help2man' package in order for those modifications to take
|
|
||||||
effect. You can get \`Help2man' from any GNU archive site."
|
|
||||||
|
|
||||||
file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
|
|
||||||
if test -z "$file"; then
|
|
||||||
file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
|
|
||||||
fi
|
|
||||||
if [ -f "$file" ]; then
|
|
||||||
touch $file
|
|
||||||
else
|
|
||||||
test -z "$file" || exec >$file
|
|
||||||
echo ".ab help2man is required to generate this page"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
|
|
||||||
makeinfo)
|
|
||||||
echo 1>&2 "\
|
|
||||||
WARNING: \`$1' is $msg. 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."
|
|
||||||
# The file to touch is that specified with -o ...
|
|
||||||
file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
|
|
||||||
if test -z "$file"; then
|
|
||||||
# ... or it is the one specified with @setfilename ...
|
|
||||||
infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
|
|
||||||
file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile`
|
|
||||||
# ... or it is derived from the source name (dir/f.texi becomes f.info)
|
|
||||||
test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
|
|
||||||
fi
|
|
||||||
# If the file does not exist, the user really needs makeinfo;
|
|
||||||
# let's fail without touching anything.
|
|
||||||
test -f $file || exit 1
|
|
||||||
touch $file
|
|
||||||
;;
|
|
||||||
|
|
||||||
tar)
|
|
||||||
shift
|
|
||||||
|
|
||||||
# We have already tried tar in the generic part.
|
|
||||||
# Look for gnutar/gtar before invocation to avoid ugly error
|
|
||||||
# messages.
|
|
||||||
if (gnutar --version > /dev/null 2>&1); then
|
|
||||||
gnutar "$@" && exit 0
|
|
||||||
fi
|
|
||||||
if (gtar --version > /dev/null 2>&1); then
|
|
||||||
gtar "$@" && exit 0
|
|
||||||
fi
|
|
||||||
firstarg="$1"
|
|
||||||
if shift; then
|
|
||||||
case "$firstarg" in
|
|
||||||
*o*)
|
|
||||||
firstarg=`echo "$firstarg" | sed s/o//`
|
|
||||||
tar "$firstarg" "$@" && exit 0
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
case "$firstarg" in
|
|
||||||
*h*)
|
|
||||||
firstarg=`echo "$firstarg" | sed s/h//`
|
|
||||||
tar "$firstarg" "$@" && exit 0
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo 1>&2 "\
|
|
||||||
WARNING: I can't seem to be able to run \`tar' with the given arguments.
|
|
||||||
You may want to install GNU tar or Free paxutils, or check the
|
|
||||||
command line arguments."
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
|
|
||||||
*)
|
|
||||||
echo 1>&2 "\
|
|
||||||
WARNING: \`$1' is needed, and is $msg.
|
|
||||||
You might have modified some files without having the
|
|
||||||
proper tools for further handling them. Check the \`README' file,
|
|
||||||
it often tells you about the needed prerequisites for installing
|
|
||||||
this package. You may also peek at any GNU archive site, in case
|
|
||||||
some other package would contain this missing \`$1' program."
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
exit 0
|
|
||||||
|
|
||||||
# Local variables:
|
# Local variables:
|
||||||
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||||
# time-stamp-start: "scriptversion="
|
# time-stamp-start: "scriptversion="
|
||||||
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||||
# time-stamp-end: "$"
|
# time-stamp-time-zone: "UTC"
|
||||||
|
# time-stamp-end: "; # UTC"
|
||||||
# End:
|
# End:
|
||||||
|
|
32
rgb/rgb.c
32
rgb/rgb.c
|
@ -1,5 +1,3 @@
|
||||||
/* $Xorg: rgb.c,v 1.4 2001/02/09 02:05:35 xorgcvs Exp $ */
|
|
||||||
/* $XdotOrg: app/rgb/rgb.c,v 1.4 2005/11/08 06:33:31 jkj Exp $ */
|
|
||||||
/*
|
/*
|
||||||
|
|
||||||
Copyright 1985, 1998 The Open Group
|
Copyright 1985, 1998 The Open Group
|
||||||
|
@ -27,7 +25,6 @@ other dealings in this Software without prior written authorization
|
||||||
from The Open Group.
|
from The Open Group.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
/* $XFree86: xc/programs/rgb/rgb.c,v 3.8tsi Exp $ */
|
|
||||||
|
|
||||||
|
|
||||||
/* reads from standard input lines of the form:
|
/* reads from standard input lines of the form:
|
||||||
|
@ -39,14 +36,8 @@ from The Open Group.
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef NDBM
|
#include DBM_HEADER
|
||||||
#include <ndbm.h>
|
#ifndef NDBM
|
||||||
#else
|
|
||||||
#if defined(SVR4)
|
|
||||||
#include <rpcsvc/dbm.h>
|
|
||||||
#else
|
|
||||||
#include <dbm.h>
|
|
||||||
#endif
|
|
||||||
#define dbm_open(name,flags,mode) (!dbminit(name))
|
#define dbm_open(name,flags,mode) (!dbminit(name))
|
||||||
#define dbm_store(db,key,content,flags) (store(key,content))
|
#define dbm_store(db,key,content,flags) (store(key,content))
|
||||||
#define dbm_close(db) dbmclose()
|
#define dbm_close(db) dbmclose()
|
||||||
|
@ -57,23 +48,14 @@ from The Open Group.
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <X11/Xos.h>
|
#include <X11/Xos.h>
|
||||||
#include "rgb.h"
|
#include "rgb.h"
|
||||||
#include "site.h"
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
char *ProgramName;
|
static char *ProgramName;
|
||||||
|
|
||||||
char *SysError ()
|
|
||||||
{
|
|
||||||
register char *s = strerror(errno);
|
|
||||||
return s ? s : "?";
|
|
||||||
}
|
|
||||||
|
|
||||||
int
|
int
|
||||||
main(argc, argv)
|
main(int argc, char **argv)
|
||||||
int argc;
|
|
||||||
char **argv;
|
|
||||||
{
|
{
|
||||||
char *dbname;
|
char *dbname;
|
||||||
char line[512];
|
char line[512];
|
||||||
|
@ -98,8 +80,7 @@ main(argc, argv)
|
||||||
else
|
else
|
||||||
dbname = RGB_DB;
|
dbname = RGB_DB;
|
||||||
|
|
||||||
strcpy (name, dbname);
|
snprintf (name, sizeof(name), "%s.dir", dbname);
|
||||||
strcat (name, ".dir");
|
|
||||||
fd = open (name, O_WRONLY|O_CREAT, 0666);
|
fd = open (name, O_WRONLY|O_CREAT, 0666);
|
||||||
if (fd < 0) {
|
if (fd < 0) {
|
||||||
fprintf (stderr,
|
fprintf (stderr,
|
||||||
|
@ -109,8 +90,7 @@ main(argc, argv)
|
||||||
}
|
}
|
||||||
(void) close (fd);
|
(void) close (fd);
|
||||||
|
|
||||||
strcpy (name, dbname);
|
snprintf (name, sizeof(name), "%s.pag", dbname);
|
||||||
strcat (name, ".pag");
|
|
||||||
fd = open (name, O_WRONLY|O_CREAT, 0666);
|
fd = open (name, O_WRONLY|O_CREAT, 0666);
|
||||||
if (fd < 0) {
|
if (fd < 0) {
|
||||||
fprintf (stderr,
|
fprintf (stderr,
|
||||||
|
|
31
rgb/rgb.txt
31
rgb/rgb.txt
|
@ -1,4 +1,3 @@
|
||||||
! $Xorg: rgb.txt,v 1.3 2000/08/17 19:54:00 cpqbld Exp $
|
|
||||||
255 250 250 snow
|
255 250 250 snow
|
||||||
248 248 255 ghost white
|
248 248 255 ghost white
|
||||||
248 248 255 GhostWhite
|
248 248 255 GhostWhite
|
||||||
|
@ -58,6 +57,14 @@
|
||||||
119 136 153 LightSlateGrey
|
119 136 153 LightSlateGrey
|
||||||
190 190 190 gray
|
190 190 190 gray
|
||||||
190 190 190 grey
|
190 190 190 grey
|
||||||
|
190 190 190 x11 gray
|
||||||
|
190 190 190 X11Gray
|
||||||
|
190 190 190 x11 grey
|
||||||
|
190 190 190 X11Grey
|
||||||
|
128 128 128 web gray
|
||||||
|
128 128 128 WebGray
|
||||||
|
128 128 128 web grey
|
||||||
|
128 128 128 WebGrey
|
||||||
211 211 211 light grey
|
211 211 211 light grey
|
||||||
211 211 211 LightGrey
|
211 211 211 LightGrey
|
||||||
211 211 211 light gray
|
211 211 211 light gray
|
||||||
|
@ -106,6 +113,7 @@
|
||||||
72 209 204 MediumTurquoise
|
72 209 204 MediumTurquoise
|
||||||
64 224 208 turquoise
|
64 224 208 turquoise
|
||||||
0 255 255 cyan
|
0 255 255 cyan
|
||||||
|
0 255 255 aqua
|
||||||
224 255 255 light cyan
|
224 255 255 light cyan
|
||||||
224 255 255 LightCyan
|
224 255 255 LightCyan
|
||||||
95 158 160 cadet blue
|
95 158 160 cadet blue
|
||||||
|
@ -132,6 +140,11 @@
|
||||||
124 252 0 lawn green
|
124 252 0 lawn green
|
||||||
124 252 0 LawnGreen
|
124 252 0 LawnGreen
|
||||||
0 255 0 green
|
0 255 0 green
|
||||||
|
0 255 0 lime
|
||||||
|
0 255 0 x11 green
|
||||||
|
0 255 0 X11Green
|
||||||
|
0 128 0 web green
|
||||||
|
0 128 0 WebGreen
|
||||||
127 255 0 chartreuse
|
127 255 0 chartreuse
|
||||||
0 250 154 medium spring green
|
0 250 154 medium spring green
|
||||||
0 250 154 MediumSpringGreen
|
0 250 154 MediumSpringGreen
|
||||||
|
@ -203,11 +216,16 @@
|
||||||
219 112 147 pale violet red
|
219 112 147 pale violet red
|
||||||
219 112 147 PaleVioletRed
|
219 112 147 PaleVioletRed
|
||||||
176 48 96 maroon
|
176 48 96 maroon
|
||||||
|
176 48 96 x11 maroon
|
||||||
|
176 48 96 X11Maroon
|
||||||
|
128 0 0 web maroon
|
||||||
|
128 0 0 WebMaroon
|
||||||
199 21 133 medium violet red
|
199 21 133 medium violet red
|
||||||
199 21 133 MediumVioletRed
|
199 21 133 MediumVioletRed
|
||||||
208 32 144 violet red
|
208 32 144 violet red
|
||||||
208 32 144 VioletRed
|
208 32 144 VioletRed
|
||||||
255 0 255 magenta
|
255 0 255 magenta
|
||||||
|
255 0 255 fuchsia
|
||||||
238 130 238 violet
|
238 130 238 violet
|
||||||
221 160 221 plum
|
221 160 221 plum
|
||||||
218 112 214 orchid
|
218 112 214 orchid
|
||||||
|
@ -220,6 +238,10 @@
|
||||||
138 43 226 blue violet
|
138 43 226 blue violet
|
||||||
138 43 226 BlueViolet
|
138 43 226 BlueViolet
|
||||||
160 32 240 purple
|
160 32 240 purple
|
||||||
|
160 32 240 x11 purple
|
||||||
|
160 32 240 X11Purple
|
||||||
|
128 0 128 web purple
|
||||||
|
128 0 128 WebPurple
|
||||||
147 112 219 medium purple
|
147 112 219 medium purple
|
||||||
147 112 219 MediumPurple
|
147 112 219 MediumPurple
|
||||||
216 191 216 thistle
|
216 191 216 thistle
|
||||||
|
@ -751,3 +773,10 @@
|
||||||
139 0 0 DarkRed
|
139 0 0 DarkRed
|
||||||
144 238 144 light green
|
144 238 144 light green
|
||||||
144 238 144 LightGreen
|
144 238 144 LightGreen
|
||||||
|
220 20 60 crimson
|
||||||
|
75 0 130 indigo
|
||||||
|
128 128 0 olive
|
||||||
|
102 51 153 rebecca purple
|
||||||
|
102 51 153 RebeccaPurple
|
||||||
|
192 192 192 silver
|
||||||
|
0 128 128 teal
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* $Xorg: showrgb.c,v 1.4 2001/02/09 02:05:35 xorgcvs Exp $
|
|
||||||
* $XdotOrg: app/rgb/showrgb.c,v 1.5 2005/11/08 06:33:31 jkj Exp $
|
|
||||||
*
|
*
|
||||||
Copyright 1989, 1998 The Open Group
|
Copyright 1989, 1998 The Open Group
|
||||||
|
|
||||||
|
@ -27,21 +25,13 @@ in this Software without prior written authorization from The Open Group.
|
||||||
* Author: Jim Fulton, MIT X Consortium
|
* Author: Jim Fulton, MIT X Consortium
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $XFree86: xc/programs/rgb/showrgb.c,v 3.8 2001/12/14 20:01:04 dawes Exp $ */
|
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef USE_RGB_TXT
|
#ifndef USE_RGB_TXT
|
||||||
#ifdef NDBM
|
#include DBM_HEADER
|
||||||
#include <ndbm.h>
|
#ifndef NDBM
|
||||||
#else
|
|
||||||
#if defined(SVR4)
|
|
||||||
#include <rpcsvc/dbm.h>
|
|
||||||
#else
|
|
||||||
#include <dbm.h>
|
|
||||||
#endif
|
|
||||||
#define dbm_open(name,flags,mode) (!dbminit(name))
|
#define dbm_open(name,flags,mode) (!dbminit(name))
|
||||||
#define dbm_firstkey(db) (firstkey())
|
#define dbm_firstkey(db) (firstkey())
|
||||||
#define dbm_fetch(db,key) (fetch(key))
|
#define dbm_fetch(db,key) (fetch(key))
|
||||||
|
@ -55,17 +45,16 @@ in this Software without prior written authorization from The Open Group.
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#ifndef USE_RGB_TXT
|
#ifndef USE_RGB_TXT
|
||||||
#include "rgb.h" /* off in server/include/ */
|
#include "rgb.h" /* off in server/include/ */
|
||||||
#include "site.h"
|
|
||||||
#endif
|
#endif
|
||||||
#include <X11/Xfuncs.h>
|
#include <X11/Xfuncs.h>
|
||||||
|
|
||||||
char *ProgramName;
|
static char *ProgramName;
|
||||||
static void dumprgb(char *filename);
|
static void dumprgb(const char *filename);
|
||||||
|
|
||||||
int
|
int
|
||||||
main (int argc, char *argv[])
|
main (int argc, char *argv[])
|
||||||
{
|
{
|
||||||
char *dbname = RGB_DB;
|
const char *dbname = RGB_DB;
|
||||||
|
|
||||||
ProgramName = argv[0];
|
ProgramName = argv[0];
|
||||||
if (argc == 2)
|
if (argc == 2)
|
||||||
|
@ -77,8 +66,7 @@ main (int argc, char *argv[])
|
||||||
|
|
||||||
#ifndef USE_RGB_TXT
|
#ifndef USE_RGB_TXT
|
||||||
static void
|
static void
|
||||||
dumprgb (filename)
|
dumprgb (const char *filename)
|
||||||
char *filename;
|
|
||||||
{
|
{
|
||||||
#ifdef NDBM
|
#ifdef NDBM
|
||||||
DBM *rgb_dbm;
|
DBM *rgb_dbm;
|
||||||
|
@ -127,8 +115,7 @@ dumprgb (filename)
|
||||||
|
|
||||||
#else /* USE_RGB_TXT */
|
#else /* USE_RGB_TXT */
|
||||||
static void
|
static void
|
||||||
dumprgb (filename)
|
dumprgb (const char *filename)
|
||||||
char *filename;
|
|
||||||
{
|
{
|
||||||
FILE *rgb;
|
FILE *rgb;
|
||||||
char *path;
|
char *path;
|
||||||
|
@ -137,18 +124,18 @@ dumprgb (filename)
|
||||||
int lineno = 0;
|
int lineno = 0;
|
||||||
int red, green, blue;
|
int red, green, blue;
|
||||||
|
|
||||||
#ifdef __UNIXOS2__
|
#ifdef HAVE_ASPRINTF
|
||||||
char *root = (char*)getenv("X11ROOT");
|
if (asprintf(&path, "%s.txt", filename) == -1) {
|
||||||
sprintf(line,"%s%s.txt",root,filename);
|
perror (ProgramName);
|
||||||
path = (char *)malloc(strlen(line) + 1);
|
exit (1);
|
||||||
strcpy(path,line);
|
}
|
||||||
#else
|
#else
|
||||||
path = (char *)malloc(strlen(filename) + 5);
|
path = (char *)malloc(strlen(filename) + 5);
|
||||||
strcpy(path, filename);
|
strcpy(path, filename);
|
||||||
strcat(path, ".txt");
|
strcat(path, ".txt");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!(rgb = fopen(path, "r"))) {
|
if (!(rgb = fopen(path, "r")) && !(rgb = fopen(filename, "r"))) {
|
||||||
fprintf (stderr, "%s: unable to open rgb database \"%s\"\n",
|
fprintf (stderr, "%s: unable to open rgb database \"%s\"\n",
|
||||||
ProgramName, filename);
|
ProgramName, filename);
|
||||||
free(path);
|
free(path);
|
||||||
|
@ -157,11 +144,7 @@ dumprgb (filename)
|
||||||
|
|
||||||
while(fgets(line, sizeof(line), rgb)) {
|
while(fgets(line, sizeof(line), rgb)) {
|
||||||
lineno++;
|
lineno++;
|
||||||
#ifndef __UNIXOS2__
|
|
||||||
if (sscanf(line, "%d %d %d %[^\n]\n", &red, &green, &blue, name) == 4) {
|
if (sscanf(line, "%d %d %d %[^\n]\n", &red, &green, &blue, name) == 4) {
|
||||||
#else
|
|
||||||
if (sscanf(line, "%d %d %d %[^\n\r]\n", &red, &green, &blue, name) == 4) {
|
|
||||||
#endif
|
|
||||||
if (red >= 0 && red <= 0xff &&
|
if (red >= 0 && red <= 0xff &&
|
||||||
green >= 0 && green <= 0xff &&
|
green >= 0 && green <= 0xff &&
|
||||||
blue >= 0 && blue <= 0xff) {
|
blue >= 0 && blue <= 0xff) {
|
||||||
|
|
|
@ -21,3 +21,24 @@ Except as contained in this notice, the name of The Open Group shall
|
||||||
not be used in advertising or otherwise to promote the sale, use or
|
not be used in advertising or otherwise to promote the sale, use or
|
||||||
other dealings in this Software without prior written authorization
|
other dealings in this Software without prior written authorization
|
||||||
from The Open Group.
|
from The Open Group.
|
||||||
|
|
||||||
|
Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
|
||||||
|
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 (including the next
|
||||||
|
paragraph) 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 AUTHORS OR COPYRIGHT HOLDERS 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.
|
||||||
|
|
|
@ -1,3 +1,760 @@
|
||||||
|
commit 3a91ab7d228f4c1a28970e447cff7d1a960db2fe
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Sun Jun 9 11:39:22 2019 -0700
|
||||||
|
|
||||||
|
sessreg 1.1.2
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit 600d183bf6f6967b53a3f2a0e31e8d90a5c13f18
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Sun Jun 9 11:08:08 2019 -0700
|
||||||
|
|
||||||
|
Add comment about why safe_strncpy isn't replaced with strlcpy
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit 5b403d124c32c20fddc73bc5ae3c7e1febdf1bc4
|
||||||
|
Author: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||||
|
Date: Fri May 3 07:48:06 2019 +0200
|
||||||
|
|
||||||
|
Fix missing defines _PATH_WTMPX/_PATH_UTMPX in musl
|
||||||
|
|
||||||
|
Downloaded from
|
||||||
|
https://cgit.gentoo.org/proj/musl.git/tree/x11-apps/sessreg/files/sessreg-1.1.0-missing_path_wtmpx.patch
|
||||||
|
|
||||||
|
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
||||||
|
[Retrieved from:
|
||||||
|
https://git.buildroot.net/buildroot/tree/package/x11r7/xapp_sessreg/0001-missing_path_wtmpx.patch]
|
||||||
|
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||||
|
|
||||||
|
commit fd3c8491d9dbe20bab67dfc19ebcfe763e9a01d8
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Wed Nov 21 16:56:46 2018 -0800
|
||||||
|
|
||||||
|
Update configure.ac bug URL for gitlab migration
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit 8c8e2321127d54e2729d4dc2cd08e8f34c35071e
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Fri Nov 16 20:44:21 2018 -0800
|
||||||
|
|
||||||
|
Update README for gitlab migration
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit 653dc1e61cd9d4d4921158a2c5dec49962bb9f0a
|
||||||
|
Author: Peter Hutterer <peter.hutterer@who-t.net>
|
||||||
|
Date: Wed Sep 12 14:46:05 2018 +1000
|
||||||
|
|
||||||
|
Replace strncpy calls with a sane version that always terminates
|
||||||
|
|
||||||
|
Fixes coverity complaints about potentially unterminated strings
|
||||||
|
|
||||||
|
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
||||||
|
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit 5457109783ee82599aeb6c6a690cc921a881d6bf
|
||||||
|
Author: Matt Turner <mattst88@gmail.com>
|
||||||
|
Date: Mon Feb 27 18:25:03 2017 -0800
|
||||||
|
|
||||||
|
sessreg 1.1.1
|
||||||
|
|
||||||
|
Signed-off-by: Matt Turner <mattst88@gmail.com>
|
||||||
|
|
||||||
|
commit 77befa7b9af5c69d1b715cba925f6e1e5e62ce68
|
||||||
|
Author: Mihail Konev <k.mvc@ya.ru>
|
||||||
|
Date: Thu Jan 26 14:00:20 2017 +1000
|
||||||
|
|
||||||
|
autogen: add default patch prefix
|
||||||
|
|
||||||
|
Signed-off-by: Mihail Konev <k.mvc@ya.ru>
|
||||||
|
|
||||||
|
commit 7ebff8dedf3a0d67c475a1e216a0fb056e053c4e
|
||||||
|
Author: Emil Velikov <emil.l.velikov@gmail.com>
|
||||||
|
Date: Mon Mar 9 12:00:52 2015 +0000
|
||||||
|
|
||||||
|
autogen.sh: use quoted string variables
|
||||||
|
|
||||||
|
Place quotes around the $srcdir, $ORIGDIR and $0 variables to prevent
|
||||||
|
fall-outs, when they contain space.
|
||||||
|
|
||||||
|
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
|
||||||
|
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
|
||||||
|
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
||||||
|
|
||||||
|
commit 37d8e5a28003e26b39e0fa6322acf8bcb8ca1823
|
||||||
|
Author: Peter Hutterer <peter.hutterer@who-t.net>
|
||||||
|
Date: Tue Jan 24 10:32:07 2017 +1000
|
||||||
|
|
||||||
|
autogen.sh: use exec instead of waiting for configure to finish
|
||||||
|
|
||||||
|
Syncs the invocation of configure with the one from the server.
|
||||||
|
|
||||||
|
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
||||||
|
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
|
||||||
|
|
||||||
|
commit eb41dc747ec4b0b4c40d6482081a0c7782dca8d9
|
||||||
|
Author: Egbert Eich <eich@suse.de>
|
||||||
|
Date: Sun May 29 23:56:29 2016 +0200
|
||||||
|
|
||||||
|
Use off_t instead of long to make largefile support work
|
||||||
|
|
||||||
|
We already use the macro AC_SYS_LARGEFILE in configure.ac. This will only
|
||||||
|
work properly if the correct types are used as well: replace long by off_t
|
||||||
|
when calculating file offsets - which makes a difference on 32-bit systems.
|
||||||
|
|
||||||
|
http://bugzilla.opensuse.org/show_bug.cgi?id=981522
|
||||||
|
|
||||||
|
Signed-off-by: Egbert Eich <eich@suse.de>
|
||||||
|
Found-by: Herbert Kütz <herbert.kuetz@ofd-z.niedersachsen.de>
|
||||||
|
Reviewed-by: Stefan Dirsch <sndirsch@suse.de>
|
||||||
|
|
||||||
|
commit 93f5d5abf6b214a4b36e00cd09174d24b2ed0a6d
|
||||||
|
Author: Stefan Dirsch <sndirsch@suse.de>
|
||||||
|
Date: Wed Sep 9 23:44:06 2015 +0200
|
||||||
|
|
||||||
|
Pass -P to the preprocessor when generating filenames for the manpage.
|
||||||
|
|
||||||
|
Fixes build with GCC 5. Patch by Richard Biener <rguenther@suse.com>
|
||||||
|
|
||||||
|
Tested-by: Matt Turner <mattst88@gmail.com>
|
||||||
|
Signed-off-by: Matt Turner <mattst88@gmail.com>
|
||||||
|
|
||||||
|
commit 0f904e33d53b0102e53685184bb59005be40fcf7
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Mon Jan 19 21:00:17 2015 -0800
|
||||||
|
|
||||||
|
sessreg 1.1.0
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit 53ad5afe30a75c27604648912c57e5beeb77cca7
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Fri Nov 14 15:22:25 2014 -0800
|
||||||
|
|
||||||
|
Include utmp.h if present, even if we're using utmpx interfaces
|
||||||
|
|
||||||
|
For platforms which require type or structure definitions from utmp.h
|
||||||
|
when using lastlog or utmpx/wtmpx interfaces.
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit 8fb21bdf15185e18e44b5dab6740720a50b9f0c9
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Tue Nov 4 18:32:07 2014 -0800
|
||||||
|
|
||||||
|
Attempt to modernize and better disentangle utmp vs. utmpx in the man page
|
||||||
|
|
||||||
|
Also reduces the number of references to BSD vs. System V differences
|
||||||
|
from the early 90's which are no longer relevant today.
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit e9d23df81ae6e5beb79237cb13b555ed689b1a76
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Tue Nov 4 16:31:31 2014 -0800
|
||||||
|
|
||||||
|
Stop disabling utmpx & wtmpx calls when -u & -w arguments are passed
|
||||||
|
|
||||||
|
The handling of the -u & -w flags would only set utmp_file & wtmp_file,
|
||||||
|
leaving utmpx_file & wtmpx_file set to NULL, disabling the calls to the
|
||||||
|
code to update those files.
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit 929b2f60c36b80b7a8e6237d5e8ccc981a3a1e0d
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Tue Nov 4 16:27:57 2014 -0800
|
||||||
|
|
||||||
|
If both utmp & utmpx interfaces are available, just use utmpx
|
||||||
|
|
||||||
|
As we already do with wtmp & wtmpx, where only one of the interface sets
|
||||||
|
is compiled in at a time, stop building & potentially calling both the
|
||||||
|
utmp & utmpx interfaces, which could lead to confusion and corruption,
|
||||||
|
especially when xdm passed -u /.../utmpx and sessreg wrote utmp format
|
||||||
|
records to the file instead.
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit 0a234ecc502b3e08d8f81d51fb724d97e8045504
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Mon Nov 3 20:04:31 2014 -0800
|
||||||
|
|
||||||
|
Zero initialize struct utmpx, as we already do for struct utmp
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit 1dacc4b5554f794f8219356a0d2bd2dc6a499160
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Mon Nov 3 18:57:20 2014 -0800
|
||||||
|
|
||||||
|
Print which option was in error along with usage message
|
||||||
|
|
||||||
|
In the process, try to make the code a little less painful to read.
|
||||||
|
Still, no love to whomever came up with (*++*a) style coding.
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit e73a94da99c25dc705be814fb18c306e9301a135
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Mon Jun 2 21:14:21 2014 -0700
|
||||||
|
|
||||||
|
autogen.sh: Honor NOCONFIGURE=1
|
||||||
|
|
||||||
|
See http://people.gnome.org/~walters/docs/build-api.txt
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit 5f54e23a2adf7342c50a0d910760698b95fd2b97
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Mon Jun 2 21:14:21 2014 -0700
|
||||||
|
|
||||||
|
configure: Drop AM_MAINTAINER_MODE
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit 1d9c8df5bea05c2c4923fd985ce274104b42efeb
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Sun Feb 10 18:43:41 2013 -0800
|
||||||
|
|
||||||
|
sessreg 1.0.8
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit ec158dea0bdc8bf4767fe048056178a823a2033b
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Sat Jan 19 16:37:00 2013 -0800
|
||||||
|
|
||||||
|
Add -V option to print version number
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit 64db372b4988e4862acb328492b7bbe14851ebe0
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Sat Jan 19 16:32:15 2013 -0800
|
||||||
|
|
||||||
|
Combine usage message into a single string
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit 64e773800f70a4e9ebc0e606150beaff9b839fd9
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Sun Dec 16 12:46:50 2012 -0800
|
||||||
|
|
||||||
|
Fix some clang warnings about implicit conversions
|
||||||
|
|
||||||
|
sessreg.c:360:43: warning: implicit conversion changes signedness:
|
||||||
|
'unsigned long' to 'off_t' (aka 'long') [-Wsign-conversion]
|
||||||
|
sysnerr (lseek(llog, (long) pwd->pw_uid*sizeof(ll), 0)
|
||||||
|
~~~~~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
|
||||||
|
sessreg.c:360:25: warning: implicit conversion changes signedness: 'long' to
|
||||||
|
'unsigned long' [-Wsign-conversion]
|
||||||
|
sysnerr (lseek(llog, (long) pwd->pw_uid*sizeof(ll), 0)
|
||||||
|
^~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
sessreg.c:405:7: warning: implicit conversion loses integer precision: 'size_t'
|
||||||
|
(aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
|
||||||
|
i = strlen (line);
|
||||||
|
~ ^~~~~~~~~~~~~
|
||||||
|
sessreg.c:406:9: warning: comparison of integers of different signs: 'int' and
|
||||||
|
'unsigned long' [-Wsign-compare]
|
||||||
|
if (i >= sizeof (u->ut_id))
|
||||||
|
~ ^ ~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
sessreg.c:494:7: warning: implicit conversion loses integer precision: 'size_t'
|
||||||
|
(aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
|
||||||
|
i = strlen (line);
|
||||||
|
~ ^~~~~~~~~~~~~
|
||||||
|
sessreg.c:495:9: warning: comparison of integers of different signs: 'int' and
|
||||||
|
'unsigned long' [-Wsign-compare]
|
||||||
|
if (i >= sizeof (u->ut_id))
|
||||||
|
~ ^ ~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit 88bf1500095d7aaea9689a6d0367d6ff5c868292
|
||||||
|
Author: Ed Schouten <ed@80386.nl>
|
||||||
|
Date: Sat Sep 15 20:27:57 2012 +0200
|
||||||
|
|
||||||
|
Remove dubious code.
|
||||||
|
|
||||||
|
The NO_UTMP definition is set on non-FreeBSD, non-OpenBSD, BSD-based
|
||||||
|
systems. When looking at the commonly used BSD-based operating systems,
|
||||||
|
they either use utmpx, or I can't think of a reason why the utmp code
|
||||||
|
wouldn't work.
|
||||||
|
|
||||||
|
If it turns out some obscure operating system breaks because of this
|
||||||
|
change, we should replace this by something more accurate, such as an
|
||||||
|
Autoconf check or an #ifdef specific to that operating system.
|
||||||
|
|
||||||
|
Signed-off-by: Ed Schouten <ed@80386.nl>
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit d6570f5188ac8b223a2ae8d1ef596f313938acca
|
||||||
|
Author: Ed Schouten <ed@80386.nl>
|
||||||
|
Date: Sat Sep 15 20:26:57 2012 +0200
|
||||||
|
|
||||||
|
Make the `line' variable local to main().
|
||||||
|
|
||||||
|
It is only used within main(). This prevents a compilation failure when
|
||||||
|
building with -Wshadow.
|
||||||
|
|
||||||
|
Signed-off-by: Ed Schouten <ed@80386.nl>
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit 8963bc3df6d3e9627c82171c3c931616f27fd528
|
||||||
|
Author: Ed Schouten <ed@80386.nl>
|
||||||
|
Date: Sat Sep 15 20:11:20 2012 +0200
|
||||||
|
|
||||||
|
Place NetBSD specific #defines in the proper place.
|
||||||
|
|
||||||
|
For all the other databases (utmp, wtmp, lastlog) we already do it in
|
||||||
|
sessreg.h. There's no reason why we should place the utmpx specific ones
|
||||||
|
in sessreg.c.
|
||||||
|
|
||||||
|
Signed-off-by: Ed Schouten <ed@80386.nl>
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit 1d609a5daa3fa1553111076561a1f800e462156d
|
||||||
|
Author: Thomas Klausner <tk@giga.or.at>
|
||||||
|
Date: Fri Jun 15 11:36:07 2012 +0200
|
||||||
|
|
||||||
|
Fix compilation on NetBSD - undefined *TMPX paths
|
||||||
|
|
||||||
|
Make sure file name defines exist on NetBSD.
|
||||||
|
https://bugs.freedesktop.org/show_bug.cgi?id=50940
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit 7ac51a652bfb8423604bb1a120568d44516c9de9
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Fri Oct 21 21:09:43 2011 -0700
|
||||||
|
|
||||||
|
sessreg 1.0.7
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit fbe6fa7019309672c311184dd3bce3c25fb578d3
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Mon Sep 26 16:01:40 2011 -0700
|
||||||
|
|
||||||
|
Add const attributes to fix gcc -Wwrite-strings warnings
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit 18d68ce74bd810bc09f99a476798b8e4a66ec494
|
||||||
|
Author: Ed Schouten <ed@80386.nl>
|
||||||
|
Date: Sun Jun 26 14:04:20 2011 +0200
|
||||||
|
|
||||||
|
Make lastlog work on BSD systems without <lastlog.h>.
|
||||||
|
|
||||||
|
FreeBSD 8.x and lower have struct lastlog in <utmp.h>. Add a specific
|
||||||
|
Autoconf check for struct lastlog, where we include both <utmp.h> and
|
||||||
|
<lastlog.h>.
|
||||||
|
|
||||||
|
Also, change NO_LASTLOG to a definition for the opposite; USE_LASTLOG.
|
||||||
|
This is more consistent with USE_UTMP and USE_UTMPX.
|
||||||
|
|
||||||
|
Signed-off-by: Ed Schouten <ed@80386.nl>
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit 9e93c5f65a22824f6b4af7ee68944f2226f7efa7
|
||||||
|
Author: Ed Schouten <ed@80386.nl>
|
||||||
|
Date: Sun Jun 26 13:50:36 2011 +0200
|
||||||
|
|
||||||
|
Simply define LLOG_FILE and TTYS_FILE unconditionally.
|
||||||
|
|
||||||
|
It doesn't matter if we define these pathnames, even if we're not going
|
||||||
|
to use them in the code itself. It is already done that way for utmp and
|
||||||
|
wtmp.
|
||||||
|
|
||||||
|
Signed-off-by: Ed Schouten <ed@80386.nl>
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit 92d2628e3b1db4b0217d91d532e21018371445bc
|
||||||
|
Author: Ed Schouten <ed@80386.nl>
|
||||||
|
Date: Sun Jun 26 10:15:59 2011 +0200
|
||||||
|
|
||||||
|
Fix whitespace inconsistencies.
|
||||||
|
|
||||||
|
Signed-off-by: Ed Schouten <ed@80386.nl>
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit 38dd87854f106f6d7a3c8bd8916b65c0d1a87697
|
||||||
|
Author: Ed Schouten <ed@80386.nl>
|
||||||
|
Date: Sun Jun 26 09:51:01 2011 +0200
|
||||||
|
|
||||||
|
Just use time_t directly.
|
||||||
|
|
||||||
|
There is no use for this #define (anymore). We can already assume that
|
||||||
|
any decent system has time_t defined. It has to, otherwise struct utmp
|
||||||
|
and struct utmpx can't even be defined.
|
||||||
|
|
||||||
|
Signed-off-by: Ed Schouten <ed@80386.nl>
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit 6675a07badfb688aacbd8fd12ba55e16854ba0ab
|
||||||
|
Author: Ed Schouten <ed@80386.nl>
|
||||||
|
Date: Sun Jun 26 09:47:40 2011 +0200
|
||||||
|
|
||||||
|
Only expose the sflag variable when needed.
|
||||||
|
|
||||||
|
The sflag variable is only used when using BSD-style utmp.
|
||||||
|
|
||||||
|
Signed-off-by: Ed Schouten <ed@80386.nl>
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit 6b9a2f7bfa823a3dc0befd039ee08ec1596a3c64
|
||||||
|
Author: Ed Schouten <ed@80386.nl>
|
||||||
|
Date: Sun Jun 26 09:43:37 2011 +0200
|
||||||
|
|
||||||
|
Get rid of SYSV definition. Just check for pututline().
|
||||||
|
|
||||||
|
If the system provides pututline(), we just want to use that, instead of
|
||||||
|
specifically checking for certain operating systems.
|
||||||
|
|
||||||
|
Signed-off-by: Ed Schouten <ed@80386.nl>
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit 578b76086edb834aa447ce9aed60c585e44e6cc1
|
||||||
|
Author: Ed Schouten <ed@80386.nl>
|
||||||
|
Date: Sat Jun 25 10:35:25 2011 +0200
|
||||||
|
|
||||||
|
Don't forget to include <sys/types.h> before <utmp.h>.
|
||||||
|
|
||||||
|
Some operating systems (e.g. FreeBSD) require <sys/types.h> to be
|
||||||
|
included before <utmp.h>, because they depend on type definitions such
|
||||||
|
as int32_t, time_t, etc.
|
||||||
|
|
||||||
|
Signed-off-by: Ed Schouten <ed@80386.nl>
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit dd5d4c9721417a21133bb44a0567a041a166bd5e
|
||||||
|
Author: Ed Schouten <ed@80386.nl>
|
||||||
|
Date: Fri Jun 24 15:52:18 2011 +0200
|
||||||
|
|
||||||
|
Get rid of bzero() calls. Replace them by memset().
|
||||||
|
|
||||||
|
bzero() is not part of POSIX; memset() is.
|
||||||
|
|
||||||
|
Signed-off-by: Ed Schouten <ed@80386.nl>
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit 301cbd433bb698147e05e7dbfb4de2ce2e0e9cbb
|
||||||
|
Author: Ed Schouten <ed@80386.nl>
|
||||||
|
Date: Fri Jun 24 15:46:43 2011 +0200
|
||||||
|
|
||||||
|
Use Autoconf to check for utmp field existence.
|
||||||
|
|
||||||
|
Don't use the quirky SYSV and __QNX__ definitions to determine whether
|
||||||
|
the utmp fields exist.
|
||||||
|
|
||||||
|
Signed-off-by: Ed Schouten <ed@80386.nl>
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit eb6eb771ff9f53c56bd60f28c5598eee9e2fb9b2
|
||||||
|
Author: Ed Schouten <ed@80386.nl>
|
||||||
|
Date: Wed Jun 22 00:36:41 2011 +0200
|
||||||
|
|
||||||
|
Only split off /dev/ instead trimming to last /.
|
||||||
|
|
||||||
|
This prevents pseudo-terminals with names like /dev/pts/0 from getting
|
||||||
|
trimmed to just 0 instead of pts/0.
|
||||||
|
|
||||||
|
Signed-off-by: Ed Schouten <ed@80386.nl>
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit aad7bed11410413b186e0d5af1783686405b47e6
|
||||||
|
Author: Ed Schouten <ed@80386.nl>
|
||||||
|
Date: Wed Jun 22 00:10:17 2011 +0200
|
||||||
|
|
||||||
|
Fix typo in function name check.
|
||||||
|
|
||||||
|
Signed-off-by: Ed Schouten <ed@80386.nl>
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit 1e20098384961230c3652078fed09e77b2ba2808
|
||||||
|
Author: Ed Schouten <ed@80386.nl>
|
||||||
|
Date: Wed Jun 22 00:09:59 2011 +0200
|
||||||
|
|
||||||
|
Correct whitespace and indentation.
|
||||||
|
|
||||||
|
Signed-off-by: Ed Schouten <ed@80386.nl>
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit ba2ea124ff10cadaf1fc96f7e76372b5400e76d1
|
||||||
|
Author: Jon TURNEY <jon.turney@dronecode.org.uk>
|
||||||
|
Date: Mon Mar 14 14:25:22 2011 +0000
|
||||||
|
|
||||||
|
Fix non-srcdir builds
|
||||||
|
|
||||||
|
Commit 3bb9256b8e3a56b94281ea787c07f080c0a80312 introduces an
|
||||||
|
-I.. which should be -I$(top_builddir) -I$(top_srcdir)
|
||||||
|
|
||||||
|
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
|
||||||
|
Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
|
||||||
|
commit 5a886e2fc5f4b3f062a20f66ee68bad4a0b98ad1
|
||||||
|
Author: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
Date: Wed Jan 19 11:20:21 2011 -0500
|
||||||
|
|
||||||
|
config: use AC_CHECK_MEMBERS rather than AC_CHECK_MEMBER
|
||||||
|
|
||||||
|
Let Autoconf do the work of setting up the #define in config.h.
|
||||||
|
Apply and comment standard sections layout.
|
||||||
|
|
||||||
|
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
|
||||||
|
commit 4eaaa6a84a52b7c60df964102f0fb8d860b00308
|
||||||
|
Author: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
Date: Wed Jan 19 10:52:55 2011 -0500
|
||||||
|
|
||||||
|
config: remove AC_CANONICAL_HOST already included by XORG_DEFAULT_OPTIONS
|
||||||
|
|
||||||
|
Fix some quoting and comments, no functional changes.
|
||||||
|
|
||||||
|
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
|
||||||
|
commit 3bb9256b8e3a56b94281ea787c07f080c0a80312
|
||||||
|
Author: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
Date: Wed Jan 19 10:06:55 2011 -0500
|
||||||
|
|
||||||
|
config: move man pages into their own directory
|
||||||
|
|
||||||
|
Use services provided by XORG_MANPAGE_SECTIONS.
|
||||||
|
Use standard Makefile for man pages.
|
||||||
|
|
||||||
|
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
|
||||||
|
commit f9d0aa7ca56c68aee0ba53a9ad9c232c544264b0
|
||||||
|
Author: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
Date: Thu Jan 13 17:15:36 2011 -0500
|
||||||
|
|
||||||
|
man: replace hard coded man page section with substitution strings
|
||||||
|
|
||||||
|
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
|
||||||
|
commit 3ad465bf134560234e75bf421acbe1481bccfde4
|
||||||
|
Author: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
Date: Thu Jan 13 11:15:47 2011 -0500
|
||||||
|
|
||||||
|
man: remove trailing spaces and tabs
|
||||||
|
|
||||||
|
Using s/[ \t]*$//
|
||||||
|
|
||||||
|
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
|
||||||
|
commit d3055b5828d5ffd92134de31c44c3d14f6bd283d
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Wed Nov 10 21:08:09 2010 -0800
|
||||||
|
|
||||||
|
config: Remove unnecessary calls from configure.ac
|
||||||
|
|
||||||
|
AC_PROG_CC & AC_PROG_INSTALL are provided by XORG_DEFAULT_OPTIONS now
|
||||||
|
PKG_CONFIG_MODULES handles AC_SUBST of the CFLAGS & LIBS variables
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit 2d33ed0f648314f661aa5e429834a8f886904f94
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Wed Nov 10 21:06:15 2010 -0800
|
||||||
|
|
||||||
|
config: upgrade to util-macros 1.8 for additional man page support
|
||||||
|
|
||||||
|
Use MAN_SUBST now supplied in XORG_MANPAGE_SECTIONS
|
||||||
|
The value of MAN_SUBST is the same for all X.Org packages.
|
||||||
|
|
||||||
|
Use AC_PROG_SED now supplied by XORG_DEFAULT_OPTIONS
|
||||||
|
Enables use of platform appropriate version of sed.
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit 87666632a0f066cb9df3fb4ae258f89f1edb56cc
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Wed Nov 10 21:03:59 2010 -0800
|
||||||
|
|
||||||
|
Sun's copyrights belong to Oracle now
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit 7f1e17aed0027e4040a1fcc96e6319fca36af233
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
Date: Thu Jun 3 17:32:57 2010 -0700
|
||||||
|
|
||||||
|
sessreg 1.0.6
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||||
|
|
||||||
|
commit 8808c476319fce3e254e3a7df3205ba4205cb13b
|
||||||
|
Author: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
Date: Wed Feb 3 14:12:28 2010 -0500
|
||||||
|
|
||||||
|
Add AC_USE_SYSTEM_EXTENSIONS providing needed WTMPX_FILE define
|
||||||
|
|
||||||
|
The WTMPX_FILE is only defined under __USE_GNU conditional
|
||||||
|
compilation. Autoconf provides AC_USE_SYSTEM_EXTENSIONS
|
||||||
|
to enable platform extensions.
|
||||||
|
|
||||||
|
It must be expanded before any other macros that uses the compiler.
|
||||||
|
To reduce the risk of being misplaced, the statements have been
|
||||||
|
grouped (mostly) as per the GNU standard layout.This macro
|
||||||
|
requires Autoconf level 2.60 or later.
|
||||||
|
|
||||||
|
The compilation failed under a GNU-Linux OS.
|
||||||
|
|
||||||
|
Tested-by (on darwin): Jeremy Huddleston <jeremyhu@apple.com>
|
||||||
|
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
|
||||||
|
commit 9792646873ac0e597cc65ef4a056444fd8f9a7fd
|
||||||
|
Author: Ed Schouten <ed@80386.nl>
|
||||||
|
Date: Sat Jan 16 18:33:53 2010 +0000
|
||||||
|
|
||||||
|
Allow sessreg to be built without <utmp.h>.
|
||||||
|
|
||||||
|
As of 9.0, FreeBSD will only support <utmpx.h>. It only implements the
|
||||||
|
POSIX interface with minor extensions. There is no need to write to
|
||||||
|
wtmp and lastlog separately, because this is already done by
|
||||||
|
pututxline(). Add additional checks to configure.ac to search for the
|
||||||
|
presence of utmpxname() and updwtmpx().
|
||||||
|
|
||||||
|
Signed-off-by: Ed Schouten <ed@80386.nl>
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
||||||
|
|
||||||
|
commit 9ca078f8ffc5ab0c4d0f58be26e885a7ad0b8f39
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@sun.com>
|
||||||
|
Date: Mon Jan 11 21:04:28 2010 -0800
|
||||||
|
|
||||||
|
Update Sun license notices to current X.Org standard form
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
||||||
|
|
||||||
|
commit 1b12b1dac6fcb0d1665f3272a899d78c76fd2969
|
||||||
|
Author: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
Date: Fri Jan 8 13:30:45 2010 -0500
|
||||||
|
|
||||||
|
COPYING: add missing copyright notice
|
||||||
|
|
||||||
|
Refer to sessreg.h file.
|
||||||
|
Copyright 2005 Sun Microsystems, Inc.
|
||||||
|
|
||||||
|
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
||||||
|
|
||||||
|
commit 067fef75045931b4b5766ee7e55300d16e6dcc9a
|
||||||
|
Author: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
Date: Thu Nov 26 09:19:52 2009 -0500
|
||||||
|
|
||||||
|
Makefile.am: add ChangeLog and INSTALL on MAINTAINERCLEANFILES
|
||||||
|
|
||||||
|
Now that the INSTALL file is generated.
|
||||||
|
Allows running make maintainer-clean.
|
||||||
|
|
||||||
|
commit 94be0a4794dd9e9d9e7f23737c6ccd2d50985b5d
|
||||||
|
Author: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
Date: Wed Oct 28 14:09:07 2009 -0400
|
||||||
|
|
||||||
|
INSTALL, NEWS, README or AUTHORS files are missing/incorrect #24206
|
||||||
|
|
||||||
|
Add missing INSTALL file. Use standard GNU file on building tarball
|
||||||
|
README may have been updated
|
||||||
|
Remove AUTHORS file as it is empty and no content available yet.
|
||||||
|
Remove NEWS file as it is empty and no content available yet.
|
||||||
|
|
||||||
|
commit 88252d8bdccbf5dd3ee077345ccd1569fb4f10e6
|
||||||
|
Author: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
Date: Mon Oct 26 22:08:38 2009 -0400
|
||||||
|
|
||||||
|
Makefile.am: ChangeLog not required: EXTRA_DIST or *CLEANFILES #24432
|
||||||
|
|
||||||
|
ChangeLog filename is known to Automake and requires no further
|
||||||
|
coding in the makefile.
|
||||||
|
|
||||||
|
commit 9ea98936be23de9a2d9e27c5f5af93b0eea276d9
|
||||||
|
Author: Gaetan Nadon <memsize@videotron.ca>
|
||||||
|
Date: Thu Oct 22 12:34:14 2009 -0400
|
||||||
|
|
||||||
|
.gitignore: use common defaults with custom section # 24239
|
||||||
|
|
||||||
|
Using common defaults will reduce errors and maintenance.
|
||||||
|
Only the very small or inexistent custom section need periodic maintenance
|
||||||
|
when the structure of the component changes. Do not edit defaults.
|
||||||
|
|
||||||
|
commit eb6ef63fb284cc91c04dcb68fda2ad8ca6fe0e1a
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@sun.com>
|
||||||
|
Date: Mon Oct 12 11:11:42 2009 -0700
|
||||||
|
|
||||||
|
sessreg 1.0.5
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
||||||
|
|
||||||
|
commit 46646524a74c1834de103a2f469142ab50f6bfd6
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@sun.com>
|
||||||
|
Date: Mon Oct 12 11:03:01 2009 -0700
|
||||||
|
|
||||||
|
Document -L option for lastlog files
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
||||||
|
|
||||||
|
commit a594e318996d0e8c02018eef1837135b382076c5
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@sun.com>
|
||||||
|
Date: Mon Oct 12 10:50:51 2009 -0700
|
||||||
|
|
||||||
|
Add utmp/utmpx man page to See Also section of man page
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
||||||
|
|
||||||
|
commit be736ebbfc5510997ae227e903a5b9d66ba0ee1a
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@sun.com>
|
||||||
|
Date: Mon Oct 12 10:44:07 2009 -0700
|
||||||
|
|
||||||
|
Migrate to xorg macros 1.3 & XORG_DEFAULT_OPTIONS
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
||||||
|
|
||||||
|
commit ebc9f3d2483623dcb2ccca7f12cc2769173eb4a9
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@sun.com>
|
||||||
|
Date: Thu Oct 1 14:54:19 2009 -0700
|
||||||
|
|
||||||
|
Add README with pointers to mailing lists, bugzilla, & git
|
||||||
|
|
||||||
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
||||||
|
|
||||||
|
commit 3ba14d85abede72a40c5ba8fe18d1a2e1625d19e
|
||||||
|
Author: Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>
|
||||||
|
Date: Mon Jan 19 15:47:29 2009 -0200
|
||||||
|
|
||||||
|
Ansification and compile warning fixes.
|
||||||
|
|
||||||
|
This also uses XORG_CHANGELOG and XORG_CWARNFLAGS, corrects
|
||||||
|
make distcheck and all gcc 4.3 and sparse warnings.
|
||||||
|
|
||||||
|
commit 3db21d655b0a2988ae0fd47e360d29bb8763cd03
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@sun.com>
|
||||||
|
Date: Wed Jun 11 14:46:29 2008 -0700
|
||||||
|
|
||||||
|
Version bump: 1.0.4
|
||||||
|
|
||||||
|
commit accc7988851b983d1589d64e32a707c0b44fee0e
|
||||||
|
Author: Alan Coopersmith <alan.coopersmith@sun.com>
|
||||||
|
Date: Wed Jun 11 14:44:10 2008 -0700
|
||||||
|
|
||||||
|
X_NOT_POSIX bits for pre-POSIX-1990 systems not needed any more
|
||||||
|
|
||||||
|
commit c9973031a696cc00c509d7013145b1116093bf82
|
||||||
|
Author: David Nusinow <dnusinow@debian.org>
|
||||||
|
Date: Sat Mar 1 13:53:21 2008 -0500
|
||||||
|
|
||||||
|
Require xproto instead of libX11 for building (bug #9631)
|
||||||
|
|
||||||
|
commit a888e809b4e1c9576e667cb50cc62009a1bf391e
|
||||||
|
Author: James Cloos <cloos@jhcloos.com>
|
||||||
|
Date: Thu Dec 6 15:51:04 2007 -0500
|
||||||
|
|
||||||
|
Add missing PHONY line for automatic ChangeLog generation
|
||||||
|
|
||||||
commit da1b5f42fcb1bd0bc9b80f6f1ab7ebb9eb506554
|
commit da1b5f42fcb1bd0bc9b80f6f1ab7ebb9eb506554
|
||||||
Author: Alan Coopersmith <alan.coopersmith@sun.com>
|
Author: Alan Coopersmith <alan.coopersmith@sun.com>
|
||||||
Date: Fri Aug 17 14:30:31 2007 -0700
|
Date: Fri Aug 17 14:30:31 2007 -0700
|
||||||
|
|
246
sessreg/INSTALL
246
sessreg/INSTALL
|
@ -1,16 +1,25 @@
|
||||||
Installation Instructions
|
Installation Instructions
|
||||||
*************************
|
*************************
|
||||||
|
|
||||||
Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005 Free
|
Copyright (C) 1994-1996, 1999-2002, 2004-2011 Free Software Foundation,
|
||||||
Software Foundation, Inc.
|
Inc.
|
||||||
|
|
||||||
This file is free documentation; the Free Software Foundation gives
|
Copying and distribution of this file, with or without modification,
|
||||||
unlimited permission to copy, distribute and modify it.
|
are permitted in any medium without royalty provided the copyright
|
||||||
|
notice and this notice are preserved. This file is offered as-is,
|
||||||
|
without warranty of any kind.
|
||||||
|
|
||||||
Basic Installation
|
Basic Installation
|
||||||
==================
|
==================
|
||||||
|
|
||||||
These are generic installation instructions.
|
Briefly, the shell commands `./configure; make; make install' should
|
||||||
|
configure, build, and install this package. The following
|
||||||
|
more-detailed instructions are generic; see the `README' file for
|
||||||
|
instructions specific to this package. Some packages provide this
|
||||||
|
`INSTALL' file but do not implement all of the features documented
|
||||||
|
below. The lack of an optional feature in a given package is not
|
||||||
|
necessarily a bug. More recommendations for GNU packages can be found
|
||||||
|
in *note Makefile Conventions: (standards)Makefile Conventions.
|
||||||
|
|
||||||
The `configure' shell script attempts to guess correct values for
|
The `configure' shell script attempts to guess correct values for
|
||||||
various system-dependent variables used during compilation. It uses
|
various system-dependent variables used during compilation. It uses
|
||||||
|
@ -23,9 +32,9 @@ debugging `configure').
|
||||||
|
|
||||||
It can also use an optional file (typically called `config.cache'
|
It can also use an optional file (typically called `config.cache'
|
||||||
and enabled with `--cache-file=config.cache' or simply `-C') that saves
|
and enabled with `--cache-file=config.cache' or simply `-C') that saves
|
||||||
the results of its tests to speed up reconfiguring. (Caching is
|
the results of its tests to speed up reconfiguring. Caching is
|
||||||
disabled by default to prevent problems with accidental use of stale
|
disabled by default to prevent problems with accidental use of stale
|
||||||
cache files.)
|
cache files.
|
||||||
|
|
||||||
If you need to do unusual things to compile the package, please try
|
If you need to do unusual things to compile the package, please try
|
||||||
to figure out how `configure' could check whether to do them, and mail
|
to figure out how `configure' could check whether to do them, and mail
|
||||||
|
@ -35,30 +44,37 @@ some point `config.cache' contains results you don't want to keep, you
|
||||||
may remove or edit it.
|
may remove or edit it.
|
||||||
|
|
||||||
The file `configure.ac' (or `configure.in') is used to create
|
The file `configure.ac' (or `configure.in') is used to create
|
||||||
`configure' by a program called `autoconf'. You only need
|
`configure' by a program called `autoconf'. You need `configure.ac' if
|
||||||
`configure.ac' if you want to change it or regenerate `configure' using
|
you want to change it or regenerate `configure' using a newer version
|
||||||
a newer version of `autoconf'.
|
of `autoconf'.
|
||||||
|
|
||||||
The simplest way to compile this package is:
|
The simplest way to compile this package is:
|
||||||
|
|
||||||
1. `cd' to the directory containing the package's source code and type
|
1. `cd' to the directory containing the package's source code and type
|
||||||
`./configure' to configure the package for your system. If you're
|
`./configure' to configure the package for your system.
|
||||||
using `csh' on an old version of System V, you might need to type
|
|
||||||
`sh ./configure' instead to prevent `csh' from trying to execute
|
|
||||||
`configure' itself.
|
|
||||||
|
|
||||||
Running `configure' takes awhile. While running, it prints some
|
Running `configure' might take a while. While running, it prints
|
||||||
messages telling which features it is checking for.
|
some messages telling which features it is checking for.
|
||||||
|
|
||||||
2. Type `make' to compile the package.
|
2. Type `make' to compile the package.
|
||||||
|
|
||||||
3. Optionally, type `make check' to run any self-tests that come with
|
3. Optionally, type `make check' to run any self-tests that come with
|
||||||
the package.
|
the package, generally using the just-built uninstalled binaries.
|
||||||
|
|
||||||
4. Type `make install' to install the programs and any data files and
|
4. Type `make install' to install the programs and any data files and
|
||||||
documentation.
|
documentation. When installing into a prefix owned by root, it is
|
||||||
|
recommended that the package be configured and built as a regular
|
||||||
|
user, and only the `make install' phase executed with root
|
||||||
|
privileges.
|
||||||
|
|
||||||
5. You can remove the program binaries and object files from the
|
5. Optionally, type `make installcheck' to repeat any self-tests, but
|
||||||
|
this time using the binaries in their final installed location.
|
||||||
|
This target does not install anything. Running this target as a
|
||||||
|
regular user, particularly if the prior `make install' required
|
||||||
|
root privileges, verifies that the installation completed
|
||||||
|
correctly.
|
||||||
|
|
||||||
|
6. You can remove the program binaries and object files from the
|
||||||
source code directory by typing `make clean'. To also remove the
|
source code directory by typing `make clean'. To also remove the
|
||||||
files that `configure' created (so you can compile the package for
|
files that `configure' created (so you can compile the package for
|
||||||
a different kind of computer), type `make distclean'. There is
|
a different kind of computer), type `make distclean'. There is
|
||||||
|
@ -67,45 +83,69 @@ The simplest way to compile this package is:
|
||||||
all sorts of other programs in order to regenerate files that came
|
all sorts of other programs in order to regenerate files that came
|
||||||
with the distribution.
|
with the distribution.
|
||||||
|
|
||||||
|
7. Often, you can also type `make uninstall' to remove the installed
|
||||||
|
files again. In practice, not all packages have tested that
|
||||||
|
uninstallation works correctly, even though it is required by the
|
||||||
|
GNU Coding Standards.
|
||||||
|
|
||||||
|
8. Some packages, particularly those that use Automake, provide `make
|
||||||
|
distcheck', which can by used by developers to test that all other
|
||||||
|
targets like `make install' and `make uninstall' work correctly.
|
||||||
|
This target is generally not run by end users.
|
||||||
|
|
||||||
Compilers and Options
|
Compilers and Options
|
||||||
=====================
|
=====================
|
||||||
|
|
||||||
Some systems require unusual options for compilation or linking that the
|
Some systems require unusual options for compilation or linking that
|
||||||
`configure' script does not know about. Run `./configure --help' for
|
the `configure' script does not know about. Run `./configure --help'
|
||||||
details on some of the pertinent environment variables.
|
for details on some of the pertinent environment variables.
|
||||||
|
|
||||||
You can give `configure' initial values for configuration parameters
|
You can give `configure' initial values for configuration parameters
|
||||||
by setting variables in the command line or in the environment. Here
|
by setting variables in the command line or in the environment. Here
|
||||||
is an example:
|
is an example:
|
||||||
|
|
||||||
./configure CC=c89 CFLAGS=-O2 LIBS=-lposix
|
./configure CC=c99 CFLAGS=-g LIBS=-lposix
|
||||||
|
|
||||||
*Note Defining Variables::, for more details.
|
*Note Defining Variables::, for more details.
|
||||||
|
|
||||||
Compiling For Multiple Architectures
|
Compiling For Multiple Architectures
|
||||||
====================================
|
====================================
|
||||||
|
|
||||||
You can compile the package for more than one kind of computer at the
|
You can compile the package for more than one kind of computer at the
|
||||||
same time, by placing the object files for each architecture in their
|
same time, by placing the object files for each architecture in their
|
||||||
own directory. To do this, you must use a version of `make' that
|
own directory. To do this, you can use GNU `make'. `cd' to the
|
||||||
supports the `VPATH' variable, such as GNU `make'. `cd' to the
|
|
||||||
directory where you want the object files and executables to go and run
|
directory where you want the object files and executables to go and run
|
||||||
the `configure' script. `configure' automatically checks for the
|
the `configure' script. `configure' automatically checks for the
|
||||||
source code in the directory that `configure' is in and in `..'.
|
source code in the directory that `configure' is in and in `..'. This
|
||||||
|
is known as a "VPATH" build.
|
||||||
|
|
||||||
If you have to use a `make' that does not support the `VPATH'
|
With a non-GNU `make', it is safer to compile the package for one
|
||||||
variable, you have to compile the package for one architecture at a
|
architecture at a time in the source code directory. After you have
|
||||||
time in the source code directory. After you have installed the
|
installed the package for one architecture, use `make distclean' before
|
||||||
package for one architecture, use `make distclean' before reconfiguring
|
reconfiguring for another architecture.
|
||||||
for another architecture.
|
|
||||||
|
On MacOS X 10.5 and later systems, you can create libraries and
|
||||||
|
executables that work on multiple system types--known as "fat" or
|
||||||
|
"universal" binaries--by specifying multiple `-arch' options to the
|
||||||
|
compiler but only a single `-arch' option to the preprocessor. Like
|
||||||
|
this:
|
||||||
|
|
||||||
|
./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
|
||||||
|
CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
|
||||||
|
CPP="gcc -E" CXXCPP="g++ -E"
|
||||||
|
|
||||||
|
This is not guaranteed to produce working output in all cases, you
|
||||||
|
may have to build one architecture at a time and combine the results
|
||||||
|
using the `lipo' tool if you have problems.
|
||||||
|
|
||||||
Installation Names
|
Installation Names
|
||||||
==================
|
==================
|
||||||
|
|
||||||
By default, `make install' installs the package's commands under
|
By default, `make install' installs the package's commands under
|
||||||
`/usr/local/bin', include files under `/usr/local/include', etc. You
|
`/usr/local/bin', include files under `/usr/local/include', etc. You
|
||||||
can specify an installation prefix other than `/usr/local' by giving
|
can specify an installation prefix other than `/usr/local' by giving
|
||||||
`configure' the option `--prefix=PREFIX'.
|
`configure' the option `--prefix=PREFIX', where PREFIX must be an
|
||||||
|
absolute file name.
|
||||||
|
|
||||||
You can specify separate installation prefixes for
|
You can specify separate installation prefixes for
|
||||||
architecture-specific files and architecture-independent files. If you
|
architecture-specific files and architecture-independent files. If you
|
||||||
|
@ -116,16 +156,47 @@ Documentation and other data files still use the regular prefix.
|
||||||
In addition, if you use an unusual directory layout you can give
|
In addition, if you use an unusual directory layout you can give
|
||||||
options like `--bindir=DIR' to specify different values for particular
|
options like `--bindir=DIR' to specify different values for particular
|
||||||
kinds of files. Run `configure --help' for a list of the directories
|
kinds of files. Run `configure --help' for a list of the directories
|
||||||
you can set and what kinds of files go in them.
|
you can set and what kinds of files go in them. In general, the
|
||||||
|
default for these options is expressed in terms of `${prefix}', so that
|
||||||
|
specifying just `--prefix' will affect all of the other directory
|
||||||
|
specifications that were not explicitly provided.
|
||||||
|
|
||||||
|
The most portable way to affect installation locations is to pass the
|
||||||
|
correct locations to `configure'; however, many packages provide one or
|
||||||
|
both of the following shortcuts of passing variable assignments to the
|
||||||
|
`make install' command line to change installation locations without
|
||||||
|
having to reconfigure or recompile.
|
||||||
|
|
||||||
|
The first method involves providing an override variable for each
|
||||||
|
affected directory. For example, `make install
|
||||||
|
prefix=/alternate/directory' will choose an alternate location for all
|
||||||
|
directory configuration variables that were expressed in terms of
|
||||||
|
`${prefix}'. Any directories that were specified during `configure',
|
||||||
|
but not in terms of `${prefix}', must each be overridden at install
|
||||||
|
time for the entire installation to be relocated. The approach of
|
||||||
|
makefile variable overrides for each directory variable is required by
|
||||||
|
the GNU Coding Standards, and ideally causes no recompilation.
|
||||||
|
However, some platforms have known limitations with the semantics of
|
||||||
|
shared libraries that end up requiring recompilation when using this
|
||||||
|
method, particularly noticeable in packages that use GNU Libtool.
|
||||||
|
|
||||||
|
The second method involves providing the `DESTDIR' variable. For
|
||||||
|
example, `make install DESTDIR=/alternate/directory' will prepend
|
||||||
|
`/alternate/directory' before all installation names. The approach of
|
||||||
|
`DESTDIR' overrides is not required by the GNU Coding Standards, and
|
||||||
|
does not work on platforms that have drive letters. On the other hand,
|
||||||
|
it does better at avoiding recompilation issues, and works well even
|
||||||
|
when some directory options were not specified in terms of `${prefix}'
|
||||||
|
at `configure' time.
|
||||||
|
|
||||||
|
Optional Features
|
||||||
|
=================
|
||||||
|
|
||||||
If the package supports it, you can cause programs to be installed
|
If the package supports it, you can cause programs to be installed
|
||||||
with an extra prefix or suffix on their names by giving `configure' the
|
with an extra prefix or suffix on their names by giving `configure' the
|
||||||
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
|
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
|
||||||
|
|
||||||
Optional Features
|
Some packages pay attention to `--enable-FEATURE' options to
|
||||||
=================
|
|
||||||
|
|
||||||
Some packages pay attention to `--enable-FEATURE' options to
|
|
||||||
`configure', where FEATURE indicates an optional part of the package.
|
`configure', where FEATURE indicates an optional part of the package.
|
||||||
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
|
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
|
||||||
is something like `gnu-as' or `x' (for the X Window System). The
|
is something like `gnu-as' or `x' (for the X Window System). The
|
||||||
|
@ -137,14 +208,58 @@ find the X include and library files automatically, but if it doesn't,
|
||||||
you can use the `configure' options `--x-includes=DIR' and
|
you can use the `configure' options `--x-includes=DIR' and
|
||||||
`--x-libraries=DIR' to specify their locations.
|
`--x-libraries=DIR' to specify their locations.
|
||||||
|
|
||||||
|
Some packages offer the ability to configure how verbose the
|
||||||
|
execution of `make' will be. For these packages, running `./configure
|
||||||
|
--enable-silent-rules' sets the default to minimal output, which can be
|
||||||
|
overridden with `make V=1'; while running `./configure
|
||||||
|
--disable-silent-rules' sets the default to verbose, which can be
|
||||||
|
overridden with `make V=0'.
|
||||||
|
|
||||||
|
Particular systems
|
||||||
|
==================
|
||||||
|
|
||||||
|
On HP-UX, the default C compiler is not ANSI C compatible. If GNU
|
||||||
|
CC is not installed, it is recommended to use the following options in
|
||||||
|
order to use an ANSI C compiler:
|
||||||
|
|
||||||
|
./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
|
||||||
|
|
||||||
|
and if that doesn't work, install pre-built binaries of GCC for HP-UX.
|
||||||
|
|
||||||
|
HP-UX `make' updates targets which have the same time stamps as
|
||||||
|
their prerequisites, which makes it generally unusable when shipped
|
||||||
|
generated files such as `configure' are involved. Use GNU `make'
|
||||||
|
instead.
|
||||||
|
|
||||||
|
On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
|
||||||
|
parse its `<wchar.h>' header file. The option `-nodtk' can be used as
|
||||||
|
a workaround. If GNU CC is not installed, it is therefore recommended
|
||||||
|
to try
|
||||||
|
|
||||||
|
./configure CC="cc"
|
||||||
|
|
||||||
|
and if that doesn't work, try
|
||||||
|
|
||||||
|
./configure CC="cc -nodtk"
|
||||||
|
|
||||||
|
On Solaris, don't put `/usr/ucb' early in your `PATH'. This
|
||||||
|
directory contains several dysfunctional programs; working variants of
|
||||||
|
these programs are available in `/usr/bin'. So, if you need `/usr/ucb'
|
||||||
|
in your `PATH', put it _after_ `/usr/bin'.
|
||||||
|
|
||||||
|
On Haiku, software installed for all users goes in `/boot/common',
|
||||||
|
not `/usr/local'. It is recommended to use the following options:
|
||||||
|
|
||||||
|
./configure --prefix=/boot/common
|
||||||
|
|
||||||
Specifying the System Type
|
Specifying the System Type
|
||||||
==========================
|
==========================
|
||||||
|
|
||||||
There may be some features `configure' cannot figure out automatically,
|
There may be some features `configure' cannot figure out
|
||||||
but needs to determine by the type of machine the package will run on.
|
automatically, but needs to determine by the type of machine the package
|
||||||
Usually, assuming the package is built to be run on the _same_
|
will run on. Usually, assuming the package is built to be run on the
|
||||||
architectures, `configure' can figure that out, but if it prints a
|
_same_ architectures, `configure' can figure that out, but if it prints
|
||||||
message saying it cannot guess the machine type, give it the
|
a message saying it cannot guess the machine type, give it the
|
||||||
`--build=TYPE' option. TYPE can either be a short name for the system
|
`--build=TYPE' option. TYPE can either be a short name for the system
|
||||||
type, such as `sun4', or a canonical name which has the form:
|
type, such as `sun4', or a canonical name which has the form:
|
||||||
|
|
||||||
|
@ -152,7 +267,8 @@ type, such as `sun4', or a canonical name which has the form:
|
||||||
|
|
||||||
where SYSTEM can have one of these forms:
|
where SYSTEM can have one of these forms:
|
||||||
|
|
||||||
OS KERNEL-OS
|
OS
|
||||||
|
KERNEL-OS
|
||||||
|
|
||||||
See the file `config.sub' for the possible values of each field. If
|
See the file `config.sub' for the possible values of each field. If
|
||||||
`config.sub' isn't included in this package, then this package doesn't
|
`config.sub' isn't included in this package, then this package doesn't
|
||||||
|
@ -170,9 +286,9 @@ eventually be run) with `--host=TYPE'.
|
||||||
Sharing Defaults
|
Sharing Defaults
|
||||||
================
|
================
|
||||||
|
|
||||||
If you want to set default values for `configure' scripts to share, you
|
If you want to set default values for `configure' scripts to share,
|
||||||
can create a site shell script called `config.site' that gives default
|
you can create a site shell script called `config.site' that gives
|
||||||
values for variables like `CC', `cache_file', and `prefix'.
|
default values for variables like `CC', `cache_file', and `prefix'.
|
||||||
`configure' looks for `PREFIX/share/config.site' if it exists, then
|
`configure' looks for `PREFIX/share/config.site' if it exists, then
|
||||||
`PREFIX/etc/config.site' if it exists. Or, you can set the
|
`PREFIX/etc/config.site' if it exists. Or, you can set the
|
||||||
`CONFIG_SITE' environment variable to the location of the site script.
|
`CONFIG_SITE' environment variable to the location of the site script.
|
||||||
|
@ -181,7 +297,7 @@ A warning: not all `configure' scripts look for a site script.
|
||||||
Defining Variables
|
Defining Variables
|
||||||
==================
|
==================
|
||||||
|
|
||||||
Variables not defined in a site shell script can be set in the
|
Variables not defined in a site shell script can be set in the
|
||||||
environment passed to `configure'. However, some packages may run
|
environment passed to `configure'. However, some packages may run
|
||||||
configure again during the build, and the customized values of these
|
configure again during the build, and the customized values of these
|
||||||
variables may be lost. In order to avoid this problem, you should set
|
variables may be lost. In order to avoid this problem, you should set
|
||||||
|
@ -190,21 +306,29 @@ them in the `configure' command line, using `VAR=value'. For example:
|
||||||
./configure CC=/usr/local2/bin/gcc
|
./configure CC=/usr/local2/bin/gcc
|
||||||
|
|
||||||
causes the specified `gcc' to be used as the C compiler (unless it is
|
causes the specified `gcc' to be used as the C compiler (unless it is
|
||||||
overridden in the site shell script). Here is a another example:
|
overridden in the site shell script).
|
||||||
|
|
||||||
/bin/bash ./configure CONFIG_SHELL=/bin/bash
|
Unfortunately, this technique does not work for `CONFIG_SHELL' due to
|
||||||
|
an Autoconf bug. Until the bug is fixed you can use this workaround:
|
||||||
|
|
||||||
Here the `CONFIG_SHELL=/bin/bash' operand causes subsequent
|
CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
|
||||||
configuration-related scripts to be executed by `/bin/bash'.
|
|
||||||
|
|
||||||
`configure' Invocation
|
`configure' Invocation
|
||||||
======================
|
======================
|
||||||
|
|
||||||
`configure' recognizes the following options to control how it operates.
|
`configure' recognizes the following options to control how it
|
||||||
|
operates.
|
||||||
|
|
||||||
`--help'
|
`--help'
|
||||||
`-h'
|
`-h'
|
||||||
Print a summary of the options to `configure', and exit.
|
Print a summary of all of the options to `configure', and exit.
|
||||||
|
|
||||||
|
`--help=short'
|
||||||
|
`--help=recursive'
|
||||||
|
Print a summary of the options unique to this package's
|
||||||
|
`configure', and exit. The `short' variant lists options used
|
||||||
|
only in the top level, while the `recursive' variant lists options
|
||||||
|
also present in any nested packages.
|
||||||
|
|
||||||
`--version'
|
`--version'
|
||||||
`-V'
|
`-V'
|
||||||
|
@ -231,6 +355,16 @@ configuration-related scripts to be executed by `/bin/bash'.
|
||||||
Look for the package's source code in directory DIR. Usually
|
Look for the package's source code in directory DIR. Usually
|
||||||
`configure' can determine that directory automatically.
|
`configure' can determine that directory automatically.
|
||||||
|
|
||||||
|
`--prefix=DIR'
|
||||||
|
Use DIR as the installation prefix. *note Installation Names::
|
||||||
|
for more details, including other options available for fine-tuning
|
||||||
|
the installation locations.
|
||||||
|
|
||||||
|
`--no-create'
|
||||||
|
`-n'
|
||||||
|
Run the configure checks, but stop before creating any output
|
||||||
|
files.
|
||||||
|
|
||||||
`configure' also accepts some other, not widely useful, options. Run
|
`configure' also accepts some other, not widely useful, options. Run
|
||||||
`configure --help' for more details.
|
`configure --help' for more details.
|
||||||
|
|
||||||
|
|
|
@ -18,53 +18,15 @@
|
||||||
# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||||
# PERFORMANCE OF THIS SOFTWARE.
|
# PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
|
SUBDIRS = man
|
||||||
bin_PROGRAMS = sessreg
|
bin_PROGRAMS = sessreg
|
||||||
|
|
||||||
AM_CFLAGS = $(SESSREG_CFLAGS)
|
AM_CFLAGS = $(CWARNFLAGS) $(SESSREG_CFLAGS)
|
||||||
|
|
||||||
sessreg_SOURCES = \
|
sessreg_SOURCES = \
|
||||||
sessreg.h \
|
sessreg.h \
|
||||||
sessreg.c
|
sessreg.c
|
||||||
|
|
||||||
appman_PRE = sessreg.man
|
|
||||||
|
|
||||||
appmandir = $(APP_MAN_DIR)
|
|
||||||
|
|
||||||
appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@)
|
|
||||||
|
|
||||||
EXTRA_DIST = $(appman_PRE) filenames.sed.c ChangeLog
|
|
||||||
CLEANFILES = $(appman_DATA) filenames.sed
|
|
||||||
|
|
||||||
SED = sed
|
|
||||||
|
|
||||||
# Strings to replace in man pages
|
|
||||||
XORGRELSTRING = @PACKAGE_STRING@
|
|
||||||
XORGMANNAME = X Version 11
|
|
||||||
|
|
||||||
MAN_SUBSTS = -f filenames.sed \
|
|
||||||
-e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
|
|
||||||
-e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
|
|
||||||
-e 's|__xservername__|Xorg|g' \
|
|
||||||
-e 's|__xconfigfile__|xorg.conf|g' \
|
|
||||||
-e 's|__projectroot__|$(prefix)|g' \
|
|
||||||
-e 's|__apploaddir__|$(appdefaultdir)|' \
|
|
||||||
-e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \
|
|
||||||
-e 's|__libmansuffix__|$(LIB_MAN_SUFFIX)|g' \
|
|
||||||
-e 's|__adminmansuffix__|$(ADMIN_MAN_SUFFIX)|g' \
|
|
||||||
-e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \
|
|
||||||
-e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g'
|
|
||||||
|
|
||||||
SUFFIXES = .$(APP_MAN_SUFFIX) .man
|
|
||||||
|
|
||||||
.man.$(APP_MAN_SUFFIX):
|
|
||||||
sed $(MAN_SUBSTS) < $< > $@
|
|
||||||
|
|
||||||
sessreg.$(APP_MAN_SUFFIX): filenames.sed
|
|
||||||
|
|
||||||
filenames.sed: filenames.sed.c
|
|
||||||
$(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
|
|
||||||
$(CPPFLAGS) $(srcdir)/filenames.sed.c | grep 's|__' > $@
|
|
||||||
|
|
||||||
if LINT
|
if LINT
|
||||||
ALL_LINT_FLAGS=$(LINT_FLAGS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
|
ALL_LINT_FLAGS=$(LINT_FLAGS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
|
||||||
$(AM_CPPFLAGS) $(CPPFLAGS)
|
$(AM_CPPFLAGS) $(CPPFLAGS)
|
||||||
|
@ -73,9 +35,16 @@ lint:
|
||||||
$(LINT) $(ALL_LINT_FLAGS) $(sessreg_SOURCES)
|
$(LINT) $(ALL_LINT_FLAGS) $(sessreg_SOURCES)
|
||||||
endif LINT
|
endif LINT
|
||||||
|
|
||||||
MAINTAINERCLEANFILES=ChangeLog
|
MAINTAINERCLEANFILES = ChangeLog INSTALL
|
||||||
|
|
||||||
|
.PHONY: ChangeLog INSTALL
|
||||||
|
|
||||||
|
INSTALL:
|
||||||
|
$(INSTALL_CMD)
|
||||||
|
|
||||||
ChangeLog:
|
ChangeLog:
|
||||||
git-log > ChangeLog
|
$(CHANGELOG_CMD)
|
||||||
|
|
||||||
dist-hook: ChangeLog
|
dist-hook: ChangeLog INSTALL
|
||||||
|
|
||||||
|
EXTRA_DIST = README.md
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,27 @@
|
||||||
|
Sessreg is a simple program for managing utmp/wtmp entries for X sessions.
|
||||||
|
It was originally written for use with xdm, but may also be used with
|
||||||
|
other display managers such as gdm or kdm.
|
||||||
|
|
||||||
|
All questions regarding this software should be directed at the
|
||||||
|
Xorg mailing list:
|
||||||
|
|
||||||
|
http://lists.freedesktop.org/mailman/listinfo/xorg
|
||||||
|
|
||||||
|
Please submit bug reports to the Xorg bugzilla:
|
||||||
|
|
||||||
|
https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
|
||||||
|
|
||||||
|
The master development code repository can be found at:
|
||||||
|
|
||||||
|
git://anongit.freedesktop.org/git/xorg/app/sessreg
|
||||||
|
|
||||||
|
http://cgit.freedesktop.org/xorg/app/sessreg
|
||||||
|
|
||||||
|
For patch submission instructions, see:
|
||||||
|
|
||||||
|
http://www.x.org/wiki/Development/Documentation/SubmittingPatches
|
||||||
|
|
||||||
|
For more information on the git code manager, see:
|
||||||
|
|
||||||
|
http://wiki.x.org/wiki/GitPage
|
||||||
|
|
|
@ -0,0 +1,19 @@
|
||||||
|
Sessreg is a simple program for managing utmp/wtmp entries for X sessions.
|
||||||
|
It was originally written for use with xdm, but may also be used with
|
||||||
|
other display managers such as gdm or kdm.
|
||||||
|
|
||||||
|
All questions regarding this software should be directed at the
|
||||||
|
Xorg mailing list:
|
||||||
|
|
||||||
|
https://lists.x.org/mailman/listinfo/xorg
|
||||||
|
|
||||||
|
The master development code repository can be found at:
|
||||||
|
|
||||||
|
https://gitlab.freedesktop.org/xorg/app/sessreg
|
||||||
|
|
||||||
|
Please submit bug reports and requests to merge patches there.
|
||||||
|
|
||||||
|
For patch submission instructions, see:
|
||||||
|
|
||||||
|
https://www.x.org/wiki/Development/Documentation/SubmittingPatches
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,347 @@
|
||||||
|
#! /bin/sh
|
||||||
|
# Wrapper for compilers which do not understand '-c -o'.
|
||||||
|
|
||||||
|
scriptversion=2012-10-14.11; # UTC
|
||||||
|
|
||||||
|
# Copyright (C) 1999-2014 Free Software Foundation, Inc.
|
||||||
|
# Written by Tom Tromey <tromey@cygnus.com>.
|
||||||
|
#
|
||||||
|
# This program is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
# any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
# As a special exception to the GNU General Public License, if you
|
||||||
|
# distribute this file as part of a program that contains a
|
||||||
|
# configuration script generated by Autoconf, you may include it under
|
||||||
|
# the same distribution terms that you use for the rest of that program.
|
||||||
|
|
||||||
|
# This file is maintained in Automake, please report
|
||||||
|
# bugs to <bug-automake@gnu.org> or send patches to
|
||||||
|
# <automake-patches@gnu.org>.
|
||||||
|
|
||||||
|
nl='
|
||||||
|
'
|
||||||
|
|
||||||
|
# We need space, tab and new line, in precisely that order. Quoting is
|
||||||
|
# there to prevent tools from complaining about whitespace usage.
|
||||||
|
IFS=" "" $nl"
|
||||||
|
|
||||||
|
file_conv=
|
||||||
|
|
||||||
|
# func_file_conv build_file lazy
|
||||||
|
# Convert a $build file to $host form and store it in $file
|
||||||
|
# Currently only supports Windows hosts. If the determined conversion
|
||||||
|
# type is listed in (the comma separated) LAZY, no conversion will
|
||||||
|
# take place.
|
||||||
|
func_file_conv ()
|
||||||
|
{
|
||||||
|
file=$1
|
||||||
|
case $file in
|
||||||
|
/ | /[!/]*) # absolute file, and not a UNC file
|
||||||
|
if test -z "$file_conv"; then
|
||||||
|
# lazily determine how to convert abs files
|
||||||
|
case `uname -s` in
|
||||||
|
MINGW*)
|
||||||
|
file_conv=mingw
|
||||||
|
;;
|
||||||
|
CYGWIN*)
|
||||||
|
file_conv=cygwin
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
file_conv=wine
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
case $file_conv/,$2, in
|
||||||
|
*,$file_conv,*)
|
||||||
|
;;
|
||||||
|
mingw/*)
|
||||||
|
file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
|
||||||
|
;;
|
||||||
|
cygwin/*)
|
||||||
|
file=`cygpath -m "$file" || echo "$file"`
|
||||||
|
;;
|
||||||
|
wine/*)
|
||||||
|
file=`winepath -w "$file" || echo "$file"`
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
# func_cl_dashL linkdir
|
||||||
|
# Make cl look for libraries in LINKDIR
|
||||||
|
func_cl_dashL ()
|
||||||
|
{
|
||||||
|
func_file_conv "$1"
|
||||||
|
if test -z "$lib_path"; then
|
||||||
|
lib_path=$file
|
||||||
|
else
|
||||||
|
lib_path="$lib_path;$file"
|
||||||
|
fi
|
||||||
|
linker_opts="$linker_opts -LIBPATH:$file"
|
||||||
|
}
|
||||||
|
|
||||||
|
# func_cl_dashl library
|
||||||
|
# Do a library search-path lookup for cl
|
||||||
|
func_cl_dashl ()
|
||||||
|
{
|
||||||
|
lib=$1
|
||||||
|
found=no
|
||||||
|
save_IFS=$IFS
|
||||||
|
IFS=';'
|
||||||
|
for dir in $lib_path $LIB
|
||||||
|
do
|
||||||
|
IFS=$save_IFS
|
||||||
|
if $shared && test -f "$dir/$lib.dll.lib"; then
|
||||||
|
found=yes
|
||||||
|
lib=$dir/$lib.dll.lib
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
if test -f "$dir/$lib.lib"; then
|
||||||
|
found=yes
|
||||||
|
lib=$dir/$lib.lib
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
if test -f "$dir/lib$lib.a"; then
|
||||||
|
found=yes
|
||||||
|
lib=$dir/lib$lib.a
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
IFS=$save_IFS
|
||||||
|
|
||||||
|
if test "$found" != yes; then
|
||||||
|
lib=$lib.lib
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# func_cl_wrapper cl arg...
|
||||||
|
# Adjust compile command to suit cl
|
||||||
|
func_cl_wrapper ()
|
||||||
|
{
|
||||||
|
# Assume a capable shell
|
||||||
|
lib_path=
|
||||||
|
shared=:
|
||||||
|
linker_opts=
|
||||||
|
for arg
|
||||||
|
do
|
||||||
|
if test -n "$eat"; then
|
||||||
|
eat=
|
||||||
|
else
|
||||||
|
case $1 in
|
||||||
|
-o)
|
||||||
|
# configure might choose to run compile as 'compile cc -o foo foo.c'.
|
||||||
|
eat=1
|
||||||
|
case $2 in
|
||||||
|
*.o | *.[oO][bB][jJ])
|
||||||
|
func_file_conv "$2"
|
||||||
|
set x "$@" -Fo"$file"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
func_file_conv "$2"
|
||||||
|
set x "$@" -Fe"$file"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
-I)
|
||||||
|
eat=1
|
||||||
|
func_file_conv "$2" mingw
|
||||||
|
set x "$@" -I"$file"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
-I*)
|
||||||
|
func_file_conv "${1#-I}" mingw
|
||||||
|
set x "$@" -I"$file"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
-l)
|
||||||
|
eat=1
|
||||||
|
func_cl_dashl "$2"
|
||||||
|
set x "$@" "$lib"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
-l*)
|
||||||
|
func_cl_dashl "${1#-l}"
|
||||||
|
set x "$@" "$lib"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
-L)
|
||||||
|
eat=1
|
||||||
|
func_cl_dashL "$2"
|
||||||
|
;;
|
||||||
|
-L*)
|
||||||
|
func_cl_dashL "${1#-L}"
|
||||||
|
;;
|
||||||
|
-static)
|
||||||
|
shared=false
|
||||||
|
;;
|
||||||
|
-Wl,*)
|
||||||
|
arg=${1#-Wl,}
|
||||||
|
save_ifs="$IFS"; IFS=','
|
||||||
|
for flag in $arg; do
|
||||||
|
IFS="$save_ifs"
|
||||||
|
linker_opts="$linker_opts $flag"
|
||||||
|
done
|
||||||
|
IFS="$save_ifs"
|
||||||
|
;;
|
||||||
|
-Xlinker)
|
||||||
|
eat=1
|
||||||
|
linker_opts="$linker_opts $2"
|
||||||
|
;;
|
||||||
|
-*)
|
||||||
|
set x "$@" "$1"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
*.cc | *.CC | *.cxx | *.CXX | *.[cC]++)
|
||||||
|
func_file_conv "$1"
|
||||||
|
set x "$@" -Tp"$file"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
*.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO])
|
||||||
|
func_file_conv "$1" mingw
|
||||||
|
set x "$@" "$file"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
set x "$@" "$1"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
if test -n "$linker_opts"; then
|
||||||
|
linker_opts="-link$linker_opts"
|
||||||
|
fi
|
||||||
|
exec "$@" $linker_opts
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
eat=
|
||||||
|
|
||||||
|
case $1 in
|
||||||
|
'')
|
||||||
|
echo "$0: No command. Try '$0 --help' for more information." 1>&2
|
||||||
|
exit 1;
|
||||||
|
;;
|
||||||
|
-h | --h*)
|
||||||
|
cat <<\EOF
|
||||||
|
Usage: compile [--help] [--version] PROGRAM [ARGS]
|
||||||
|
|
||||||
|
Wrapper for compilers which do not understand '-c -o'.
|
||||||
|
Remove '-o dest.o' from ARGS, run PROGRAM with the remaining
|
||||||
|
arguments, and rename the output as expected.
|
||||||
|
|
||||||
|
If you are trying to build a whole package this is not the
|
||||||
|
right script to run: please start by reading the file 'INSTALL'.
|
||||||
|
|
||||||
|
Report bugs to <bug-automake@gnu.org>.
|
||||||
|
EOF
|
||||||
|
exit $?
|
||||||
|
;;
|
||||||
|
-v | --v*)
|
||||||
|
echo "compile $scriptversion"
|
||||||
|
exit $?
|
||||||
|
;;
|
||||||
|
cl | *[/\\]cl | cl.exe | *[/\\]cl.exe )
|
||||||
|
func_cl_wrapper "$@" # Doesn't return...
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
ofile=
|
||||||
|
cfile=
|
||||||
|
|
||||||
|
for arg
|
||||||
|
do
|
||||||
|
if test -n "$eat"; then
|
||||||
|
eat=
|
||||||
|
else
|
||||||
|
case $1 in
|
||||||
|
-o)
|
||||||
|
# configure might choose to run compile as 'compile cc -o foo foo.c'.
|
||||||
|
# So we strip '-o arg' only if arg is an object.
|
||||||
|
eat=1
|
||||||
|
case $2 in
|
||||||
|
*.o | *.obj)
|
||||||
|
ofile=$2
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
set x "$@" -o "$2"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
*.c)
|
||||||
|
cfile=$1
|
||||||
|
set x "$@" "$1"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
set x "$@" "$1"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
|
||||||
|
if test -z "$ofile" || test -z "$cfile"; then
|
||||||
|
# If no '-o' option was seen then we might have been invoked from a
|
||||||
|
# pattern rule where we don't need one. That is ok -- this is a
|
||||||
|
# normal compilation that the losing compiler can handle. If no
|
||||||
|
# '.c' file was seen then we are probably linking. That is also
|
||||||
|
# ok.
|
||||||
|
exec "$@"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Name of file we expect compiler to create.
|
||||||
|
cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
|
||||||
|
|
||||||
|
# Create the lock directory.
|
||||||
|
# Note: use '[/\\:.-]' here to ensure that we don't use the same name
|
||||||
|
# that we are using for the .o file. Also, base the name on the expected
|
||||||
|
# object file name, since that is what matters with a parallel build.
|
||||||
|
lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d
|
||||||
|
while true; do
|
||||||
|
if mkdir "$lockdir" >/dev/null 2>&1; then
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
# FIXME: race condition here if user kills between mkdir and trap.
|
||||||
|
trap "rmdir '$lockdir'; exit 1" 1 2 15
|
||||||
|
|
||||||
|
# Run the compile.
|
||||||
|
"$@"
|
||||||
|
ret=$?
|
||||||
|
|
||||||
|
if test -f "$cofile"; then
|
||||||
|
test "$cofile" = "$ofile" || mv "$cofile" "$ofile"
|
||||||
|
elif test -f "${cofile}bj"; then
|
||||||
|
test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile"
|
||||||
|
fi
|
||||||
|
|
||||||
|
rmdir "$lockdir"
|
||||||
|
exit $ret
|
||||||
|
|
||||||
|
# Local Variables:
|
||||||
|
# mode: shell-script
|
||||||
|
# sh-indentation: 2
|
||||||
|
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||||
|
# time-stamp-start: "scriptversion="
|
||||||
|
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||||
|
# time-stamp-time-zone: "UTC"
|
||||||
|
# time-stamp-end: "; # UTC"
|
||||||
|
# End:
|
File diff suppressed because it is too large
Load Diff
|
@ -9,6 +9,12 @@
|
||||||
/* Define to 1 if you have the <memory.h> header file. */
|
/* Define to 1 if you have the <memory.h> header file. */
|
||||||
#undef HAVE_MEMORY_H
|
#undef HAVE_MEMORY_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `pututline' function. */
|
||||||
|
#undef HAVE_PUTUTLINE
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <pwd.h> header file. */
|
||||||
|
#undef HAVE_PWD_H
|
||||||
|
|
||||||
/* Define to 1 if you have the <stdint.h> header file. */
|
/* Define to 1 if you have the <stdint.h> header file. */
|
||||||
#undef HAVE_STDINT_H
|
#undef HAVE_STDINT_H
|
||||||
|
|
||||||
|
@ -21,6 +27,24 @@
|
||||||
/* Define to 1 if you have the <string.h> header file. */
|
/* Define to 1 if you have the <string.h> header file. */
|
||||||
#undef HAVE_STRING_H
|
#undef HAVE_STRING_H
|
||||||
|
|
||||||
|
/* Define to 1 if the system has the type `struct lastlog'. */
|
||||||
|
#undef HAVE_STRUCT_LASTLOG
|
||||||
|
|
||||||
|
/* Define to 1 if `ut_syslen' is a member of `struct utmpx'. */
|
||||||
|
#undef HAVE_STRUCT_UTMPX_UT_SYSLEN
|
||||||
|
|
||||||
|
/* Define to 1 if `ut_host' is a member of `struct utmp'. */
|
||||||
|
#undef HAVE_STRUCT_UTMP_UT_HOST
|
||||||
|
|
||||||
|
/* Define to 1 if `ut_id' is a member of `struct utmp'. */
|
||||||
|
#undef HAVE_STRUCT_UTMP_UT_ID
|
||||||
|
|
||||||
|
/* Define to 1 if `ut_pid' is a member of `struct utmp'. */
|
||||||
|
#undef HAVE_STRUCT_UTMP_UT_PID
|
||||||
|
|
||||||
|
/* Define to 1 if `ut_type' is a member of `struct utmp'. */
|
||||||
|
#undef HAVE_STRUCT_UTMP_UT_TYPE
|
||||||
|
|
||||||
/* Define to 1 if you have the <sys/param.h> header file. */
|
/* Define to 1 if you have the <sys/param.h> header file. */
|
||||||
#undef HAVE_SYS_PARAM_H
|
#undef HAVE_SYS_PARAM_H
|
||||||
|
|
||||||
|
@ -33,11 +57,17 @@
|
||||||
/* Define to 1 if you have the <unistd.h> header file. */
|
/* Define to 1 if you have the <unistd.h> header file. */
|
||||||
#undef HAVE_UNISTD_H
|
#undef HAVE_UNISTD_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `updwtmpx' function. */
|
||||||
|
#undef HAVE_UPDWTMPX
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `utmpxname' function. */
|
||||||
|
#undef HAVE_UTMPXNAME
|
||||||
|
|
||||||
/* Define to 1 if you have the <utmpx.h> header file. */
|
/* Define to 1 if you have the <utmpx.h> header file. */
|
||||||
#undef HAVE_UTMPX_H
|
#undef HAVE_UTMPX_H
|
||||||
|
|
||||||
/* utmpx structure includes ut_syslen field */
|
/* Define to 1 if you have the <utmp.h> header file. */
|
||||||
#undef HAVE_UTMPX_UT_SYSLEN
|
#undef HAVE_UTMP_H
|
||||||
|
|
||||||
/* Name of package */
|
/* Name of package */
|
||||||
#undef PACKAGE
|
#undef PACKAGE
|
||||||
|
@ -54,6 +84,9 @@
|
||||||
/* Define to the one symbol short name of this package. */
|
/* Define to the one symbol short name of this package. */
|
||||||
#undef PACKAGE_TARNAME
|
#undef PACKAGE_TARNAME
|
||||||
|
|
||||||
|
/* Define to the home page for this package. */
|
||||||
|
#undef PACKAGE_URL
|
||||||
|
|
||||||
/* Define to the version of this package. */
|
/* Define to the version of this package. */
|
||||||
#undef PACKAGE_VERSION
|
#undef PACKAGE_VERSION
|
||||||
|
|
||||||
|
@ -69,11 +102,48 @@
|
||||||
/* Define to 1 if you have the ANSI C header files. */
|
/* Define to 1 if you have the ANSI C header files. */
|
||||||
#undef STDC_HEADERS
|
#undef STDC_HEADERS
|
||||||
|
|
||||||
|
/* Enable extensions on AIX 3, Interix. */
|
||||||
|
#ifndef _ALL_SOURCE
|
||||||
|
# undef _ALL_SOURCE
|
||||||
|
#endif
|
||||||
|
/* Enable GNU extensions on systems that have them. */
|
||||||
|
#ifndef _GNU_SOURCE
|
||||||
|
# undef _GNU_SOURCE
|
||||||
|
#endif
|
||||||
|
/* Enable threading extensions on Solaris. */
|
||||||
|
#ifndef _POSIX_PTHREAD_SEMANTICS
|
||||||
|
# undef _POSIX_PTHREAD_SEMANTICS
|
||||||
|
#endif
|
||||||
|
/* Enable extensions on HP NonStop. */
|
||||||
|
#ifndef _TANDEM_SOURCE
|
||||||
|
# undef _TANDEM_SOURCE
|
||||||
|
#endif
|
||||||
|
/* Enable general extensions on Solaris. */
|
||||||
|
#ifndef __EXTENSIONS__
|
||||||
|
# undef __EXTENSIONS__
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* Version number of package */
|
/* Version number of package */
|
||||||
#undef VERSION
|
#undef VERSION
|
||||||
|
|
||||||
|
/* Enable large inode numbers on Mac OS X 10.5. */
|
||||||
|
#ifndef _DARWIN_USE_64_BIT_INODE
|
||||||
|
# define _DARWIN_USE_64_BIT_INODE 1
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Number of bits in a file offset, on hosts where this is settable. */
|
/* Number of bits in a file offset, on hosts where this is settable. */
|
||||||
#undef _FILE_OFFSET_BITS
|
#undef _FILE_OFFSET_BITS
|
||||||
|
|
||||||
/* Define for large files, on AIX-style hosts. */
|
/* Define for large files, on AIX-style hosts. */
|
||||||
#undef _LARGE_FILES
|
#undef _LARGE_FILES
|
||||||
|
|
||||||
|
/* Define to 1 if on MINIX. */
|
||||||
|
#undef _MINIX
|
||||||
|
|
||||||
|
/* Define to 2 if the system does not provide POSIX.1 features except with
|
||||||
|
this defined. */
|
||||||
|
#undef _POSIX_1_SOURCE
|
||||||
|
|
||||||
|
/* Define to 1 if you need to in order for `stat' and other things to work. */
|
||||||
|
#undef _POSIX_SOURCE
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -20,40 +20,56 @@ dnl PERFORMANCE OF THIS SOFTWARE.
|
||||||
dnl
|
dnl
|
||||||
dnl Process this file with autoconf to create configure.
|
dnl Process this file with autoconf to create configure.
|
||||||
|
|
||||||
AC_PREREQ([2.57])
|
# Initialize Autoconf
|
||||||
AC_INIT(sessreg, [1.0.3],
|
AC_PREREQ([2.60])
|
||||||
[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
|
AC_INIT([sessreg], [1.1.2],
|
||||||
sessreg)
|
[https://gitlab.freedesktop.org/xorg/app/sessreg/issues], [sessreg])
|
||||||
AM_INIT_AUTOMAKE([dist-bzip2])
|
AC_CONFIG_SRCDIR([Makefile.am])
|
||||||
AM_MAINTAINER_MODE
|
AC_CONFIG_HEADERS([config.h])
|
||||||
|
AC_USE_SYSTEM_EXTENSIONS
|
||||||
AM_CONFIG_HEADER(config.h)
|
|
||||||
|
|
||||||
# Require xorg-macros version 1.1.0 or newer for XORG_WITH_LINT macro
|
|
||||||
m4_ifndef([XORG_MACROS_VERSION], [AC_FATAL([must install xorg-macros 1.1 or later before running autoconf/autogen])])
|
|
||||||
XORG_MACROS_VERSION(1.1)
|
|
||||||
|
|
||||||
AC_PROG_CC
|
|
||||||
AC_PROG_INSTALL
|
|
||||||
|
|
||||||
AC_CHECK_HEADERS([lastlog.h utmpx.h sys/param.h])
|
|
||||||
AC_CHECK_MEMBER([struct utmpx.ut_syslen],
|
|
||||||
HAVE_SYSLEN=1,
|
|
||||||
HAVE_SYSLEN=0,
|
|
||||||
[#include <utmpx.h>])
|
|
||||||
AC_DEFINE_UNQUOTED(HAVE_UTMPX_UT_SYSLEN,$HAVE_SYSLEN,
|
|
||||||
[utmpx structure includes ut_syslen field])
|
|
||||||
|
|
||||||
AC_SYS_LARGEFILE
|
AC_SYS_LARGEFILE
|
||||||
|
|
||||||
# Checks for pkg-config packages
|
# Initialize Automake
|
||||||
PKG_CHECK_MODULES(SESSREG, x11)
|
AM_INIT_AUTOMAKE([foreign dist-bzip2])
|
||||||
AC_SUBST(SESSREG_CFLAGS)
|
|
||||||
|
|
||||||
# Allow checking code with lint, sparse, etc.
|
# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
|
||||||
|
m4_ifndef([XORG_MACROS_VERSION],
|
||||||
|
[m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
|
||||||
|
XORG_MACROS_VERSION(1.8)
|
||||||
|
XORG_DEFAULT_OPTIONS
|
||||||
XORG_WITH_LINT
|
XORG_WITH_LINT
|
||||||
|
|
||||||
XORG_MANPAGE_SECTIONS
|
# Checks for header files.
|
||||||
XORG_RELEASE_VERSION
|
AC_CHECK_HEADERS([lastlog.h pwd.h utmp.h utmpx.h sys/param.h])
|
||||||
|
|
||||||
AC_OUTPUT([Makefile])
|
# Checks for typedefs, structures, and compiler characteristics.
|
||||||
|
AC_CHECK_MEMBERS([
|
||||||
|
struct utmp.ut_host,
|
||||||
|
struct utmp.ut_id,
|
||||||
|
struct utmp.ut_pid,
|
||||||
|
struct utmp.ut_type], [], [], [
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <utmp.h>
|
||||||
|
])
|
||||||
|
AC_CHECK_MEMBERS([struct utmpx.ut_syslen], [], [], [#include <utmpx.h>])
|
||||||
|
AC_CHECK_TYPES([
|
||||||
|
struct lastlog], [], [],[
|
||||||
|
#include <sys/types.h>
|
||||||
|
#ifdef HAVE_UTMP_H
|
||||||
|
#include <utmp.h>
|
||||||
|
#endif
|
||||||
|
#ifdef HAVE_LASTLOG_H
|
||||||
|
#include <lastlog.h>
|
||||||
|
#endif
|
||||||
|
])
|
||||||
|
|
||||||
|
# Checks for library functions.
|
||||||
|
AC_CHECK_FUNCS([pututline updwtmpx utmpxname])
|
||||||
|
|
||||||
|
# Obtain compiler/linker options for depedencies
|
||||||
|
PKG_CHECK_MODULES(SESSREG, [xproto >= 7.0.25])
|
||||||
|
|
||||||
|
AC_CONFIG_FILES([
|
||||||
|
Makefile
|
||||||
|
man/Makefile])
|
||||||
|
AC_OUTPUT
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue