dot

packages and services management
Log | Files | Refs | README

commit 981608a2662263db2d0648e5e2973fa3bbc48e5a
parent c21d130ef1afc94ff46d9830e3ce43bc72cf7bdc
Author: Josuah Demangeon <josuah.demangeon@gandi.net>
Date:   Wed,  2 Aug 2017 17:08:05 +0200

scripts/bin/* -> */bin/*

Embrace the bin subdirectories and put the scripts close to their
dependencies, so that scripts/bin only have busybox+shell-like
dependencies.

Diffstat:
Rpkg/build -> build | 0
Rscripts/bin/calendar-import -> calendar/bin/calendar-import | 0
Rscripts/bin/calendar-show -> calendar/bin/calendar-show | 0
Rscripts/bin/calendar-update -> calendar/bin/calendar-update | 0
Rscripts/bin/www-git -> git/bin/git-index | 0
Rscripts/www-git.1 -> git/git-index.1 | 0
Agit/start | 1+
Rscripts/bin/mblaze-filter -> mblaze/bin/mblaze-filter | 0
Rscripts/bin/plot -> monitor/bin/plot | 0
Dscripts/bin/edit-title | 15---------------
Rscripts/bin/inv -> scripts/bin/term-inv | 0
Dscripts/bin/www-mandoc | 30------------------------------
12 files changed, 1 insertion(+), 45 deletions(-)

diff --git a/pkg/build b/build diff --git a/scripts/bin/calendar-import b/calendar/bin/calendar-import diff --git a/scripts/bin/calendar-show b/calendar/bin/calendar-show diff --git a/scripts/bin/calendar-update b/calendar/bin/calendar-update diff --git a/scripts/bin/www-git b/git/bin/git-index diff --git a/scripts/www-git.1 b/git/git-index.1 diff --git a/git/start b/git/start @@ -0,0 +1 @@ +git daemon --base-path="$GIT" & PID=$! diff --git a/scripts/bin/mblaze-filter b/mblaze/bin/mblaze-filter diff --git a/scripts/bin/plot b/monitor/bin/plot diff --git a/scripts/bin/edit-title b/scripts/bin/edit-title @@ -1,15 +0,0 @@ -# print a header formatted as a comment string - -case "$1" in -( c ) start='/*' stop='*/' ;; -( * | '' ) start='# ' stop='' ;; -esac - -printf '%s--- %s ' "$start" "$2" - -for i in `seq $((80 - ${#start} - ${#2} - ${#stop} - 5))` -do - printf %s - -done - -printf '%s\n' "$stop" diff --git a/scripts/bin/inv b/scripts/bin/term-inv diff --git a/scripts/bin/www-mandoc b/scripts/bin/www-mandoc @@ -1,30 +0,0 @@ -# walk a 2-level tree and convert *.[1-9] troff to .{html,txt,pdf) documents - - -find "$1" -mindepth 1 -maxdepth 1 -type d | sort | -while IFS='' read -r dir -do - printf '\n<h2>%s</h2>\n<table>\n' "${dir##*/}" - - find "$dir" -mindepth 1 -maxdepth 1 -type f -name "*.[1-9]" | sort | - while IFS='' read -r f - do - printf '<tr>' - printf '<td>%s</td>' "$(sed -n '/^.Nd/ s/^.Nd // p' "$f")" - printf '<td class="nav">' - printf '<a href="%s">%s</a>' \ - "${f%.7}.html" html "${f%.7}.txt" txt "${f%.7}.pdf" pdf - printf '</td></tr>\n' - done - printf '</table>\n' -done - - -find . -mindepth 2 -name '*.7' -type f | sort | -while IFS='' read -r file -do - root=".$(printf %s "$file" | sed 's|^./||; s|[^/]||g; s|.|/..|g')" - mandoc -T html -O style="$root/style.css" "$file" > "${file%.7}.html" - mandoc -T pdf "$file" > "${file%.7}.pdf" - mandoc -T locale "$file" | sed 's/.//g' > "${file%.7}.txt" -done