1DOLLY 72PACKAGE dte3REQUIRES HOST runtime@045# dte, a small full-screen editor with the keys of a desktop one (Ctrl+S6# saves, Ctrl+Q quits, Ctrl+Z undoes, Ctrl+F searches), from the files of7# upstream's release archive, one line of them changed (below). It draws8# with its own escape sequences and reads no terminal database. Its makefile9# asks the compiler ten questions through a shell that Slop is not;10# feature.h holds the answers.11FROM /v0.1.4/demos/tools/Dollyfile-tools-build 81e1c1bc8b06c83b1daead6c8f09bc8b1382e8fe165f896a98109396b58bb3051213REQUIRES HEADER libc14REQUIRES TOOL   awk15REQUIRES TOOL   cc16REQUIRES TOOL   grep17REQUIRES TOOL   make18REQUIRES TOOL   mv19REQUIRES TOOL   sed20REQUIRES TOOL   tar21REQUIRES TOOL   text-page2223SOURCE /v0.1.4/dist/static/tools/dte.tar 305efb06b81e80833a50faaae17d7a9a6d3ba29654de409111173c237d19aff5 /tmp/dte.tar24SLOP tar -xf /tmp/dte.tar -C /2526# dte takes a stream for the terminal when tcgetpgrp answers for it. There27# are no process groups here and it answers for none; isatty answers what is28# asked. This line is the one change to the source.29SLOP CWD /tmp/dte sed 's/tcgetpgrp(fd) != -1/isatty(fd)/' src/util/fd.h > fd.h && mv fd.h src/util/fd.h && grep -q 'isatty(fd)' src/util/fd.h3031# Not found here: sig2str, sigabbrev_np, and a controlling terminal to leave32# (TIOCNOTTY).33FILE /tmp/dte/build/feature.h34    #define _GNU_SOURCE35    #define HAVE_DUP3 136    #define HAVE_PIPE2 137    #define HAVE_FSYNC 138    #define HAVE_MEMMEM 139    #define HAVE_SIG2STR 040    #define HAVE_SIGABBREV_NP 041    #define HAVE_TIOCGWINSZ 142    #define HAVE_TIOCNOTTY 043    #define HAVE_TCGETWINSIZE 144    #define HAVE_POSIX_MADVISE 145FILE /tmp/dte/build/version.h46    #define VERSION "1.11.1"47# The key bindings, colours and syntax files the program holds are every file48# of config/, as in upstream's makefile.49FILE /tmp/dte.mk50    .RECIPEPREFIX := >51    S := /tmp/dte52    BIN := /usr/bin53    SOURCES := $(wildcard $(addprefix $S/src/,*.c command/*.c editorconfig/*.c syntax/*.c terminal/*.c util/*.c))54    CONFIGS := $(filter-out config/syntax/inc,$(patsubst $S/%,%,$(wildcard $(addprefix $S/config/,rc binding/* compiler/* color/* syntax/* syntax/inc/*))))55    $(BIN)/dte: $(SOURCES:.c=.o)56    >cc $^ -o $@57    $S/src/%.o: $S/src/%.c $S/build/builtin-config.h58    >cc -O2 -std=gnu11 -DDEBUG=0 -I$S/src -c $< -o $@59    $S/build/builtin-config.h:60    >cd $S && awk -f mk/config2c.awk $(CONFIGS) > build/builtin-config.h61SLOP make -j4 -f /tmp/dte.mk62SLOP text-page /usr/share/man/man1/dte.16364EXPORTS TOOL dte65FILE /usr/share/licenses/dte/LICENSE66FILE /usr/share/man/cat1/dte.167