Skip to content

Commit

Permalink
2.0.0 release admin change
Browse files Browse the repository at this point in the history
  • Loading branch information
yianwillis committed Aug 19, 2017
1 parent 564e870 commit 0deea79
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 16 deletions.
1 change: 1 addition & 0 deletions INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
| UPDATE |
+-----------+

2.0.0:更新到 Vim 8.0,
1.9.0:更新到 Vim 7.4,
1.8.0:更新到 Vim 7.3,
1.7.0:更新到 Vim 7.2,新增 vimcdoc.vim 插件。
Expand Down
3 changes: 3 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2.0.0 releated (17 Aug 2017) by Willis
Fully updated to Vim 8.0.

Migrated to github (7 Sep 2013) by Willis
We are going to migrate our platform to github.com and future work will be
performed there instead of sourceforge.net.
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.9.0
2.0.0
2 changes: 1 addition & 1 deletion common.aap
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ SF_SCP_RELEASE_URL = scp://$SF_USER@$SF_RELEASE_DOMAIN/home/frs/project/vimcdoc
# TOPLEVELDIR is defined externally.
VERSION = $TOPLEVELDIR/VERSION
VCD = vimcdoc
MISC_FILES = README INSTALL VERSION AUTHORS LICENSE dict.txt vimcdoc.sh TODO guides.txt ChangeLog
MISC_FILES = README.md INSTALL VERSION AUTHORS LICENSE dict.txt vimcdoc.sh TODO guides.txt ChangeLog
@VERSION = file2string( VERSION )
DOC_DIR = $TOPLEVELDIR/doc
RELEASE_DIR = $TOPLEVELDIR/release
Expand Down
1 change: 0 additions & 1 deletion doc/main.aap
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ TOPLEVELDIR = ..

:rule %.txt {virtual}:
:chmod 644 $target
:sys svn commit $target
:sys ./vim2html.pl tags $target
@html_file = sufreplace('.txt', '.html', target)
:sys scp $html_file $(SF_SCP_WEB_URL)/doc
Expand Down
10 changes: 5 additions & 5 deletions main.aap
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# aap -f www/htdocs/main.aap publish (vimcdoc homepage)
#
# External tools we would need:
# svn2cl (needed for ChangeLog)
# nsis, ANSI (standard) and unicode (3.0 alpha needed)
# wine, if running from non-windows environment
# latex, latexmk
Expand All @@ -22,7 +21,7 @@ TOPLEVELDIR=.
:include $TOPLEVELDIR/common.aap

# ANSI NSIS, available from nsis.sourceforge.net/.
MAKENSIS = makensis
MAKENSIS = "c:\Program Files\NSIS2\makensis"
# Unicode NSIS, available from offical NSIS 3.0a1
MAKENSIS_UNI = "c:\Program Files\NSIS\makensis"
NSISFILE = vcd-setup.nsi
Expand Down Expand Up @@ -64,11 +63,12 @@ release {virtual}: $RELEASE_NAME
#:move $target_name $RELEASE_NAME/doc
:copy $NSISFILE $NSISFILE_UNI $RELEASE_NAME
:cd $RELEASE_NAME
:sys $(MAKENSIS) $(NSISFILE)
os = $OSTYPE
@if os == "mswin":
:sys $(MAKENSIS) $(NSISFILE)
:sys $(MAKENSIS_UNI) $(NSISFILE_UNI)
@else:
:sys wine $(MAKENSIS) $(NSISFILE)
:sys wine $(MAKENSIS_UNI) $(NSISFILE_UNI)
:cd -
:move $RELEASE_NAME/$(VCD)-setup.exe $(RELEASE_DIR)/$(RELEASE_NAME)-setup.exe
Expand All @@ -84,8 +84,8 @@ $RELEASE_NAME: VERSION
:mkdir $RELEASE_NAME/doc
:copy $(MISC_FILES) $(RELEASE_NAME)

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

all:
:print Use 'aap clean' to clean up.
Expand Down
14 changes: 8 additions & 6 deletions tools/html2lex.c
Original file line number Diff line number Diff line change
Expand Up @@ -1382,7 +1382,9 @@ bool norm_URL(origin, file) char *origin, *file;
&& s[0] == '.' && s[1] == '.' /* && s[2] == '/'*/)
return FALSE;
else if (i == 0)
strcpy(file, s);
{
if (file != s) strcpy(file, s);
}
else if(i + strlen(s) < MAX_DF)
{ memcpy(df_buffer, origin, i);
strcpy(df_buffer + i, s);
Expand Down Expand Up @@ -4253,7 +4255,7 @@ bool included; /* Included in output (or only checking) */
{ if(attr_name)
fprintf(fout, "\n%% <%s %s=\"%s\">\n", html_com, attr_name, attr_val);
else
fprintf(fout, "\n%%>\n", html_com);
fprintf(fout, "\n%% <%s>\n", html_com);
}
}
else if (OPEN_TAG(T_HTML))
Expand Down Expand Up @@ -4801,12 +4803,12 @@ char *fn;
bool is_link_mapping = ch == 'l';

ch = (char)fgetc(fin);
parse_URL(fin, &ch, buffer, MAX_SF);
parse_URL(fin, &ch, buffer);

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

parse_URL(fin, &ch, buffer, MAX_SF);
parse_URL(fin, &ch, buffer);

new->replace = SALLOC(buffer);
strcpy(new->replace, buffer);
Expand Down Expand Up @@ -4867,7 +4869,7 @@ char *fn;
{ file_t *tfile;

ch = (char)fgetc(fin);
parse_URL(fin, &ch, html_file, MAX_SF);
parse_URL(fin, &ch, html_file);

tfile = find_file(html_file);
tfile->ignore = TRUE;
Expand All @@ -4881,7 +4883,7 @@ char *fn;
}
else
{
parse_URL(fin, &ch, html_file, MAX_SF);
parse_URL(fin, &ch, html_file);

while (!feof(fin) && ch == ' ')
ch = (char)fgetc(fin);
Expand Down
2 changes: 1 addition & 1 deletion vcd-setup-unicode.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ Section - DoStuff
SetOutPath $INSTDIR\..\vimfiles\plugin
File "vimcdoc.vim"
SetOutPath $PROGRAMFILES\vimcdoc
File "README"
File "README.md"
File "INSTALL"
File "LICENSE"
File "AUTHORS"
Expand Down
2 changes: 1 addition & 1 deletion vcd-setup.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ Section - DoStuff
SetOutPath $INSTDIR\..\vimfiles\plugin
File "vimcdoc.vim"
SetOutPath $PROGRAMFILES\vimcdoc
File "README"
File "README.md"
File "INSTALL"
File "LICENSE"
File "AUTHORS"
Expand Down

0 comments on commit 0deea79

Please sign in to comment.