diff options
author | Mathias Gumz <akira at fluxbox dot org> | 2011-01-24 08:47:16 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2011-01-24 08:47:16 (GMT) |
commit | 301a5bcd3eda851505a983baee516bca72659c2c (patch) | |
tree | 9b1adc2b74b31fbfdc0b5fab5e9392dbcaeaf74f /3rd/vim/compile_vba.sh | |
parent | f382204759a00e5bacf0a404ee5470b10ed25cf3 (diff) | |
download | fluxbox_pavel-301a5bcd3eda851505a983baee516bca72659c2c.zip fluxbox_pavel-301a5bcd3eda851505a983baee516bca72659c2c.tar.bz2 |
added little helper to create vimballs
Diffstat (limited to '3rd/vim/compile_vba.sh')
-rw-r--r-- | 3rd/vim/compile_vba.sh | 31 |
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 | |||
17 | cat <<EOF | ||
18 | " Vimball Archiver compile_vba.sh of fluxbox | ||
19 | UseVimball | ||
20 | finish | ||
21 | EOF | ||
22 | |||
23 | while [ $# -gt 0 ] | ||
24 | do | ||
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 | ||
31 | done | ||