pax_global_header 0000666 0000000 0000000 00000000064 13353235401 0014511 g ustar 00root root 0000000 0000000 52 comment=4371a41ba4ece660bf060b598b9eee4c2eb347d8
tup-v0.7.8/ 0000775 0000000 0000000 00000000000 13353235401 0012523 5 ustar 00root root 0000000 0000000 tup-v0.7.8/.editorconfig 0000664 0000000 0000000 00000000143 13353235401 0015176 0 ustar 00root root 0000000 0000000 # http://editorconfig.org
[*]
end_of_line = lf
charset = utf-8
indent_size = 4
indent_style = tab
tup-v0.7.8/.travis.yml 0000664 0000000 0000000 00000000567 13353235401 0014644 0 ustar 00root root 0000000 0000000 sudo: required
dist: trusty
git:
depth: 1000 # if last tag is older than 50 commits
language: c
compiler:
- clang
- gcc
addons:
apt:
packages:
- libfuse-dev
- pkg-config
- fuse
before_install:
- sudo modprobe fuse
- sudo chmod 666 /dev/fuse
- sudo chown root:$USER /etc/fuse.conf
script:
- ./bootstrap.sh
- cd test && ./test.sh
tup-v0.7.8/CONTRIBUTING.md 0000664 0000000 0000000 00000000233 13353235401 0014752 0 ustar 00root root 0000000 0000000 # Contributor License Agreement
To get started, please sign the Contributor License Agreement.
tup-v0.7.8/COPYING 0000664 0000000 0000000 00000043254 13353235401 0013566 0 ustar 00root root 0000000 0000000 GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Lesser General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
Copyright (C)
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.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License.
tup-v0.7.8/README.md 0000664 0000000 0000000 00000001046 13353235401 0014003 0 ustar 00root root 0000000 0000000 # Tup
http://gittup.org/tup
## About Tup
Tup is a file-based build system for Linux, OSX, and Windows. It takes
as input a list of file changes and a directed acyclic graph (DAG). It
then processes the DAG to execute the appropriate commands required to
update dependent files. Updates are performed with very little overhead
since tup implements powerful build algorithms to avoid doing
unnecessary work. This means you can stay focused on your project rather
than on your build system.
Further information can be found at http://gittup.org/tup
tup-v0.7.8/Tupfile 0000664 0000000 0000000 00000003256 13353235401 0014064 0 ustar 00root root 0000000 0000000 include_rules
ifeq ($(TUP_SERVER),ldpreload)
ifeq ($(X86_ARCH_SIBLINGS),y)
: src/ldpreload/*.64.o |> !ld |> tup-ldpreload.so
else
: src/ldpreload/*.o |> !ld |> tup-ldpreload.so
endif
endif
ifneq ($(TARGET),win32)
client_objs += src/tup/vardict.o
client_objs += src/tup/send_event.o
client_objs += src/tup/flock/fcntl.o
: $(client_objs) |> !ar |> libtup_client.a
: src/tup/vardict.h |> !cp |> tup_client.h
endif
srcs = src/tup/*.o
srcs += src/tup/tup/*.o
srcs += src/tup/monitor/*.o
srcs += src/tup/flock/*.o
srcs += src/tup/server/*.o
srcs += src/inih/*.o
srcs += src/compat/*.o
ifeq (@(TUP_USE_SYSTEM_SQLITE),y)
LDFLAGS += -lsqlite3
else
srcs += src/sqlite3/*.o
endif
ifeq ($(use_system_pcre),y)
LDFLAGS += `pcre-config --libs`
else
srcs += src/pcre/*.o
endif
ifneq ($(TARGET),win32)
ifeq (@(TUP_SUDO_SUID),y)
suid = ; chown root:$(TUP_SUID_GROUP) tup; chmod u+s tup
endif
ifeq ($(TUP_SERVER),fuse)
LDFLAGS += `pkg-config fuse --libs`
endif
LDFLAGS += -lm
LDFLAGS += -lpthread
else
: src/dllinject/*.o |> !dll -lpsapi |> tup-dllinject.dll
: src/dllinject/*.o32 |> !dll32 -lpsapi |> tup-dllinject32.dll
: src/compat/win32/detect/*.o32 |> !ld32 |> tup32detect$(PROGRAM_SUFFIX)
srcs += src/compat/win32/*.o
srcs += tup-dllinject.dll
LDFLAGS += -Wl,--wrap=open
LDFLAGS += -Wl,--wrap=close
LDFLAGS += -Wl,--wrap=tmpfile
LDFLAGS += -Wl,--wrap=dup
LDFLAGS += -Wl,--wrap=__mingw_vprintf
LDFLAGS += -Wl,--wrap=__mingw_vfprintf
# This seems to only be needed on older (14.04 Ubuntu) MinGW toolchains, and can be removed for 16.04+
LDFLAGS += -lole32
endif
: $(srcs) src/lua/liblua.a |> ^ LINK %o^ ./src/tup/link.sh "$(CC)" "$(CFLAGS)" "$(LDFLAGS)" "%o" "%f" $(suid) |> tup$(PROGRAM_SUFFIX) | tup-version.o
tup-v0.7.8/Tupfile.ini 0000664 0000000 0000000 00000000000 13353235401 0014622 0 ustar 00root root 0000000 0000000 tup-v0.7.8/Tuprules.tup 0000664 0000000 0000000 00000003452 13353235401 0015104 0 ustar 00root root 0000000 0000000 .gitignore
ifdef TARGET
TARGET = @(TARGET)
else
TARGET = @(TUP_PLATFORM)
endif
ifdef CC
CC = @(CC)
else
CC = gcc
endif
ifeq (@(TUP_DEBUG),y)
CFLAGS += -Og
else
CFLAGS += -Os
endif
CFLAGS += -g
ifeq (@(TUP_SANITIZE),y)
CFLAGS += -fsanitize=address
LDFLAGS += -lasan
CFLAGS += -fsanitize=undefined
LDFLAGS += -lubsan
endif
ifdef AR
AR = @(AR)
else
AR = ar
endif
CFLAGS += -W
CFLAGS += -Wall
ifeq (@(TUP_WERROR),y)
CFLAGS += -Werror
endif
CFLAGS += -Wbad-function-cast
CFLAGS += -Wcast-align
CFLAGS += -Wcast-qual
CFLAGS += -Wchar-subscripts
CFLAGS += -Wmissing-prototypes
CFLAGS += -Wnested-externs
CFLAGS += -Wpointer-arith
CFLAGS += -Wredundant-decls
CFLAGS += -Wshadow
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wwrite-strings
CFLAGS += -Wswitch-enum
CFLAGS += -fno-common
CFLAGS += -I$(TUP_CWD)/src
ifeq (@(TUP_32_BIT),y)
CFLAGS += -m32
LDFLAGS += -m32
endif
!cc = |> ^ CC %f^ $(CC) -c %f -o %o $(CFLAGS) $(CFLAGS_%f) |> %B.o
!ld = |> ^ LINK %o^ $(CC) %f -o %o $(LDFLAGS) $(LDFLAGS_%o) |>
!ar = |> ^ AR %o^ $(AR) crs %o %f |>
!dot = |> ^ DOT %f^ dot -Efontname="Vernada, serif" -Nfontname="Vernada, serif" -Efontsize=10 -Nfontsize=10 -Tpng %f > %o |>
!cp = |> ^ CP %f -> %o^ cp %f %o |>
TUP_MONITOR = null
TUP_SUID_GROUP = root
TUP_USE_SYSTEM_PCRE = y
include $(TARGET).tup
ifdef TUP_USE_SYSTEM_PCRE
use_system_pcre = @(TUP_USE_SYSTEM_PCRE)
else
use_system_pcre = $(TUP_USE_SYSTEM_PCRE)
endif
ifeq ($(use_system_pcre),y)
CFLAGS += `pcre-config --cflags`
else
CFLAGS += -I$(TUP_CWD)/src/pcre
CFLAGS += -DPCRE_STATIC
endif
ifeq ($(TUP_SERVER),fuse)
CFLAGS += -D_FILE_OFFSET_BITS=64
export PKG_CONFIG_PATH
endif
ifeq ($(TUP_SERVER),ldpreload)
FPIC = -fpic
SHARED = -shared
LDFLAGS_tup-ldpreload.so += $(FPIC)
LDFLAGS_tup-ldpreload.so += $(SHARED)
LDFLAGS_tup-ldpreload.so += -ldl
LDFLAGS_tup-ldpreload.so += -pthread
endif
tup-v0.7.8/bootstrap-ldpreload.sh 0000775 0000000 0000000 00000001042 13353235401 0017040 0 ustar 00root root 0000000 0000000 #! /bin/sh -e
CFLAGS="-g" TUP_SERVER="ldpreload" ./build.sh
if [ ! -d .tup ]; then
./build/tup init
fi
./build/tup upd
echo "Build complete. If ./tup works, you can remove the 'build' directory."
if ! grep "CONFIG_TUP_SERVER=ldpreload" tup.config > /dev/null 2>&1; then
echo "Warning: CONFIG_TUP_SERVER=ldpreload not found in tup.config. This script builds the bootstrapped tup with the ldpreload server, but does not automatically configure the full build to use this server. You will need to do this manually by editing tup.config." 1>&2
fi
tup-v0.7.8/bootstrap-nofuse.sh 0000775 0000000 0000000 00000000770 13353235401 0016400 0 ustar 00root root 0000000 0000000 #! /bin/sh -e
# This is similar to bootstrap.sh, except it uses 'tup generate' to build a
# temporary shell script in case tup needs to be built in an environment that
# doesn't support FUSE. The resulting tup binary will still require FUSE to
# operate (on those platforms where it is used).
CFLAGS="-g" ./build.sh
if [ ! -d .tup ]; then
./build/tup init
fi
./build/tup generate --verbose build-nofuse.sh
./build-nofuse.sh
echo "Build complete. If ./tup works, you can remove the 'build' directory."
tup-v0.7.8/bootstrap.sh 0000775 0000000 0000000 00000000257 13353235401 0015103 0 ustar 00root root 0000000 0000000 #! /bin/sh -e
CFLAGS="-g" ./build.sh
if [ ! -d .tup ]; then
./build/tup init
fi
./build/tup upd
echo "Build complete. If ./tup works, you can remove the 'build' directory."
tup-v0.7.8/build.sh 0000775 0000000 0000000 00000007006 13353235401 0014164 0 ustar 00root root 0000000 0000000 #! /bin/sh -e
label=${TUP_LABEL:-bootstrap}
server=${TUP_SERVER:-fuse}
os=`uname -s`
plat_cflags=""
plat_ldflags=""
plat_files=""
if [ "$server" = "fuse" ]; then
plat_cflags="`pkg-config fuse --cflags`"
plat_ldflags="`pkg-config fuse --libs`"
plat_files="$plat_files ../src/tup/server/fuse*.c ../src/tup/server/master_fork.c"
elif [ "$server" = "ldpreload" ]; then
plat_files="../src/tup/server/depfile.c ../src/tup/server/privs.c"
else
echo "Error: invalid TUP_SERVER \"$server\"" 1>&2
exit 1
fi
LDFLAGS="$LDFLAGS -lm"
: ${CC:=gcc}
case "$os" in
Linux)
plat_files="$plat_files ../src/compat/dummy.c"
plat_files="$plat_files ../src/compat/utimensat_linux.c"
;;
SunOS)
plat_files="$plat_files ../src/compat/dir_mutex.c"
plat_files="$plat_files ../src/compat/mkdirat.c"
plat_files="$plat_files ../src/compat/readlinkat.c"
plat_ldflags="$plat_ldflags -lsocket"
plat_cflags="$plat_cflags -D_REENTRANT"
;;
Darwin)
plat_files="$plat_files ../src/compat/clearenv.c "
plat_files="$plat_files ../src/compat/dir_mutex.c "
plat_files="$plat_files ../src/compat/faccessat.c"
plat_files="$plat_files ../src/compat/fchmodat.c"
plat_files="$plat_files ../src/compat/fchownat.c"
plat_files="$plat_files ../src/compat/fdopendir.c"
plat_files="$plat_files ../src/compat/fstatat.c"
plat_files="$plat_files ../src/compat/mkdirat.c"
plat_files="$plat_files ../src/compat/openat.c"
plat_files="$plat_files ../src/compat/readlinkat.c"
plat_files="$plat_files ../src/compat/renameat.c"
plat_files="$plat_files ../src/compat/symlinkat.c"
plat_files="$plat_files ../src/compat/unlinkat.c"
plat_files="$plat_files ../src/compat/utimensat.c"
plat_cflags="$plat_cflags -include ../src/compat/macosx.h"
plat_cflags="$plat_cflags -DAT_SYMLINK_NOFOLLOW=0x100"
plat_cflags="$plat_cflags -DAT_REMOVEDIR=0x200"
CC=clang
;;
FreeBSD)
plat_files="$plat_files ../src/compat/dummy.c"
plat_files="$plat_files ../src/compat/utimensat_linux.c"
plat_files="$plat_files ../src/compat/clearenv.c"
;;
esac
rm -rf build
echo " mkdir build"
mkdir -p build
echo " cd build"
cd build
for i in ../src/lua/*.c; do
echo " bootstrap CC $CFLAGS $i"
$CC $CFLAGS -DLUA_USE_POSIX -c $i
done
rm luac.o
echo " link lua"
$CC *.o -o lua $LDFLAGS
rm lua.o
cp ../src/luabuiltin/builtin.lua builtin.lua
mkdir luabuiltin
./lua ../src/luabuiltin/xxd.lua builtin.lua luabuiltin/luabuiltin.h
CFLAGS="$CFLAGS -DTUP_SERVER=\"$server\""
CFLAGS="$CFLAGS -DHAVE_CONFIG_H"
for i in ../src/tup/*.c ../src/tup/tup/main.c ../src/tup/monitor/null.c ../src/tup/flock/fcntl.c ../src/inih/ini.c ../src/pcre/*.c $plat_files; do
echo " bootstrap CC $CFLAGS $i"
# Put -I. first so we find our new luabuiltin.h file, not one built
# by a previous 'tup upd'.
$CC $CFLAGS -c $i -I. -I../src -I../src/pcre $plat_cflags
done
echo " bootstrap CC $CFLAGS ../src/sqlite3/sqlite3.c"
$CC $CFLAGS -c ../src/sqlite3/sqlite3.c -DSQLITE_TEMP_STORE=2 -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION $plat_cflags
echo " bootstrap LD tup $LDFLAGS"
echo "const char *tup_version(void) {return \"$label\";}" | $CC -x c -c - -o tup_version.o
$CC *.o -o tup -lpthread $plat_ldflags $LDFLAGS
if [ "$server" = "ldpreload" ]; then
mkdir ldpreload
cd ldpreload
CFLAGS="$CFLAGS -fpic"
for i in ../../src/ldpreload/*.c ../../src/tup/flock/fcntl.c ../../src/tup/ccache.c; do
echo " bootstrap CC $CFLAGS $i"
$CC $CFLAGS -c $i -I../../src $plat_cflags -o `basename $i`.64.o -pthread
done
echo " bootstrap LD tup-ldpreload.so"
$CC *.o -o ../tup-ldpreload.so -fpic -shared -ldl $plat_ldflags $LDFLAGS -pthread
cd ..
fi
cd ..
tup-v0.7.8/contrib/ 0000775 0000000 0000000 00000000000 13353235401 0014163 5 ustar 00root root 0000000 0000000 tup-v0.7.8/contrib/debian/ 0000775 0000000 0000000 00000000000 13353235401 0015405 5 ustar 00root root 0000000 0000000 tup-v0.7.8/contrib/debian/changelog 0000664 0000000 0000000 00000000444 13353235401 0017261 0 ustar 00root root 0000000 0000000 tup (0.7.1) precise; urgency=low
[ Mike Shal ]
* version 0.7.1
-- Mike Shal Fri, 03 Jan 2014 09:43:06 -0500
tup (0.5-0ubuntu1) lucid; urgency=low
[ Anatol Pomozov ]
* version 0.5
-- Anatol Pomozov Mon, 21 Nov 2011 11:24:00 -0800
tup-v0.7.8/contrib/debian/compat 0000664 0000000 0000000 00000000002 13353235401 0016603 0 ustar 00root root 0000000 0000000 7
tup-v0.7.8/contrib/debian/control 0000664 0000000 0000000 00000001222 13353235401 0017005 0 ustar 00root root 0000000 0000000 Source: tup
Section: devel
Priority: optional
Maintainer: Anatol Pomozov
Build-Depends: debhelper (>= 7),
libfuse-dev (>= 2.8.1),
pkg-config (>= 0.22),
Standards-Version: 3.8.4
Homepage: http://gittup.org/tup/
Package: tup
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends},
libfuse2 (>= 2.8.1)
Description: Fast build system
Tup is a file-based build system - it inputs a list of file changes and
a directed acyclic graph (DAG), then processes the DAG to execute
the appropriate commands required to update dependent files.
.
Visit http://gittup.org/tup/ to read about the current state of
tup's development.
tup-v0.7.8/contrib/debian/copyright 0000664 0000000 0000000 00000001316 13353235401 0017341 0 ustar 00root root 0000000 0000000 This package was debianized by Anatol Pomozov on
Thu, 3 Nov 2011 14:47:44 -0700.
It was downloaded from http://gittup.org/tup/
Upstream Author:
Mike Shal
Copyright:
Copyright 2011, Mike Shal
License: GPL-2
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public License
can be found in the /usr/share/common-licenses/GPL-2 file.
The Debian packaging is copyright 2011, Mike Shal and
is licensed under the GPL, see `/usr/share/common-licenses/GPL-2'.
tup-v0.7.8/contrib/debian/dirs 0000664 0000000 0000000 00000000050 13353235401 0016264 0 ustar 00root root 0000000 0000000 /usr
/usr/bin
/usr/share
/usr/share/man
tup-v0.7.8/contrib/debian/docs 0000664 0000000 0000000 00000000000 13353235401 0016246 0 ustar 00root root 0000000 0000000 tup-v0.7.8/contrib/debian/manpages 0000664 0000000 0000000 00000000006 13353235401 0017117 0 ustar 00root root 0000000 0000000 tup.1
tup-v0.7.8/contrib/debian/rules 0000775 0000000 0000000 00000001315 13353235401 0016465 0 ustar 00root root 0000000 0000000 #!/usr/bin/make -f
#
# Tup debian/rules file
# http://gittup.org/tup/
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
build: build-stamp
build-stamp:
dh_testdir
./build.sh
./build/tup generate runme.sh
./runme.sh
touch $@
clean:
dh_testdir
dh_testroot
dh_clean
install: build
dh_testdir
dh_testroot
dh_prep
dh_installdirs
install tup $(CURDIR)/debian/tup/usr/bin
binary-indep: install
binary-arch: install
dh_testdir
dh_testroot
dh_installchangelogs
dh_installdocs
dh_installman
dh_link
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
tup-v0.7.8/contrib/debian/source/ 0000775 0000000 0000000 00000000000 13353235401 0016705 5 ustar 00root root 0000000 0000000 tup-v0.7.8/contrib/debian/source/format 0000664 0000000 0000000 00000000014 13353235401 0020113 0 ustar 00root root 0000000 0000000 3.0 (quilt)
tup-v0.7.8/contrib/debian/watch 0000664 0000000 0000000 00000000131 13353235401 0016431 0 ustar 00root root 0000000 0000000 # watch control file for uscan
version=3
https://github.com/gittup/tup/zipball/v([\d.]+)
tup-v0.7.8/contrib/syntax/ 0000775 0000000 0000000 00000000000 13353235401 0015511 5 ustar 00root root 0000000 0000000 tup-v0.7.8/contrib/syntax/tup.vim 0000664 0000000 0000000 00000004066 13353235401 0017044 0 ustar 00root root 0000000 0000000 " Vim syntax file
" Language: Tupfile
"
" HOWTO use:
" 1) Add this to your ~/.vim/filetype.vim -
" au BufNewFile,BufRead Tupfile,*.tup setf tup
"
" 2) Add a symlink to this file in ~/.vim/syntax/ -
" mkdir -p ~/.vim/syntax
" cd ~/.vim/syntax
" ln -s /path/to/tup.vim
" For version 5.x: Clear all syntax items
" For version 6.x: Quit when a syntax file was already loaded
if version < 600
syntax clear
elseif exists("b:current_syntax")
finish
endif
syntax case match
syntax match comment ,^\s*#.*$,
syntax match rule ,^\s*:,
syntax match bang ,![a-zA-Z0-9_.-]*,
syntax match chain ,^*[a-zA-Z0-9_-][a-zA-Z0-9_-]*,
syntax match chain ,[^a-zA-Z0-9_-]\*[a-zA-Z0-9_-][a-zA-Z0-9_-]*,
syntax match separator /|>/
syntax match reverseseparator /<|/
syntax match format display "%\([%eOBbd]\|[0-9]\?[0-9]\?[foi]\|<[a-zA-Z0-9_-]*>\)" contained
syntax match errfmt display "%\([^%efoOBbd<0-9]\)" contained
syntax match variable /$([^)]*)/
syntax match variable /{[^}]*}/
syntax match atvar /@([^)]*)/
syntax match atvar /$(CONFIG_[^)]*)/
syntax match control "^\(ifeq\>\|ifneq\>\|else\>\|endif\>\|include\>\|include_rules\>\|\.gitignore\>\|run\>\|export\>\)"
syntax match backslash /\\$/
syntax keyword keys foreach
syntax region ifdef matchgroup=control start=/^ifdef / start=/^ifndef / end=/$/
syntax region command matchgroup=separator start=/|>/ end=/|>/ end=/$/ contains=format,variable,atvar,bang,errfmt,chain
syntax region reversecommand matchgroup=reverseseparator start=/<|/ end=/<|/ end=/$/ contains=format,variable,atvar,bang,errfmt,chain
highlight link comment Comment
highlight link command String
highlight link reversecommand String
highlight link rule Operator
highlight link separator Keyword
highlight link reverseseparator Keyword
highlight link keys Keyword
highlight link format Special
highlight link errfmt Error
highlight link variable Special
highlight link control Include
highlight link bang Type
highlight def chain ctermfg=green cterm=bold
highlight def atvar ctermfg=red cterm=bold
highlight def ifdef ctermfg=red cterm=bold
highlight def backslash ctermfg=red cterm=bold
tup-v0.7.8/docs/ 0000775 0000000 0000000 00000000000 13353235401 0013453 5 ustar 00root root 0000000 0000000 tup-v0.7.8/docs/01-initial.dot 0000664 0000000 0000000 00000000373 13353235401 0016035 0 ustar 00root root 0000000 0000000 digraph g {
rankdir=LR;
maino [label="main.o"];
mainc [label="main.c"];
libo [label="lib.o"];
libc [label="lib.c"];
libh [label="lib.h"];
liba [label="lib.a"];
main -> {maino liba}
maino -> {mainc libh}
libo -> {libc libh}
liba -> libo;
};
tup-v0.7.8/docs/01-initial.png 0000664 0000000 0000000 00000044376 13353235401 0016046 0 ustar 00root root 0000000 0000000 PNG
IHDR ͨ bKGD tIMEs IDATxy\T?0"1Ei4,4ZifPP~4L0+D\0ER
0AwpaSmy|$APfy><9u{#"0100b0=Va: 0\娩X,b1ХKqiCXcr$''ҥK|2\LA.7P[[[899nnn4h5ixl4&0MINNDpqqѭ[7X[[ " eee(++Cqq1{!;;2dF.] JK/]t=0
p"##qaܺu}# H Jakk)
!>>8}47xӦMZɴ1R^^}!<<)))pssɓ1ah5\.ӧ(a/,LNJ0(++֭[_SLu4 @uu5m6^+0vX1+vӆ)J|
Bee%.\ŋcǎ\GkTJJ
q1<6m A8ôQ7`ƌy&֬YӅ q_hy桨hcŎa"BXXccc ,,\G{&pi1p@$&&rQ1LRRR?G\\ܸx<f̘4B" ,,Xb3Lq=3>DBB>Q;ѣꫯG֭[ذayV
ɁD")OtڕHjSLÇsNrl4&|1"Сב4=z4M-[paXmm-&L