File: install

package info (click to toggle)
vim-command-t 4.0-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 688 kB
  • ctags: 569
  • sloc: ruby: 3,241; ansic: 1,158; sh: 39; makefile: 26; xml: 11
file content (19 lines) | stat: -rwxr-xr-x 600 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

set -eu

cat <<- EOF
	autoload              /usr/lib/vim-command-t/
	plugin                /usr/lib/vim-command-t/
	doc/*.txt             /usr/lib/vim-command-t/doc/
	ruby/command-t/ext.so /usr/lib/vim-command-t/ruby/command-t/
EOF

# Our goal is to install all the ruby files that we can find within the ruby
# directory, to the same relative path underneath /usr/lib/vim-command-t.
mapfile -t rb < <(find ruby -name '*.rb')
for f in "${rb[@]}"; do
	IFS=/ read -a components <<< "$f"
	n=$((${#components[@]} - 1))
	(IFS=/; echo "$f" "/usr/lib/vim-command-t/${components[*]:0:$n}")
done