Skip to content

Commit 0deea79

Browse files
committedAug 19, 2017
2.0.0 release admin change
1 parent 564e870 commit 0deea79

9 files changed

+21
-16
lines changed
 

‎INSTALL

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
| UPDATE |
1313
+-----------+
1414

15+
2.0.0:更新到 Vim 8.0,
1516
1.9.0:更新到 Vim 7.4,
1617
1.8.0:更新到 Vim 7.3,
1718
1.7.0:更新到 Vim 7.2,新增 vimcdoc.vim 插件。

‎NEWS

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2.0.0 releated (17 Aug 2017) by Willis
2+
Fully updated to Vim 8.0.
3+
14
Migrated to github (7 Sep 2013) by Willis
25
We are going to migrate our platform to github.com and future work will be
36
performed there instead of sourceforge.net.

‎VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.9.0
1+
2.0.0

‎common.aap

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ SF_SCP_RELEASE_URL = scp://$SF_USER@$SF_RELEASE_DOMAIN/home/frs/project/vimcdoc
1313
# TOPLEVELDIR is defined externally.
1414
VERSION = $TOPLEVELDIR/VERSION
1515
VCD = vimcdoc
16-
MISC_FILES = README INSTALL VERSION AUTHORS LICENSE dict.txt vimcdoc.sh TODO guides.txt ChangeLog
16+
MISC_FILES = README.md INSTALL VERSION AUTHORS LICENSE dict.txt vimcdoc.sh TODO guides.txt ChangeLog
1717
@VERSION = file2string( VERSION )
1818
DOC_DIR = $TOPLEVELDIR/doc
1919
RELEASE_DIR = $TOPLEVELDIR/release

‎doc/main.aap

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ TOPLEVELDIR = ..
88

99
:rule %.txt {virtual}:
1010
:chmod 644 $target
11-
:sys svn commit $target
1211
:sys ./vim2html.pl tags $target
1312
@html_file = sufreplace('.txt', '.html', target)
1413
:sys scp $html_file $(SF_SCP_WEB_URL)/doc

‎main.aap

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# aap -f www/htdocs/main.aap publish (vimcdoc homepage)
1313
#
1414
# External tools we would need:
15-
# svn2cl (needed for ChangeLog)
1615
# nsis, ANSI (standard) and unicode (3.0 alpha needed)
1716
# wine, if running from non-windows environment
1817
# latex, latexmk
@@ -22,7 +21,7 @@ TOPLEVELDIR=.
2221
:include $TOPLEVELDIR/common.aap
2322

2423
# ANSI NSIS, available from nsis.sourceforge.net/.
25-
MAKENSIS = makensis
24+
MAKENSIS = "c:\Program Files\NSIS2\makensis"
2625
# Unicode NSIS, available from offical NSIS 3.0a1
2726
MAKENSIS_UNI = "c:\Program Files\NSIS\makensis"
2827
NSISFILE = vcd-setup.nsi
@@ -64,11 +63,12 @@ release {virtual}: $RELEASE_NAME
6463
#:move $target_name $RELEASE_NAME/doc
6564
:copy $NSISFILE $NSISFILE_UNI $RELEASE_NAME
6665
:cd $RELEASE_NAME
67-
:sys $(MAKENSIS) $(NSISFILE)
6866
os = $OSTYPE
6967
@if os == "mswin":
68+
:sys $(MAKENSIS) $(NSISFILE)
7069
:sys $(MAKENSIS_UNI) $(NSISFILE_UNI)
7170
@else:
71+
:sys wine $(MAKENSIS) $(NSISFILE)
7272
:sys wine $(MAKENSIS_UNI) $(NSISFILE_UNI)
7373
:cd -
7474
:move $RELEASE_NAME/$(VCD)-setup.exe $(RELEASE_DIR)/$(RELEASE_NAME)-setup.exe
@@ -84,8 +84,8 @@ $RELEASE_NAME: VERSION
8484
:mkdir $RELEASE_NAME/doc
8585
:copy $(MISC_FILES) $(RELEASE_NAME)
8686

