aboutsummaryrefslogtreecommitdiff
path: root/3rd/vim/compile_vba.sh
blob: 63aead13014b1646963b2d82ac4978af5514cf8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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