aboutsummaryrefslogtreecommitdiff
path: root/3rd
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2011-01-24 08:47:16 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2011-01-24 08:47:16 (GMT)
commit301a5bcd3eda851505a983baee516bca72659c2c (patch)
tree9b1adc2b74b31fbfdc0b5fab5e9392dbcaeaf74f /3rd
parentf382204759a00e5bacf0a404ee5470b10ed25cf3 (diff)
downloadfluxbox_pavel-301a5bcd3eda851505a983baee516bca72659c2c.zip
fluxbox_pavel-301a5bcd3eda851505a983baee516bca72659c2c.tar.bz2
added little helper to create vimballs
Diffstat (limited to '3rd')
-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