aboutsummaryrefslogtreecommitdiff
path: root/3rd/vim/compile_vba.sh
diff options
context:
space:
mode:
Diffstat (limited to '3rd/vim/compile_vba.sh')
-rw-r--r--3rd/vim/compile_vba.sh31
1 files changed, 31 insertions, 0 deletions
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