added little helper to create vimballs

This commit is contained in:
Mathias Gumz 2011-01-24 09:47:16 +01:00
parent f382204759
commit 301a5bcd3e
2 changed files with 41 additions and 0 deletions

10
3rd/vim/Makefile Normal file
View file

@ -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

31
3rd/vim/compile_vba.sh Normal file
View file

@ -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