File: install.sh

package info (click to toggle)
scapy 2.5.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 12,136 kB
  • sloc: python: 127,773; sh: 133; makefile: 11
file content (25 lines) | stat: -rwxr-xr-x 662 bytes parent folder | download | duplicates (2)
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
#!/bin/bash

if [[ $(pwd) != *"doc/syntax/vim_uts_syntax" ]]
then
	echo "Wrong current directory. Please call this script if you are inside doc/syntax/vim_uts_syntax"
	exit -1
fi

if [ ! -d "$HOME/.vim" ]; then
	echo "$HOME/.vim doesn't exist"
	exit -1
fi

if [ -f "$HOME/.vim/ftdetect/filetype.vim" ]; then
    echo "$HOME/.vim/ftdetect/filetype.vim already exists. You may not want to overwrite this file."
fi

mkdir -p -v $HOME/.vim/ftdetect
mkdir -p -v $HOME/.vim/syntax

cp -i -v ftdetect/filetype.vim $HOME/.vim/ftdetect/filetype.vim
cp -i -v ftdetect/uts.vim $HOME/.vim/ftdetect/uts.vim
cp -i -v syntax/uts.vim $HOME/.vim/syntax/uts.vim

echo "Installed"