all repos — fluxbox @ 301a5bcd3eda851505a983baee516bca72659c2c

custom fork of the fluxbox windowmanager

added little helper to create vimballs
Mathias Gumz akira at fluxbox dot org
commit

301a5bcd3eda851505a983baee516bca72659c2c

parent

f382204759a00e5bacf0a404ee5470b10ed25cf3

2 files changed, 41 insertions(+), 0 deletions(-)

jump to
A 3rd/vim/Makefile

@@ -0,0 +1,10 @@

+PLUGIN = fluxbox +SOURCE = syntax/fluxapps.vim \ + syntax/fluxkeys.vim \ + syntax/fluxmenu.vim + +${PLUGIN}.vba: $(SOURCE) compile_vba.sh Makefile + sh ./compile_vba.sh $(SOURCE) > $@ + +clean: + rm ${PLUGIN}.vba
A 3rd/vim/compile_vba.sh

@@ -0,0 +1,31 @@

+#!/bin/sh +# +# about: +# +# compile_vba.sh - create a vimball from the given files +# +# author: mathias gumz <akira at fluxbox org> +# licence: MIT +# +# usage: +# +# compile_vba.sh infile1 infile2 infile3 +# +# the vimball is dumped to stdout, to create a .vba.gz +# just pipe the output to gzip + +cat <<EOF +" Vimball Archiver compile_vba.sh of fluxbox +UseVimball +finish +EOF + +while [ $# -gt 0 ] +do + echo "${1} [[[1" + # count line numbers via 'sed', out of 'wc' had to be + # treated anyway + sed -n '$=' $1 + cat $1 + shift +done