forked from jalvesaq/Nvim-R
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (34 loc) · 1.35 KB
/
Makefile
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
###########################################################
# This script builds both the Vimball and the deb #
# files of released versions of the plugin. The files #
# are created at the /tmp directory. #
###########################################################
PLUGINHOME=`pwd`
PLUGINVERSION=0.9.13.1
PLUGINRELEASEDATE=`date +"%Y-%m-%d"`
ifeq (, $(shell which nvim))
VIMEXEC=vim
else
VIMEXEC=nvim
endif
all: vimball zip
vimball:
# Update the version date in doc/Nvim-R.txt header and in the news
sed -i -e "s/^Version: [0-9].[0-9].[0-9] (development)/Version: $(PLUGINVERSION)/" doc/Nvim-R.txt
sed -i -e "s/^$(PLUGINVERSION) (201[0-9]-[0-9][0-9]-[0-9][0-9])$$/$(PLUGINVERSION) ($(PLUGINRELEASEDATE))/" doc/Nvim-R.txt
$(VIMEXEC) -c "packadd vimball" -c "%MkVimball Nvim-R ." -c "q" list_for_vimball
mv Nvim-R.vmb /tmp
zip:
rm -rf /tmp/NvimRvimpack
mkdir -p /tmp/NvimRvimpack/start/Nvim-R
tar -c -T list_for_vimball -f /tmp/nvimrpack.tar
tar -x -f /tmp/nvimrpack.tar -C /tmp/NvimRvimpack/start/Nvim-R
( cd /tmp/NvimRvimpack ; zip -r ../Nvim-R_$(PLUGINVERSION).zip start )
rm /tmp/nvimrpack.tar
clean:
rm -f R/nvimcom/src/nvimcom.o
rm -f R/nvimcom/src/nvimcom.so
rm -f R/nvimcom/src/nvimcom.dll
rm -f R/nvimcom/src/apps/nclientserver
rm -f R/nvimcom/src/apps/nclientserver.o
rm -f R/nvimcom/src/apps/nclientserver.exe