forked from puremourning/vimspector
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake_package
More file actions
executable file
·42 lines (36 loc) · 803 Bytes
/
make_package
File metadata and controls
executable file
·42 lines (36 loc) · 803 Bytes
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
32
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/env bash
set -e
set -v
OS=$1
shift
VERSION=$1
shift
ROOT=$(pwd)
PACK=${ROOT}/package/${OS}
mkdir -p ${PACK}
pushd ${PACK}
mkdir -p vimspector/opt/vimspector
pushd vimspector/opt/vimspector
for d in autoload plugin python3 vendor doc support; do
if [[ -d ${ROOT}/$d ]]; then
cp -r ${ROOT}/$d .
fi
done
# test vimrc is required for the minimal vimrc
mkdir -p tests
pushd tests
cp ${ROOT}/tests/vimrc .
popd
mkdir -p gadgets
cp -r ${ROOT}/gadgets/${OS} gadgets/
for f in install_gadget.py \
CODE_OF_CONDUCT.md \
CONTRIBUTING.md \
LICENCE \
README.md; do
cp ${ROOT}/${f} .
done
popd
popd
cd ${ROOT}/package
tar zcvf ${OS}-${VERSION}.tar.gz -C ${OS} vimspector