Showing preview only (705K chars total). Download the full file or copy to clipboard to get everything.
Repository: acaudwell/Gource
Branch: master
Commit: 70db547c6b8b
Files: 115
Total size: 672.0 KB
Directory structure:
gitextract_8c62qvm7/
├── .gitattributes
├── .github/
│ └── FUNDING.yml
├── .gitignore
├── .gitmodules
├── COPYING
├── ChangeLog
├── INSTALL
├── Makefile.am
├── README.md
├── THANKS
├── autogen.sh
├── cmd/
│ ├── gource
│ └── gource.cmd
├── configure.ac
├── contrib/
│ └── svn-gource.py
├── data/
│ ├── bloom.tga
│ ├── bloom_alpha.tga
│ ├── fonts/
│ │ └── README
│ ├── gource.1
│ ├── gource.style
│ └── shaders/
│ ├── bloom.frag
│ ├── bloom.vert
│ ├── shadow.frag
│ ├── shadow.vert
│ ├── text.frag
│ └── text.vert
├── dev/
│ ├── .gitignore
│ ├── bin/
│ │ ├── build_tar.pl
│ │ └── build_win64.pl
│ └── nsis/
│ ├── disclaimer.txt
│ └── welcome.xcf
├── gource.pro
├── m4/
│ ├── ax_boost_base.m4
│ ├── ax_boost_filesystem.m4
│ ├── ax_check_gl.m4
│ ├── ax_check_glu.m4
│ ├── ax_check_glut.m4
│ ├── ax_pthread.m4
│ ├── ax_restore_flags_with_prefix.m4
│ ├── ax_save_flags_with_prefix.m4
│ └── pkg.m4
├── resources/
│ ├── file.xcf
│ └── user.xcf
├── scripts/
│ └── gource-ps.pl
├── src/
│ ├── .gitignore
│ ├── action.cpp
│ ├── action.h
│ ├── bloom.cpp
│ ├── bloom.h
│ ├── caption.cpp
│ ├── caption.h
│ ├── dirnode.cpp
│ ├── dirnode.h
│ ├── file.cpp
│ ├── file.h
│ ├── formats/
│ │ ├── apache.cpp
│ │ ├── apache.h
│ │ ├── bzr.cpp
│ │ ├── bzr.h
│ │ ├── commitlog.cpp
│ │ ├── commitlog.h
│ │ ├── custom.cpp
│ │ ├── custom.h
│ │ ├── cvs-exp.cpp
│ │ ├── cvs-exp.h
│ │ ├── cvs2cl.cpp
│ │ ├── cvs2cl.h
│ │ ├── git.cpp
│ │ ├── git.h
│ │ ├── gitraw.cpp
│ │ ├── gitraw.h
│ │ ├── hg.cpp
│ │ ├── hg.h
│ │ ├── svn.cpp
│ │ └── svn.h
│ ├── gource.cpp
│ ├── gource.h
│ ├── gource_settings.cpp
│ ├── gource_settings.h
│ ├── gource_shell.cpp
│ ├── gource_shell.h
│ ├── key.cpp
│ ├── key.h
│ ├── logmill.cpp
│ ├── logmill.h
│ ├── main.cpp
│ ├── main.h
│ ├── pawn.cpp
│ ├── pawn.h
│ ├── slider.cpp
│ ├── slider.h
│ ├── spline.cpp
│ ├── spline.h
│ ├── test/
│ │ ├── datetime_tests.cpp
│ │ ├── main.cpp
│ │ └── regex_tests.cpp
│ ├── textbox.cpp
│ ├── textbox.h
│ ├── tinyxml/
│ │ ├── tinystr.cpp
│ │ ├── tinystr.h
│ │ ├── tinyxml.cpp
│ │ ├── tinyxml.h
│ │ ├── tinyxmlerror.cpp
│ │ └── tinyxmlparser.cpp
│ ├── user.cpp
│ ├── user.h
│ ├── zoomcamera.cpp
│ └── zoomcamera.h
└── tests/
├── logs/
│ ├── custom-dir-delete.log
│ ├── file-removal.log
│ ├── file-to-dir.log
│ ├── svn-dir-delete.log
│ ├── utf8-caption.log
│ └── utf8.log
└── test.conf
================================================
FILE CONTENTS
================================================
================================================
FILE: .gitattributes
================================================
*.cmd text eol=crlf
================================================
FILE: .github/FUNDING.yml
================================================
ko_fi: acaudwell
================================================
FILE: .gitignore
================================================
*.avi
*.mpg
*.mkv
*.mp4
gource-*.png
.objs
/gource
/gource.exe
gource.pro.user
debug.log
Makefile
Makefile.in
*.dll
*.dll.a
logs/*
/aclocal.m4
/autom4te.cache
/configure
/config.log
/config.status
/dev/win64
/build-aux
*.swp
*.d
.deps
.dirstamp
================================================
FILE: .gitmodules
================================================
[submodule "src/core"]
path = src/core
url = https://github.com/acaudwell/Core.git
================================================
FILE: COPYING
================================================
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
================================================
FILE: ChangeLog
================================================
0.57:
* Handle loading indexed colour images (sokripon).
0.56:
* Added --author-time option (onlyJakob).
* Fixed build with Boost 1.89.0 by no longer linking boost system.
* Increased minimum required version of Boost to 1.69.
* Request compatibility profile when creating OpenGL context.
0.55:
* Fixed build with Boost 1.85.0 (cho-m).
0.54:
* Added experimental support for Wayland (beroset).
* Fixed building on Apple M1 by updating autoconf macros (Ckhardin).
0.53:
* Added --high-dpi option.
* Fixed various bugs with Retina displays on MacOS.
* Fixed slider timestamp font not affected by --font-scale.
* Fixed hovering over end of slider stopping time advancing.
0.52:
* Support rendering at native resolution on Retina / Ultra HD displays.
* Support ISO 8601 timestamp format.
* Allow custom log and caption file timestamps to be strings.
* Change regular expression library to PCRE2.
* Fixed filenames not being affected by --font-scale (Carl Colena).
* Fixed file key not being affected by --font-scale.
* Added --file-idle-time-at-end option.
* Added --fixed-user-size option.
0.51:
* Fixed --font-file relative path handling.
* Fixed a bug in resolving the repository root directory from a relative path.
0.50:
* Right mouse button rotation now pivots around the camera.
* Added --font-file option.
* Added --enable-font-file option to configure.
* Added --no-time-travel option (Lars Schmertmann).
* Added --dir-name-position option (Lars Schmertmann).
* Added --file-extension-fallback option (Lars Schmertmann).
* Added --user-show-filter option (Victor Lopez).
* Added --disable-input option (Joey Parrish).
* Added --loop-delay-seconds option (Joey Parrish).
* Added --font-scale option.
* Added filename, dirname and user font size options (Carl Colena).
* Added workaround for FFMpeg error parsing Gource PPM video output.
* Fixed a bug in the Mercurial log parser that caused changes to be missed.
* Fixed file removal being cancelled by an action with an earlier timestamp.
* Fixed a bug in the log file format detection that could result in the wrong
first entry being displayed for a custom log.
* Fixed a bug where automatically cycling through a config with multiple
repositories reset settings to their defaults.
0.49:
* Fixed compatibility with GLM 0.9.9.0.
0.48:
* Can now generate logs from git sub module directories.
0.47:
* Fixed low mouse movement speed with some mice while repositioning camera.
0.46:
* Added --screen option.
0.45:
* Added --window-position XxY option.
* Added --frameless option.
* Added --file-show-filter REGEX option (swoogles).
* Added --filename-time and filename-colour options (gh2k).
* Improved handling of very low seconds-per-day values (malengrin).
* Fixed crash when SVN log lacks author information (obarthel).
* Additional git log command validation (cym13).
* Allow lower case hex colours in custom logs (HSorensen).
* Enabled STDOUT support with --output-stream '-' on Windows (circulosmeos).
* Now requires SDL 2 to build (deprecated SDL 1.2 support removed).
0.44:
* Fixed crash when taking a screenshot with an odd resolution.
* Fixed type deduction compilation error with newer versions of GCC.
* Documentation improvements.
0.43:
* Updated boost autoconf macros to fix multi-arch detection.
0.42:
* Fixed bzr log command when no start date was specified (chrisf).
* Fixed hg log commit order when date range specified.
* Fixed hg log command line on Windows.
* Fixed parser bug in date range filtering code.
0.41:
* Multi-monitor support using SDL 2.0 when available.
* SDL 1.2 support is deprecated.
* Full screen mode now uses desktop resolution by default.
* Added --start-date, --stop-date 'YYYY-MM-DD hh:mm:ss' options.
* Added --dir-name-depth option.
* Changed --file-idle-time default value to 0.
* Changed screenshot format to PNG.
0.40:
* Added caption support.
* Improved command line interoperability on Windows.
* Fixed directory deletion short circuiting processing the rest of a commit.
* Fixed issue loading non-ascii user image filenames on windows.
* Ignore UTF-8 byte order mark at the start of lines in custom log files.
* Fix to boost macros for Macs and non-GNU systems (mistydemeo).
* Autotools improvements (flameeyes).
0.39:
* Fixed blurry non power of 2 logos.
* File colour changes now supported in custom logs (rmyorston).
* Fixed building against Boost 1.50 (svenstaro).
* Updated boost autoconf macros (flameeyes).
* Autogen script (matthiaskrgr).
0.38:
* New high quality sprites.
* Fullscreen toggle with alt + enter.
* Window is now resizable. -WIDTHxHEIGHT! creates a non-resizable window.
* Lowered minimum zoom distance.
* Use AM_CPPFLAGS in Makefile.am to allow passing custom CPPFLAGS.
* Don't add files that match the path of a known directory.
* Fixed divide by zero in text shader causing artifacts on some video cards.
* Recursively search for repository directory when log-format not specified
(thanks to Jörg Bachmann for original concept / prototype).
* New dependency on Boost Filesystem.
* Doubled the maximum zoom out distance.
* Allow negative timestamps before 1970 in custom log (artzub).
* Fix for UTF8-CPP checked.h compilation issue (vszakats).
* Fixed bug causing missing characters in text.
* Fixed --highlight-users option not using highlight-colour.
* highlight-colour default changed to white.
* Added --selection-colour option (applied to selected users and files).
* Added --dir-colour option (applied to directories).
0.37:
* Made SVN log GMT timestamp conversion fix portable.
0.36:
* Fixed SVN log GMT timestamp conversion.
* Fixed issue with sub-dirs of deleted dir not being removed in some cases.
0.35:
* Added long file extension truncation handling to file key (--key).
* Treat changes in Mercurial log files with the same time/user as one commit.
* Fixed handling of spaces in directory names with Mercurial.
* Fixed --font-colour option.
0.34:
* Now using VBOs and shaders for faster rendering when OpenGL 2.0 is available.
* Eliminated bloom colour banding artifacts (requires OpenGL 2.0).
* New font rendering library derived from FTGL (FTGL no longer required).
* Single pass font/shadow rendering (with lots of help from Chris Forbes).
* Added --no-vsync option.
* Fixed bug where tree is out of alignment with object positions in windowed
mode due to using the wrong display dimensions internally.
* Removed default max-files limit.
0.33:
* Added --hide root option to not draw branches from the root directory.
* Fixed log parsing of Bazaar merges and tagged commits.
* --output-custom-log now skips unparsed log entries instead of exiting.
0.32:
* Fixed behaviour of user camera tracking.
0.31:
* Added --with-tinyxml option to configure (use the system TinyXML library).
0.30:
* Fixed crash when SVN log entry contains no 'paths' element.
* Handle directory deletion (happens in SVN logs).
0.29:
* SVN built-in support.
* cvs2cl log support (cvs-exp support is now deprecated).
* Made camera behaviour when zooming and selecting objects more intuitive.
* Improved interactive performance.
* Added file extension key (--key or toggled with 'K').
* Added mouse-over tool tips.
* Added --highlight-colour option.
* Added --hash-seed option. The S key now randomizes colours.
* Added --output-custom-log option.
* Exposed --time-scale option (previously only available interactively).
* Removed arbitrary 1024 maximum length limit for log lines.
* Fixed two file colouring bugs (quoted files from git, period in file path).
* Fix handling of avatars for UTF-8 usernames on MACOSX (Christian Köstlin).
* Recover from video mode failing to set due to multi-sampling (Siddhesh Poyarekar).
0.28:
* Bazaar support for merged commits (Nick Moffit).
* C++ efficiency improvements (Oliver Smith).
* Improved cvs-exp log compatibility.
* Re-show name of user when adding a new action if user is idle.
* Added --padding option to control camera view padding.
* More accurate camera tracking (tracks the bounding boxes of objects).
* Improved automatic rotation logic.
0.27:
* Display time stops at the time of the last commit.
* Users fade out when end reached rather than ending abruptly.
* Position slider is now hidden by default if recording a video.
* Automatic camera rotation for better use of screen space.
* Support international keyboards (Peter Kjellerstedt).
* C++ efficiency improvements (Jacob Metcalfe).
* Fixed crash when reading from STDIN.
* Fixed intermittent crash closing Gource when using --output-ppm-stream.
* Added ini style config file support (see --load/save-config).
* Added screenshot button (F12). Screenshots respect the alpha channel.
* Added --transparent to make the background see-through (for screenshots).
* Added --logo and --background-image options.
* Added --dont-stop option for manual exiting when recording videos.
* Added --stop-at-time option to stop Gource after a number of seconds.
* Added --hide 'mouse' option.
* Added --highlight-dirs option.
* Added --file-extensions to show filename extensions only.
* Added --user-filter REGEX option.
* Allow --file-idle-time 0 (files will never expire).
* Allow --start-position 'random' to set a random start position.
* --log-command VCS replaces multiple --log-command-VCS options.
* Replaced --disable-progress and --disable-bloom with arguments to --hide.
0.26a:
* Updated to latest version of GL autoconf macros.
0.26:
* Improved mouse dragging.
* Holding right mouse button and moving the mouse rotates the view.
* The middle mouse button now toggles the camera mode.
* Username positions now scale correctly.
* Simulation time no longer incremented while paused, counting towards file time lag.
* M key now toggles mouse visibility.
* Added --hide option to use instead of multiple --hide-ELEMENT options.
0.25:
* Bazaar support (John Arbash Meinel).
* Dragging the mouse on the background moves the camera.
* Added --camera-mode option (track,overview).
* Support DOS line endings in logs.
* Improved compatibility of hg log command (Brendan Cully).
* Fixed PPM exporter producing blank images on some video cards.
* Fixed parsing of negative timezones from cvs-exp.pl logs.
* Fixed various gdb and compiler warnings.
0.24:
* PPM output speed improvements, including using a second thread (HighlandSun).
* Now using standard autotools (Flameeyes).
* Fixed --max-file-lag not working with some custom log files.
* Gource will stop at the end of the log by default when recording a video.
* Fixed STDIN stopping working after the first lot of records with tail -f.
* Added proper exception handling.
* Print errors to stderr.
0.23:
* Hiding filenames no longer hides directory names.
* Fixed --stop-on-idle option.
* Added --stop-at-end option (more intuitive than --stop-position 1.0).
0.22:
* Fixed Mercurial log order.
0.21b:
* Fixed windows build.
0.21:
* Some documentation fixes.
0.20:
* Added bloom effect (turn off with --disable-bloom).
* Added support for Mercurial (thanks to Justin Love for gource.style).
* --start-position option now works in combination with --disable-progress.
0.19:
* Use time_t instead of long for timestamps.
0.18:
* Fixed camera movement while the simulation is paused.
0.17:
* Show correct month for CVS logs.
* Added time scaling (Bitshifter).
0.16:
* Added --hide-dirnames option.
* Added --user-scale option.
* Added --date-format option (Pat Notz).
* Fix bug when encountering long log lines.
* Fixed incorrect parsing of trivial merges.
* Fixed building issues on OSX.
0.15:
* Added PPM output support for creating videos (Johannes Schindelin).
* Added experimental Apache combined access log support (--log-format apache).
* Added --stop-position and --stop-on-idle options (useful for making videos).
* Added --max-file-lag option to limit how long after a commit file changes can take to appear.
* Added --no-renames to the git log command as they don't display correctly.
* Added --max-user-speed and --user-friction as options.
* Now builds on OSX Leopard (with the required libaries installed).
* Caught raw exception from replace_invalid().
* Added CXXFLAGS. You may want to override the default (eg CXXFLAGS=-O3 ./configure).
0.14:
* Updated SVN instructions.
0.13:
* Removed single quotes from log command (fixes running gource --git-log-command in back ticks)
* Added SVN instructions.
* Fixed manpage hyphens.
0.12:
* Added --enable-ttf-font-dir=DIR option to configure (to specify the ttf-freefont directory).
* UTF-8 support using UTF8-CPP (http://utfcpp.sourceforge.net/).
* Changed the git log command (see --git-log-command) to require less work to parse.
Log files generated with the previous git-log command used by gource should continue to work.
* Allow --seconds-per-day value less than 1.0.
* Added --git-branch command.
* Added --loop command.
* Added --crop command.
0.11:
* Made N key skip to next entry.
* Documented --user-image-dir flag.
* temp file name now uses uid instead of time
0.1:
* First release.
================================================
FILE: INSTALL
================================================
This file is to help you configure, build and install Gource for your system.
Contents
========
1. Dependencies
2. Building
3. Configure Options
1. Dependencies
===============
Gource requires the following libraries to compile (package names may vary):
SDL 2.0 (libsdl2-dev)
SDL Image 2.0 (libsdl2-image-dev)
PCRE2 (libpcre2-dev)
Freetype 2 (libfreetype6-dev)
GLEW (libglew-dev)
GLM >= 0.9.3 (libglm-dev)
Boost Filesystem >= 1.69 (libboost-filesystem-dev)
PNG >= 1.2 (libpng-dev)
Optional:
TinyXML (libtinyxml-dev)
SDL Image 2.0 needs to have been built with support PNG and JPEG images.
2. Building
===========
Gource requires a GNU compatible C++ compiler that supports c++0x features such as 'auto' and the new 'for' loop syntax.
GCC 4.6+ or Clang recommended.
If you got the source directly from the Gource.git repository, you will first
need to run autogen.sh which will generate the configure script and
initialize and update the submodules.
./autogen.sh
Generic build instructions for Linux/Mac OS:
./configure
make
make install
Building on Windows:
On Windows compile gource.pro with Qt Creator.
A pre-built version for Windows is normally available from the homepage.
Gource expects SDL to have been built with the NO_STDIO_REDIRECT flag.
3. Configure Options
====================
By default Gource will install some GNU FreeFont TTF Fonts on your system.
If you already have these fonts, you can configure Gource to use them with:
./configure --enable-ttf-font-dir=/path/to/freefont/
You can also build Gource with a different font:
./configure --enable-font-file=/path/to/alternate/font.ttf
The font file format must be supported by Free Type 2.
Gource includes a copy of TinyXML. To build against the system version of the
library use:
./configure --with-tinyxml
================================================
FILE: Makefile.am
================================================
ACLOCAL_AMFLAGS = -I m4
bin_PROGRAMS = gource
gource_CXXFLAGS = -std=gnu++0x -Wall -Wno-sign-compare -Wno-reorder -Wno-unused-but-set-variable -Wno-unused-variable
sources = \
src/action.cpp \
src/bloom.cpp \
src/caption.cpp \
src/core/conffile.cpp \
src/core/display.cpp \
src/core/frustum.cpp \
src/core/fxfont.cpp \
src/core/logger.cpp \
src/core/mousecursor.cpp \
src/core/plane.cpp \
src/core/ppm.cpp \
src/core/quadtree.cpp \
src/core/regex.cpp \
src/core/resource.cpp \
src/core/sdlapp.cpp \
src/core/seeklog.cpp \
src/core/settings.cpp \
src/core/shader.cpp \
src/core/shader_common.cpp \
src/core/stringhash.cpp \
src/core/texture.cpp \
src/core/png_writer.cpp \
src/core/timezone.cpp \
src/core/vbo.cpp \
src/core/vectors.cpp \
src/dirnode.cpp \
src/file.cpp \
src/formats/apache.cpp \
src/formats/bzr.cpp \
src/formats/commitlog.cpp \
src/formats/custom.cpp \
src/formats/cvs-exp.cpp \
src/formats/cvs2cl.cpp \
src/formats/git.cpp \
src/formats/gitraw.cpp \
src/formats/hg.cpp \
src/formats/svn.cpp \
src/gource.cpp \
src/gource_shell.cpp \
src/gource_settings.cpp \
src/key.cpp \
src/logmill.cpp \
src/pawn.cpp \
src/slider.cpp \
src/spline.cpp \
src/textbox.cpp \
src/user.cpp \
src/zoomcamera.cpp
if USE_BUNDLED_TINYXML
sources += \
src/tinyxml/tinyxmlerror.cpp \
src/tinyxml/tinystr.cpp \
src/tinyxml/tinyxml.cpp \
src/tinyxml/tinyxmlparser.cpp
endif
gource_SOURCES = src/main.cpp ${sources}
AM_CPPFLAGS = -DSDLAPP_RESOURCE_DIR=\"$(pkgdatadir)\"
dist_pkgdata_DATA = data/beam.png data/bloom.tga data/bloom_alpha.tga data/file.png data/user.png data/gource.style
shadersdir = $(pkgdatadir)/shaders
dist_shaders_DATA = data/shaders/shadow.vert data/shaders/shadow.frag data/shaders/bloom.vert data/shaders/bloom.frag data/shaders/text.vert data/shaders/text.frag
install-data-hook:
$(MKDIR_P) $(DESTDIR)$(mandir)/man1
gzip -cf9 $(srcdir)/data/gource.1 > $(DESTDIR)$(mandir)/man1/gource.1.gz
uninstall-hook:
rm -f $(DESTDIR)$(mandir)/man1/gource.1.gz
if FONTFILE
AM_CPPFLAGS += -DGOURCE_FONT_FILE=\"$(gourcefontfile)\"
else
if FONTDIR
AM_CPPFLAGS += -DSDLAPP_FONT_DIR=\"$(gourcefontdir)\"
else
fontsdir = $(pkgdatadir)/fonts
dist_fonts_DATA = data/fonts/README data/fonts/FreeSans.ttf
endif
endif
check_PROGRAMS = gource_tests
gource_tests_CPPFLAGS = -I src/test/ ${BOOST_CPPFLAGS}
gource_tests_LDFLAGS = ${BOOST_LDFLAGS}
gource_tests_LDADD = ${BOOST_UNIT_TEST_FRAMEWORK_LIB}
gource_tests_SOURCES = \
src/test/main.cpp \
src/test/datetime_tests.cpp \
src/test/regex_tests.cpp \
${sources}
TESTS = gource_tests
================================================
FILE: README.md
================================================
Gource
======
https://gource.io
Description
===========
Gource is a visualization tool for source control repositories.
The repository is displayed as a tree where the root of the repository is the
centre, directories are branches and files are leaves. Contributors to the
source code appear and disappear as they contribute to specific files and
directories.
Requirements
============
Gource's display is rendered using OpenGL and requires a 3D accelerated video
card to run.
Using Gource
============
```
gource [options] [path]
options:
-h, --help
Help ('-H' for extended help).
-WIDTHxHEIGHT, --viewport WIDTHxHEIGHT
Set the viewport size. If -f is also supplied, will attempt to set
the video mode to this also. Add ! to make the window non-resizable.
--screen SCREEN
Set the number of the screen to display on.
--high-dpi
Request a high DPI display when creating the window.
On some platforms such as MacOS, the window resolution is specified in points instead of pixels.
The --high-dpi flag may be required to access some higher resolutions.
E.g. requesting a high DPI 800x600 window may produce a window that is 1600x1200 pixels.
--window-position XxY
Initial window position on your desktop which may be made up of
multiple monitors.
This will override the screen setting so don't specify both.
--frameless
Frameless window.
-f, --fullscreen
Fullscreen.
-w, --windowed
Windowed.
--transparent
Make the background transparent. Only really useful for screenshots.
--start-date "YYYY-MM-DD hh:mm:ss +tz"
Start with the first entry after the supplied date and optional time.
If a time zone offset isn't specified the local time zone is used.
Example accepted formats:
"2012-06-30"
"2012-06-30 12:00"
"2012-06-30 12:00:00 +12"
--stop-date "YYYY-MM-DD hh:mm:ss +tz"
Stop after the last entry prior to the supplied date and optional time.
Uses the same format as --start-date.
-p, --start-position POSITION
Begin at some position in the log (between 0.0 and 1.0 or 'random').
--stop-position POSITION
Stop (exit) at some position in the log (does not work with STDIN).
-t, --stop-at-time SECONDS
Stop (exit) after a specified number of seconds.
--stop-at-end
Stop (exit) at the end of the log / stream.
--loop
Loop back to the start of the log when the end is reached.
--loop-delay-seconds
Seconds to delay before looping.
-a, --auto-skip-seconds SECONDS
Skip to next entry if nothing happens for a number of seconds.
-s, --seconds-per-day SECONDS
Speed of simulation in seconds per day.
--realtime
Realtime playback speed.
--no-time-travel
Use the time of the last commit if the time of a commit is in the past.
--author-time
Use the timestamp of the author instead of the timestamp of the committer.
-c, --time-scale SCALE
Change simulation time scale. This affects the movement speed of user avatars.
E.g. 0.5 for half speed, 2 for double speed.
-i, --file-idle-time SECONDS
Time in seconds files remain idle before they are removed or 0
for no limit.
--file-idle-time-at-end SECONDS
Time in seconds files remain idle at the end before they are
removed.
-e, --elasticity FLOAT
Elasticity of nodes.
-b, --background-colour FFFFFF
Background colour in hex.
--background-image IMAGE
Set a background image.
--logo IMAGE
Logo to display in the foreground.
--logo-offset XxY
Offset position of the logo.
--title TITLE
Set a title.
--font-file FILE
Specify the font. Should work with most font file formats supported by FreeType, such as TTF and OTF, among others.
--font-scale SCALE
Scale the size of all fonts.
--font-size SIZE
Font size used by the date and title.
--file-font-size SIZE
Font size of filenames.
--dir-font-size SIZE
Font size of directory names
--user-font-size SIZE
Font size of user names.
--font-colour FFFFFF
Font colour used by the date and title in hex.
--key
Show file extension key.
--date-format FORMAT
Specify display date string (strftime format).
--log-command VCS
Show the VCS log command used by gource (git,svn,hg,bzr,cvs2cl).
--log-format VCS
Specify the log format (git,svn,hg,bzr,cvs2cl,custom).
Required when reading from STDIN.
--git-branch
Get the git log of a branch other than the current one.
--follow-user USER
Have the camera automatically follow a particular user.
--highlight-dirs
Highlight the names of all directories.
--highlight-user USER
Highlight the names of a particular user.
--highlight-users
Highlight the names of all users.
--highlight-colour FFFFFF
Font colour for highlighted users in hex.
--selection-colour FFFFFF
Font colour for selected users and files.
--filename-colour FFFFFF
Font colour for filenames.
--dir-colour FFFFFF
Font colour for directories.
--dir-name-depth DEPTH
Draw names of directories down to a specific depth in the tree.
--dir-name-position FLOAT
Position along edge of the directory name
(between 0.1 and 1.0, default is 0.5).
--filename-time SECONDS
Duration to keep filenames on screen (>= 2.0).
--file-extensions
Show filename extensions only.
--file-extension-fallback
Use filename as extension if the extension is missing or empty.
--file-filter REGEX
Filter out file paths matching the specified regular expression.
--file-show-filter REGEX
Show only file paths matching the specified regular expression.
--user-filter REGEX
Filter usernames matching the specified regular expression.
--user-show-filter REGEX
Show only usernames matching the specified regular expression.
--user-image-dir DIRECTORY
Directory containing .jpg or .png images of users
(eg "Full Name.png") to use as avatars.
--default-user-image IMAGE
Path of .jpg or .png to use as the default user image.
--fixed-user-size
Forces the size of the user image to remain fixed throughout.
--colour-images
Colourize user images.
--crop AXIS
Crop view on an axis (vertical,horizontal).
--padding FLOAT
Camera view padding.
--multi-sampling
Enable multi-sampling.
--no-vsync
Disable vsync.
--bloom-multiplier FLOAT
Adjust the amount of bloom.
--bloom-intensity FLOAT
Adjust the intensity of the bloom.
--max-files NUMBER
Set the maximum number of files or 0 for no limit.
Excess files will be discarded.
--max-file-lag SECONDS
Max time files of a commit can take to appear.
Use -1 for no limit.
--max-user-speed UNITS
Max speed users can travel per second.
--user-friction SECONDS
Time users take to come to a halt.
--user-scale SCALE
Change scale of user avatars.
--camera-mode MODE
Camera mode (overview,track).
--disable-auto-rotate
Disable automatic camera rotation.
--disable-input
Disable keyboard and mouse input.
--hide DISPLAY_ELEMENT
Hide one or more display elements from the list below:
bloom - bloom effect
date - current date
dirnames - names of directories
files - file icons
filenames - names of files
mouse - mouse cursor
progress - progress bar widget
root - root directory of tree
tree - animated tree structure
users - user avatars
usernames - names of users
Separate multiple elements with commas (eg "mouse,progress")
--hash-seed SEED
Change the seed of hash function.
--caption-file FILE
Caption file (see Caption Log Format).
--caption-size SIZE
Caption size.
--caption-colour FFFFFF
Caption colour in hex.
--caption-duration SECONDS
Caption duration.
--caption-offset X
Caption horizontal offset (0 to centre captions).
-o, --output-ppm-stream FILE
Output a PPM image stream to a file ('-' for STDOUT).
This will automatically hide the progress bar initially and
enable 'stop-at-end' unless other behaviour is specified.
-r, --output-framerate FPS
Framerate of output (25,30,60). Used with --output-ppm-stream.
--output-custom-log FILE
Output a custom format log file ('-' for STDOUT).
--load-config CONFIG_FILE
Load a gource conf file.
--save-config CONFIG_FILE
Save a gource conf file with the current options.
--path PATH
path Either a supported version control directory, a pre-generated log
file (see log commands or the custom log format), a Gource conf
file or '-' to read STDIN.
If path is omitted, gource will attempt to read a log from the
current directory.
```
Git, Bazaar, Mercurial and SVN Examples:
View the log of the repository in the current path:
```
gource
```
View the log of a project in the specified directory:
```
gource my-project-dir
```
For large projects, generating a log of the project history may take a long
time. For centralized VCS like SVN, generating the log may also put load on
the central VCS server.
In these cases, you may like to save a copy of the log for later use.
You can generate a log in the VCS specific log format using
the --log-command VCS option:
```
cd my-svn-project
`gource --log-command svn` > my-svn-project.log
gource my-svn-project.log
```
You can also have Gource write a copy of the log file in its own format:
```
gource --output-custom-log my-project-custom.log
```
CVS Support:
Use 'cvs2cl' to generate the log and then pass it to Gource:
```
cvs2cl --chrono --stdout --xml -g-q > my-cvs-project.log
gource my-cvs-project.log
```
Custom Log Format:
If you want to use Gource with something other than the supported systems,
there is a pipe ('|') delimited custom log format:
timestamp - An ISO 8601 or unix timestamp of when the update occurred.
username - The name of the user who made the update.
type - initial for the update type - (A)dded, (M)odified or (D)eleted.
file - Path of the file updated.
colour - A colour for the file in hex (FFFFFF) format. Optional.
Caption Log Format:
Gource can display captions along the timeline by specifying a caption file
(using --caption-file) in the pipe ('|') delimited format below:
timestamp - An ISO 8601 or A unix timestamp of when to display the caption.
caption - The caption
Recording Videos:
See the guide on the homepage for examples of recording videos with Gource:
https://github.com/acaudwell/Gource/wiki/Videos
More Information:
Visit the Gource homepage for guides and examples of using Gource with various
version control systems:
https://gource.io
Interface:
The time shown in the top left of the screen is set initially from the first
log entry read and is incremented according to the simulation speed
(--seconds-per-day).
Pressing SPACE at any time will pause/resume the simulation. While paused you
may use the mouse to inspect the detail of individual files and users.
TAB cycles through selecting the current visible users.
The camera mode, either tracking activity or showing the entire code tree, can
be toggled using the Middle mouse button.
You can drag the left mouse button to manually control the camera. The right
mouse button rotates the view.
Interactive keyboard commands:
(V) Toggle camera mode
(C) Displays Gource logo
(K) Toggle file extension key
(M) Toggle mouse visibility
(N) Jump forward in time to next log entry
(S) Randomize colours
(D) Toggle directory name display mode
(F) Toggle file name display mode
(U) Toggle user name display mode
(G) Toggle display of users
(T) Toggle display of directory tree edges
(R) Toggle display of root directory edges
(<>) Adjust time scale / user avatar movement speed
(+-) Adjust simulation speed
(Keypad +-) Adjust camera zoom
(TAB) Cycle through visible users
(F12) Screenshot
(Alt+Enter) Fullscreen toggle
(ESC) Quit
Copyright
=========
Gource - software version control visualization
Copyright (C) 2009 Andrew Caudwell <acaudwell@gmail.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 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
================================================
FILE: THANKS
================================================
Cheers to everyone at Catalyst IT for their support and encouragement.
================================================
FILE: autogen.sh
================================================
#! /bin/sh
if (autoreconf -f -i) ; then
echo "autoreconf ran successfully."
echo "Initializing submodules..."
if (git submodule init) ; then
echo "Updating submodules..."
if (git submodule update --init --recursive) ; then
echo "Run './configure && make' to continue."
else
echo "Error: could not update submodules!"
fi
else
echo "Error: could not initialize submodules!"
fi
else
echo "Running autoreconf failed, please make sure you have autoconf installed."
fi
================================================
FILE: cmd/gource
================================================
#!/bin/sh
GOURCE_CMD_DIR=`dirname "$0"`
"$GOURCE_CMD_DIR/../gource.exe" "$@"
================================================
FILE: cmd/gource.cmd
================================================
@echo off
"%~dp0\..\gource.exe" %*
================================================
FILE: configure.ac
================================================
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.61)
AC_INIT(Gource, 0.57, [acaudwell@gmail.com])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_SRCDIR([src/main.h])
AM_INIT_AUTOMAKE([dist-bzip2 foreign subdir-objects])
AC_CANONICAL_HOST
# Checks for programs.
AC_PROG_CXX
AC_LANG(C++)
AC_CHECK_FUNCS([timegm unsetenv])
#Disable X11 on Macs unless required
AS_IF([test "$with_x" != yes], [
case "$host_os" in
darwin*)
with_x="no"
LIBS="$LIBS -framework CoreFoundation"
;;
esac
], [])
#GL
AX_CHECK_GL
AX_CHECK_GLU
CXXFLAGS="$CXXFLAGS $GL_CFLAGS $GLU_CFLAGS"
CPPFLAGS="$CPPFLAGS $GL_CFLAGS $GLU_CFLAGS"
LIBS="$LIBS $GL_LIBS $GLU_LIBS"
PKG_CHECK_MODULES([FT2], [freetype2 >= 9.0.3])
PKG_CHECK_MODULES([PCRE2], [libpcre2-8])
PKG_CHECK_MODULES([GLEW], [glew])
PKG_CHECK_MODULES([SDL2], [sdl2 SDL2_image]);
PKG_CHECK_MODULES([PNG], [libpng >= 1.2])
CPPFLAGS="${CPPFLAGS} ${FT2_CFLAGS} ${PCRE2_CFLAGS} ${GLEW_CFLAGS} ${SDL2_CFLAGS} ${PNG_CFLAGS}"
LIBS="${LIBS} ${FT2_LIBS} ${PCRE2_LIBS} ${GLEW_LIBS} ${SDL2_LIBS} ${PNG_LIBS}"
AC_CHECK_FUNCS([IMG_LoadPNG_RW], , AC_MSG_ERROR([SDL2_image with PNG support required. Please see INSTALL]))
AC_CHECK_FUNCS([IMG_LoadJPG_RW], , AC_MSG_ERROR([SDL2_image with JPEG support required. Please see INSTALL]))
#BOOST
AX_BOOST_BASE([1.69], , AC_MSG_ERROR(Boost Filesystem >= 1.69 is required. Please see INSTALL))
AX_BOOST_FILESYSTEM
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
LIBS="$LIBS $BOOST_SYSTEM_LIB $BOOST_FILESYSTEM_LIB"
AC_ARG_ENABLE(font-file,[AS_HELP_STRING([--enable-font-file=FILE],[override the default font])],[gourcefontfile="$enableval"],[gourcefontfile=""])
AM_CONDITIONAL([FONTFILE], [test "x$gourcefontfile" != "x"])
AC_SUBST(gourcefontfile)
#see if ttf-font-dir option is enabled
AC_ARG_ENABLE(ttf-font-dir,[AS_HELP_STRING([--enable-ttf-font-dir=DIR],[directory containing GNU FreeFont TTF fonts])],[gourcefontdir="$enableval"],[gourcefontdir=""])
AM_CONDITIONAL([FONTDIR], [test "x$gourcefontdir" != "x"])
AC_SUBST(gourcefontdir)
#GLM
AC_CHECK_HEADER([glm/glm.hpp],, AC_MSG_ERROR(GLM headers are required. Please see INSTALL))
#see if building against system TinyXML library
use_tinyxml_system_library=no
AC_ARG_WITH(tinyxml, AS_HELP_STRING([--with-tinyxml],[Use system installed TinyXML library]), use_tinyxml_system_library=$withval)
if test "x$use_tinyxml_system_library" = "xyes"; then
AC_CHECK_LIB([tinyxml],[main],[],[AC_MSG_ERROR(TinyXML library was requested but not found)],[])ac_cv_lib_tinyxml=ac_cv_lib_tinyxml_main
fi
AM_CONDITIONAL(USE_BUNDLED_TINYXML, test "x$use_tinyxml_system_library" != "xyes")
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
================================================
FILE: contrib/svn-gource.py
================================================
#!/usr/bin/python
## Copyright (c) 2009 Cameron Hart (cam@bitshifter.net.nz)
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
## modification, are permitted provided that the following conditions
## are met:
## 1. Redistributions of source code must retain the above copyright
## notice, this list of conditions and the following disclaimer.
## 2. Redistributions in binary form must reproduce the above copyright
## notice, this list of conditions and the following disclaimer in the
## documentation and/or other materials provided with the distribution.
## 3. The name of the author may not be used to endorse or promote products
## derived from this software without specific prior written permission.
##
## THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
## IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
## OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
## IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
## INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
## NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
## DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
## THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
## (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
## THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import sys
import time
import getopt
import re
from xml.etree import ElementTree
opt_filter_dirs = False
_USAGE = """
svn-gource.py [--help] [--filter-dirs] <file>
The input file must be the output of the command svn log --verbose --xml.
"""
# regular expression for matching any file with an extension
extn_prog = re.compile(".*/?[^/]+\.[^\.]+$")
def reverse(data):
"""Returns the log entries in reverse."""
for index in range(len(data)-1, -1, -1):
yield data[index]
def processXmltree(xmltree):
global opt_filter_dirs
for logentry in reverse(xmltree.getiterator("logentry")):
datetext = logentry.find("date").text
# svn xml logs always use UTC
timestamp = (time.mktime(time.strptime(datetext[:-8], "%Y-%m-%dT%H:%M:%S")))
# a bit of a hack to get it into local time again...
#timestamp = timestamp - time.timezone
#author might not exist
try:
author = logentry.find("author").text
except:
author = ""
# output all affected files
for pathentry in logentry.getiterator("path"):
# apply directory filtering strategy
if opt_filter_dirs and not re.match(extn_prog, pathentry.text):
continue;
# join output
print( "|".join( ( "%d" % int(timestamp), "%s" % author.encode("utf-8"), "%s" % pathentry.get("action"), "%s" % pathentry.text.encode("utf-8"), "" ) ) )
def printUsage(message):
sys.stderr.write(_USAGE)
if message:
sys.exit('\nFATAL ERROR: ' + message)
else:
sys.exit(1)
def processArguments():
global opt_filter_dirs
try:
opts, filenames = getopt.getopt(sys.argv[1:], '', ['help', 'filter-dirs'])
except getopt.GetoptError:
printUsage('Invalid arguments.')
for (opt, val) in opts:
if opt == '--help':
printUsage(None)
elif opt == '--filter-dirs':
opt_filter_dirs = True
if not filenames:
printUsage('No input file specified.')
return filenames[0]
if __name__ == "__main__":
filename = processArguments()
xmltree = ElementTree.parse(filename)
processXmltree(xmltree)
================================================
FILE: data/fonts/README
================================================
-*-text-*-
GNU FreeFont
The GNU FreeFont project aims to provide a useful set of free scalable
(i.e., OpenType) fonts covering as much as possible of the ISO 10646/Unicode
UCS (Universal Character Set).
Statement of Purpose
--------------------
The practical reason for putting glyphs together in a single font face is
to conveniently mix symbols and characters from different writing systems,
without having to switch fonts.
Coverage
--------
FreeFont covers the following character sets
* ISO 8859 parts 1-15
* CEN MES-3 European Unicode Subset
http://www.evertype.com/standards/iso10646/pdf/cwa13873.pdf
* IBM/Microsoft code pages 437, 850, 852, 1250, 1252 and more
* Microsoft/Adobe Windows Glyph List 4 (WGL4)
http://www.microsoft.com/typography/otspec/WGL4.htm
* KOI8-R and KOI8-RU
* DEC VT100 graphics symbols
* International Phonetic Alphabet
* Arabic, Hebrew, Armenian, Georgian, Ethiopian and Thai alphabets,
including Arabic presentation forms A/B
* mathematical symbols, including the whole TeX repertoire of symbols
* APL symbols
etc.
Editing
-------
The free outline font editor, George Williams's FontForge
<http://fontforge.sourceforge.net/> is used for editing the fonts.
Design Issues
-------------
Which font shapes should be made? Historical style terms like Renaissance
or Baroque letterforms cannot be applied beyond Latin/Cyrillic/Greek
scripts to any greater extent than Kufi or Nashki can be applied beyond
Arabic script; "italic" is really only meaningful for Latin letters.
However, most modern writing systems have typographic formulations for
contrasting uniform and modulated character stroke widths, and have some
history with "oblique", faces. Since the advent of the typewriter, most
have developed a typographic style with uniform-width characters.
Accordingly, the FreeFont family has one monospaced - FreeMono - and two
proportional faces (one with uniform stroke - FreeSans - and one with
modulated stroke - FreeSerif).
To make text from different writing systems look good side-by-side, each
FreeFont face is meant to contain characters of similar style and weight.
Licensing
---------
Free UCS scalable fonts 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 3 of the License, or
(at your option) any later version.
The fonts are distributed in the hope that they will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
As a special exception, if you create a document which uses this font, and
embed this font or unaltered portions of this font into the document, this
font does not by itself cause the resulting document to be covered by the
GNU General Public License. This exception does not however invalidate any
other reasons why the document might be covered by the GNU General Public
License. If you modify this font, you may extend this exception to your
version of the font, but you are not obligated to do so. If you do not
wish to do so, delete this exception statement from your version.
Files and their suffixes
------------------------
The files with .sfd (Spline Font Database) are in FontForge's native format.
Please use these if you plan to modify the font files.
TrueType fonts for immediate consumption are the files with the .ttf
(TrueType Font) suffix. These are ready to use in Xwindows based
systems using FreeType, on Mac OS, and on older Windows systems.
OpenType fonts (with suffix .otf) are for use in Windows Vista.
Note that although they can be installed on Linux, but many applications
in Linux still don't support them.
--------------------------------------------------------------------------
Primoz Peterlin, <primoz.peterlin@biofiz.mf.uni-lj.si>
Steve White <stevan.white@googlemail.com>
Free UCS scalable fonts: http://savannah.gnu.org/projects/freefont/
$Id: README,v 1.7 2009/01/13 08:43:23 Stevan_White Exp $
================================================
FILE: data/gource.1
================================================
.TH Gource 1
.SH NAME
Gource - a software version control visualization
.SH SYNOPSIS
\fIgource\fR
[options] [path]
.SH DESCRIPTION
\fIgource\fR is an OpenGL-based 3D visualisation tool for source control repositories.
The repository is displayed as a tree where the root of the repository is the centre, directories are branches and files are leaves. Contributors to the source code appear and disappear as they contribute to specific files and directories.
.SH REQUIREMENTS
\fIgource\fR
requires a OpenGL capable video card to run.
.SH OPTIONS
.TP 8
\fB\-h, \-\-help\fR
Help ('\fB-H\fR' for extended help).
.TP
\fB\-WIDTHxHEIGHT, \-\-viewport WIDTHxHEIGHT\fR
Set the viewport size. If \-f is also supplied, will attempt to set the video mode to this also. Add ! to make the window non-resizable.
.TP
\fB\-f\fR
Fullscreen.
.TP
\fB\-\-screen SCREEN\fR
Set the number of the screen to display on.
.TP
\fB\-\-high\-dpi\fR
Request a high DPI display when creating the window.
On some platforms such as MacOS, the window resolution is specified in points instead of pixels.
The \-\-high-dpi flag may be required to access some higher resolutions.
E.g. requesting a high DPI 800x600 window may produce a window that is 1600x1200 pixels.
.TP
\fB\-\-window\-position XxY\fR
Initial window position on your desktop which may be made up of multiple monitors.
This will override the screen setting so don't specify both.
.TP
\fB\-\-frameless\fR
Frameless window.
.TP
\fB\-\-transparent\fR
Make the background transparent. Only really useful for screenshots.
.TP
\fB\-\-start\-date "YYYY\-MM\-DD hh:mm:ss +tz"\fR
Start with the first entry after the supplied date and optional time.
If a time zone offset isn't specified the local time zone is used.
Example accepted formats:
"2012-06-30"
"2012-06-30 12:00"
"2012-06-30 12:00:00 +12"
.TP
\fB\-\-stop\-date "YYYY\-MM\-DD hh:mm:ss +tz"\fR
Stop at the last entry prior to the supplied date and optional time.
Uses the same format as \-\-start\-date.
.TP
\fB\-p, \-\-start\-position POSITION\fR
Begin at some position in the log (between 0.0 and 1.0 or 'random').
.TP
\fB\-\-stop\-position POSITION\fR
Stop (exit) at some position in the log (does not work with STDIN).
.TP
\fB\-t, \-\-stop\-at\-time SECONDS\fR
Stop (exit) after a specified number of seconds.
.TP
\fB\-\-stop\-at\-end\fR
Stop (exit) at the end of the log / stream.
.TP
\fB\-\-loop\fR
Loop back to the start of the log when the end is reached.
.TP
\fB\-\-loop\-delay\-seconds SECONDS\fR
Seconds to delay before looping.
.TP
\fB\-a, \-\-auto\-skip\-seconds SECONDS\fR
Automatically skip to next entry if nothing happens for a specified number of seconds.
.TP
\fB\-s, \-\-seconds\-per\-day SECONDS\fR
Speed of simulation in seconds per day.
.TP
\fB\-\-realtime\fR
Realtime playback speed.
.TP
\fB\-\-no\-time\-travel\fR
Use the time of the last commit if the time of a commit is in the past.
.TP
\fB\-\-author\-time\fR
Use the timestamp of the author instead of the timestamp of the committer.
.TP
\fB\-c, \-\-time\-scale SCALE\fR
Change simulation time scale. This affects the movement speed of user avatars.
E.g. 0.5 for half speed, 2 for double speed.
.TP
\fB\-i, \-\-file\-idle\-time SECONDS\fR
Time in seconds files remain idle before they are removed or 0 for no limit.
.TP
\fB\-\-file\-idle\-time\-at\-end SECONDS\fR
Time in seconds files remain idle at the end before they are removed.
.TP
\fB\-e, \-\-elasticity FLOAT\fR
Elasticity of nodes.
.TP
\fB\-b, \-\-background-colour FFFFFF\fR
Background colour in hex.
.TP
\fB\-\-background\-image IMAGE\fR
Set a background image.
.TP
\fB\-\-title TITLE\fR
Set a title
.TP
\fB\-\-font\-file FILE\fR
Specify the font. Should work with most font file formats supported by FreeType, such as TTF and OTF, among others.
.TP
\fB\-\-font\-scale SCALE\fR
Scale the size of all fonts.
.TP
\fB\-\-font\-size SIZE\fR
Font size used by the date and title.
.TP
\fB\-\-file\-font\-size SIZE\fR
Font size of filenames.
.TP
\fB\-\-dir\-font\-size SIZE\fR
Font size of directory names.
.TP
\fB\-\-user\-font\-size SIZE\fR
Font size of user names.
.TP
\fB\-\-font\-colour FFFFFF\fR
Font colour used by the date and title in hex.
.TP
\fB\-\-key\fR
Show file extension key.
.TP
\fB\-\-logo IMAGE\fR
Logo to display in the foreground.
.TP
\fB\-\-logo\-offset XxY\fR
Offset position of the logo.
.TP
\fB\-\-date\-format FORMAT\fR
Specify display date string (strftime format).
.TP
\fB\-\-log\-command VCS\fR
Show the log command used by gource (git,svn,hg,bzr,cvs2cl).
.TP
\fB\-\-log\-format VCS\fR
Specify format of the log being read (git,svn,hg,bzr,cvs2cl,custom). Required when reading from STDIN.
.TP
\fB\-\-git\-branch\fR
Get the git log of a branch other than the current one.
.TP
\fB\-\-follow\-user USER\fR
Have the camera automatically follow a particular user.
.TP
\fB\-\-highlight\-dirs\fR
Highlight the names of all directories.
.TP
\fB\-\-highlight\-user USER\fR
Highlight the names of a particular user.
.TP
\fB\-\-highlight\-users\fR
Highlight the names of all users.
.TP
\fB\-\-highlight\-colour FFFFFF\fR
Font colour for highlighted users in hex.
.TP
\fB\-\-selection\-colour FFFFFF\fR
Font colour for selected users and files.
.TP
\fB\-\-filename\-colour FFFFFF\fR
Font colour for filenames.
.TP
\fB\-\-dir\-colour FFFFFF\fR
Font colour for directories.
.TP
\fB\-\-dir\-name\-depth DEPTH\fR
Draw names of directories down to a specific depth in the tree.
.TP
\fB\-\-dir\-name\-position FLOAT
Position along edge of the directory name (between 0.1 and 1.0, default is 0.5).
.TP
\fB\-\-filename\-time SECONDS\fR
Duration to keep filenames on screen (>= 2.0).
.TP
\fB\-\-file\-extensions\fR
Show filename extensions only.
.TP
\fB\-\-file\-extension\-fallback\fR
Use filename as extension if the extension is missing or empty.
.TP
\fB\-\-file\-filter REGEX\fR
Filter out file paths matching the specified regular expression.
.TP
\fB\-\-file\-show\-filter REGEX\fR
Show only file paths matching the specified regular expression.
.TP
\fB\-\-user\-filter REGEX\fR
Filter usernames matching the specified regular expression.
.TP
\fB\-\-user\-show\-filter REGEX\fR
Show only usernames matching the specified regular expression.
.TP
\fB\-\-user\-image\-dir DIRECTORY\fR
Directory containing .jpg or .png images of users (eg "Full Name.png") to use as avatars.
.TP
\fB\-\-default\-user\-image IMAGE\fR
Path of .jpg to use as the default user image.
.TP
\fB\-\-fixed\-user\-size\fR
Forces the size of the user image to remain fixed throughout.
.TP
\fB\-\-colour\-images\fR
Colourize user images.
.TP
\fB\-\-crop AXIS\fR
Crop view on an axis (vertical,horizontal).
.TP
\fB\-\-padding FLOAT\fR
Camera view padding.
.TP
\fB\-\-multi\-sampling\fR
Enable multi-sampling.
.TP
\fB\-\-no\-vsync\fR
Disable vsync.
.TP
\fB\-\-bloom\-multiplier FLOAT\fR
Adjust the amount of bloom.
.TP
\fB\-\-bloom\-intensity FLOAT\fR
Adjust the intensity of the bloom.
.TP
\fB\-\-max\-files NUMBER\fR
Set the maximum number of files or 0 for no limit. Excess files will be discarded.
.TP
\fB\-\-max\-file\-lag SECONDS\fR
Max time files of a commit can take to appear. Use \-1 for no limit.
.TP
\fB\-\-max\-user\-speed UNITS\fR
Max speed users can travel per second.
.TP
\fB\-\-user\-friction SECONDS\fR
Time users take to come to a halt.
.TP
\fB\-\-user\-scale SCALE\fR
Change scale of user avatars.
.TP
\fB\-\-camera\-mode MODE\fR
Camera mode (overview,track).
.TP
\fB\-\-disable\-auto\-rotate\fR
Disable automatic camera rotation.
.TP
\fB\-\-disable\-input\fR
Disable keyboard and mouse input.
.TP
\fB\-\-hide DISPLAY_ELEMENT\fR
Hide one or more display elements from the list below:
bloom \- bloom effect
date \- current date
dirnames \- names of directories
files \- file icons
filenames \- names of files
mouse \- mouse cursor
progress \- progress bar widget
root \- root directory of the tree
tree \- animated tree structure
users \- user avatars
usernames \- names of users
Separate multiple elements with commas (eg "mouse,progress")
.TP
\fB\-\-hash\-seed SEED\fR
Change the seed of hash function.
.TP
\fB\-\-caption-file FILE
Caption file (see Caption Log Format).
.TP
\fB\-\-caption-size SIZE
Caption size.
.TP
\fB\-\-caption-colour FFFFFF
Caption colour in hex.
.TP
\fB\-\-caption-duration SECONDS
Caption duration.
.TP
\fB\-\-caption-offset X
Caption horizontal offset (0 to centre captions).
.TP
\fB\-o, \-\-output\-ppm\-stream FILE\fR
Output a PPM image stream to a file ('\-' for STDOUT).
This will automatically hide the progress bar initially and enable 'stop\-at\-end' unless other behaviour is specified.
.TP
\fB\-r, \-\-output\-framerate FPS\fR
Framerate of output (25,30,60). Used with \-\-output\-ppm\-stream.
.TP
\fB\-\-output\-custom\-log FILE\fR
Output a custom format log file ('\-' for STDOUT).
.TP
\fB\-\-load\-config CONFIG_FILE\fR
Load a config file.
.TP
\fB\-\-save\-config CONFIG_FILE\fR
Save a config file with the current options.
.TP
\fB\-\-path PATH\fR
.TP
\fBpath\fR
Either a supported version control directory, a pre-generated log file (see log commands or the custom log format), a Gource conf file or '-' to read STDIN.
If path is omitted, gource will attempt to read a log from the current directory.
.SS Git, Bazaar, Mercurial and SVN Examples
View the log of the repository in the current path:
.ti 10
\fIgource\fR
View the log of a project in the specified directory:
.ti 10
\fIgource\fR my\-project\-dir
For large projects, generating a log of the project history may take a long time. For centralized VCS like SVN, generating the log will put load on the central VCS server.
In these cases, you may like to save a copy of the log for later use.
You can generate a log in the VCS specific log format using the \-\-log\-command VCS option:
.ti 10
cd my\-svn\-project
.ti 10
\`\fIgource\fR \-\-log\-command svn\` > my\-svn\-project.log
.ti 10
\fIgource\fR my\-svn\-project.log
You can also have Gource write a copy of the log file in its own format:
.ti 10
\fIgource\fR \-\-output\-custom\-log my\-project\-custom.log
.SS CVS Support
Use 'cvs2cl' to generate the log and then pass it to Gource:
.ti 10
cvs2cl \-\-chrono \-\-stdout \-\-xml \-g\-q > my\-cvs\-project.log
.ti 10
gource my\-cvs\-project.log
.SS Custom Log Format
If you want to use Gource with something other than the supported systems, there is a pipe ('|') delimited custom log format:
.ti 10
timestamp - An ISO 8601 or unix timestamp of when the update occurred.
.ti 10
username - The name of the user who made the update.
.ti 10
type - Single character for the update type - (A)dded, (M)odified or (D)eleted.
.ti 10
file - Path of the file updated.
.ti 10
colour - A colour for the file in hex (FFFFFF) format. Optional.
.SS Caption Log Format
Gource can display captions along the timeline by specifying a caption file (using \-\-caption\-file) in the pipe ('|') delimited format below:
.ti 10
timestamp - An ISO 8601 or unix timestamp of when to display the caption.
.ti 10
caption - The caption
.SS Recording Videos
See the guide on the homepage for examples of recording videos with Gource:
.ti 10
https://github.com/acaudwell/Gource/wiki/Videos
.SS More Information
Visit the Gource homepage for guides and examples of using Gource with various version control systems:
.ti 10
http://gource.io
.SH INTERFACE
The time shown in the top left of the screen is set initially from the first log entry read and is incremented according to the simulation speed (\-\-seconds\-per\-day).
Pressing SPACE at any time will pause/resume the simulation. While paused you may use the mouse to inspect the detail of individual files and users.
TAB cycles through selecting the current visible users.
The camera mode, either tracking activity or showing the entire code tree, can
be toggled using the Middle mouse button.
You can drag the left mouse button to manually control the camera. The right
mouse button rotates the view.
Interactive keyboard commands:
.sp
.ti 10
(V) Toggle camera mode
.ti 10
(C) Displays Gource logo
.ti 10
(K) Toggle file extension key
.ti 10
(M) Toggle mouse visibility
.ti 10
(N) Jump forward in time to next log entry
.ti 10
(S) Randomize colours
.ti 10
(D) Toggle directory name display mode
.ti 10
(F) Toggle file name display mode
.ti 10
(U) Toggle user name display mode
.ti 10
(G) Toggle display of users
.ti 10
(T) Toggle display of directory tree edges
.ti 10
(R) Toggle display of root directory edges
.ti 10
(<>) Adjust time scale / user avatar movement speed
.ti 10
(+-) Adjust simulation speed
.ti 10
(Keypad +-) Adjust camera zoom
.ti 10
(TAB) Cycle through visible users
.ti 10
(F12) Screenshot
.ti 10
(Alt+Enter) Fullscreen toggle
.ti 10
(ESC) Quit
.SH AUTHOR
.nf
Written by Andrew Caudwell
Project Homepage: http://gource.io
.SH COPYRIGHT
.nf
Copyright (C) 2009 Andrew Caudwell (acaudwell@gmail.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
3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
.fi
.SH ACKNOWLEDGEMENTS
.nf
Catalyst IT (catalyst.net.nz)
For supporting the development of Gource!
.fi
================================================
FILE: data/gource.style
================================================
changeset = '{file_adds}{file_copies}{file_mods}{file_dels}'
file_mod = "{date|hgdate}|{author|person}|M|{file_mod}\n"
file_add = "{date|hgdate}|{author|person}|A|{file_add}\n"
file_del = "{date|hgdate}|{author|person}|D|{file_del}\n"
file_copy = "{date|hgdate}|{author|person}|A|{name}\n"
================================================
FILE: data/shaders/bloom.frag
================================================
varying vec3 pos;
void main()
{
float r = fract(sin(dot(pos.xy ,vec2(11.3713,67.3219))) * 2351.3718);
float offset = (0.5 - r) * gl_TexCoord[0].x * 0.045;
float intensity = min(1.0, cos((length(pos*2.0)+offset)/gl_TexCoord[0].x));
float gradient = intensity * smoothstep(0.0, 2.0, intensity);
gradient *= smoothstep(1.0,0.67+r*0.33, 1.0-intensity);
gl_FragColor = gl_Color * gradient;
}
================================================
FILE: data/shaders/bloom.vert
================================================
varying vec3 pos;
void main()
{
pos = gl_Vertex.xyz - gl_MultiTexCoord0.yzw;
gl_TexCoord[0] = gl_MultiTexCoord0;
gl_FrontColor = gl_Color;
gl_Position = ftransform();
}
================================================
FILE: data/shaders/shadow.frag
================================================
uniform sampler2D tex;
uniform float shadow_strength;
void main(void)
{
vec4 colour = texture2D(tex,gl_TexCoord[0].st);
gl_FragColor = vec4(0.0, 0.0, 0.0, gl_Color.w * colour.w * shadow_strength);
}
================================================
FILE: data/shaders/shadow.vert
================================================
void main(void)
{
gl_TexCoord[0] = gl_MultiTexCoord0;
gl_FrontColor = gl_Color;
gl_Position = ftransform();
}
================================================
FILE: data/shaders/text.frag
================================================
uniform sampler2D tex;
uniform float shadow_strength;
uniform float texel_size;
void main(void)
{
float colour_alpha = texture2D(tex,gl_TexCoord[0].xy).w;
float shadow_alpha = texture2D(tex,gl_TexCoord[0].xy - vec2(texel_size)).w * shadow_strength;
float combined_alpha = 1.0 - (1.0-shadow_alpha)*(1.0-colour_alpha);
if(combined_alpha > 0.0) colour_alpha /= combined_alpha;
gl_FragColor = gl_Color * vec4(vec3(colour_alpha), combined_alpha);
}
================================================
FILE: data/shaders/text.vert
================================================
void main(void)
{
gl_TexCoord[0] = gl_MultiTexCoord0;
gl_FrontColor = gl_Color;
gl_Position = ftransform();
}
================================================
FILE: dev/.gitignore
================================================
builds/
================================================
FILE: dev/bin/build_tar.pl
================================================
#!/usr/bin/perl
#copy stuff we want to go into the gource source tar ball
use strict;
use warnings;
use FindBin;
use File::Path;
use File::Copy;
use Date::Format;
use Getopt::Long qw(GetOptions);
use Cwd;
sub gource_version {
my $version = `cat $FindBin::Bin/../../src/gource_settings.h | grep GOURCE_VERSION`;
$version =~ /"([^"]+)"/ or die("could not determine version\n");
$version = $1;
return $version;
}
my $VERSION = gource_version();
my @exclusions = (
qr{^/autogen\.sh$},
qr{^/backup/},
qr{^/confs/},
qr{^/cmd/},
qr{^/resources/},
qr{^/tests/},
qr{^/scripts/},
qr{^/contrib/},
qr{^/config.status$},
qr{^/config.log$},
qr{^/gource$},
qr{^/dev/},
qr{^/logs/},
qr{/\.},
qr{Makefile$},
qr{\.o$},
qr{^/todo.txt$},
qr{^/build-stamp$},
qr{^/autom4te},
qr{^/src/core/README$},
qr{^/src/core/ui/},
qr{\.d$},
);
my @inclusions = (
qr{^/gource\.pro$},
qr{^/ChangeLog$},
qr{^/THANKS$},
qr{^/COPYING$},
qr{^/INSTALL$},
qr{^/README\.md$},
qr{/Makefile\.(?:am|in)$},
qr{^/aclocal\.m4$},
qr{^/m4/.+\.m4$},
qr{^/configure(?:\.ac)?$},
qr{^/src/.+\.(?:cpp|h|cc|hh)$},
qr{^/data/file\.png$},
qr{^/data/user\.png$},
qr{^/data/beam\.png$},
qr{^/data/bloom\.tga$},
qr{^/data/bloom_alpha\.tga$},
qr{^/data/cursor\.png$},
qr{^/data/fonts/FreeSans\.ttf$},
qr{^/data/gource\.1$},
qr{^/data/gource\.style$},
qr{^/data/fonts/README$},
qr{^/data/shaders/bloom\.(?:vert|frag)$},
qr{^/data/shaders/shadow\.(?:vert|frag)$},
qr{^/data/shaders/text\.(?:vert|frag)$},
qr{^/build-aux/(?:compile|config.(?:guess|sub)|depcomp|install-sh|missing|test-driver)$},
);
my $tmp_path = "/var/tmp/gource-$VERSION";
system("rm -r $tmp_path") if -d $tmp_path;
mkpath($tmp_path) or die("failed to make temp folder $tmp_path");
chdir("$FindBin::Bin/../../");
my @files = `find .`;
#check configure.ac has been updated
unless(`cat configure.ac` =~ /AC_INIT\(Gource, $VERSION,/) {
die("configure.ac does not mention current version number\n");
}
#check ChangeLog has been updated
unless(`cat ChangeLog` =~ /^$VERSION:/) {
die("ChangeLog does not mention current version number\n");
}
#if Makefile exists, do distclean
if(-e 'Makefile') {
if(system("make distclean") != 0) {
die("make distclean failed: $!\n");
}
}
#reconfigure
if(system("autoreconf -f -i -v") != 0) {
die("autoreconf failed: $!\n");
}
foreach my $file (@files) {
$file =~ s/[\r\n]+//;
$file =~ s/^\.//;
(my $relfile = $file) =~ s{^/}{};
(my $dir = $file) =~ s{[^/]+$}{/};
next if $file =~ /^\s*$/;
next if -d $relfile;
next if grep { $file =~ $_ } @exclusions;
unless(grep { $file =~ $_ } @inclusions) {
warn "WARNING: nothing known about $file\n";
next;
}
mkpath("$tmp_path/$dir");
if(system("cp", "$relfile", "$tmp_path/$relfile") != 0) {
die("error copying $file to $tmp_path/$relfile: $? $!\n");
}
}
my $current_dir = cwd;
chdir("/var/tmp/");
my $archive = "gource-$VERSION.tar.gz";
if(system("tar -czf $archive gource-$VERSION") !=0) {
die("failed to make archive $archive");
}
unlink("$FindBin::Bin/../builds/$archive");
my $builds_dir = "$FindBin::Bin/../builds/";
system('mkdir', '-p', $builds_dir);
unlink("$builds_dir/$archive") if -e "$builds_dir/$archive";
move("$archive", $builds_dir);
system("rm -r $tmp_path");
print "Built $archive\n";
================================================
FILE: dev/bin/build_win64.pl
================================================
#!/usr/bin/perl
# windows archive + installer generator
use strict;
use warnings;
use FindBin;
use File::Copy;
my $base_dir = "$FindBin::Bin/../..";
my $build_dir = "$base_dir/../build-gource-Msys2_64_bit-Release/release";
my $binaries_dir = "$base_dir/dev/win64";
my $builds_output_dir = "$base_dir/dev/builds";
my $makensis = "'C:\\Program Files (x86)\\NSIS\\makensis.exe'";
sub gource_version {
my $version = `cat $base_dir/src/gource_settings.h | grep GOURCE_VERSION`;
$version =~ /"([^"]+)"/ or die("could not determine version\n");
$version = $1;
return $version;
}
sub doit {
my $cmd = shift;
if(system($cmd) != 0) {
die("command '$cmd' failed: $!");
}
}
sub dosify {
my($src, $dest) = @_;
my $content = `cat $src`;
$content =~ s/\r?\n/\r\n/g;
open OUTPUT, ">$dest" or die("$!");
print OUTPUT $content;
close OUTPUT;
}
my @dll_files;
sub update_binaries {
copy("$build_dir/gource.exe", "$binaries_dir/gource.exe") or die("failed to copy $build_dir/gource.exe: $!\n");
chdir($binaries_dir) or die("failed to change directory to $binaries_dir\n");
for my $existing_dll (glob("*.dll")) {
unlink($existing_dll) or die("failed to remove existing dll $existing_dll: $!\n");
}
my @dlls = `cygcheck ./gource.exe | grep msys`;
for my $dll (@dlls) {
$dll =~ s/^\s+//g;
$dll =~ s/[\r\n]//g;
my($name) = $dll =~ m{\\([^\\]+\.dll)$};
warn "adding $name\n";
copy($dll, "$binaries_dir/$name") or die "failed to copy $name: $!\n";
push @dll_files, $name;
}
}
my $nsis_script = q[
!define MULTIUSER_MUI
!define MULTIUSER_EXECUTIONLEVEL Highest
!define MULTIUSER_INSTALLMODE_COMMANDLINE
!define MULTIUSER_USE_PROGRAMFILES64
!define MULTIUSER_INSTALLMODE_DEFAULT_REGISTRY_KEY "Software\Gource"
!define MULTIUSER_INSTALLMODE_INSTDIR_REGISTRY_KEY "Software\Gource"
!define MULTIUSER_INSTALLMODE_DEFAULT_REGISTRY_VALUENAME "Install_Mode"
!define MULTIUSER_INSTALLMODE_INSTDIR_REGISTRY_VALUENAME "Install_Dir"
!define MULTIUSER_INSTALLMODE_INSTDIR "Gource"
!include "x64.nsh"
!include "MultiUser.nsh"
!include "MUI2.nsh"
!include "LogicLib.nsh"
!include "SafeEnvVarUpdate.nsh"
Name "Gource GOURCE_VERSION"
OutFile "GOURCE_INSTALLER"
!define MUI_WELCOMEFINISHPAGE_BITMAP "..\..\nsis\welcome.bmp"
!define MUI_UNWELCOMEFINISHPAGE_BITMAP "..\..\nsis\welcome.bmp"
!define MUI_COMPONENTSPAGE_NODESC
!insertmacro MULTIUSER_PAGE_INSTALLMODE
!insertmacro MUI_PAGE_WELCOME
!define MUI_PAGE_HEADER_TEXT "Legal Disclaimer"
!insertmacro MUI_PAGE_LICENSE "..\..\nsis\disclaimer.txt"
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH
!insertmacro MUI_LANGUAGE "English"
Function .onInit
${IfNot} ${RunningX64}
MessageBox MB_OK "This installer requires 64-bit Windows"
Quit
${EndIf}
!insertmacro MULTIUSER_INIT
ReadRegStr $R0 SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\Gource" "UninstallString"
StrCmp $R0 "" done
MessageBox MB_OKCANCEL|MB_ICONEXCLAMATION \
"Gource appears to already be installed. $\n$\nClick OK to remove the previous version and continue the installation." \
IDOK uninst
Abort
uninst:
ClearErrors
ExecWait $R0
done:
FunctionEnd
Function un.onInit
!insertmacro MULTIUSER_UNINIT
FunctionEnd
Section "Gource" SecGource
SectionIn RO
GOURCE_INSTALL_LIST
writeUninstaller $INSTDIR\uninstall.exe
WriteRegStr SHCTX "Software\Gource" ${MULTIUSER_INSTALLMODE_INSTDIR_REGISTRY_VALUENAME} "$INSTDIR"
WriteRegStr SHCTX "Software\Gource" ${MULTIUSER_INSTALLMODE_DEFAULT_REGISTRY_VALUENAME} "$MultiUser.InstallMode"
WriteRegStr SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\Gource" "DisplayName" "Gource"
WriteRegStr SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\Gource" "DisplayVersion" "GOURCE_VERSION"
WriteRegStr SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\Gource" "Publisher" "acaudwell"
WriteRegStr SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\Gource" "UninstallString" '"$INSTDIR\uninstall.exe"'
WriteRegStr SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\Gource" "QuietUninstallString" '"$INSTDIR\uninstall.exe" /S'
WriteRegDWORD SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\Gource" "NoModify" 1
WriteRegDWORD SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\Gource" "NoRepair" 1
SectionEnd
Section "Add to PATH" SecAddtoPath
${If} $MultiUser.InstallMode == "AllUsers"
${EnvVarUpdate} $0 "PATH" "A" "HKLM" "$INSTDIR\cmd"
${ElseIf} $MultiUser.InstallMode == "CurrentUser"
${EnvVarUpdate} $0 "PATH" "A" "HKCU" "$INSTDIR\cmd"
${EndIf}
SectionEnd
Section "Uninstall"
${If} $MultiUser.InstallMode == "AllUsers"
${un.EnvVarUpdate} $0 "PATH" "R" "HKLM" "$INSTDIR\cmd"
${ElseIf} $MultiUser.InstallMode == "CurrentUser"
${un.EnvVarUpdate} $0 "PATH" "R" "HKCU" "$INSTDIR\cmd"
${EndIf}
DeleteRegKey SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\Gource"
DeleteRegKey SHCTX "Software\Gource"
GOURCE_UNINSTALL_LIST
GOURCE_UNINSTALL_DIRS
Delete $INSTDIR\uninstall.exe
RMDir "$INSTDIR"
SectionEnd
];
my @gource_files = qw(
data/beam.png
data/file.png
data/user.png
data/bloom.tga
data/bloom_alpha.tga
data/gource.style
data/fonts/FreeSans.ttf
data/shaders/bloom.frag
data/shaders/bloom.vert
data/shaders/shadow.frag
data/shaders/shadow.vert
data/shaders/text.frag
data/shaders/text.vert
cmd/gource.cmd
cmd/gource
);
my @gource_txts = qw(
README.md
ChangeLog
data/fonts/README
COPYING
THANKS
);
my @bin_files = qw(
gource.exe
);
my @gource_dirs = qw(
data
data/fonts
data/shaders
cmd
);
mkdir($binaries_dir) unless -d $binaries_dir;
mkdir($builds_output_dir) unless -d $builds_output_dir;
my $tmp_dir = "$builds_output_dir/gource-build.$$";
doit("rm $tmp_dir") if -d $tmp_dir;
mkdir($tmp_dir);
# create directories
foreach my $dir (@gource_dirs) {
mkdir("$tmp_dir/$dir");
}
my @gource_bundle;
update_binaries();
chdir("$base_dir") or die("chdir to $base_dir failed");
# copy binaries
foreach my $file (@bin_files, @dll_files) {
doit("cp $binaries_dir/$file $tmp_dir/$file");
push @gource_bundle, $file;
}
# copy general files
foreach my $file (@gource_files) {
doit("cp $file $tmp_dir/$file");
push @gource_bundle, $file;
}
# convert text files
foreach my $file (@gource_txts) {
(my $file_prefix = $file) =~ s/\..+$//;
my $txt_file = "$file_prefix.txt";
dosify("$file", "$tmp_dir/$txt_file");
push @gource_bundle, $txt_file;
}
my $version = gource_version();
my $installer_name = "gource-${version}.win64-setup.exe";
my $archive_name = "gource-${version}.win64.zip";
my $install_list = '';
foreach my $dir ('', @gource_dirs) {
my @dir_files = map { my $f = $_; $f =~ s{/}{\\}g; $f; }
grep { my $d = /^(.+)\// ? $1 : ''; $d eq $dir }
@gource_bundle;
(my $output_dir = $dir) =~ s{/}{\\}g;
$install_list .= "\n" . ' SetOutPath "$INSTDIR' . ( $dir ? "\\$output_dir" : "" ) . "\"\n\n";
foreach my $file (@dir_files) {
$install_list .= ' File '.$file."\n";
}
}
my $uninstall_list = join("\n", map { my $f = $_; $f =~ s{/}{\\}g; ' Delete $INSTDIR\\'.$f } @gource_bundle);
my $uninstall_dirs = join("\n", map { my $d = $_; $d =~ s{/}{\\}g; ' RMDir $INSTDIR\\'.$d } reverse @gource_dirs);
$nsis_script =~ s/GOURCE_VERSION/$version/g;
$nsis_script =~ s/GOURCE_INSTALLER/$installer_name/g;
$nsis_script =~ s/GOURCE_INSTALL_LIST/$install_list/;
$nsis_script =~ s/GOURCE_UNINSTALL_LIST/$uninstall_list/;
$nsis_script =~ s/GOURCE_UNINSTALL_DIRS/$uninstall_dirs/;
$nsis_script =~ s/\n/\r\n/g;
chdir($tmp_dir) or die("failed to change directory to '$tmp_dir'\n");
# remove existing copies of the version installer if they exist
unlink("../$installer_name") if -e "../$installer_name";
unlink("../$archive_name") if -e "../$archive_name";
my $output_file = "gource.nsi";
open my $NSIS_HANDLE, ">$output_file" or die("failed to open $output_file: $!");
print $NSIS_HANDLE $nsis_script;
close $NSIS_HANDLE;
# generate installer
# assert we have the long string build of NSIS
doit("$makensis -HDRINFO | grep -q NSIS_MAX_STRLEN=8192");
doit("$makensis $output_file");
doit("rm $output_file");
doit("mv $installer_name ..");
# also create zip archive
doit("zip -r $archive_name *");
doit("mv $archive_name ..");
chdir("$tmp_dir/..");
doit("rm -rf $tmp_dir");
================================================
FILE: dev/nsis/disclaimer.txt
================================================
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.
================================================
FILE: gource.pro
================================================
# Note: this project file currently only implements building on Windows with Mingw-w64
# See the INSTALL file for building instructions
TEMPLATE = app
CONFIG += console
CONFIG -= app_bundle
CONFIG -= qt
DEFINES -= UNICODE
CONFIG += c++11
CONFIG += object_parallel_to_source
gcc {
QMAKE_CXXFLAGS_WARN_ON = -Wall -Wno-unused-variable -Wno-sign-compare -Wno-unused-parameter -Wno-reorder
QMAKE_CXXFLAGS_DEBUG += -DASSERTS_ENABLED
}
mingw {
QMAKE_CXXFLAGS += -Dmain=SDL_main
QMAKE_LFLAGS += -mconsole
INCLUDEPATH += C:\msys64\mingw64\include\SDL2
INCLUDEPATH += C:\msys64\mingw64\include\freetype2
LIBS += -lmingw32 -lSDL2main -lSDL2.dll
LIBS += -lSDL2_image.dll -lfreetype.dll -lpcre2-8.dll -lpng.dll -lglew32.dll -lboost_system-mt -lboost_filesystem-mt -lopengl32 -lglu32
LIBS += -static-libgcc -static-libstdc++
LIBS += -lcomdlg32
}
VPATH += ./src
SOURCES += \
action.cpp \
bloom.cpp \
caption.cpp \
dirnode.cpp \
file.cpp \
gource.cpp \
gource_settings.cpp \
gource_shell.cpp \
key.cpp \
logmill.cpp \
main.cpp \
pawn.cpp \
slider.cpp \
spline.cpp \
textbox.cpp \
user.cpp \
zoomcamera.cpp \
formats/apache.cpp \
formats/bzr.cpp \
formats/commitlog.cpp \
formats/custom.cpp \
formats/cvs-exp.cpp \
formats/cvs2cl.cpp \
formats/git.cpp \
formats/gitraw.cpp \
formats/hg.cpp \
formats/svn.cpp \
tinyxml/tinystr.cpp \
tinyxml/tinyxml.cpp \
tinyxml/tinyxmlerror.cpp \
tinyxml/tinyxmlparser.cpp \
core/conffile.cpp \
core/display.cpp \
core/frustum.cpp \
core/fxfont.cpp \
core/logger.cpp \
core/mousecursor.cpp \
core/plane.cpp \
core/png_writer.cpp \
core/ppm.cpp \
core/quadtree.cpp \
core/regex.cpp \
core/resource.cpp \
core/sdlapp.cpp \
core/seeklog.cpp \
core/settings.cpp \
core/shader.cpp \
core/shader_common.cpp \
core/stringhash.cpp \
core/texture.cpp \
core/tga.cpp \
core/timezone.cpp \
core/vbo.cpp \
core/vectors.cpp
HEADERS += \
action.h \
bloom.h \
caption.h \
dirnode.h \
file.h \
gource.h \
gource_settings.h \
gource_shell.h \
key.h \
logmill.h \
main.h \
pawn.h \
slider.h \
spline.h \
textbox.h \
user.h \
zoomcamera.h \
formats/apache.h \
formats/bzr.h \
formats/commitlog.h \
formats/custom.h \
formats/cvs-exp.h \
formats/cvs2cl.h \
formats/git.h \
formats/gitraw.h \
formats/hg.h \
formats/svn.h \
tinyxml/tinystr.h \
tinyxml/tinyxml.h \
core/bounds.h \
core/conffile.h \
core/display.h \
core/frustum.h \
core/fxfont.h \
core/gl.h \
core/logger.h \
core/mousecursor.h \
core/pi.h \
core/plane.h \
core/png_writer.h \
core/ppm.h \
core/quadtree.h \
core/regex.h \
core/resource.h \
core/sdlapp.h \
core/seeklog.h \
core/settings.h \
core/shader.h \
core/shader_common.h \
core/stringhash.h \
core/texture.h \
core/tga.h \
core/timezone.h \
core/vbo.h \
core/vectors.h
DISTFILES += \
data/shaders/bloom.frag \
data/shaders/shadow.frag \
data/shaders/text.frag \
data/shaders/bloom.vert \
data/shaders/shadow.vert \
data/shaders/text.vert
================================================
FILE: m4/ax_boost_base.m4
================================================
# ===========================================================================
# https://www.gnu.org/software/autoconf-archive/ax_boost_base.html
# ===========================================================================
#
# SYNOPSIS
#
# AX_BOOST_BASE([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
#
# DESCRIPTION
#
# Test for the Boost C++ libraries of a particular version (or newer)
#
# If no path to the installed boost library is given the macro searches
# under /usr, /usr/local, /opt, /opt/local and /opt/homebrew and evaluates
# the $BOOST_ROOT environment variable. Further documentation is available
# at <http://randspringer.de/boost/index.html>.
#
# This macro calls:
#
# AC_SUBST(BOOST_CPPFLAGS) / AC_SUBST(BOOST_LDFLAGS)
#
# And sets:
#
# HAVE_BOOST
#
# LICENSE
#
# Copyright (c) 2008 Thomas Porschberg <thomas@randspringer.de>
# Copyright (c) 2009 Peter Adolphs
#
# 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 any
# warranty.
#serial 55
# example boost program (need to pass version)
m4_define([_AX_BOOST_BASE_PROGRAM],
[AC_LANG_PROGRAM([[
#include <boost/version.hpp>
]],[[
(void) ((void)sizeof(char[1 - 2*!!((BOOST_VERSION) < ($1))]));
]])])
AC_DEFUN([AX_BOOST_BASE],
[
AC_ARG_WITH([boost],
[AS_HELP_STRING([--with-boost@<:@=ARG@:>@],
[use Boost library from a standard location (ARG=yes),
from the specified location (ARG=<path>),
or disable it (ARG=no)
@<:@ARG=yes@:>@ ])],
[
AS_CASE([$withval],
[no],[want_boost="no";_AX_BOOST_BASE_boost_path=""],
[yes],[want_boost="yes";_AX_BOOST_BASE_boost_path=""],
[want_boost="yes";_AX_BOOST_BASE_boost_path="$withval"])
],
[want_boost="yes"])
AC_ARG_WITH([boost-libdir],
[AS_HELP_STRING([--with-boost-libdir=LIB_DIR],
[Force given directory for boost libraries.
Note that this will override library path detection,
so use this parameter only if default library detection fails
and you know exactly where your boost libraries are located.])],
[
AS_IF([test -d "$withval"],
[_AX_BOOST_BASE_boost_lib_path="$withval"],
[AC_MSG_ERROR([--with-boost-libdir expected directory name])])
],
[_AX_BOOST_BASE_boost_lib_path=""])
BOOST_LDFLAGS=""
BOOST_CPPFLAGS=""
AS_IF([test "x$want_boost" = "xyes"],
[_AX_BOOST_BASE_RUNDETECT([$1],[$2],[$3])])
AC_SUBST(BOOST_CPPFLAGS)
AC_SUBST(BOOST_LDFLAGS)
])
# convert a version string in $2 to numeric and affect to polymorphic var $1
AC_DEFUN([_AX_BOOST_BASE_TONUMERICVERSION],[
AS_IF([test "x$2" = "x"],[_AX_BOOST_BASE_TONUMERICVERSION_req="1.20.0"],[_AX_BOOST_BASE_TONUMERICVERSION_req="$2"])
_AX_BOOST_BASE_TONUMERICVERSION_req_shorten=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '\([[0-9]]*\.[[0-9]]*\)'`
_AX_BOOST_BASE_TONUMERICVERSION_req_major=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '\([[0-9]]*\)'`
AS_IF([test "x$_AX_BOOST_BASE_TONUMERICVERSION_req_major" = "x"],
[AC_MSG_ERROR([You should at least specify libboost major version])])
_AX_BOOST_BASE_TONUMERICVERSION_req_minor=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '[[0-9]]*\.\([[0-9]]*\)'`
AS_IF([test "x$_AX_BOOST_BASE_TONUMERICVERSION_req_minor" = "x"],
[_AX_BOOST_BASE_TONUMERICVERSION_req_minor="0"])
_AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '[[0-9]]*\.[[0-9]]*\.\([[0-9]]*\)'`
AS_IF([test "X$_AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor" = "X"],
[_AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor="0"])
_AX_BOOST_BASE_TONUMERICVERSION_RET=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req_major \* 100000 \+ $_AX_BOOST_BASE_TONUMERICVERSION_req_minor \* 100 \+ $_AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor`
AS_VAR_SET($1,$_AX_BOOST_BASE_TONUMERICVERSION_RET)
])
dnl Run the detection of boost should be run only if $want_boost
AC_DEFUN([_AX_BOOST_BASE_RUNDETECT],[
_AX_BOOST_BASE_TONUMERICVERSION(WANT_BOOST_VERSION,[$1])
succeeded=no
AC_REQUIRE([AC_CANONICAL_HOST])
dnl On 64-bit systems check for system libraries in both lib64 and lib.
dnl The former is specified by FHS, but e.g. Debian does not adhere to
dnl this (as it rises problems for generic multi-arch support).
dnl The last entry in the list is chosen by default when no libraries
dnl are found, e.g. when only header-only libraries are installed!
AS_CASE([${host_cpu}],
[x86_64],[libsubdirs="lib64 libx32 lib lib64"],
[mips*64*],[libsubdirs="lib64 lib32 lib lib64"],
[ppc64|powerpc64|s390x|sparc64|aarch64|ppc64le|powerpc64le|riscv64|e2k|loongarch64],[libsubdirs="lib64 lib lib64"],
[libsubdirs="lib"]
)
dnl allow for real multi-arch paths e.g. /usr/lib/x86_64-linux-gnu. Give
dnl them priority over the other paths since, if libs are found there, they
dnl are almost assuredly the ones desired.
AS_CASE([${host_cpu}],
[i?86],[multiarch_libsubdir="lib/i386-${host_os}"],
[armv7l],[multiarch_libsubdir="lib/arm-${host_os}"],
[multiarch_libsubdir="lib/${host_cpu}-${host_os}"]
)
dnl first we check the system location for boost libraries
dnl this location is chosen if boost libraries are installed with the --layout=system option
dnl or if you install boost with RPM
AS_IF([test "x$_AX_BOOST_BASE_boost_path" != "x"],[
AC_MSG_CHECKING([for boostlib >= $1 ($WANT_BOOST_VERSION) includes in "$_AX_BOOST_BASE_boost_path/include"])
AS_IF([test -d "$_AX_BOOST_BASE_boost_path/include" && test -r "$_AX_BOOST_BASE_boost_path/include"],[
AC_MSG_RESULT([yes])
BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path/include"
for _AX_BOOST_BASE_boost_path_tmp in $multiarch_libsubdir $libsubdirs; do
AC_MSG_CHECKING([for boostlib >= $1 ($WANT_BOOST_VERSION) lib path in "$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp"])
AS_IF([test -d "$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp" && test -r "$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp" ],[
AC_MSG_RESULT([yes])
BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp";
break;
],
[AC_MSG_RESULT([no])])
done],[
AC_MSG_RESULT([no])])
],[
if test X"$cross_compiling" = Xyes; then
search_libsubdirs=$multiarch_libsubdir
else
search_libsubdirs="$multiarch_libsubdir $libsubdirs"
fi
for _AX_BOOST_BASE_boost_path_tmp in /usr /usr/local /opt /opt/local /opt/homebrew ; do
if test -d "$_AX_BOOST_BASE_boost_path_tmp/include/boost" && test -r "$_AX_BOOST_BASE_boost_path_tmp/include/boost" ; then
for libsubdir in $search_libsubdirs ; do
if ls "$_AX_BOOST_BASE_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
done
BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path_tmp/$libsubdir"
BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path_tmp/include"
break;
fi
done
])
dnl overwrite ld flags if we have required special directory with
dnl --with-boost-libdir parameter
AS_IF([test "x$_AX_BOOST_BASE_boost_lib_path" != "x"],
[BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_lib_path"])
AC_MSG_CHECKING([for boostlib >= $1 ($WANT_BOOST_VERSION)])
CPPFLAGS_SAVED="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
export CPPFLAGS
LDFLAGS_SAVED="$LDFLAGS"
LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
export LDFLAGS
AC_REQUIRE([AC_PROG_CXX])
AC_LANG_PUSH(C++)
AC_COMPILE_IFELSE([_AX_BOOST_BASE_PROGRAM($WANT_BOOST_VERSION)],[
AC_MSG_RESULT(yes)
succeeded=yes
found_system=yes
],[
])
AC_LANG_POP([C++])
dnl if we found no boost with system layout we search for boost libraries
dnl built and installed without the --layout=system option or for a staged(not installed) version
if test "x$succeeded" != "xyes" ; then
CPPFLAGS="$CPPFLAGS_SAVED"
LDFLAGS="$LDFLAGS_SAVED"
BOOST_CPPFLAGS=
if test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
BOOST_LDFLAGS=
fi
_version=0
if test -n "$_AX_BOOST_BASE_boost_path" ; then
if test -d "$_AX_BOOST_BASE_boost_path" && test -r "$_AX_BOOST_BASE_boost_path"; then
for i in `ls -d $_AX_BOOST_BASE_boost_path/include/boost-* 2>/dev/null`; do
_version_tmp=`echo $i | sed "s#$_AX_BOOST_BASE_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
V_CHECK=`expr $_version_tmp \> $_version`
if test "x$V_CHECK" = "x1" ; then
_version=$_version_tmp
fi
VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path/include/boost-$VERSION_UNDERSCORE"
done
dnl if nothing found search for layout used in Windows distributions
if test -z "$BOOST_CPPFLAGS"; then
if test -d "$_AX_BOOST_BASE_boost_path/boost" && test -r "$_AX_BOOST_BASE_boost_path/boost"; then
BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path"
fi
fi
dnl if we found something and BOOST_LDFLAGS was unset before
dnl (because "$_AX_BOOST_BASE_boost_lib_path" = ""), set it here.
if test -n "$BOOST_CPPFLAGS" && test -z "$BOOST_LDFLAGS"; then
for libsubdir in $libsubdirs ; do
if ls "$_AX_BOOST_BASE_boost_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
done
BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path/$libsubdir"
fi
fi
else
if test "x$cross_compiling" != "xyes" ; then
for _AX_BOOST_BASE_boost_path in /usr /usr/local /opt /opt/local /opt/homebrew ; do
if test -d "$_AX_BOOST_BASE_boost_path" && test -r "$_AX_BOOST_BASE_boost_path" ; then
for i in `ls -d $_AX_BOOST_BASE_boost_path/include/boost-* 2>/dev/null`; do
_version_tmp=`echo $i | sed "s#$_AX_BOOST_BASE_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
V_CHECK=`expr $_version_tmp \> $_version`
if test "x$V_CHECK" = "x1" ; then
_version=$_version_tmp
best_path=$_AX_BOOST_BASE_boost_path
fi
done
fi
done
VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
if test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
for libsubdir in $libsubdirs ; do
if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
done
BOOST_LDFLAGS="-L$best_path/$libsubdir"
fi
fi
if test -n "$BOOST_ROOT" ; then
for libsubdir in $libsubdirs ; do
if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
done
if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then
version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
stage_version_shorten=`expr $stage_version : '\([[0-9]]*\.[[0-9]]*\)'`
V_CHECK=`expr $stage_version_shorten \>\= $_version`
if test "x$V_CHECK" = "x1" && test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
AC_MSG_NOTICE(We will use a staged boost library from $BOOST_ROOT)
BOOST_CPPFLAGS="-I$BOOST_ROOT"
BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir"
fi
fi
fi
fi
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
export CPPFLAGS
LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
export LDFLAGS
AC_LANG_PUSH(C++)
AC_COMPILE_IFELSE([_AX_BOOST_BASE_PROGRAM($WANT_BOOST_VERSION)],[
AC_MSG_RESULT(yes)
succeeded=yes
found_system=yes
],[
])
AC_LANG_POP([C++])
fi
if test "x$succeeded" != "xyes" ; then
if test "x$_version" = "x0" ; then
AC_MSG_NOTICE([[We could not detect the boost libraries (version $1 or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation.]])
else
AC_MSG_NOTICE([Your boost libraries seems to old (version $_version).])
fi
BOOST_LDFLAGS=""
BOOST_CPPFLAGS=""
# execute ACTION-IF-NOT-FOUND (if present):
ifelse([$3], , :, [$3])
else
AC_DEFINE(HAVE_BOOST,,[define if the Boost library is available])
# execute ACTION-IF-FOUND (if present):
ifelse([$2], , :, [$2])
fi
CPPFLAGS="$CPPFLAGS_SAVED"
LDFLAGS="$LDFLAGS_SAVED"
])
================================================
FILE: m4/ax_boost_filesystem.m4
================================================
# ===========================================================================
# https://www.gnu.org/software/autoconf-archive/ax_boost_filesystem.html
# ===========================================================================
#
# SYNOPSIS
#
# AX_BOOST_FILESYSTEM
#
# DESCRIPTION
#
# Test for Filesystem library from the Boost C++ libraries. The macro
# requires a preceding call to AX_BOOST_BASE. Further documentation is
# available at <http://randspringer.de/boost/index.html>.
#
# This macro calls:
#
# AC_SUBST(BOOST_FILESYSTEM_LIB)
#
# And sets:
#
# HAVE_BOOST_FILESYSTEM
#
# LICENSE
#
# Copyright (c) 2009 Thomas Porschberg <thomas@randspringer.de>
# Copyright (c) 2009 Michael Tindal
# Copyright (c) 2009 Roman Rybalko <libtorrent@romanr.info>
#
# 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 any
# warranty.
#serial 28
AC_DEFUN([AX_BOOST_FILESYSTEM],
[
AC_ARG_WITH([boost-filesystem],
AS_HELP_STRING([--with-boost-filesystem@<:@=special-lib@:>@],
[use the Filesystem library from boost - it is possible to specify a certain library for the linker
e.g. --with-boost-filesystem=boost_filesystem-gcc-mt ]),
[
if test "$withval" = "no"; then
want_boost="no"
elif test "$withval" = "yes"; then
want_boost="yes"
ax_boost_user_filesystem_lib=""
else
want_boost="yes"
ax_boost_user_filesystem_lib="$withval"
fi
],
[want_boost="yes"]
)
if test "x$want_boost" = "xyes"; then
AC_REQUIRE([AC_PROG_CC])
CPPFLAGS_SAVED="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
export CPPFLAGS
LDFLAGS_SAVED="$LDFLAGS"
LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
export LDFLAGS
LIBS_SAVED=$LIBS
LIBS="$LIBS $BOOST_SYSTEM_LIB"
export LIBS
AC_CACHE_CHECK(whether the Boost::Filesystem library is available,
ax_cv_boost_filesystem,
[AC_LANG_PUSH([C++])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include <boost/filesystem/path.hpp>]],
[[using namespace boost::filesystem;
path my_path( "foo/bar/data.txt" );
return 0;]])],
ax_cv_boost_filesystem=yes, ax_cv_boost_filesystem=no)
AC_LANG_POP([C++])
])
if test "x$ax_cv_boost_filesystem" = "xyes"; then
AC_DEFINE(HAVE_BOOST_FILESYSTEM,,[define if the Boost::Filesystem library is available])
BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/@<:@^\/@:>@*//'`
if test "x$ax_boost_user_filesystem_lib" = "x"; then
for libextension in `ls -r $BOOSTLIBDIR/libboost_filesystem* 2>/dev/null | sed 's,.*/lib,,' | sed 's,\..*,,'` ; do
ax_lib=${libextension}
AC_CHECK_LIB($ax_lib, exit,
[BOOST_FILESYSTEM_LIB="-l$ax_lib"; AC_SUBST(BOOST_FILESYSTEM_LIB) link_filesystem="yes"; break],
[link_filesystem="no"])
done
if test "x$link_filesystem" != "xyes"; then
for libextension in `ls -r $BOOSTLIBDIR/boost_filesystem* 2>/dev/null | sed 's,.*/,,' | sed -e 's,\..*,,'` ; do
ax_lib=${libextension}
AC_CHECK_LIB($ax_lib, exit,
[BOOST_FILESYSTEM_LIB="-l$ax_lib"; AC_SUBST(BOOST_FILESYSTEM_LIB) link_filesystem="yes"; break],
[link_filesystem="no"])
done
fi
else
for ax_lib in $ax_boost_user_filesystem_lib boost_filesystem-$ax_boost_user_filesystem_lib; do
AC_CHECK_LIB($ax_lib, exit,
[BOOST_FILESYSTEM_LIB="-l$ax_lib"; AC_SUBST(BOOST_FILESYSTEM_LIB) link_filesystem="yes"; break],
[link_filesystem="no"])
done
fi
if test "x$ax_lib" = "x"; then
AC_MSG_ERROR(Could not find a version of the Boost::Filesystem library!)
fi
if test "x$link_filesystem" != "xyes"; then
AC_MSG_ERROR(Could not link against $ax_lib !)
fi
fi
CPPFLAGS="$CPPFLAGS_SAVED"
LDFLAGS="$LDFLAGS_SAVED"
LIBS="$LIBS_SAVED"
fi
])
================================================
FILE: m4/ax_check_gl.m4
================================================
# ===========================================================================
# https://www.gnu.org/software/autoconf-archive/ax_check_gl.html
# ===========================================================================
#
# SYNOPSIS
#
# AX_CHECK_GL([ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND])
#
# DESCRIPTION
#
# Checks for an OpenGL implementation. If a valid OpenGL implementation is
# found, this macro would set C preprocessor symbol HAVE_GL to 1.
#
# If either a valid OpenGL header or library was not found, by default the
# configuration would exits on error. This behavior can be overwritten by
# providing a custom "ACTION-IF-NOT-FOUND" hook.
#
# If the header, library was found, and been tested for compiling and
# linking the configuration would export the required compiler flags to
# "GL_CFLAGS" and "GL_LIBS". These two variables can also be overwritten
# by user from the command line if they want to link against the library
# they specified instead of having the configuration script to detect the
# flags automatically. Note that having "GL_CFLAGS" or "GL_LIBS" set
# doesn't mean it can compile or link with the flags, since it could be
# overwritten by user. However the "HAVE_GL" symbol and "ACTION-IF-FOUND"
# hook is always guaranteed to reflect a valid OpenGL implementation.
#
# If user didn't specify the "ACTION-IF-FOUND" hook, the configuration
# would prepend "GL_CFLAGS" and "GL_LIBS" to "CFLAGS" and "LIBS", like
# many other autoconf macros do.
#
# OpenGL is one of the libraries that has different header names on
# different platforms. This macro does the header detection, and will
# export the following symbol: "HAVE_GL_GL_H" for having "GL/gl.h" or
# "HAVE_OPENGL_GL_H" for having "OpenGL/gl.h". To write a portable OpenGL
# code, you should include OpenGL header like so:
#
# #if defined(HAVE_WINDOWS_H) && defined(_WIN32)
# # include <windows.h>
# #endif
# #ifdef HAVE_GL_GL_H
# # include <GL/gl.h>
# #elif defined(HAVE_OPENGL_GL_H)
# # include <OpenGL/gl.h>
# #else
# # error no gl.h
# #endif
#
# On the OSX platform, there's two possible OpenGL implementation. One is
# the OpenGL that ships with OSX, the other comes with X11/XQuartz
# (http://www.xquartz.org). To use the xquartz variant, user can use the
# option --with-xquartz-gl[=path to xquartz root]. By default the
# configuration will check "/opt/X11", which is the default X11 install
# location on OSX.
#
# LICENSE
#
# Copyright (c) 2009 Braden McDaniel <braden@endoframe.com>
# Copyright (c) 2012 Bastien Roucaries <roucaries.bastien+autoconf@gmail.com>
# Copyright (c) 2016 Felix Chern <idryman@gmail.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 of the License, or (at your
# option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
# Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program. If not, see <https://www.gnu.org/licenses/>.
#
# As a special exception, the respective Autoconf Macro's copyright owner
# gives unlimited permission to copy, distribute and modify the configure
# scripts that are the output of Autoconf when processing the Macro. You
# need not follow the terms of the GNU General Public License when using
# or distributing such scripts, even though portions of the text of the
# Macro appear in them. The GNU General Public License (GPL) does govern
# all other use of the material that constitutes the Autoconf Macro.
#
# This special exception to the GPL applies to versions of the Autoconf
# Macro released by the Autoconf Archive. When you make and distribute a
# modified version of the Autoconf Macro, you may extend this special
# exception to the GPL to apply to your modified version as well.
#serial 22
# example gl program
m4_define([_AX_CHECK_GL_PROGRAM],
[AC_LANG_PROGRAM([[
# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
# include <windows.h>
# endif
# ifdef HAVE_GL_GL_H
# include <GL/gl.h>
# elif defined(HAVE_OPENGL_GL_H)
# include <OpenGL/gl.h>
# else
# error no gl.h
# endif
]],[[glBegin(0)]])])
dnl Default include : add windows.h
dnl see http://www.opengl.org/wiki/Platform_specifics:_Windows
dnl (acceded 20120801)
AC_DEFUN([_AX_CHECK_GL_INCLUDES_DEFAULT],dnl
[
AC_INCLUDES_DEFAULT
[
# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
# include <windows.h>
# endif
]
])
# _AX_CHECK_GL_SAVE_FLAGS(LIST-OF-FLAGS)
# Use this macro before you modify the flags.
# Restore the flags by _AX_CHECK_GL_RESTORE_FLAGS
#
# Example: _AX_CHECK_GL_SAVE_FLAGS([[CFLAGS],[LIBS]]) expands to
# gl_saved_flag_cflags=$CFLAGS
# gl_saved_flag_libs=$LIBS
# CFLAGS="$GL_CFLAGS $CFLAGS"
# LIBS="$GL_LIBS $LIBS"
AC_DEFUN([_AX_CHECK_GL_SAVE_FLAGS], [
AX_SAVE_FLAGS_WITH_PREFIX([GL],[$1])
AC_LANG_PUSH([C])
])
# _AX_CHECK_GL_RESTORE_FLAGS(LIST-OF-FLAGS)
# Use this marcro to restore the flags you saved using
# _AX_CHECK_GL_SAVE_FLAGS
#
# Example: _AX_CHECK_GL_RESTORE_FLAGS([[CFLAGS],[LIBS]]) expands to
# CFLAGS="$gl_saved_flag_cflags"
# LIBS="$gl_saved_flag_libs"
AC_DEFUN([_AX_CHECK_GL_RESTORE_FLAGS], [
AX_RESTORE_FLAGS_WITH_PREFIX([GL],[$1])
AC_LANG_POP([C])
])
# Check if the program compiles
AC_DEFUN([_AX_CHECK_GL_COMPILE],
[dnl
_AX_CHECK_GL_SAVE_FLAGS([CFLAGS])
AC_COMPILE_IFELSE([_AX_CHECK_GL_PROGRAM],
[ax_check_gl_compile_opengl="yes"],
[ax_check_gl_compile_opengl="no"])
_AX_CHECK_GL_RESTORE_FLAGS([CFLAGS])
])
# Compile the example program (cache)
AC_DEFUN([_AX_CHECK_GL_COMPILE_CV],
[dnl
AC_CACHE_CHECK([for compiling a minimal OpenGL program],[ax_cv_check_gl_compile_opengl],
[_AX_CHECK_GL_COMPILE()
ax_cv_check_gl_compile_opengl="${ax_check_gl_compile_opengl}"])
ax_check_gl_compile_opengl="${ax_cv_check_gl_compile_opengl}"
])
# Link the example program
AC_DEFUN([_AX_CHECK_GL_LINK],
[dnl
_AX_CHECK_GL_SAVE_FLAGS([[CFLAGS],[LIBS],[LDFLAGS]])
AC_LINK_IFELSE([_AX_CHECK_GL_PROGRAM],
[ax_check_gl_link_opengl="yes"],
[ax_check_gl_link_opengl="no"])
_AX_CHECK_GL_RESTORE_FLAGS([[CFLAGS],[LIBS],[LDFLAGS]])
])
# Link the example program (cache)
AC_DEFUN([_AX_CHECK_GL_LINK_CV],
[dnl
AC_CACHE_CHECK([for linking a minimal OpenGL program],[ax_cv_check_gl_link_opengl],
[_AX_CHECK_GL_LINK()
ax_cv_check_gl_link_opengl="${ax_check_gl_link_opengl}"])
ax_check_gl_link_opengl="${ax_cv_check_gl_link_opengl}"
])
# _AX_CHECK_GL_MANUAL_LIBS_GENERIC(LIBRARIES-TO-SEARCH)
# Searches library provided in $1, and output the flag
# $ax_check_gl_lib_opengl
AC_DEFUN([_AX_CHECK_GL_MANUAL_LIBS_GENERIC], [
AS_IF([test -n "$GL_LIBS"],[], [
ax_check_gl_manual_libs_generic_extra_libs="$1"
AS_IF([test "X$ax_check_gl_manual_libs_generic_extra_libs" = "X"],
[AC_MSG_ERROR([AX_CHECK_GL_MANUAL_LIBS_GENERIC argument must no be empty])])
_AX_CHECK_GL_SAVE_FLAGS([CFLAGS])
AC_SEARCH_LIBS([glBegin],[$ax_check_gl_manual_libs_generic_extra_libs], [
ax_check_gl_lib_opengl="yes"
break
])
AS_IF([test "X$ax_check_gl_lib_opengl"="Xyes"],
[GL_LIBS="${ac_cv_search_glBegin}"])
_AX_CHECK_GL_RESTORE_FLAGS([CFLAGS])
])
])
# _WITH_XQUARTZ_GL
# ----------------
# Provides an option in command line to specify the XQuartz installation
# path on OSX, so that user can link to it instead of using the default
# OSX OpenGL framework. (Mac OSX only)
AC_DEFUN_ONCE([_WITH_XQUARTZ_GL],[
AC_ARG_WITH([xquartz-gl],
[AS_HELP_STRING([--with-xquartz-gl@<:@=DIR@:>@],
[On Mac OSX, use opengl provided by X11/XQuartz instead of the built-in framework.
If enabled, the default location is @<:@DIR=/opt/X11@:>@.
This option is default to false.])],
[AS_IF([test "X$with_xquartz_gl"="Xyes"],
[with_xquartz_gl="/opt/X11"])],
[with_xquartz_gl=no])
AS_IF([test "X$with_xquartz_gl" != "Xno"],
[AC_MSG_CHECKING([OSX X11 path])
AS_IF([test -e "$with_xquartz_gl"],
[AC_MSG_RESULT(["$with_xquartz_gl"])
CFLAGS="-I$with_xquartz_gl/include $CFLAGS"
LIBS="-L$with_xquartz_gl/lib $LIBS"
],
[with_xquartz_gl=no
AC_MSG_RESULT([no])
AC_MSG_WARN([--with-xquartz-gl was given, but test for X11 failed. Fallback to system framework])
])
])
])
# OSX specific setup for OpenGL check
AC_DEFUN([_AX_CHECK_DARWIN_GL], [
AC_REQUIRE([_WITH_XQUARTZ_GL])
AS_IF([test "x$with_xquartz_gl" != "xno"],
[GL_LIBS="${GL_LIBS:--lGL}"],
[GL_LIBS="${GL_LIBS:--framework OpenGL}"])
])
# AX_CHECK_GL_LIB([ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
# ---------------------------------------------------------
# Checks OpenGL headers and library and provides hooks for success and failures.
# When $1 is not set, this macro would modify CFLAGS and LIBS environment variables.
# However, user can override this behavior by providing their own hooks.
# The CFLAGS and LIBS flags required by OpenGL is always exported in
# GL_CFLAGS and GL_LIBS environment variable.
#
# In other words, the default behavior of AX_CHECK_GL_LIB() is equivalent to
# AX_CHECK_GL_LIB(
# [CFLAGS="$GL_CFLAGS $CFLAGS"
# LIBS="$GL_LIBS $LIBS"]
# )
AC_DEFUN([AX_CHECK_GL],
[AC_REQUIRE([AC_CANONICAL_HOST])
AC_REQUIRE([PKG_PROG_PKG_CONFIG])
AC_ARG_VAR([GL_CFLAGS],[C compiler flags for GL, overriding configure script defaults])
AC_ARG_VAR([GL_LIBS],[Linker flags for GL, overriding configure script defaults])
dnl --with-gl or not can be implemented outside of check-gl
AS_CASE([${host}],
[*-darwin*],[_AX_CHECK_DARWIN_GL],
dnl some windows may support X11 opengl, and should be able to linked
dnl by -lGL. However I have no machine to test it.
[*-cygwin*|*-mingw*],[
_AX_CHECK_GL_MANUAL_LIBS_GENERIC([opengl32 GL gl])
AC_CHECK_HEADERS([windows.h])
],
[PKG_PROG_PKG_CONFIG
PKG_CHECK_MODULES([GL],[gl],
[],
[_AX_CHECK_GL_MANUAL_LIBS_GENERIC([GL gl])])
]) dnl host specific checks
dnl this was cache
_AX_CHECK_GL_SAVE_FLAGS([CFLAGS])
AC_CHECK_HEADERS([GL/gl.h OpenGL/gl.h],
[ax_check_gl_have_headers="yes";break])
_AX_CHECK_GL_RESTORE_FLAGS([CFLAGS])
AS_IF([test "X$ax_check_gl_have_headers" = "Xyes"],
[_AX_CHECK_GL_COMPILE_CV()],
[no_gl=yes])
AS_IF([test "X$ax_check_gl_compile_opengl" = "Xyes"],
[_AX_CHECK_GL_LINK_CV()],
[no_gl=yes])
AS_IF([test "X$no_gl" = "X"],
[AC_DEFINE([HAVE_GL], [1], [Defined if a valid OpenGL implementation is found.])
m4_ifval([$1],
[$1],
[CFLAGS="$GL_CFLAGS $CFLAGS"
LIBS="$GL_LIBS $LIBS"])
],
[m4_ifval([$2],
[$2],
[AC_MSG_ERROR([Could not find a valid OpenGL implementation])])
])
])
================================================
FILE: m4/ax_check_glu.m4
================================================
# ===========================================================================
# https://www.gnu.org/software/autoconf-archive/ax_check_glu.html
# ===========================================================================
#
# SYNOPSIS
#
# AX_CHECK_GLU([ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND])
#
# DESCRIPTION
#
# Checks for GLUT. If a valid GLU implementation is found, the configure
# script would export the C preprocessor symbol "HAVE_GLU=1".
#
# If either a valid GLU header or library was not found, by default the
# configure script would exit on error. This behavior can be overwritten
# by providing a custom "ACTION-IF-NOT-FOUND" hook.
#
# If the header, library was found, and been tested for compiling and
# linking the configuration would export the required compiler flags to
# "GLU_CFLAGS" and "GLU_LIBS" environment variables. These two variables
# can also be overwritten by defining the environment variables before
# executing the configure program. If it was predefined, configure would
# not try to overwrite it, but it would still perform the compile and link
# test. Only when the tests succeeded does the configure script to export
# "HAVE_GLU=1" and to run "ACTION-IF-FOUND" hook.
#
# If user didn't specify the "ACTION-IF-FOUND" hook, the configuration
# would prepend "GLU_CFLAGS" and "GLU_LIBS" to "CFLAGS" and "LIBS", like
# many other autoconf macros do.
#
# If the header "GL/glu.h" is found, "HAVE_GL_GLU_H" is defined. If the
# header "OpenGL/glu.h" is found, HAVE_OPENGL_GLU_H is defined.
#
# You should use something like this in your headers:
#
# # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
# # include <windows.h>
# # endif
# # if defined(HAVE_GL_GLU_H)
# # include <GL/glu.h>
# # elif defined(HAVE_OPENGL_GLU_H)
# # include <OpenGL/glu.h>
# # else
# # error no glu.h
# # endif
#
# On the OSX platform, you can use the option --with-xquartz-gl to use
# X11/Xquartz GLU implementation instead of the system built in GLU
# framework.
#
# Some implementations (in particular, some versions of Mac OS X) are
# known to treat the GLU tesselator callback function type as "GLvoid
# (*)(...)" rather than the standard "GLvoid (*)()". If the former
# condition is detected, this macro defines "HAVE_VARARGS_GLU_TESSCB".
#
# LICENSE
#
# Copyright (c) 2009 Braden McDaniel <braden@endoframe.com>
# Copyright (c) 2013 Bastien Roucaries <roucaries.bastien+autoconf@gmail.com>
# Copyright (c) 2016 Felix Chern <idryman@gmail.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 of the License, or (at your
# option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
# Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program. If not, see <https://www.gnu.org/licenses/>.
#
# As a special exception, the respective Autoconf Macro's copyright owner
# gives unlimited permission to copy, distribute and modify the configure
# scripts that are the output of Autoconf when processing the Macro. You
# need not follow the terms of the GNU General Public License when using
# or distributing such scripts, even though portions of the text of the
# Macro appear in them. The GNU General Public License (GPL) does govern
# all other use of the material that constitutes the Autoconf Macro.
#
# This special exception to the GPL applies to versions of the Autoconf
# Macro released by the Autoconf Archive. When you make and distribute a
# modified version of the Autoconf Macro, you may extend this special
# exception to the GPL to apply to your modified version as well.
#serial 23
# example program
m4_define([_AX_CHECK_GLU_PROGRAM],
[AC_LANG_PROGRAM([[
# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
# include <windows.h>
# endif
# ifdef HAVE_GL_GLU_H
# include <GL/glu.h>
# elif defined(HAVE_OPENGL_GLU_H)
# include <OpenGL/glu.h>
# else
# error no glu.h
# endif
]],[[gluBeginCurve(0)]])])
dnl Default include : add windows.h
dnl see http://www.opengl.org/wiki/Platform_specifics:_Windows
dnl (acceded 20120801)
AC_DEFUN([_AX_CHECK_GLU_INCLUDES_DEFAULT],dnl
[
AC_INCLUDES_DEFAULT
[
# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
# include <windows.h>
# endif
]
])
# check tesselation callback function signature.
m4_define([_AX_CHECK_GLU_VARARGS_TESSVB_PROGRAM],
[AC_LANG_PROGRAM([[
# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
# include <windows.h>
# endif
# ifdef HAVE_GL_GLU_H
# include <GL/glu.h>
# elif defined(HAVE_OPENGL_GLU_H)
# include <OpenGL/glu.h>
# else
# error no glu.h
# endif
]],
[[GLvoid (*func)(...); gluTessCallback(0, 0, func)]])
])
# _AX_CHECK_GLU_SAVE_FLAGS(LIST-OF-FLAGS,[LANG])
# ----------------------------------------------
# Save the flags to shell variables.
# Example: _AX_CHECK_GLU_SAVE_FLAGS([[CFLAGS],[LIBS]]) expands to
# AC_LANG_PUSH([C])
# glu_saved_flag_cflags=$CFLAGS
# glu_saved_flag_libs=$LIBS
# CFLAGS="$GLU_CFLAGS $CFLAGS"
# LIBS="$GLU_LIBS $LIBS"
#
# Can optionally support other LANG by specifying $2
AC_DEFUN([_AX_CHECK_GLU_SAVE_FLAGS], [
m4_ifval([$2],
[AC_LANG_PUSH([$2])],
[AC_LANG_PUSH([C])])
AX_SAVE_FLAGS_WITH_PREFIX([GLU],[$1]) dnl defined in ax_check_gl
])
# _AX_CHECK_GLU_RESTORE_FLAGS(LIST-OF-FLAGS)
# Use this marcro to restore the flags you saved using
# _AX_CHECK_GLU_SAVE_FLAGS
#
# Example: _AX_CHECK_GLU_RESTORE_FLAGS([[CFLAGS],[LIBS]]) expands to
# CFLAGS="$glu_saved_flag_cflags"
# LIBS="$glu_saved_flag_libs"
# AC_LANG_POP([C])
AC_DEFUN([_AX_CHECK_GLU_RESTORE_FLAGS], [
AX_RESTORE_FLAGS_WITH_PREFIX([GLU],[$1]) dnl defined in ax_check_gl
m4_ifval([$2],
[AC_LANG_POP([$2])],
[AC_LANG_POP([C])])
])
# Search headers and export $ax_check_glu_have_headers
AC_DEFUN([_AX_CHECK_GLU_HEADERS], [
_AX_CHECK_GLU_SAVE_FLAGS([CFLAGS])
AC_CHECK_HEADERS([$1],
[ax_check_glu_have_headers="yes";],
[],
[_AX_CHECK_GLU_INCLUDES_DEFAULT()])
_AX_CHECK_GLU_RESTORE_FLAGS([CFLAGS])
])
# _AX_CHECK_GLU_SEARCH_LIBS(LIBS)
# -------------------------------
# Search for a valid GLU lib from $1 and set
# GLU_LIBS respectively
AC_DEFUN([_AX_CHECK_GLU_SEARCH_LIBS], [
_AX_CHECK_GLU_SAVE_FLAGS([[CFLAGS],[LIBS]])
AC_SEARCH_LIBS([gluBeginCurve],[$1],
[GLU_LIBS="${GLU_LIBS:-$ac_cv_search_gluBeginCurve}"])
_AX_CHECK_GLU_RESTORE_FLAGS([[CFLAGS],[LIBS]])
])
# OSX specific GLU checks
AC_DEFUN([_AX_CHECK_DARWIN_GLU], [
AC_REQUIRE([_WITH_XQUARTZ_GL])
AS_IF([test "x$with_xquartz_gl" != "xno"],
[GLU_LIBS="${GLU_LIBS:--lGLU}"],
[GLU_LIBS="${GLU_LIBS:--framework OpenGL}"])
])
# AX_CHECK_GLU([ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND])
# -----------------------------------------------------
# Checks GLU and provides hooks for success and failures
AC_DEFUN([AX_CHECK_GLU],[
AC_REQUIRE([AC_CANONICAL_HOST])
AC_REQUIRE([_WITH_XQUARTZ_GL])
AC_REQUIRE([PKG_PROG_PKG_CONFIG])
AC_ARG_VAR([GLU_CFLAGS],[C compiler flags for GLU, overriding system check])
AC_ARG_VAR([GLU_LIBS],[Linker flags for GLU, overriding system check])
dnl Setup GLU_CFLAGS and GLU_LIBS
AS_CASE([${host}],
[*-darwin*],[_AX_CHECK_DARWIN_GLU],
[*-cygwin*],[_AX_CHECK_GLU_SEARCH_LIBS([GLU glu MesaGLU glu32])
AC_CHECK_HEADERS([windows.h])],
# try first native
[*-mingw*],[_AX_CHECK_GLU_SEARCH_LIBS([glu32 GLU glu MesaGLU])
AC_CHECK_HEADERS([windows.h])],
[PKG_PROG_PKG_CONFIG
PKG_CHECK_MODULES([GLU],[glu],
[],
[_AX_CHECK_GLU_SEARCH_LIBS([GLU glu MesaGLU])])
])
AS_CASE([$host],
[*-darwin*],
[AS_IF([test "X$with_xquartz_gl" = "Xno"],
[_AX_CHECK_GLU_HEADERS([OpenGL/glu.h])],
[_AX_CHECK_GLU_HEADERS([GL/glu.h])]
)],
[_AX_CHECK_GLU_HEADERS([GL/glu.h])])
dnl compile test
AS_IF([test "X$ax_check_glu_have_headers" = "Xyes"],
[AC_CACHE_CHECK([for compiling a minimal OpenGL Utility (GLU) program],
[ax_cv_check_glu_compile],
[_AX_CHECK_GLU_SAVE_FLAGS([CFLAGS])
AC_COMPILE_IFELSE([_AX_CHECK_GLU_PROGRAM],
[ax_cv_check_glu_compile="yes"],
[ax_cv_check_glu_compile="no"])
_AX_CHECK_GLU_RESTORE_FLAGS([CFLAGS])])
])
dnl link test
AS_IF([test "X$ax_cv_check_glu_compile" = "Xyes"],
[AC_CACHE_CHECK([for linking a minimal GLU program],
[ax_cv_check_glu_link],
[_AX_CHECK_GLU_SAVE_FLAGS([[CFLAGS],[LIBS]])
AC_LINK_IFELSE([_AX_CHECK_GLU_PROGRAM],
[ax_cv_check_glu_link="yes"],
[ax_cv_check_glu_link="no"])
_AX_CHECK_GLU_RESTORE_FLAGS([[CFLAGS],[LIBS]])])
])
#
# Some versions of Mac OS X include a broken interpretation of the GLU
# tesselation callback function signature.
AS_IF([test "X$ax_cv_check_glu_link" = "Xyes"],
[AC_CACHE_CHECK([if GLU varargs tesselator is using non-standard form],
[ax_cv_varargs_glu_tesscb],
[_AX_CHECK_GLU_SAVE_FLAGS([CFLAGS],[C++])
AC_COMPILE_IFELSE([_AX_CHECK_GLU_VARARGS_TESSVB_PROGRAM],
[ax_cv_varargs_glu_tesscb="yes"],
[ax_cv_varargs_glu_tesscb="no"])
_AX_CHECK_GLU_RESTORE_FLAGS([CFLAGS],[C++])])
AS_IF([test "X$ax_cv_varargs_glu_tesscb" = "yes"],
[AC_DEFINE([HAVE_VARARGS_GLU_TESSCB], [1],
[Use nonstandard varargs form for the GLU tesselator callback])])
])
dnl hook
AS_IF([test "X$ax_cv_check_glu_link" = "Xyes"],
[AC_DEFINE([HAVE_GLU],[1],[Defined if a valid GLU implementation is found.])
m4_ifval([$1],
[$1],
[CFLAGS="$GLU_CFLAGS $CFLAGS"
LIBS="$GLU_LIBS $LIBS"])],
[m4_ifval([$2],
[$2],
[AC_MSG_ERROR([Could not find a valid GLU implementation])])
])
])
================================================
FILE: m4/ax_check_glut.m4
================================================
# ===========================================================================
# https://www.gnu.org/software/autoconf-archive/ax_check_glut.html
# ===========================================================================
#
# SYNOPSIS
#
# AX_CHECK_GLUT([ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND])
#
# DESCRIPTION
#
# Checks for GLUT. If a valid GLUT implementation is found, the configure
# script would export the C preprocessor symbol "HAVE_GLUT=1".
#
# If either a valid GLUT header or library was not found, by default the
# configure script would exit on error. This behavior can be overwritten
# by providing a custom "ACTION-IF-NOT-FOUND" hook.
#
# If the header, library was found, and been tested for compiling and
# linking the configuration would export the required compiler flags to
# "GLUT_CFLAGS" and "GLUT_LIBS" environment variables. These two variables
# can also be overwritten by defining the environment variables before
# executing the configure program. If it was predefined, configure would
# not try to overwrite it, but it would still perform the compile and link
# test. Only when the tests succeeded does the configure script to export
# "HAVE_GLUT=1" and to run "ACTION-IF-FOUND" hook.
#
# If user didn't specify the "ACTION-IF-FOUND" hook, the configuration
# would prepend "GLUT_CFLAGS" and "GLUT_LIBS" to "CFLAGS" and "LIBS", like
# many other autoconf macros do.
#
# If the header "GL/glut.h" is found, "HAVE_GL_GLUT_H" is defined. If the
# header "GLUT/glut.h" is found, HAVE_GLUT_GLUT_H is defined.
#
# You should use something like this in your headers:
#
# # if HAVE_WINDOWS_H && defined(_WIN32)
# # include <windows.h>
# # endif
# # if defined(HAVE_GL_GLUT_H)
# # include <GL/glut.h>
# # elif defined(HAVE_GLUT_GLUT_H)
# # include <GLUT/glut.h>
# # else
# # error no glut.h
# # endif
#
# On the OSX platform, you can use the option --with-xquartz-gl to use
# X11/Xquartz GLUT implementation instead of the system built in GLUT
# framework.
#
# LICENSE
#
# Copyright (c) 2009 Braden McDaniel <braden@endoframe.com>
# Copyright (c) 2013 Bastien Roucaries <roucaries.bastien+autoconf@gmail.com>
# Copyright (c) 2016 Felix Chern <idryman@gmail.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 of the License, or (at your
# option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
# Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program. If not, see <https://www.gnu.org/licenses/>.
#
# As a special exception, the respective Autoconf Macro's copyright owner
# gives unlimited permission to copy, distribute and modify the configure
# scripts that are the output of Autoconf when processing the Macro. You
# need not follow the terms of the GNU General Public License when using
# or distributing such scripts, even though portions of the text of the
# Macro appear in them. The GNU General Public License (GPL) does govern
# all other use of the material that constitutes the Autoconf Macro.
#
# This special exception to the GPL applies to versions of the Autoconf
# Macro released by the Autoconf Archive. When you make and distribute a
# modified version of the Autoconf Macro, you may extend this special
# exception to the GPL to apply to your modified version as well.
#serial 17
AC_DEFUN([_AX_CHECK_GLUT_SAVE_FLAGS], [
AX_SAVE_FLAGS_WITH_PREFIX([GLUT],[$1]) dnl defined in ax_check_gl
AC_LANG_PUSH([C])
])
AC_DEFUN([_AX_CHECK_GLUT_RESTORE_FLAGS], [
AX_RESTORE_FLAGS_WITH_PREFIX([GLUT],[$1]) dnl defined in ax_check_gl
AC_LANG_POP([C])
])
dnl Default include : add windows.h
dnl see http://www.opengl.org/wiki/Platform_specifics:_Windows
dnl (acceded 20120801)
AC_DEFUN([_AX_CHECK_GLUT_INCLUDES_DEFAULT],dnl
[
AC_INCLUDES_DEFAULT
[
# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
# include <windows.h>
# endif
]
])
m4_define([_AX_CHECK_GLUT_PROGRAM],
[AC_LANG_PROGRAM([[
# if HAVE_WINDOWS_H && defined(_WIN32)
# include <windows.h>
# endif
# ifdef HAVE_GL_GLUT_H
# include <GL/glut.h>
# elif defined(HAVE_GLUT_GLUT_H)
# include <GLUT/glut.h>
# else
# error no glut.h
# endif]],
[[glutMainLoop()]])])
# _AX_CHECK_GLUT_MANUAL_LIBS_GENERIC(LIST-OF-LIBS)
# ------------------------------------------------
# Searches libraries provided in $1, and export variable
# $ax_check_glut_lib_glut
AC_DEFUN([_AX_CHECK_GLUT_MANUAL_LIBS_GENERIC],
[
_AX_CHECK_GLUT_SAVE_FLAGS([[CFLAGS],[LIBS]])
AC_SEARCH_LIBS([glutMainLoop],[$1],
[GLUT_LIBS="${GLUT_LIBS:-$ac_cv_search_glutMainLoop}"])
_AX_CHECK_GLUT_RESTORE_FLAGS([[CFLAGS],[LIBS]])
])
# Wrapper macro to check GLUT header
AC_DEFUN([_AX_CHECK_GLUT_HEADER],[
_AX_CHECK_GLUT_SAVE_FLAGS([CFLAGS])
AC_CHECK_HEADERS([$1],
[ax_check_glut_have_headers=yes])
_AX_CHECK_GLUT_RESTORE_FLAGS([CFLAGS])
])
# AX_CHECK_GLUT_LIB([ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
# ---------------------------------------------------------
# Checks GLUT headers and library and provides hooks for success and failures.
AC_DEFUN([AX_CHECK_GLUT],
[AC_REQUIRE([AC_CANONICAL_HOST])
AC_REQUIRE([_WITH_XQUARTZ_GL])
AC_ARG_VAR([GLUT_CFLAGS],[C compiler flags for GLUT, overriding configure script defaults])
AC_ARG_VAR([GLUT_LIBS],[Linker flags for GLUT, overriding configure script defaults])
AS_CASE([${host}],
[*-darwin*],[AS_IF([test "x$with_xquartz_gl" != "xno"],
[GLUT_LIBS="${GLUT_LIBS:--lGLUT}"],
[GLUT_LIBS="${GLUT_LIBS:--framework GLUT}"])],
[*-cygwin*|*-mingw*],[
_AX_CHECK_GLUT_MANUAL_LIBS_GENERIC([glut32 glut])
AC_CHECK_HEADERS([windows.h])
],
[_AX_CHECK_GLUT_MANUAL_LIBS_GENERIC([glut])
]) dnl host specific checks
dnl checks header
AS_CASE([${host}],
[*-darwin*],[AS_IF([test "x$with_xquartz_gl" = "xno"],
[_AX_CHECK_GLUT_HEADER([GLUT/glut.h])],
[_AX_CHECK_GLUT_HEADER([GL/glut.h])]
)],
[_AX_CHECK_GLUT_HEADER([GL/glut.h])])
dnl compile
AS_IF([test "X$ax_check_glut_have_headers" = "Xyes"],
[AC_CACHE_CHECK([for compiling a minimal GLUT program],
[ax_cv_check_glut_compile],
[_AX_CHECK_GLUT_SAVE_FLAGS([CFLAGS])
AC_COMPILE_IFELSE([_AX_CHECK_GLUT_PROGRAM],
[ax_cv_check_glut_compile="yes"],
[ax_cv_check_glut_compile="no"])
_AX_CHECK_GLUT_RESTORE_FLAGS([CFLAGS])
])
])
dnl link
AS_IF([test "X$ax_cv_check_glut_compile" = "Xyes"],
[AC_CACHE_CHECK([for linking a minimal GLUT program],
[ax_cv_check_glut_link],
[_AX_CHECK_GLUT_SAVE_FLAGS([[CFLAGS],[LIBS]])
AC_LINK_IFELSE([_AX_CHECK_GLUT_PROGRAM],
[ax_cv_check_glut_link="yes"],
[ax_cv_check_glut_link="no"])
_AX_CHECK_GLUT_RESTORE_FLAGS([[CFLAGS],[LIBS]])
])
])
dnl hook
AS_IF([test "X$ax_cv_check_glut_link" = "Xyes"],
[AC_DEFINE([HAVE_GLUT], [1], [Defined if a valid GLUT implementation is found])
m4_ifval([$1],
[$1],
[CFLAGS="$GLUT_CFLAGS $CFLAGS"
LIBS="$GLUT_LIBS $LIBS"])
],
[m4_ifval([$2],
[$2],
[AC_MSG_ERROR([Could not find a valid GLUT implementation])]
)
])
])
================================================
FILE: m4/ax_pthread.m4
================================================
# ===========================================================================
# http://www.nongnu.org/autoconf-archive/ax_pthread.html
# ===========================================================================
#
# SYNOPSIS
#
# AX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
#
# DESCRIPTION
#
# This macro figures out how to build C programs using POSIX threads. It
# sets the PTHREAD_LIBS output variable to the threads library and linker
# flags, and the PTHREAD_CFLAGS output variable to any special C compiler
# flags that are needed. (The user can also force certain compiler
# flags/libs to be tested by setting these environment variables.)
#
# Also sets PTHREAD_CC to any special C compiler that is needed for
# multi-threaded programs (defaults to the value of CC otherwise). (This
# is necessary on AIX to use the special cc_r compiler alias.)
#
# NOTE: You are assumed to not only compile your program with these flags,
# but also link it with them as well. e.g. you should link with
# $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS
#
# If you are only building threads programs, you may wish to use these
# variables in your default LIBS, CFLAGS, and CC:
#
# LIBS="$PTHREAD_LIBS $LIBS"
# CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
# CC="$PTHREAD_CC"
#
# In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant
# has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to that name
# (e.g. PTHREAD_CREATE_UNDETACHED on AIX).
#
# ACTION-IF-FOUND is a list of shell commands to run if a threads library
# is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it
# is not found. If ACTION-IF-FOUND is not specified, the default action
# will define HAVE_PTHREAD.
#
# Please let the authors know if this macro fails on any platform, or if
# you have any other suggestions or comments. This macro was based on work
# by SGJ on autoconf scripts for FFTW (http://www.fftw.org/) (with help
# from M. Frigo), as well as ac_pthread and hb_pthread macros posted by
# Alejandro Forero Cuervo to the autoconf macro repository. We are also
# grateful for the helpful feedback of numerous users.
#
# LICENSE
#
# Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu>
#
# 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 3 of the License, or (at your
# option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
# Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
#
# As a special exception, the respective Autoconf Macro's copyright owner
# gives unlimited permission to copy, distribute and modify the configure
# scripts that are the output of Autoconf when processing the Macro. You
# need not follow the terms of the GNU General Public License when using
# or distributing such scripts, even though portions of the text of the
# Macro appear in them. The GNU General Public License (GPL) does govern
# all other use of the material that constitutes the Autoconf Macro.
#
# This special exception to the GPL applies to versions of the Autoconf
# Macro released by the Autoconf Archive. When you make and distribute a
# modified version of the Autoconf Macro, you may extend this special
# exception to the GPL to apply to your modified version as well.
AU_ALIAS([ACX_PTHREAD], [AX_PTHREAD])
AC_DEFUN([AX_PTHREAD], [
AC_REQUIRE([AC_CANONICAL_HOST])
AC_LANG_SAVE
AC_LANG_C
ax_pthread_ok=no
# We used to check for pthread.h first, but this fails if pthread.h
# requires special compiler flags (e.g. on True64 or Sequent).
# It gets checked for in the link test anyway.
# First of all, check if the user has set any of the PTHREAD_LIBS,
# etcetera environment variables, and if threads linking works using
# them:
if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
save_LIBS="$LIBS"
LIBS="$PTHREAD_LIBS $LIBS"
AC_MSG_CHECKING([for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS])
AC_TRY_LINK_FUNC(pthread_join, ax_pthread_ok=yes)
AC_MSG_RESULT($ax_pthread_ok)
if test x"$ax_pthread_ok" = xno; then
PTHREAD_LIBS=""
PTHREAD_CFLAGS=""
fi
LIBS="$save_LIBS"
CFLAGS="$save_CFLAGS"
fi
# We must check for the threads library under a number of different
# names; the ordering is very important because some systems
# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
# libraries is broken (non-POSIX).
# Create a list of thread flags to try. Items starting with a "-" are
# C compiler flags, and other items are library names, except for "none"
# which indicates that we try without any flags at all, and "pthread-config"
# which is a program returning the flags for the Pth emulation library.
ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
# The ordering *is* (sometimes) important. Some notes on the
# individual items follow:
# pthreads: AIX (must check this before -lpthread)
# none: in case threads are in libc; should be tried before -Kthread and
# other compiler flags to prevent continual compiler warnings
# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
# -pthreads: Solaris/gcc
# -mthreads: Mingw32/gcc, Lynx/gcc
# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
# doesn't hurt to check since this sometimes defines pthreads too;
# also defines -D_REENTRANT)
# ... -mt is also the pthreads flag for HP/aCC
# pthread: Linux, etcetera
# --thread-safe: KAI C++
# pthread-config: use pthread-config program (for GNU Pth library)
case "${host_cpu}-${host_os}" in
*solaris*)
# On Solaris (at least, for some versions), libc contains stubbed
# (non-functional) versions of the pthreads routines, so link-based
# tests will erroneously succeed. (We need to link with -pthreads/-mt/
# -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
# a function called by this macro, so we could check for that, but
# who knows whether they'll stub that too in a future libc.) So,
# we'll just look for -pthreads and -lpthread first:
ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
;;
esac
if test x"$ax_pthread_ok" = xno; then
for flag in $ax_pthread_flags; do
case $flag in
none)
AC_MSG_CHECKING([whether pthreads work without any flags])
;;
-*)
AC_MSG_CHECKING([whether pthreads work with $flag])
PTHREAD_CFLAGS="$flag"
;;
pthread-config)
AC_CHECK_PROG(ax_pthread_config, pthread-config, yes, no)
if test x"$ax_pthread_config" = xno; then continue; fi
PTHREAD_CFLAGS="`pthread-config --cflags`"
PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
;;
*)
AC_MSG_CHECKING([for the pthreads library -l$flag])
PTHREAD_LIBS="-l$flag"
;;
esac
save_LIBS="$LIBS"
save_CFLAGS="$CFLAGS"
LIBS="$PTHREAD_LIBS $LIBS"
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
# Check for various functions. We must include pthread.h,
# since some functions may be macros. (On the Sequent, we
# need a special flag -Kthread to make this header compile.)
# We check for pthread_join because it is in -lpthread on IRIX
# while pthread_create is in libc. We check for pthread_attr_init
# due to DEC craziness with -lpthreads. We check for
# pthread_cleanup_push because it is one of the few pthread
# functions on Solaris that doesn't have a non-functional libc stub.
# We try pthread_create on general principles.
AC_TRY_LINK([#include <pthread.h>
static void routine(void* a) {a=0;}
static void* start_routine(void* a) {return a;}],
[pthread_t th; pthread_attr_t attr;
pthread_join(th, 0);
pthread_attr_init(&attr);
pthread_cleanup_push(routine, 0);
pthread_create(&th,0,start_routine,0);
pthread_cleanup_pop(0); ],
[ax_pthread_ok=yes])
LIBS="$save_LIBS"
CFLAGS="$save_CFLAGS"
AC_MSG_RESULT($ax_pthread_ok)
if test "x$ax_pthread_ok" = xyes; then
break;
fi
PTHREAD_LIBS=""
PTHREAD_CFLAGS=""
done
fi
# Various other checks:
if test "x$ax_pthread_ok" = xyes; then
save_LIBS="$LIBS"
LIBS="$PTHREAD_LIBS $LIBS"
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
# Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
AC_MSG_CHECKING([for joinable pthread attribute])
attr_name=unknown
for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
AC_TRY_LINK([#include <pthread.h>], [int attr=$attr; return attr;],
[attr_name=$attr; break])
done
AC_MSG_RESULT($attr_name)
if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
AC_DEFINE_UNQUOTED(PTHREAD_CREATE_JOINABLE, $attr_name,
[Define to necessary symbol if this constant
uses a non-standard name on your system.])
fi
AC_MSG_CHECKING([if more special flags are required for pthreads])
flag=no
case "${host_cpu}-${host_os}" in
*-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
*solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
esac
AC_MSG_RESULT(${flag})
if test "x$flag" != xno; then
PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
fi
LIBS="$save_LIBS"
CFLAGS="$save_CFLAGS"
# More AIX lossage: must compile with xlc_r or cc_r
if test x"$GCC" != xyes; then
AC_CHECK_PROGS(PTHREAD_CC, xlc_r cc_r, ${CC})
else
PTHREAD_CC=$CC
fi
else
PTHREAD_CC="$CC"
fi
AC_SUBST(PTHREAD_LIBS)
AC_SUBST(PTHREAD_CFLAGS)
AC_SUBST(PTHREAD_CC)
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
if test x"$ax_pthread_ok" = xyes; then
ifelse([$1],,AC_DEFINE(HAVE_PTHREAD,1,[Define if you have POSIX threads libraries and header files.]),[$1])
:
else
ax_pthread_ok=no
$2
fi
AC_LANG_RESTORE
])dnl AX_PTHREAD
================================================
FILE: m4/ax_restore_flags_with_prefix.m4
================================================
# =================================================================================
# https://www.gnu.org/software/autoconf-archive/ax_restore_flags_with_prefix.html
# =================================================================================
#
# SYNOPSIS
#
# AX_RESTORE_FLAGS_WITH_PREFIX(PREFIX, LIST-OF-FLAGS)
#
# DESCRIPTION
#
# Restore the flags saved by AX_SAVE_FLAGS_WITH_PREFIX.
#
# Expansion example: AX_RESTORE_FLAGS_WITH_PREFIX([GL], [[CFLAGS],[LIBS]])
# expands to
#
# CFLAGS="$gl_saved_flag_cflags"
# LIBS="$gl_saved_flag_libs"
#
# One common use case is to define a package specific wrapper macro around
# this one, and also restore other variables if needed. For example:
#
# AC_DEFUN([_AX_CHECK_GL_RESTORE_FLAGS], [
# AX_RESTORE_FLAGS_WITH_PREFIX([GL],[$1])
# AC_LANG_POP([C])
# ])
#
# # Restores CFLAGS, LIBS and language state
# _AX_CHECK_GL_RESTORE_FLAGS([[CFLAGS],[LIBS]])
#
# LICENSE
#
# Copyright (c) 2016 Felix Chern <idryman@gmail.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 of the License, or (at your
# option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
# Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program. If not, see <https://www.gnu.org/licenses/>.
#
# As a special exception, the respective Autoconf Macro's copyright owner
# gives unlimited permission to copy, distribute and modify the configure
# scripts that are the output of Autoconf when processing the Macro. You
# need not follow the terms of the GNU General Public License when using
# or distributing such scripts, even though portions of the text of the
# Macro appear in them. The GNU General Public License (GPL) does govern
# all other use of the material that constitutes the Autoconf Macro.
#
# This special exception to the GPL applies to versions of the Autoconf
# Macro released by the Autoconf Archive. When you make and distribute a
# modified version of the Autoconf Macro, you may extend this special
# exception to the GPL to apply to your modified version as well.
#serial 3
AC_DEFUN([AX_RESTORE_FLAGS_WITH_PREFIX],[
m4_ifval([$2], [
m4_car($2)="$_ax_[]m4_tolower($1)_saved_flag_[]m4_tolower(m4_car($2))"
$0($1, m4_cdr($2))])
])
================================================
FILE: m4/ax_save_flags_with_prefix.m4
================================================
# ==============================================================================
# https://www.gnu.org/software/autoconf-archive/ax_save_flags_with_prefix.html
# ==============================================================================
#
# SYNOPSIS
#
# AX_SAVE_FLAGS_WITH_PREFIX(PREFIX, LIST-OF-FLAGS)
#
# DESCRIPTION
#
# For each flag in LIST-OF-FLAGS, it expands to lower-cased shell variable
# with the prefix holding the flag original value. The saved variables
# can be restored by AX_RESTORE_FLAGS_WITH_PREFIX
#
# As an example: AX_SAVE_FLAGS_WITH_PREFIX([GL], [[CFLAGS],[LIBS]])
# expands to
#
# gl_saved_flag_cflags="$CFLAGS"
# gl_saved_flag_libs="$LIBS"
# CFLAGS="$GL_CFLAGS $CFLAGS"
# LIBS="$GL_LIBS $LIBS"
#
# One common use case is to define a package specific wrapper macro around
# this one, and also setup other variables if needed. For example:
#
# AC_DEFUN([_AX_CHECK_GL_SAVE_FLAGS], [
# AX_SAVE_FLAGS_WITH_PREFIX([GL],[$1])
# AC_LANG_PUSH([C])
# ])
#
# # pushes GL_CFLAGS and GL_LIBS to CFLAGS and LIBS
# # also set the current language to test to C
# _AX_CHECK_GL_SAVE_FLAGS([[CFLAGS],[LIBS]])
#
# LICENSE
#
# Copyright (c) 2016 Felix Chern <idryman@gmail.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 of the License, or (at your
# option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
# Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program. If not, see <https://www.gnu.org/licenses/>.
#
# As a special exception, the respective Autoconf Macro's copyright owner
# gives unlimited permission to copy, distribute and modify the configure
# scripts that are the output of Autoconf when processing the Macro. You
# need not follow the terms of the GNU General Public License when using
# or distributing such scripts, even though portions of the text of the
# Macro appear in them. The GNU General Public License (GPL) does govern
# all other use of the material that constitutes the Autoconf Macro.
#
# This special exception to the GPL applies to versions of the Autoconf
# Macro released by the Autoconf Archive. When you make and distribute a
# modified version of the Autoconf Macro, you may extend this special
# exception to the GPL to apply to your modified version as well.
#serial 3
AC_DEFUN([AX_SAVE_FLAGS_WITH_PREFIX],[
m4_ifval([$2], [
_ax_[]m4_tolower($1)_saved_flag_[]m4_tolower(m4_car($2))="$m4_car($2)"
m4_car($2)="$$1_[]m4_car($2) $m4_car($2)"
$0($1, m4_cdr($2))
])])
================================================
FILE: m4/pkg.m4
================================================
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
#
# Copyright © 2004 Scott James Remnant <scott@netsplit.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 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
# 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.
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
# ----------------------------------
AC_DEFUN([PKG_PROG_PKG_CONFIG],
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
fi
if test -n "$PKG_CONFIG"; then
_pkg_min_version=m4_default([$1], [0.9.0])
AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])
PKG_CONFIG=""
fi
fi[]dnl
])# PKG_PROG_PKG_CONFIG
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
#
# Check to see whether a particular set of modules exists. Similar
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
#
#
# Similar to PKG_CHECK_MODULES, make sure that the first instance of
# this or PKG_CHECK_MODULES is called, or make sure to call
# PKG_CHECK_EXISTS manually
# --------------------------------------------------------------
AC_DEFUN([PKG_CHECK_EXISTS],
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
if test -n "$PKG_CONFIG" && \
AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
m4_ifval([$2], [$2], [:])
m4_ifvaln([$3], [else
$3])dnl
fi])
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
# ---------------------------------------------
m4_define([_PKG_CONFIG],
[if test -n "$PKG_CONFIG"; then
if test -n "$$1"; then
pkg_cv_[]$1="$$1"
else
PKG_CHECK_EXISTS([$3],
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
[pkg_failed=yes])
fi
else
pkg_failed=untried
fi[]dnl
])# _PKG_CONFIG
# _PKG_SHORT_ERRORS_SUPPORTED
# -----------------------------
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
_pkg_short_errors_supported=yes
else
_pkg_short_errors_supported=no
fi[]dnl
])# _PKG_SHORT_ERRORS_SUPPORTED
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
# [ACTION-IF-NOT-FOUND])
#
#
# Note that if there is a possibility the first call to
# PKG_CHECK_MODULES might not happen, you should be sure to include an
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
#
#
# --------------------------------------------------------------
AC_DEFUN([PKG_CHECK_MODULES],
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
pkg_failed=no
AC_MSG_CHECKING([for $1])
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
and $1[]_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.])
if test $pkg_failed = yes; then
_PKG_SHORT_ERRORS_SUPPORTED
if test $_pkg_short_errors_supported = yes; then
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
else
$1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
fi
# Put the nasty error message in config.log where it belongs
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
ifelse([$4], , [AC_MSG_ERROR(dnl
[Package requirements ($2) were not met:
$$1_PKG_ERRORS
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
_PKG_TEXT
])],
[AC_MSG_RESULT([no])
$4])
elif test $pkg_failed = untried; then
ifelse([$4], , [AC_MSG_FAILURE(dnl
[The pkg-config script could not be found or is too old. Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.
_PKG_TEXT
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
[$4])
else
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
AC_MSG_RESULT([yes])
ifelse([$3], , :, [$3])
fi[]dnl
])# PKG_CHECK_MODULES
================================================
FILE: scripts/gource-ps.pl
================================================
#!/usr/bin/perl
#poll ps and convert changes into Gource format.
#usage:
# gource-ps.pl [[USER@]SERVER] | gource --log-format custom -
#
# (requires Gource 0.27 or later as needs working STDIN support)
use strict;
use warnings;
use Getopt::Long qw(GetOptions);
#use Data::Dumper;
my %opt = ();
if(!GetOptions(\%opt, 'debug|d')) {
die("usage: gource-ps.pl [[USER\@]SERVER] | gource --log-format custom - ...\n");
}
my $windows = $^O =~ /win32|msys/i;
if($windows) {
require Win32::Process::Info;
Win32::Process::Info->import();
}
my($server) = @ARGV;
my $user = $ENV{USER};
if($server && $server =~ /(.+)\@(.+)/) {
$user = $1;
$server = $2;
}
die('remote ps via ssh unimplemented on Win32') if $windows && $server;
$|=1;
my %process;
sub _proc_list {
my $ps_command = 'ps axo pid,ppid,user,time,comm';
my @pslist = $server ? `ssh $user\@$server "$ps_command"` : `$ps_command`;
if($?) {
die("ps command failed: $!\n");
}
shift @pslist;
chomp(@pslist);
my @stack;
#build process tree
foreach my $line (@pslist) {
$line =~ s/^\s+//;
my ($pid, $ppid, $username, $time, @command) = split(/\s+/, $line);
my $command = join(' ', @command) || '';
$command =~ s{^.+/}{}g;
my $proc;
if($proc = $process{$pid}) {
$proc->{status} = ($proc->{'time'} ne $time) ? 'M' : '';
} else {
$proc = {
pid => $pid,
ppid => $ppid,
username => $username,
command => $command,
'time' => $time,
status => 'A',
};
$process{$pid} = $proc;
}
#warn Dumper($process{$pid});
}
}
sub _win32_proc_list {
my $pi = Win32::Process::Info->new ();
foreach my $winproc ($pi->GetProcInfo) {
# use Data::Dumper;
# print Dumper($proc);
my $pid = $winproc->{ProcessId};
my $ppid = $winproc->{ParentProcessId};
my $command = $winproc->{Description};
my $username = $winproc->{Owner} || 'System';
my $time = $winproc->{UserModeTime};
$username =~ s/^.+\\//;
$command =~ s/\.exe$//i;
next unless $command && $pid && $username;
my $proc;
if($proc = $process{$pid}) {
$proc->{status} = ($proc->{'time'} ne $time) ? 'M' : '';
} else {
$proc = {
pid => $pid,
ppid => $ppid,
username => $username,
command => $command,
'time' => $time,
status => 'A',
};
$process{$pid} = $proc;
}
}
}
sub _make_command_path {
my $proc = shift;
my @path;
my $node = $proc;
while($node) {
push @path, $node->{pid} . '.' . $node->{command};
$node = $node->{ppid} ? $process{$node->{ppid}} : 0;
}
return join('/', reverse @path);
}
while(1) {
my @proclist = $windows ? _win32_proc_list : _proc_list;
my @filter_pids;
#filter ps / gource processes and parent processes owned by this user
foreach my $pid (sort {$a <=> $b} keys %process) {
my $proc = $process{$pid};
next unless $proc;
# delete ps process and parents of
if($proc->{command} eq 'ps' && $proc->{username} eq $user || $proc->{command} eq 'gource') {
while($proc) {
push @filter_pids, $proc->{pid};
$proc = $proc->{ppid} ? $process{$proc->{ppid}} : undef;
}
}
}
delete $process{$_} for @filter_pids;
my @expired_pids;
my $current_time = time;
foreach my $pid (sort {$a <=> $b} keys %process) {
my $proc = $process{$pid};
if($proc->{status}) {
my $output_line = join('|', $current_time, $proc->{username}, $proc->{status}, _make_command_path($proc)). "\n";
print $output_line;
print STDERR $output_line if $opt{debug};
}
#delete if not seen next time
if($proc->{status} eq 'D') {
push @expired_pids, $pid;
} else {
$proc->{status} = 'D';
}
}
#remove expired pids
delete $process{$_} for @expired_pids;
sleep(1);
}
================================================
FILE: src/.gitignore
================================================
*.o
================================================
FILE: src/action.cpp
================================================
/*
Copyright (C) 2009 Andrew Caudwell (acaudwell@gmail.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
3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "action.h"
RAction::RAction(RUser* source, RFile* target, time_t timestamp, float t, const vec3& colour)
: colour(colour), source(source), target(target), timestamp(timestamp), t(t), progress(0.0f), rate(0.5f) {
}
void RAction::apply() {
target->touch(timestamp, colour);
}
void RAction::logic(float dt) {
if(progress >= 1.0) return;
if(progress == 0.0) {
apply();
}
float action_rate = std::min(10.0f, rate * std::max(1.0f, ((float)source->getPendingActionCount())));
progress = std::min(progress + action_rate * dt, 1.0f);
}
void RAction::drawToVBO(quadbuf& buffer) const {
if(isFinished()) return;
vec2 src = source->getPos();
vec2 dest = target->getAbsolutePos();
//TODO: could use glm::perp
vec2 n = normalise(dest - src);
vec2 perp = vec2(-n.y, n.x);
vec2 offset = perp * target->getSize() * 0.5f;
vec2 offset_src = offset * 0.3f;
float alpha = 1.0 - progress;
float alpha2 = alpha * 0.1;
vec4 col1 = vec4(colour, alpha);
vec4 col2 = vec4(colour, alpha2);
quadbuf_vertex v1(src - offset_src, col2, vec2(0.0f, 0.0f));
quadbuf_vertex v2(src + offset_src, col2, vec2(0.0f, 1.0f));
quadbuf_vertex v3(dest + offset, col1, vec2(1.0f, 1.0f));
quadbuf_vertex v4(dest - offset, col1, vec2(1.0f, 0.0f));
buffer.add(0, v1, v2, v3, v4);
}
void RAction::draw(float dt) {
if(isFinished()) return;
vec2 src = source->getPos();
vec2 dest = target->getAbsolutePos();
vec2 n = normalise(dest - src);
vec2 perp = vec2(-n.y, n.x);
vec2 offset = perp * target->getSize() * 0.5f;
vec2 offset_src = offset * 0.3f;
float alpha = 1.0 - progress;
float alpha2 = alpha * 0.1;
vec4 col1 = vec4(colour, alpha);
vec4 col2 = vec4(colour, alpha2);
glBegin(GL_QUADS);
glColor4fv(glm::value_ptr(col2));
glTexCoord2f(0.0,0.0);
glVertex2f(src.x - offset_src.x, src.y - offset_src.y);
glTexCoord2f(0.0,1.0);
glVertex2f(src.x + offset_src.x, src.y + offset_src.y);
glColor4fv(glm::value_ptr(col1));
glTexCoord2f(1.0,1.0);
glVertex2f(dest.x + offset.x, dest.y + offset.y);
glTexCoord2f(1.0,0.0);
glVertex2f(dest.x - offset.x, dest.y - offset.y);
glEnd();
}
CreateAction::CreateAction(RUser* source, RFile* target, time_t timestamp, float t)
: RAction(source, target, timestamp, t, vec3(0.0f, 1.0f, 0.0f)) {
}
RemoveAction::RemoveAction(RUser* source, RFile* target, time_t timestamp, float t)
: RAction(source, target, timestamp, t, vec3(1.0f, 0.0f, 0.0f)) {
}
void RemoveAction::logic(float dt) {
float old_progress = progress;
RAction::logic(dt);
if(old_progress < 1.0 && progress >= 1.0) {
target->remove(timestamp);
}
}
ModifyAction::ModifyAction(RUser* source, RFile* target, time_t timestamp, float t, const vec3& modify_colour)
: RAction(source, target, timestamp, t, vec3(1.0f, 0.7f, 0.3f)), modify_colour(modify_colour) {
}
void ModifyAction::apply() {
RAction::apply();
target->setFileColour(modify_colour);
}
================================================
FILE: src/action.h
================================================
/*
Copyright (C) 2009 Andrew Caudwell (acaudwell@gmail.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
3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef RACTION_H
#define RACTION_H
#include "user.h"
#include "file.h"
class RUser;
class RFile;
class RAction {
protected:
vec3 colour;
virtual void apply();
public:
RUser* source;
RFile* target;
time_t timestamp;
float t;
float progress;
float rate;
RAction(RUser* source, RFile* target, time_t timestamp, float t, const vec3& colour);
virtual ~RAction() {};
inline bool isFinished() const { return (progress >= 1.0); };
virtual void logic(float dt);
void drawToVBO(quadbuf& buffer) const ;
void draw(float dt);
};
class CreateAction : public RAction {
public:
CreateAction(RUser* source, RFile* target, time_t timestamp, float t);
};
class RemoveAction : public RAction {
public:
RemoveAction(RUser* source, RFile* target, time_t timestamp, float t);
void logic(float dt);
};
class ModifyAction : public RAction {
protected:
vec3 modify_colour;
public:
ModifyAction(RUser* source, RFile* target, time_t timestamp, float t, const vec3& modify_colour);
void apply();
};
#endif
================================================
FILE: src/bloom.cpp
================================================
/*
Copyright (C) 2011 Andrew Caudwell (acaudwell@gmail.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
3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "bloom.h"
//bloombuf
bloombuf::bloombuf(int data_size) : data_size(data_size) {
bufferid = 0;
buffer_size = 0;
vertex_count = 0;
data = data_size > 0 ? new bloom_vertex[data_size] : 0;
//fprintf(stderr, "size of bloom_vertex = %d\n", sizeof(bloom_vertex));
}
bloombuf::~bloombuf() {
if(bufferid !=0) glDeleteBuffers(1, &bufferid);
if(data != 0) delete[] data;
}
void bloombuf::resize(int new_size) {
bloom_vertex* _data = data;
data = new bloom_vertex[new_size];
for(int i=0;i<data_size;i++) {
data[i] = _data[i];
}
data_size = new_size;
if(_data != 0) delete[] _data;
}
void bloombuf::reset() {
vertex_count = 0;
}
void bloombuf::unload() {
if(bufferid !=0) glDeleteBuffers(1, &bufferid);
bufferid = 0;
buffer_size = 0;
}
size_t bloombuf::vertices() {
return vertex_count;
}
size_t bloombuf::capacity() {
return data_size;
}
void bloombuf::add(GLuint textureid, const vec2& pos, const vec2& dims, const vec4& colour, const vec4& texcoord) {
bloom_vertex v1(pos, colour, texcoord);
bloom_vertex v2(pos + vec2(dims.x, 0.0f), colour, texcoord);
bloom_vertex v3(pos + dims, colour, texcoord);
bloom_vertex v4(pos + vec2(0.0f, dims.y), colour, texcoord);
int i = vertex_count;
vertex_count += 4;
if(vertex_count > data_size) {
resize(vertex_count*2);
}
data[i] = v1;
data[i+1] = v2;
data[i+2] = v3;
data[i+3] = v4;
}
void bloombuf::update() {
if(vertex_count==0) return;
//note possibly better to have a queue and cycle them here
if(bufferid==0) {
glGenBuffers(1, &bufferid);
}
glBindBuffer(GL_ARRAY_BUFFER, bufferid);
//recreate buffer if less than the vertex_count
if(buffer_size < vertex_count) {
buffer_size = data_size;
glBufferData(GL_ARRAY_BUFFER, buffer_size*sizeof(bloom_vertex), &(data[0].pos.x), GL_DYNAMIC_DRAW);
} else {
glBufferSubData(GL_ARRAY_BUFFER, 0, vertex_count*sizeof(bloom_vertex), &(data[0].pos.x));
}
glBindBuffer(GL_ARRAY_BUFFER, 0);
}
void bloombuf::draw() {
if(vertex_count==0 || bufferid==0) return;
glBindBuffer(GL_ARRAY_BUFFER, bufferid);
glEnableClientState(GL_VERTEX_ARRAY);
glEnableClientState(GL_COLOR_ARRAY);
glEnableClientState(GL_TEXTURE_COORD_ARRAY);
glVertexPointer(2, GL_FLOAT, sizeof(bloom_vertex), 0);
glColorPointer(4, GL_FLOAT, sizeof(bloom_vertex), (GLvoid*)8); // offset pos (2x4 bytes)
glTexCoordPointer(4, GL_FLOAT, sizeof(bloom_vertex), (GLvoid*)24); // offset pos + colour (2x4 + 4x4 bytes)
glDrawArrays(GL_QUADS, 0, vertex_count);
glDisableClientState(GL_VERTEX_ARRAY);
glDisableClientState(GL_COLOR_ARRAY);
glDisableClientState(GL_TEXTURE_COORD_ARRAY);
glBindBuffer(GL_ARRAY_BUFFER, 0);
}
================================================
FILE: src/bloom.h
================================================
/*
Copyright (C) 2011 Andrew Caudwell (acaudwell@gmail.com)
This program is free software
gitextract_8c62qvm7/
├── .gitattributes
├── .github/
│ └── FUNDING.yml
├── .gitignore
├── .gitmodules
├── COPYING
├── ChangeLog
├── INSTALL
├── Makefile.am
├── README.md
├── THANKS
├── autogen.sh
├── cmd/
│ ├── gource
│ └── gource.cmd
├── configure.ac
├── contrib/
│ └── svn-gource.py
├── data/
│ ├── bloom.tga
│ ├── bloom_alpha.tga
│ ├── fonts/
│ │ └── README
│ ├── gource.1
│ ├── gource.style
│ └── shaders/
│ ├── bloom.frag
│ ├── bloom.vert
│ ├── shadow.frag
│ ├── shadow.vert
│ ├── text.frag
│ └── text.vert
├── dev/
│ ├── .gitignore
│ ├── bin/
│ │ ├── build_tar.pl
│ │ └── build_win64.pl
│ └── nsis/
│ ├── disclaimer.txt
│ └── welcome.xcf
├── gource.pro
├── m4/
│ ├── ax_boost_base.m4
│ ├── ax_boost_filesystem.m4
│ ├── ax_check_gl.m4
│ ├── ax_check_glu.m4
│ ├── ax_check_glut.m4
│ ├── ax_pthread.m4
│ ├── ax_restore_flags_with_prefix.m4
│ ├── ax_save_flags_with_prefix.m4
│ └── pkg.m4
├── resources/
│ ├── file.xcf
│ └── user.xcf
├── scripts/
│ └── gource-ps.pl
├── src/
│ ├── .gitignore
│ ├── action.cpp
│ ├── action.h
│ ├── bloom.cpp
│ ├── bloom.h
│ ├── caption.cpp
│ ├── caption.h
│ ├── dirnode.cpp
│ ├── dirnode.h
│ ├── file.cpp
│ ├── file.h
│ ├── formats/
│ │ ├── apache.cpp
│ │ ├── apache.h
│ │ ├── bzr.cpp
│ │ ├── bzr.h
│ │ ├── commitlog.cpp
│ │ ├── commitlog.h
│ │ ├── custom.cpp
│ │ ├── custom.h
│ │ ├── cvs-exp.cpp
│ │ ├── cvs-exp.h
│ │ ├── cvs2cl.cpp
│ │ ├── cvs2cl.h
│ │ ├── git.cpp
│ │ ├── git.h
│ │ ├── gitraw.cpp
│ │ ├── gitraw.h
│ │ ├── hg.cpp
│ │ ├── hg.h
│ │ ├── svn.cpp
│ │ └── svn.h
│ ├── gource.cpp
│ ├── gource.h
│ ├── gource_settings.cpp
│ ├── gource_settings.h
│ ├── gource_shell.cpp
│ ├── gource_shell.h
│ ├── key.cpp
│ ├── key.h
│ ├── logmill.cpp
│ ├── logmill.h
│ ├── main.cpp
│ ├── main.h
│ ├── pawn.cpp
│ ├── pawn.h
│ ├── slider.cpp
│ ├── slider.h
│ ├── spline.cpp
│ ├── spline.h
│ ├── test/
│ │ ├── datetime_tests.cpp
│ │ ├── main.cpp
│ │ └── regex_tests.cpp
│ ├── textbox.cpp
│ ├── textbox.h
│ ├── tinyxml/
│ │ ├── tinystr.cpp
│ │ ├── tinystr.h
│ │ ├── tinyxml.cpp
│ │ ├── tinyxml.h
│ │ ├── tinyxmlerror.cpp
│ │ └── tinyxmlparser.cpp
│ ├── user.cpp
│ ├── user.h
│ ├── zoomcamera.cpp
│ └── zoomcamera.h
└── tests/
├── logs/
│ ├── custom-dir-delete.log
│ ├── file-removal.log
│ ├── file-to-dir.log
│ ├── svn-dir-delete.log
│ ├── utf8-caption.log
│ └── utf8.log
└── test.conf
SYMBOL INDEX (182 symbols across 56 files)
FILE: contrib/svn-gource.py
function reverse (line 43) | def reverse(data):
function processXmltree (line 48) | def processXmltree(xmltree):
function printUsage (line 74) | def printUsage(message):
function processArguments (line 81) | def processArguments():
FILE: src/action.h
function class (line 27) | class RAction {
function class (line 52) | class CreateAction : public RAction {
function class (line 57) | class RemoveAction : public RAction {
function class (line 64) | class ModifyAction : public RAction {
FILE: src/bloom.h
function class (line 28) | class bloom_vertex {
function class (line 40) | class bloombuf {
FILE: src/caption.cpp
function vec2 (line 35) | const vec2& RCaption::getPos() const {
FILE: src/caption.h
function class (line 25) | class RCaption {
FILE: src/dirnode.cpp
function RDirNode (line 155) | RDirNode* RDirNode::getParent() const{
function RDirNode (line 269) | RDirNode* RDirNode::getRoot() {
function vec3 (line 510) | vec3 RDirNode::averageFileColour() const{
function vec4 (line 541) | const vec4 & RDirNode::getColour() const{
function vec2 (line 632) | const vec2 & RDirNode::getPos() const{
function vec2 (line 827) | const vec2 & RDirNode::getNodeNormal() const{
function vec2 (line 831) | vec2 RDirNode::calcFileDest(int max_files, int file_no) {
function vec2 (line 1101) | const vec2 & RDirNode::getSPos() const{
function vec2 (line 1105) | const vec2 & RDirNode::getProjectedPos() const{
FILE: src/dirnode.h
function class (line 38) | class RDirNode : public QuadItem {
FILE: src/file.cpp
function RDirNode (line 92) | RDirNode* RFile::getDir() const{
function vec2 (line 96) | vec2 RFile::getAbsolutePos() const{
function vec3 (line 140) | const vec3& RFile::getNameColour() const{
function vec3 (line 148) | const vec3 & RFile::getFileColour() const{
function vec3 (line 152) | vec3 RFile::getColour() const{
FILE: src/file.h
function vec3 (line 53) | const vec3& getNameColour() const;
function setDistance (line 77) | void setDistance(float distance){ this->distance = distance; }
FILE: src/formats/apache.cpp
type tm (line 72) | struct tm
FILE: src/formats/apache.h
function class (line 25) | class ApacheCombinedLog : public RCommitLog {
FILE: src/formats/bzr.cpp
function BaseLog (line 55) | BaseLog* BazaarLog::generateLog(const std::string& dir) {
type tm (line 107) | struct tm
FILE: src/formats/bzr.h
function class (line 23) | class BazaarLog : public RCommitLog {
FILE: src/formats/commitlog.cpp
type stat (line 61) | struct stat
function vec3 (line 307) | vec3 RCommit::fileColour(const std::string& filename) {
FILE: src/formats/commitlog.h
function class (line 33) | class RCommitFile {
function class (line 42) | class RCommit {
function class (line 61) | class RCommitLog {
FILE: src/formats/custom.cpp
function vec3 (line 26) | vec3 CustomLog::parseColour(const std::string& cstr) {
FILE: src/formats/custom.h
function class (line 23) | class CustomLog : public RCommitLog {
FILE: src/formats/cvs-exp.cpp
type tm (line 72) | struct tm
FILE: src/formats/cvs-exp.h
function class (line 23) | class CVSEXPCommitLog : public RCommitLog {
FILE: src/formats/cvs2cl.cpp
type tm (line 118) | struct tm
FILE: src/formats/cvs2cl.h
function class (line 23) | class CVS2CLCommitLog : public RCommitLog {
FILE: src/formats/git.cpp
function BaseLog (line 145) | BaseLog* GitCommitLog::generateLog(const std::string& dir) {
FILE: src/formats/git.h
function class (line 23) | class GitCommitLog : public RCommitLog {
FILE: src/formats/gitraw.h
function class (line 27) | class GitRawCommitLog : public RCommitLog {
FILE: src/formats/hg.cpp
function BaseLog (line 71) | BaseLog* MercurialLog::generateLog(const std::string& dir) {
FILE: src/formats/hg.h
function class (line 23) | class MercurialLog : public RCommitLog {
FILE: src/formats/svn.cpp
function BaseLog (line 67) | BaseLog* SVNCommitLog::generateLog(const std::string& dir) {
function time_t (line 118) | time_t __timegm_hack(struct tm* tm) {
type tm (line 228) | struct tm
FILE: src/formats/svn.h
function class (line 27) | class SVNCommitLog : public RCommitLog {
FILE: src/gource.cpp
type tm (line 298) | struct tm
function RFile (line 991) | RFile* Gource::addFile(const RCommitFile& cf) {
function RUser (line 1021) | RUser* Gource::addUser(const std::string& username) {
type tm (line 1465) | struct tm
type stat (line 2238) | struct stat
FILE: src/gource.h
function class (line 52) | class Gource : public SDLApp {
FILE: src/gource_settings.cpp
type tm (line 1296) | struct tm
FILE: src/gource_settings.h
function class (line 27) | class GourceSettings : public SDLAppSettings {
FILE: src/gource_shell.cpp
function Gource (line 205) | Gource* GourceShell::getNext() {
FILE: src/gource_shell.h
function class (line 25) | class GourceShell : public SDLApp {
FILE: src/key.cpp
function vec3 (line 44) | const vec3& FileKeyEntry::getColour() const {
function file_key_entry_sort (line 241) | bool file_key_entry_sort (const FileKeyEntry* a, const FileKeyEntry* b) {
FILE: src/key.h
function vec3 (line 51) | const vec3& getColour() const;
FILE: src/logmill.cpp
function logmill_thread (line 35) | static int logmill_thread(void *lmill) {
function RCommitLog (line 153) | RCommitLog* RLogMill::getLog() {
function RCommitLog (line 190) | RCommitLog* RLogMill::fetchLog(std::string& log_format) {
FILE: src/logmill.h
function class (line 41) | class RLogMill {
FILE: src/main.cpp
function main (line 20) | int main(int argc, char *argv[]) {
FILE: src/pawn.cpp
function vec3 (line 104) | const vec3& Pawn::getNameColour() const {
FILE: src/pawn.h
function class (line 30) | class Pawn : public QuadItem {
FILE: src/slider.cpp
function Bounds2D (line 44) | const Bounds2D& PositionSlider::getBounds() const {
FILE: src/slider.h
function class (line 25) | class PositionSlider {
FILE: src/spline.cpp
function vec2 (line 71) | const vec2& SplineEdge::getLabelPos() const {
FILE: src/spline.h
function class (line 29) | class SplineEdge {
FILE: src/test/datetime_tests.cpp
function BOOST_AUTO_TEST_CASE (line 23) | BOOST_AUTO_TEST_CASE( parse_date_time_tests )
FILE: src/test/regex_tests.cpp
function BOOST_AUTO_TEST_CASE (line 22) | BOOST_AUTO_TEST_CASE( regex_tests )
FILE: src/textbox.h
function class (line 27) | class TextBox {
FILE: src/tinyxml/tinystr.cpp
function TiXmlString (line 49) | TiXmlString& TiXmlString::assign(const char* str, size_type len)
function TiXmlString (line 68) | TiXmlString& TiXmlString::append(const char* str, size_type len)
function TiXmlString (line 81) | TiXmlString operator + (const TiXmlString & a, const TiXmlString & b)
function TiXmlString (line 90) | TiXmlString operator + (const TiXmlString & a, const char* b)
function TiXmlString (line 100) | TiXmlString operator + (const char* a, const TiXmlString & b)
FILE: src/tinyxml/tinystr.h
function class (line 55) | class TiXmlString
function at (line 147) | const char& at (size_type index) const
function const (line 154) | char& operator [] (size_type index) const
function size_type (line 161) | size_type find (char lookup) const
function size_type (line 167) | size_type find (char tofind, size_type offset) const
function clear (line 178) | void clear ()
function swap (line 197) | void swap (TiXmlString& other)
function set_size (line 207) | void set_size(size_type sz) { rep_->str[ rep_->size = sz ] = '\0'; }
type Rep (line 211) | struct Rep
function init (line 217) | void init(size_type sz, size_type cap)
function quit (line 239) | void quit()
function operator (line 255) | inline bool operator == (const TiXmlString & a, const TiXmlString & b)
function operator (line 260) | inline bool operator < (const TiXmlString & a, const TiXmlString & b)
function operator (line 265) | inline bool operator != (const TiXmlString & a, const TiXmlString & b) {...
function operator (line 266) | inline bool operator > (const TiXmlString & a, const TiXmlString & b) {...
function operator (line 267) | inline bool operator <= (const TiXmlString & a, const TiXmlString & b) {...
function operator (line 268) | inline bool operator >= (const TiXmlString & a, const TiXmlString & b) {...
function operator (line 270) | inline bool operator == (const TiXmlString & a, const char* b) { return ...
function operator (line 271) | inline bool operator == (const char* a, const TiXmlString & b) { return ...
function operator (line 272) | inline bool operator != (const TiXmlString & a, const char* b) { return ...
function operator (line 273) | inline bool operator != (const char* a, const TiXmlString & b) { return ...
function class (line 284) | class TiXmlOutStream : public TiXmlString
FILE: src/tinyxml/tinyxml.cpp
function FILE (line 39) | FILE* TiXmlFOpen( const char* filename, const char* mode )
function TiXmlNode (line 186) | TiXmlNode* TiXmlNode::LinkEndChild( TiXmlNode* node )
function TiXmlNode (line 214) | TiXmlNode* TiXmlNode::InsertEndChild( const TiXmlNode& addThis )
function TiXmlNode (line 230) | TiXmlNode* TiXmlNode::InsertBeforeChild( TiXmlNode* beforeThis, const Ti...
function TiXmlNode (line 263) | TiXmlNode* TiXmlNode::InsertAfterChild( TiXmlNode* afterThis, const TiXm...
function TiXmlNode (line 296) | TiXmlNode* TiXmlNode::ReplaceChild( TiXmlNode* replaceThis, const TiXmlN...
function TiXmlNode (line 361) | const TiXmlNode* TiXmlNode::FirstChild( const char * _value ) const
function TiXmlNode (line 373) | const TiXmlNode* TiXmlNode::LastChild( const char * _value ) const
function TiXmlNode (line 385) | const TiXmlNode* TiXmlNode::IterateChildren( const TiXmlNode* previous )...
function TiXmlNode (line 399) | const TiXmlNode* TiXmlNode::IterateChildren( const char * val, const TiX...
function TiXmlNode (line 413) | const TiXmlNode* TiXmlNode::NextSibling( const char * _value ) const
function TiXmlNode (line 425) | const TiXmlNode* TiXmlNode::PreviousSibling( const char * _value ) const
function TiXmlElement (line 452) | const TiXmlElement* TiXmlNode::FirstChildElement() const
function TiXmlElement (line 467) | const TiXmlElement* TiXmlNode::FirstChildElement( const char * _value ) ...
function TiXmlElement (line 482) | const TiXmlElement* TiXmlNode::NextSiblingElement() const
function TiXmlElement (line 497) | const TiXmlElement* TiXmlNode::NextSiblingElement( const char * _value )...
function TiXmlDocument (line 512) | const TiXmlDocument* TiXmlNode::GetDocument() const
function TiXmlElement (line 551) | TiXmlElement& TiXmlElement::operator=( const TiXmlElement& base )
function TiXmlNode (line 889) | TiXmlNode* TiXmlElement::Clone() const
function TiXmlDocument (line 946) | TiXmlDocument& TiXmlDocument::operator=( const TiXmlDocument& copy )
function TiXmlNode (line 1134) | TiXmlNode* TiXmlDocument::Clone() const
function TiXmlAttribute (line 1170) | const TiXmlAttribute* TiXmlAttribute::Next() const
function TiXmlAttribute (line 1190) | const TiXmlAttribute* TiXmlAttribute::Previous() const
function TiXmlComment (line 1289) | TiXmlComment& TiXmlComment::operator=( const TiXmlComment& base )
function TiXmlNode (line 1320) | TiXmlNode* TiXmlComment::Clone() const
function TiXmlNode (line 1366) | TiXmlNode* TiXmlText::Clone() const
function TiXmlDeclaration (line 1410) | TiXmlDeclaration& TiXmlDeclaration::operator=( const TiXmlDeclaration& c...
function TiXmlNode (line 1456) | TiXmlNode* TiXmlDeclaration::Clone() const
function TiXmlNode (line 1488) | TiXmlNode* TiXmlUnknown::Clone() const
function TiXmlAttribute (line 1549) | TiXmlAttribute* TiXmlAttributeSet::Find( const std::string& name ) const
function TiXmlAttribute (line 1559) | TiXmlAttribute* TiXmlAttributeSet::FindOrCreate( const std::string& _name )
function TiXmlAttribute (line 1572) | TiXmlAttribute* TiXmlAttributeSet::Find( const char* name ) const
function TiXmlAttribute (line 1583) | TiXmlAttribute* TiXmlAttributeSet::FindOrCreate( const char* _name )
function TiXmlHandle (line 1632) | TiXmlHandle TiXmlHandle::FirstChild() const
function TiXmlHandle (line 1644) | TiXmlHandle TiXmlHandle::FirstChild( const char * value ) const
function TiXmlHandle (line 1656) | TiXmlHandle TiXmlHandle::FirstChildElement() const
function TiXmlHandle (line 1668) | TiXmlHandle TiXmlHandle::FirstChildElement( const char * value ) const
function TiXmlHandle (line 1680) | TiXmlHandle TiXmlHandle::Child( int count ) const
function TiXmlHandle (line 1699) | TiXmlHandle TiXmlHandle::Child( const char* value, int count ) const
function TiXmlHandle (line 1718) | TiXmlHandle TiXmlHandle::ChildElement( int count ) const
function TiXmlHandle (line 1737) | TiXmlHandle TiXmlHandle::ChildElement( const char* value, int count ) const
FILE: src/tinyxml/tinyxml.h
function Clear (line 99) | struct TiXmlCursor
function class (line 128) | class TiXmlVisitor
type TiXmlEncoding (line 163) | enum TiXmlEncoding
function class (line 194) | class TiXmlBase
function class (line 423) | class TiXmlNode : public TiXmlBase
function class (line 779) | class TiXmlAttribute : public TiXmlBase
function IntValue (line 816) | int IntValue() const; ///< Return the value of this attribute...
function SetValue (line 836) | void SetValue( const char* _value ) { value = _value; }
function SetName (line 843) | void SetName( const std::string& _name ) { name = _name; }
function SetValue (line 845) | void SetValue( const std::string& _value ) { value = _value; }
function TiXmlAttribute (line 850) | TiXmlAttribute* Next() {
function TiXmlAttribute (line 856) | TiXmlAttribute* Previous() {
function virtual (line 870) | virtual void Print( FILE* cfile, int depth ) const {
function SetDocument (line 877) | void SetDocument( TiXmlDocument* doc ) { document = doc; }
function class (line 903) | class TiXmlAttributeSet
function class (line 940) | class TiXmlElement : public TiXmlNode
function class (line 1162) | class TiXmlComment : public TiXmlNode
function class (line 1285) | class TiXmlDeclaration : public TiXmlNode
function virtual (line 1358) | virtual ~TiXmlUnknown() {}
function TiXmlNode (line 1360) | TiXmlUnknown( const TiXmlUnknown& copy ) : TiXmlNode( TiXmlNode::TINYXML...
function virtual (line 1370) | virtual const TiXmlUnknown* ToUnknown() const { return this; }
function virtual (line 1371) | virtual TiXmlUnknown* ToUnknown() { return this; }
function class (line 1393) | class TiXmlDocument : public TiXmlNode
function class (line 1638) | class TiXmlHandle
function class (line 1737) | class TiXmlPrinter : public TiXmlVisitor
FILE: src/tinyxml/tinyxmlparser.cpp
class TiXmlParsingData (line 171) | class TiXmlParsingData
method TiXmlCursor (line 177) | const TiXmlCursor& Cursor() const { return cursor; }
method TiXmlParsingData (line 181) | TiXmlParsingData( const char* start, int _tabsize, int row, int col )
function TiXmlNode (line 818) | TiXmlNode* TiXmlNode::Identify( const char* p, TiXmlEncoding encoding )
FILE: src/user.cpp
function vec3 (line 329) | const vec3& RUser::getNameColour() const {
function vec3 (line 333) | vec3 RUser::getColour() const{
FILE: src/user.h
function nameVisible (line 55) | bool nameVisible() const;
FILE: src/zoomcamera.h
function class (line 26) | class ZoomCamera {
Condensed preview — 115 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (731K chars).
[
{
"path": ".gitattributes",
"chars": 23,
"preview": "*.cmd text eol=crlf\n\n"
},
{
"path": ".github/FUNDING.yml",
"chars": 17,
"preview": "ko_fi: acaudwell\n"
},
{
"path": ".gitignore",
"chars": 245,
"preview": "*.avi\n*.mpg\n*.mkv\n*.mp4\ngource-*.png\n.objs\n/gource\n/gource.exe\ngource.pro.user\ndebug.log\nMakefile\nMakefile.in\n*.dll\n*.dl"
},
{
"path": ".gitmodules",
"chars": 85,
"preview": "[submodule \"src/core\"]\n\tpath = src/core\n\turl = https://github.com/acaudwell/Core.git\n"
},
{
"path": "COPYING",
"chars": 35147,
"preview": " GNU GENERAL PUBLIC LICENSE\n Version 3, 29 June 2007\n\n Copyright (C) 2007 Free "
},
{
"path": "ChangeLog",
"chars": 13205,
"preview": "0.57:\n * Handle loading indexed colour images (sokripon).\n\n0.56:\n * Added --author-time option (onlyJakob).\n * Fixed bui"
},
{
"path": "INSTALL",
"chars": 1868,
"preview": "This file is to help you configure, build and install Gource for your system.\n\nContents\n========\n\n1. Dependencies\n2. Bui"
},
{
"path": "Makefile.am",
"chars": 2595,
"preview": "ACLOCAL_AMFLAGS = -I m4\n\nbin_PROGRAMS = gource\n\ngource_CXXFLAGS = -std=gnu++0x -Wall -Wno-sign-compare -Wno-reorder -Wno"
},
{
"path": "README.md",
"chars": 14142,
"preview": "Gource\n======\n\nhttps://gource.io\n\nDescription\n===========\n\nGource is a visualization tool for source control repositorie"
},
{
"path": "THANKS",
"chars": 71,
"preview": "Cheers to everyone at Catalyst IT for their support and encouragement.\n"
},
{
"path": "autogen.sh",
"chars": 485,
"preview": "#! /bin/sh\nif (autoreconf -f -i) ; then\n\techo \"autoreconf ran successfully.\"\n\techo \"Initializing submodules...\"\n\tif (git"
},
{
"path": "cmd/gource",
"chars": 77,
"preview": "#!/bin/sh\nGOURCE_CMD_DIR=`dirname \"$0\"`\n\"$GOURCE_CMD_DIR/../gource.exe\" \"$@\"\n"
},
{
"path": "cmd/gource.cmd",
"chars": 37,
"preview": "@echo off\r\n\"%~dp0\\..\\gource.exe\" %*\r\n"
},
{
"path": "configure.ac",
"chars": 2736,
"preview": "# -*- Autoconf -*-\n# Process this file with autoconf to produce a configur"
},
{
"path": "contrib/svn-gource.py",
"chars": 3716,
"preview": "#!/usr/bin/python\n## Copyright (c) 2009 Cameron Hart (cam@bitshifter.net.nz)\n## All rights reserved.\n##\n## Redistributio"
},
{
"path": "data/fonts/README",
"chars": 4313,
"preview": "-*-text-*-\n GNU FreeFont\n\nThe GNU FreeFont project aims to provide a useful set of free scalabl"
},
{
"path": "data/gource.1",
"chars": 13670,
"preview": ".TH Gource 1\n.SH NAME\nGource - a software version control visualization\n.SH SYNOPSIS\n\\fIgource\\fR\n[options] [path]\n.SH D"
},
{
"path": "data/gource.style",
"chars": 293,
"preview": "changeset = '{file_adds}{file_copies}{file_mods}{file_dels}'\nfile_mod = \"{date|hgdate}|{author|person}|M|{file_mod}\\n\"\n"
},
{
"path": "data/shaders/bloom.frag",
"chars": 418,
"preview": "\nvarying vec3 pos;\n\nvoid main()\n{\n float r = fract(sin(dot(pos.xy ,vec2(11.3713,67.3219))) * 2351.3718);\n\n float o"
},
{
"path": "data/shaders/bloom.vert",
"chars": 187,
"preview": "\nvarying vec3 pos;\n\nvoid main()\n{\n pos = gl_Vertex.xyz - gl_MultiTexCoord0.yzw;\n gl_TexCoord[0] = gl_MultiTexCoord"
},
{
"path": "data/shaders/shadow.frag",
"chars": 209,
"preview": "uniform sampler2D tex;\nuniform float shadow_strength;\n\nvoid main(void)\n{\n vec4 colour = texture2D(tex,gl_TexCoord[0]."
},
{
"path": "data/shaders/shadow.vert",
"chars": 120,
"preview": "void main(void)\n{\n gl_TexCoord[0] = gl_MultiTexCoord0;\n gl_FrontColor = gl_Color;\n gl_Position = ftransform();\n}\n"
},
{
"path": "data/shaders/text.frag",
"chars": 468,
"preview": "uniform sampler2D tex;\nuniform float shadow_strength;\nuniform float texel_size;\n\nvoid main(void)\n{\n float colour_alph"
},
{
"path": "data/shaders/text.vert",
"chars": 120,
"preview": "void main(void)\n{\n gl_TexCoord[0] = gl_MultiTexCoord0;\n gl_FrontColor = gl_Color;\n gl_Position = ftransform();\n}\n"
},
{
"path": "dev/.gitignore",
"chars": 8,
"preview": "builds/\n"
},
{
"path": "dev/bin/build_tar.pl",
"chars": 3517,
"preview": "#!/usr/bin/perl\n#copy stuff we want to go into the gource source tar ball\n\nuse strict;\nuse warnings;\n\n\nuse FindBin;\nuse "
},
{
"path": "dev/bin/build_win64.pl",
"chars": 8721,
"preview": "#!/usr/bin/perl\n# windows archive + installer generator\n\nuse strict;\nuse warnings;\nuse FindBin;\nuse File::Copy;\n\nmy $bas"
},
{
"path": "dev/nsis/disclaimer.txt",
"chars": 460,
"preview": "THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WAR"
},
{
"path": "gource.pro",
"chars": 3371,
"preview": "# Note: this project file currently only implements building on Windows with Mingw-w64\n# See the INSTALL file for buildi"
},
{
"path": "m4/ax_boost_base.m4",
"chars": 13940,
"preview": "# ===========================================================================\n# https://www.gnu.org/software/autoco"
},
{
"path": "m4/ax_boost_filesystem.m4",
"chars": 4401,
"preview": "# ===========================================================================\n# https://www.gnu.org/software/autoconf-"
},
{
"path": "m4/ax_check_gl.m4",
"chars": 11349,
"preview": "# ===========================================================================\n# https://www.gnu.org/software/autoc"
},
{
"path": "m4/ax_check_glu.m4",
"chars": 10769,
"preview": "# ===========================================================================\n# https://www.gnu.org/software/autoc"
},
{
"path": "m4/ax_check_glut.m4",
"chars": 7999,
"preview": "# ===========================================================================\n# https://www.gnu.org/software/autoco"
},
{
"path": "m4/ax_pthread.m4",
"chars": 11249,
"preview": "# ===========================================================================\n# http://www.nongnu.org/autoconf"
},
{
"path": "m4/ax_restore_flags_with_prefix.m4",
"chars": 2653,
"preview": "# =================================================================================\n# https://www.gnu.org/software/auto"
},
{
"path": "m4/ax_save_flags_with_prefix.m4",
"chars": 2928,
"preview": "# ==============================================================================\n# https://www.gnu.org/software/autocon"
},
{
"path": "m4/pkg.m4",
"chars": 5220,
"preview": "# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-\n# \n# Copyright © 2004 Scott James Remnan"
},
{
"path": "scripts/gource-ps.pl",
"chars": 4373,
"preview": "#!/usr/bin/perl\n#poll ps and convert changes into Gource format.\n\n#usage:\n# gource-ps.pl [[USER@]SERVER] | gource --l"
},
{
"path": "src/.gitignore",
"chars": 4,
"preview": "*.o\n"
},
{
"path": "src/action.cpp",
"chars": 3856,
"preview": "/*\n Copyright (C) 2009 Andrew Caudwell (acaudwell@gmail.com)\n\n This program is free software; you can redistribute"
},
{
"path": "src/action.h",
"chars": 1800,
"preview": "/*\n Copyright (C) 2009 Andrew Caudwell (acaudwell@gmail.com)\n\n This program is free software; you can redistribute"
},
{
"path": "src/bloom.cpp",
"chars": 3615,
"preview": "/*\n Copyright (C) 2011 Andrew Caudwell (acaudwell@gmail.com)\n\n This program is free software; you can redistribute"
},
{
"path": "src/bloom.h",
"chars": 1627,
"preview": "/*\n Copyright (C) 2011 Andrew Caudwell (acaudwell@gmail.com)\n\n This program is free software; you can redistribute"
},
{
"path": "src/caption.cpp",
"chars": 1678,
"preview": "/*\n Copyright (C) 2010 Andrew Caudwell (acaudwell@gmail.com)\n\n This program is free software; you can redistribute"
},
{
"path": "src/caption.h",
"chars": 1303,
"preview": "/*\n Copyright (C) 2010 Andrew Caudwell (acaudwell@gmail.com)\n\n This program is free software; you can redistribute"
},
{
"path": "src/dirnode.cpp",
"chars": 31354,
"preview": "/*\n Copyright (C) 2009 Andrew Caudwell (acaudwell@gmail.com)\n\n This program is free software; you can redistribute"
},
{
"path": "src/dirnode.h",
"chars": 5799,
"preview": "/*\n Copyright (C) 2009 Andrew Caudwell (acaudwell@gmail.com)\n\n This program is free software; you can redistribute"
},
{
"path": "src/file.cpp",
"chars": 7436,
"preview": "/*\n Copyright (C) 2009 Andrew Caudwell (acaudwell@gmail.com)\n\n This program is free software; you can redistribute"
},
{
"path": "src/file.h",
"chars": 2312,
"preview": "/*\n Copyright (C) 2009 Andrew Caudwell (acaudwell@gmail.com)\n\n This program is free software; you can redistribute"
},
{
"path": "src/formats/apache.cpp",
"chars": 3670,
"preview": "/*\n Copyright (C) 2009 Andrew Caudwell (acaudwell@gmail.com)\n\n This program is free software; you can redistribute"
},
{
"path": "src/formats/apache.h",
"chars": 1029,
"preview": "/*\n Copyright (C) 2009 Andrew Caudwell (acaudwell@gmail.com)\n\n This program is free software; you can redistribute"
},
{
"path": "src/formats/bzr.cpp",
"chars": 3464,
"preview": "/*\n Copyright (C) 2010 John Arbash Meinel <john@arbash-meinel.com>\n\n This program is free software; you can redist"
},
{
"path": "src/formats/bzr.h",
"chars": 1035,
"preview": "/*\n Copyright (C) 2010 John Arbash Meinel <john@arbash-meinel.com>\n\n This program is free software; you can redist"
},
{
"path": "src/formats/commitlog.cpp",
"chars": 9130,
"preview": "/*\n Copyright (C) 2009 Andrew Caudwell (acaudwell@gmail.com)\n\n This program is free software; you can redistribute"
},
{
"path": "src/formats/commitlog.h",
"chars": 2789,
"preview": "/*\n Copyright (C) 2009 Andrew Caudwell (acaudwell@gmail.com)\n\n This program is free software; you can redistribute"
},
{
"path": "src/formats/custom.cpp",
"chars": 2854,
"preview": "/*\n Copyright (C) 2009 Andrew Caudwell (acaudwell@gmail.com)\n\n This program is free software; you can redistribute"
},
{
"path": "src/formats/custom.h",
"chars": 1027,
"preview": "/*\n Copyright (C) 2009 Andrew Caudwell (acaudwell@gmail.com)\n\n This program is free software; you can redistribute"
},
{
"path": "src/formats/cvs-exp.cpp",
"chars": 4123,
"preview": "/*\n Copyright (C) 2009 Andrew Caudwell (acaudwell@gmail.com)\n\n This program is free software; you can redistribute"
},
{
"path": "src/formats/cvs-exp.h",
"chars": 992,
"preview": "/*\n Copyright (C) 2009 Andrew Caudwell (acaudwell@gmail.com)\n\n This program is free software; you can redistribute"
},
{
"path": "src/formats/cvs2cl.cpp",
"chars": 4446,
"preview": "/*\n Copyright (C) 2010 Andrew Caudwell (acaudwell@gmail.com)\n\n This program is free software; you can redistribute"
},
{
"path": "src/formats/cvs2cl.h",
"chars": 1011,
"preview": "/*\n Copyright (C) 2010 Andrew Caudwell (acaudwell@gmail.com)\n\n This program is free software; you can redistribute"
},
{
"path": "src/formats/git.cpp",
"chars": 6171,
"preview": "/*\n Copyright (C) 2009 Andrew Caudwell (acaudwell@gmail.com)\n\n This program is free software; you can redistribute"
},
{
"path": "src/formats/git.h",
"chars": 1062,
"preview": "/*\n Copyright (C) 2009 Andrew Caudwell (acaudwell@gmail.com)\n\n This program is free software; you can redistribute"
},
{
"path": "src/formats/gitraw.cpp",
"chars": 2841,
"preview": "/*\n Copyright (C) 2009 Andrew Caudwell (acaudwell@gmail.com)\n\n This program is free software; you can redistribute"
},
{
"path": "src/formats/gitraw.h",
"chars": 1017,
"preview": "/*\n Copyright (C) 2009 Andrew Caudwell (acaudwell@gmail.com)\n\n This program is free software; you can redistribute"
},
{
"path": "src/formats/hg.cpp",
"chars": 4012,
"preview": "/*\n Copyright (C) 2009 Andrew Caudwell (acaudwell@gmail.com)\n\n This program is free software; you can redistribute"
},
{
"path": "src/formats/hg.h",
"chars": 1083,
"preview": "/*\n Copyright (C) 2009 Andrew Caudwell (acaudwell@gmail.com)\n\n This program is free software; you can redistribute"
},
{
"path": "src/formats/svn.cpp",
"chars": 7374,
"preview": "/*\n Copyright (C) 2010 Andrew Caudwell (acaudwell@gmail.com)\n\n This program is free software; you can redistribute"
},
{
"path": "src/formats/svn.h",
"chars": 1117,
"preview": "/*\n Copyright (C) 2010 Andrew Caudwell (acaudwell@gmail.com)\n\n This program is free software; you can redistribute"
},
{
"path": "src/gource.cpp",
"chars": 73777,
"preview": "/*\n Copyright (C) 2009 Andrew Caudwell (acaudwell@gmail.com)\n\n This program is free software; you can redistribute"
},
{
"path": "src/gource.h",
"chars": 6271,
"preview": "/*\n Copyright (C) 2009 Andrew Caudwell (acaudwell@gmail.com)\n\n This program is free software; you can redistribute"
},
{
"path": "src/gource_settings.cpp",
"chars": 55484,
"preview": "/*\n Copyright (C) 2010 Andrew Caudwell (acaudwell@gmail.com)\n\n This program is free software; you can redistribute"
},
{
"path": "src/gource_settings.h",
"chars": 4164,
"preview": "/*\n Copyright (C) 2010 Andrew Caudwell (acaudwell@gmail.com)\n\n This program is free software; you can redistribute"
},
{
"path": "src/gource_shell.cpp",
"chars": 7564,
"preview": "/*\n Copyright (C) 2010 Andrew Caudwell (acaudwell@gmail.com)\n\n This program is free software; you can redistribute"
},
{
"path": "src/gource_shell.h",
"chars": 1689,
"preview": "/*\n Copyright (C) 2010 Andrew Caudwell (acaudwell@gmail.com)\n\n This program is free software; you can redistribute"
},
{
"path": "src/key.cpp",
"chars": 7979,
"preview": "#include \"key.h\"\n\n\n// File Key Entry\n// a string for the file ext and a colour\n\nFileKeyEntry::FileKeyEntry(const FXFont&"
},
{
"path": "src/key.h",
"chars": 2173,
"preview": "/*\n Copyright (C) 2010 Andrew Caudwell (acaudwell@gmail.com)\n\n This program is free software; you can redistribute"
},
{
"path": "src/logmill.cpp",
"chars": 8721,
"preview": "/*\n Copyright (C) 2012 Andrew Caudwell (acaudwell@gmail.com)\n\n This program is free software; you can redistribute"
},
{
"path": "src/logmill.h",
"chars": 1630,
"preview": "/*\n Copyright (C) 2012 Andrew Caudwell (acaudwell@gmail.com)\n\n This program is free software; you can redistribute"
},
{
"path": "src/main.cpp",
"chars": 7032,
"preview": "/*\n Copyright (C) 2009 Andrew Caudwell (acaudwell@gmail.com)\n\n This program is free software; you can redistribute"
},
{
"path": "src/main.h",
"chars": 820,
"preview": "/*\n Copyright (C) 2009 Andrew Caudwell (acaudwell@gmail.com)\n\n This program is free software; you can redistribute"
},
{
"path": "src/pawn.cpp",
"chars": 4476,
"preview": "/*\n Copyright (C) 2009 Andrew Caudwell (acaudwell@gmail.com)\n\n This program is free software; you can redistribute"
},
{
"path": "src/pawn.h",
"chars": 2445,
"preview": "/*\n Copyright (C) 2009 Andrew Caudwell (acaudwell@gmail.com)\n\n This program is free software; you can redistribute"
},
{
"path": "src/slider.cpp",
"chars": 3816,
"preview": "/*\n Copyright (C) 2009 Andrew Caudwell (acaudwell@gmail.com)\n\n This program is free software; you can redistribute"
},
{
"path": "src/slider.h",
"chars": 1540,
"preview": "/*\n Copyright (C) 2009 Andrew Caudwell (acaudwell@gmail.com)\n\n This program is free software; you can redistribute"
},
{
"path": "src/spline.cpp",
"chars": 4345,
"preview": "/*\n Copyright (C) 2009 Andrew Caudwell (acaudwell@gmail.com)\n\n This program is free software; you can redistribute"
},
{
"path": "src/spline.h",
"chars": 1412,
"preview": "/*\n Copyright (C) 2009 Andrew Caudwell (acaudwell@gmail.com)\n\n This program is free software; you can redistribute"
},
{
"path": "src/test/datetime_tests.cpp",
"chars": 4637,
"preview": "/*\n Copyright (C) 2021 Andrew Caudwell (acaudwell@gmail.com)\n\n This program is free software; you can redistribute"
},
{
"path": "src/test/main.cpp",
"chars": 89,
"preview": "#define BOOST_TEST_MODULE Gource Test Suite\n#include <boost/test/included/unit_test.hpp>\n"
},
{
"path": "src/test/regex_tests.cpp",
"chars": 1540,
"preview": "/*\n Copyright (C) 2021 Andrew Caudwell (acaudwell@gmail.com)\n\n This program is free software; you can redistribute"
},
{
"path": "src/textbox.cpp",
"chars": 3954,
"preview": "/*\n Copyright (C) 2010 Andrew Caudwell (acaudwell@gmail.com)\n\n This program is free software; you can redistribute"
},
{
"path": "src/textbox.h",
"chars": 1587,
"preview": "/*\n Copyright (C) 2010 Andrew Caudwell (acaudwell@gmail.com)\n\n This program is free software; you can redistribute"
},
{
"path": "src/tinyxml/tinystr.cpp",
"chars": 2507,
"preview": "/*\nwww.sourceforge.net/projects/tinyxml\n\nThis software is provided 'as-is', without any express or implied\nwarranty. In "
},
{
"path": "src/tinyxml/tinystr.h",
"chars": 8197,
"preview": "/*\nwww.sourceforge.net/projects/tinyxml\n\nThis software is provided 'as-is', without any express or implied\nwarranty. In "
},
{
"path": "src/tinyxml/tinyxml.cpp",
"chars": 37591,
"preview": "/*\nwww.sourceforge.net/projects/tinyxml\nOriginal code by Lee Thomason (www.grinninglizard.com)\n\nThis software is provide"
},
{
"path": "src/tinyxml/tinyxml.h",
"chars": 64835,
"preview": "/*\nwww.sourceforge.net/projects/tinyxml\nOriginal code by Lee Thomason (www.grinninglizard.com)\n\nThis software is provide"
},
{
"path": "src/tinyxml/tinyxmlerror.cpp",
"chars": 1791,
"preview": "/*\nwww.sourceforge.net/projects/tinyxml\nOriginal code (2.0 and earlier )copyright (c) 2000-2006 Lee Thomason (www.grinni"
},
{
"path": "src/tinyxml/tinyxmlparser.cpp",
"chars": 37248,
"preview": "/*\nwww.sourceforge.net/projects/tinyxml\nOriginal code by Lee Thomason (www.grinninglizard.com)\n\nThis software is provide"
},
{
"path": "src/user.cpp",
"chars": 10845,
"preview": "/*\n Copyright (C) 2009 Andrew Caudwell (acaudwell@gmail.com)\n\n This program is free software; you can redistribute"
},
{
"path": "src/user.h",
"chars": 2837,
"preview": "/*\n Copyright (C) 2009 Andrew Caudwell (acaudwell@gmail.com)\n\n This program is free software; you can redistribute"
},
{
"path": "src/zoomcamera.cpp",
"chars": 4445,
"preview": "/*\n Copyright (C) 2009 Andrew Caudwell (acaudwell@gmail.com)\n\n This program is free software; you can redistribute"
},
{
"path": "src/zoomcamera.h",
"chars": 2246,
"preview": "/*\n Copyright (C) 2009 Andrew Caudwell (acaudwell@gmail.com)\n\n This program is free software; you can redistribute"
},
{
"path": "tests/logs/custom-dir-delete.log",
"chars": 165,
"preview": "1277787455|bob|A|path/to/1.txt\n1277787457|bob|A|path/to/blah/1.txt\n1277787457|bob|A|path/to/blah/2.txt\n1277787457|bob|A|"
},
{
"path": "tests/logs/file-removal.log",
"chars": 321,
"preview": "1277787455|bob|A|path/to/file.1\n1277787455|bob|A|path/to/file.2\n1277787455|bob|A|path/to/file.3\n1277787455|bob|A|path/to"
},
{
"path": "tests/logs/file-to-dir.log",
"chars": 161,
"preview": "1277787456|bob|A|path/to/file/Not\n1277787457|bob|A|path/to/file/Not/Not\n1277787457|bob|A|path/to/file/Not/Not/Not\n127778"
},
{
"path": "tests/logs/svn-dir-delete.log",
"chars": 573,
"preview": "<?xml version=\"1.0\"?>\n<log>\n<logentry revision=\"1\">\n<author>bob</author>\n<date>2010-01-20T08:35:18.022581Z</date>\n<paths"
},
{
"path": "tests/logs/utf8-caption.log",
"chars": 104,
"preview": "1277787455|Árvíztűrő tükörfúrógép adds a file\n2010-06-29 16:57:45|Árvíztűrő tükörfúrógép removes a file\n"
},
{
"path": "tests/logs/utf8.log",
"chars": 173,
"preview": "1277787455|Árvíztűrő tükörfúrógép|A|Árvíztűrő/tükörfúrógép/Árvíztűrő tükörfúrógép.txt\n1277787465|Árvíztűrő tükörfúrógép|"
},
{
"path": "tests/test.conf",
"chars": 714,
"preview": "[gource]\ntitle=File removal\npath=logs/file-removal.log\nfile-idle-time=0.0\nstop-at-time=10.0\n\n[gource]\ntitle=Convert 'fil"
}
]
// ... and 5 more files (download for full content)
About this extraction
This page contains the full source code of the acaudwell/Gource GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 115 files (672.0 KB), approximately 186.0k tokens, and a symbol index with 182 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.