aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--3rd/vim/Makefile10
-rw-r--r--3rd/vim/compile_vba.sh31
2 files changed, 41 insertions, 0 deletions
diff --git a/3rd/vim/Makefile b/3rd/vim/Makefile
new file mode 100644
index 0000000..832cc82
--- /dev/null
+++ b/3rd/vim/Makefile
@@ -0,0 +1,10 @@
1PLUGIN = fluxbox
2SOURCE = syntax/fluxapps.vim \
3 syntax/fluxkeys.vim \
4 syntax/fluxmenu.vim
5
6${PLUGIN}.vba: $(SOURCE) compile_vba.sh Makefile
7 sh ./compile_vba.sh $(SOURCE) > $@
8
9clean:
10 rm ${PLUGIN}.vba
diff --git a/3rd/vim/compile_vba.sh b/3rd/vim/compile_vba.sh
new file mode 100644
index 0000000..63aead1
--- /dev/null
+++ b/3rd/vim/compile_vba.sh
@@ -0,0 +1,31 @@
1#!/bin/sh
2#
3# about:
4#
5# compile_vba.sh - create a vimball from the given files
6#
7# author: mathias gumz <akira at fluxbox org>
8# licence: MIT
9#
10# usage:
11#
12# compile_vba.sh infile1 infile2 infile3
13#
14# the vimball is dumped to stdout, to create a .vba.gz
15# just pipe the output to gzip
16
17cat <<EOF
18" Vimball Archiver compile_vba.sh of fluxbox
19UseVimball
20finish
21EOF
22
23while [ $# -gt 0 ]
24do
25 echo "${1} [[[1"
26 # count line numbers via 'sed', out of 'wc' had to be
27 # treated anyway
28 sed -n '$=' $1
29 cat $1
30 shift
31done