dot

packages and services management
Log | Files | Refs | README

commit 20578b639aed16b233c8b4140c66a8a6069cfd15
parent 5f6c722331f584ed3b56084959257f1d9f03386e
Author: Josuah Demangeonā  ā µ <mail@josuah.net>
Date:   Sat, 25 Mar 2017 12:57:36 +0100

added sandy

Diffstat:
M.profile | 4++--
Mbin/build | 2+-
Mbin/version | 8++++----
Abuild/sandy | 3+++
Mbuild/vis | 4++--
5 files changed, 12 insertions(+), 9 deletions(-)

diff --git a/.profile b/.profile @@ -16,8 +16,8 @@ export MAIL="$HOME/mail/INBOX" # info export NAME='Josuah Demangeon' EMAIL='mail@josuah.net' TZ='Europe/Paris' -# default commands -export EDITOR='ex' VISUAL='ex' EXRC="$HOME/.exrc" +# default commands +export EDITOR='mg' VISUAL='mg' export PAGER='less' MANPAGER='less -R' DVTM_PAGER='less -R' export BROWSER='firefox' diff --git a/bin/build b/bin/build @@ -78,7 +78,7 @@ compile() export PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 export PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 - export CFLAGS="-I $LOCAL/include -L$LOCAL/lib -static" + export CFLAGS="-I$CPATH -L$LIBPATH -static" [ -f "$script" ] || [ -h "$script" ] || die "$name" "no build script" . "$script" diff --git a/bin/version b/bin/version @@ -4,6 +4,7 @@ # mkdir find sort xargs sha256sum rm test mv chmod comm sed printf tac tail +SUM='sha256sum' NL=' ' @@ -48,15 +49,14 @@ new() { printf 'making a new revision\n' - find . -type f ! -name .v ! -path '*/.v/*' | sort | xargs sha256sum | + find . -type f ! -name .v ! -path '*/.v/*' | sort | xargs $SUM | tee .v/tmp | while read -r hash path do test -f ".v/obj/$hash" || cp "$path" ".v/obj/$hash" done - new="$(sha256sum .v/tmp | sed 's/ .*//' | tee -a .v/history)" - mv -f .v/tmp ".v/rev/$new" - tail -n 2 .v/history + mv -f .v/tmp ".v/rev/$($SUM .v/tmp | cut -d ' ' -f 1 | tee -a .v/log)" + tail -n 2 .v/log printf '%s\n' "$(uniq .v/history)" > .v/history chmod -w .v/obj/* .v/rev/* diff --git a/build/sandy b/build/sandy @@ -0,0 +1,3 @@ +# simple ncurses text editor + +tar=http://git.suckless.org/sandy/snapshot/sandy-e73326c64a792cd4582a3833c3537be4906fe52a.tar.gz diff --git a/build/vis b/build/vis @@ -4,7 +4,7 @@ tar=http://github.com/martanne/vis/archive/master.tar.gz build() { - ./configure --disable-lua --disable-lpeg + ./configure --disable-lua --disable-lpeg --prefix="$PREFIX" CFLAGS="$CFLAGS" && - make PREFIX="$PREFIX" install + make install }