util  Check-in [c29fe4718a]

Overview
Comment:reorganize dumbass directory structure
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: c29fe4718a357d9f274e13ae740ed9686c12a68215587764a70651fb38cf8a69
User & Date: lexi on 2019-10-17 20:03:22
Other Links: manifest | tags
Context
2019-11-05
16:14
add newtab check-in: 6b40270f28 user: lexi tags: trunk
2019-10-17
20:03
reorganize dumbass directory structure check-in: c29fe4718a user: lexi tags: trunk
2019-09-06
01:02
fix bug caused by unintuitive behavior of strncmp check-in: a49d93061d user: lexi tags: trunk
Changes

Modified bgrd.c from [930615166d] to [d3537d80bd].

88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
 * the `surf`  developers had  a couple of  options. they
 * could  have simply  broken out  the POSIX  headers and
 * sent the X  id to stdout with a call  to write(2), the
 * correct thing to do. they  could have thrown in a call
 * to setvbuf(3) to explicitly  pick a buffering strategy
 * compatible  with  their  usecase, the  sensibly  wrong
 * thing to do. they could have explicitly flushed stdout
 * after printf(3)'ing  to it,  the dumb  and error-pront
 * thing to do.
 *
 * instead, they did *nothing.*
 *
 * so  if  you run  `surf  -x`  from a  terminal,  great!
 * you'll  see it  print  the x  window  id first  thing.
 * you'll  then  try to  capture  it  via any  number  of







|







88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
 * the `surf`  developers had  a couple of  options. they
 * could  have simply  broken out  the POSIX  headers and
 * sent the X  id to stdout with a call  to write(2), the
 * correct thing to do. they  could have thrown in a call
 * to setvbuf(3) to explicitly  pick a buffering strategy
 * compatible  with  their  usecase, the  sensibly  wrong
 * thing to do. they could have explicitly flushed stdout
 * after printf(3)'ing  to it,  the dumb  and error-prone
 * thing to do.
 *
 * instead, they did *nothing.*
 *
 * so  if  you run  `surf  -x`  from a  terminal,  great!
 * you'll  see it  print  the x  window  id first  thing.
 * you'll  then  try to  capture  it  via any  number  of

Name change from kpw.d/db.md to kpw/db.md.

Name change from kpw.d/errtab to kpw/errtab.

Name change from kpw.d/errtab.awk to kpw/errtab.awk.

Name change from kpw.d/kpw.c to kpw/kpw.c.

Modified kpw/makefile from [0ee772709b] to [722d1b1415].

1
2
3
4
5
6
7
8
9
10
11
12
13
include ../makerules

cdeps = compose.c iaia.c tbl.c
cpaths = $(cdeps:%=$(root)/clib/%)

$(root)/kpw: kpw.c opt.inc err.inc $(cpaths)
	$(cc) -I$(root) $< -lsodium -o $@ $(flags) $(cc-post)

tab = cat $< | awk -v emit=$1 -F'\t+' -f $<.awk >> $@

opt.inc: optab optab.awk
	:>$@
	$(call tab,cond)





|







1
2
3
4
5
6
7
8
9
10
11
12
13
include ../makerules

cdeps = compose.c iaia.c tbl.c
cpaths = $(cdeps:%=$(root)/clib/%)

$(root)/kpw.bin: kpw.c opt.inc err.inc $(cpaths)
	$(cc) -I$(root) $< -lsodium -o $@ $(flags) $(cc-post)

tab = cat $< | awk -v emit=$1 -F'\t+' -f $<.awk >> $@

opt.inc: optab optab.awk
	:>$@
	$(call tab,cond)

Name change from kpw.d/optab to kpw/optab.

Name change from kpw.d/optab.awk to kpw/optab.awk.

Modified makefile from [6fa77053ea] to [69ff088193].

25
26
27
28
29
30
31
32
33
34
35

safekill: safekill.c
	$(cc) $< -lX11 -o$@ $(cc-post)

xpriv: xpriv.c
	$(cc) $< -lrt -lutil -lX11 -o $@ $(cc-post)

kpw: kpw.d/makefile
	$(MAKE) root=$(realpath .) flags=$(kpw-flags) -C kpw.d $(realpath .)/$@

.PHONY: kpw







|
|


25
26
27
28
29
30
31
32
33
34
35

safekill: safekill.c
	$(cc) $< -lX11 -o$@ $(cc-post)

xpriv: xpriv.c
	$(cc) $< -lrt -lutil -lX11 -o $@ $(cc-post)

kpw.bin: kpw/makefile
	$(MAKE) root=$(realpath .) flags=$(kpw-flags) -C kpw $(realpath .)/$@

.PHONY: kpw