Skip to content

Commit

Permalink
nsis: Use /r option to simplify the script
Browse files Browse the repository at this point in the history
This changes the nsis script to use the recursive option (/r) of the
File command to simplify the script.  After this change, we don't need
to add each line when we add new directories (like vim#4006, 8.1.0955).
  • Loading branch information
k-takata committed Mar 25, 2019
1 parent b45125b commit f366dc2
Showing 1 changed file with 4 additions and 36 deletions.
40 changes: 4 additions & 36 deletions nsis/gvim.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -354,42 +354,10 @@ Section "$(str_section_exe)" id_section_exe
File ${VIMRT}\indent\*.*

SetOutPath $0\macros
File ${VIMRT}\macros\*.*
SetOutPath $0\macros\hanoi
File ${VIMRT}\macros\hanoi\*.*
SetOutPath $0\macros\life
File ${VIMRT}\macros\life\*.*
SetOutPath $0\macros\maze
File ${VIMRT}\macros\maze\*.*
SetOutPath $0\macros\urm
File ${VIMRT}\macros\urm\*.*

SetOutPath $0\pack\dist\opt\dvorak\dvorak
File ${VIMRT}\pack\dist\opt\dvorak\dvorak\*.*
SetOutPath $0\pack\dist\opt\dvorak\plugin
File ${VIMRT}\pack\dist\opt\dvorak\plugin\*.*

SetOutPath $0\pack\dist\opt\editexisting\plugin
File ${VIMRT}\pack\dist\opt\editexisting\plugin\*.*

SetOutPath $0\pack\dist\opt\justify\plugin
File ${VIMRT}\pack\dist\opt\justify\plugin\*.*

SetOutPath $0\pack\dist\opt\matchit\doc
File ${VIMRT}\pack\dist\opt\matchit\doc\*.*
SetOutPath $0\pack\dist\opt\matchit\plugin
File ${VIMRT}\pack\dist\opt\matchit\plugin\*.*
SetOutPath $0\pack\dist\opt\matchit\autoload
File ${VIMRT}\pack\dist\opt\matchit\autoload\*.*

SetOutPath $0\pack\dist\opt\shellmenu\plugin
File ${VIMRT}\pack\dist\opt\shellmenu\plugin\*.*

SetOutPath $0\pack\dist\opt\swapmouse\plugin
File ${VIMRT}\pack\dist\opt\swapmouse\plugin\*.*

SetOutPath $0\pack\dist\opt\termdebug\plugin
File ${VIMRT}\pack\dist\opt\termdebug\plugin\*.*
File /r ${VIMRT}\macros\*.*

SetOutPath $0\pack
File /r ${VIMRT}\pack\*.*

SetOutPath $0\plugin
File ${VIMRT}\plugin\*.*
Expand Down

0 comments on commit f366dc2

Please sign in to comment.