~kaction/config

ref: milestone/1 config/Tupfile -rw-r--r-- 3.0 KiB
8f4e28c9 — Dmitry Bogatov vim: drop custom implementation of snippets 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
.gitignore
RO = umask 277;

# {{{ copy from src/copy/**
preload src/copy
preload src/copy/.local
preload src/copy/.local/bin
preload src/copy/.local/lib
preload src/copy/.local/lib/cron
preload src/copy/.local/lib/git
preload src/copy/.local/lib/myrepos
preload src/copy/prefix
preload src/copy/prefix/cache
preload src/copy/prefix/cache/cache
preload src/copy/prefix/cache/config
preload src/copy/prefix/cache/mpop_uidls
preload src/copy/prefix/cache/parallel
preload src/copy/prefix/cache/slocdata
preload src/copy/prefix/cache/surf
preload src/copy/prefix/cache/w3m
preload src/copy/prefix/config
preload src/copy/prefix/config/bash
preload src/copy/prefix/config/posix
preload src/copy/prefix/config/elinks
preload src/copy/prefix/config/git
preload src/copy/prefix/config/mcabber
preload src/copy/prefix/config/mmh
preload src/copy/prefix/config/nixpkgs
preload src/copy/prefix/config/nixpkgs/override
preload src/copy/prefix/config/nixpkgs/patches
preload src/copy/prefix/config/proxychains
preload src/copy/prefix/config/vim
preload src/copy/prefix/config/vim/after
preload src/copy/prefix/config/vim/after/syntax
preload src/copy/prefix/config/vim/autoload
preload src/copy/prefix/config/vim/ftdetect
preload src/copy/prefix/config/vim/snippets
preload src/copy/prefix/config/w3m
preload src/copy/prefix/data
preload src/copy/prefix/data/gnupg
preload src/copy/prefix/data/mail
preload src/copy/prefix/data/password-store
preload src/copy/prefix/data/ssh
preload src/copy/prefix/libexec
preload src/copy/prefix/libexec/mh
preload src/copy/prefix/var
preload src/copy/prefix/var/cache
preload src/copy/prefix/var/cache/mpop
preload src/copy/prefix/var/cache/slocdata
preload src/copy/prefix/var/cache/surf
preload src/copy/prefix/var/lib
preload src/copy/prefix/var/lib/stack
preload src/copy/prefix/var/log
preload src/copy/prefix/var/run
!cp = |> $(RO) cp -d %f %o |>

run ./aux/tup-copy
# }}}

!vimspell    = |> $(RO) printf 'mkspell %o %f\nexit' | vim -e |>
!man         = |> $(RO) gzip %f -c > %o |>
!prog        = |> $(RO) cp -f %f %o |>
!cc          = |> cc %f -o %o ; chmod 500 %o |>
!ftplugin    = |> $(RO) ./aux/fix-ftplugin %f > %o |>
!m4          = |> $(RO) m4 -P %f > %o |>

: foreach src/spell/* |> !vimspell |> out/dest/prefix/config/vim/spell/%B.utf-8.spl {out}
: foreach src/man/*.1 |> !man |> out/dest/.local/share/man/man1/%B.1.gz {out}
: foreach src/prog/*  |> !prog |> out/dest/.local/bin/%B {out}
: foreach src/libexec/* |> !prog |> out/dest/prefix/libexec/%B {out}
: foreach src/ftplugin/*.vim |> !ftplugin |> out/dest/prefix/config/vim/after/ftplugin/%b {out}

POSIX = out/dest/prefix/config//posix
THEME = volatile/dircolors.256dark
: |> TERM=linux dircolors --sh > %o |> $(POSIX)/dircolors-16.sh {out}
: |> TERM=linux dircolors --sh $(THEME) > %o |> $(POSIX)/dircolors-256.sh {out}
: src/m4/colorlist.m4 |> !m4 |> $(POSIX)/color-list.sh {out}

: {copy} {out} |> tar -czf %o --exclude=.keep --xform='s:^out/dest/::' %f \
               |> out/config.tar.gz

ifeq (@(DEPLOY),y)
: out/config.tar.gz |> cp -f %f ~/ && tar -xzf ~/%b -C ~ |>
endif