diff options
| author | Sam Nystrom <sam@samnystrom.dev> | 2024-10-15 13:29:10 -0400 |
|---|---|---|
| committer | Sam Nystrom <sam@samnystrom.dev> | 2024-10-15 13:29:10 -0400 |
| commit | 2c98bbacc8db3b251e1679f9da84cf1f5ed5726a (patch) | |
| tree | 10d44c9b82d275d66d880ff8ec33992cddda12b5 /bin/s6-rclocal-compile | |
| parent | c8c79e6c6a5c4bb1e0ba44f309ce5ae612f97e1c (diff) | |
update ~/bin
Diffstat (limited to 'bin/s6-rclocal-compile')
| -rwxr-xr-x | bin/s6-rclocal-compile | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/bin/s6-rclocal-compile b/bin/s6-rclocal-compile new file mode 100755 index 0000000..ec87a7d --- /dev/null +++ b/bin/s6-rclocal-compile @@ -0,0 +1,13 @@ +#!/bin/execlineb -S0 +multisubstitute { + importas -i HOME HOME + importas -i XDG_RUNTIME_DIR XDG_RUNTIME_DIR +} +execline-cd ${HOME}/.local/share/s6-rc +elglob -0 old compiled-* +backtick -E now { pipeline { echo } s6-tai64n } +if { s6-rc-compile compiled-${now} ${HOME}/.config/s6-rc } +foreground { s6-rc-update -l ${XDG_RUNTIME_DIR}/s6-rc ${HOME}/.local/share/s6-rc/compiled-${now} } +if { ln -sf compiled-${now} compiled/compiled } +if { mv -f compiled/compiled . } +rm -rf ${old} |