87-
ChangeLog: $Vimcdoc_txt
88-
:sys svn2cl --strip-prefix=/
87+
ChangeLog: $Vimcdoc_txt
88+
:sys git log --date=short --pretty="format:%ad %aE %s%n" --name-only > ChangeLog
8989

9090
all:
9191
:print Use 'aap clean' to clean up.

‎tools/html2lex.c

+8-6
Original file line numberDiff line numberDiff line change
@@ -1382,7 +1382,9 @@ bool norm_URL(origin, file) char *origin, *file;
13821382
&& s[0] == '.' && s[1] == '.' /* && s[2] == '/'*/)
13831383
return FALSE;
13841384
else if (i == 0)
1385-
strcpy(file, s);
1385+
{
1386+
if (file != s) strcpy(file, s);
1387+
}
13861388
else if(i + strlen(s) < MAX_DF)
13871389
{ memcpy(df_buffer, origin, i);
13881390
strcpy(df_buffer + i, s);
@@ -4253,7 +4255,7 @@ bool included; /* Included in output (or only checking) */
42534255
{ if(attr_name)
42544256
fprintf(fout, "\n%% <%s %s=\"%s\">\n", html_com, attr_name, attr_val);
42554257
else
4256-
fprintf(fout, "\n%%>\n", html_com);
4258+
fprintf(fout, "\n%% <%s>\n", html_com);
42574259
}
42584260
}
42594261
else if (OPEN_TAG(T_HTML))
@@ -4801,12 +4803,12 @@ char *fn;
48014803
bool is_link_mapping = ch == 'l';
48024804

48034805
ch = (char)fgetc(fin);
4804-
parse_URL(fin, &ch, buffer, MAX_SF);
4806+
parse_URL(fin, &ch, buffer);
48054807

48064808
new->prefix = SALLOC(buffer);
48074809
strcpy(new->prefix, buffer);
48084810

4809-
parse_URL(fin, &ch, buffer, MAX_SF);
4811+
parse_URL(fin, &ch, buffer);
48104812

48114813
new->replace = SALLOC(buffer);
48124814
strcpy(new->replace, buffer);
@@ -4867,7 +4869,7 @@ char *fn;
48674869
{ file_t *tfile;
48684870

48694871
ch = (char)fgetc(fin);
4870-
parse_URL(fin, &ch, html_file, MAX_SF);
4872+
parse_URL(fin, &ch, html_file);
48714873

48724874
tfile = find_file(html_file);
48734875
tfile->ignore = TRUE;
@@ -4881,7 +4883,7 @@ char *fn;
48814883
}
48824884
else
48834885
{
4884-
parse_URL(fin, &ch, html_file, MAX_SF);
4886+
parse_URL(fin, &ch, html_file);
48854887

48864888
while (!feof(fin) && ch == ' ')
48874889
ch = (char)fgetc(fin);

‎vcd-setup-unicode.nsi

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ Section - DoStuff
129129
SetOutPath $INSTDIR\..\vimfiles\plugin
130130
File "vimcdoc.vim"
131131
SetOutPath $PROGRAMFILES\vimcdoc
132-
File "README"
132+
File "README.md"
133133
File "INSTALL"
134134
File "LICENSE"
135135
File "AUTHORS"

‎vcd-setup.nsi

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ Section - DoStuff
124124
SetOutPath $INSTDIR\..\vimfiles\plugin
125125
File "vimcdoc.vim"
126126
SetOutPath $PROGRAMFILES\vimcdoc
127-
File "README"
127+
File "README.md"
128128
File "INSTALL"
129129
File "LICENSE"
130130
File "AUTHORS"

0 commit comments

Comments
 (0)
Please sign in to comment.