comparison src/main.aap @ 446:7472c565592a v7.0117

updated for version 7.0117
author vimboss
date Wed, 27 Jul 2005 21:13:01 +0000
parents 250611b3068d
children 7052f11a3dc9
comparison
equal deleted inserted replaced
445:c773cb978acf 446:7472c565592a
235 ex_eval.c 235 ex_eval.c
236 ex_getln.c 236 ex_getln.c
237 fileio.c 237 fileio.c
238 fold.c 238 fold.c
239 getchar.c 239 getchar.c
240 hardcopy.c
240 hashtable.c 241 hashtable.c
241 if_cscope.c 242 if_cscope.c
242 if_xcmdsrv.c 243 if_xcmdsrv.c
243 main.c 244 main.c
244 mark.c 245 mark.c
438 VIMRTDIR = /`r.match(open("version.h").read()).group(1)` 439 VIMRTDIR = /`r.match(open("version.h").read()).group(1)`
439 HELPSUBDIR = /doc 440 HELPSUBDIR = /doc
440 COLSUBDIR = /colors 441 COLSUBDIR = /colors
441 SYNSUBDIR = /syntax 442 SYNSUBDIR = /syntax
442 INDSUBDIR = /indent 443 INDSUBDIR = /indent
444 AUTOSUBDIR = /autoload
443 PLUGSUBDIR = /plugin 445 PLUGSUBDIR = /plugin
444 FTPLUGSUBDIR = /ftplugin 446 FTPLUGSUBDIR = /ftplugin
445 LANGSUBDIR = /lang 447 LANGSUBDIR = /lang
446 COMPSUBDIR = /compiler 448 COMPSUBDIR = /compiler
447 KMAPSUBDIR = /keymap 449 KMAPSUBDIR = /keymap
457 ### VIMRUNTIMEDIR compiled-in location for runtime files (optional) 459 ### VIMRUNTIMEDIR compiled-in location for runtime files (optional)
458 ### HELPSUBLOC location for help files 460 ### HELPSUBLOC location for help files
459 ### COLSUBLOC location for colorscheme files 461 ### COLSUBLOC location for colorscheme files
460 ### SYNSUBLOC location for syntax files 462 ### SYNSUBLOC location for syntax files
461 ### INDSUBLOC location for indent files 463 ### INDSUBLOC location for indent files
464 ### AUTOSUBLOC location for standard autoload files
462 ### PLUGSUBLOC location for standard plugin files 465 ### PLUGSUBLOC location for standard plugin files
463 ### FTPLUGSUBLOC location for ftplugin files 466 ### FTPLUGSUBLOC location for ftplugin files
464 ### LANGSUBLOC location for language files 467 ### LANGSUBLOC location for language files
465 ### COMPSUBLOC location for compiler files 468 ### COMPSUBLOC location for compiler files
466 ### KMAPSUBLOC location for keymap files 469 ### KMAPSUBLOC location for keymap files
476 VIMRCLOC = $VIMLOC 479 VIMRCLOC = $VIMLOC
477 HELPSUBLOC = $VIMRTLOC$HELPSUBDIR 480 HELPSUBLOC = $VIMRTLOC$HELPSUBDIR
478 COLSUBLOC = $VIMRTLOC$COLSUBDIR 481 COLSUBLOC = $VIMRTLOC$COLSUBDIR
479 SYNSUBLOC = $VIMRTLOC$SYNSUBDIR 482 SYNSUBLOC = $VIMRTLOC$SYNSUBDIR
480 INDSUBLOC = $VIMRTLOC$INDSUBDIR 483 INDSUBLOC = $VIMRTLOC$INDSUBDIR
484 AUTOSUBLOC = $VIMRTLOC$AUTOSUBDIR
481 PLUGSUBLOC = $VIMRTLOC$PLUGSUBDIR 485 PLUGSUBLOC = $VIMRTLOC$PLUGSUBDIR
482 FTPLUGSUBLOC = $VIMRTLOC$FTPLUGSUBDIR 486 FTPLUGSUBLOC = $VIMRTLOC$FTPLUGSUBDIR
483 LANGSUBLOC = $VIMRTLOC$LANGSUBDIR 487 LANGSUBLOC = $VIMRTLOC$LANGSUBDIR
484 COMPSUBLOC = $VIMRTLOC$COMPSUBDIR 488 COMPSUBLOC = $VIMRTLOC$COMPSUBDIR
485 KMAPSUBLOC = $VIMRTLOC$KMAPSUBDIR 489 KMAPSUBLOC = $VIMRTLOC$KMAPSUBDIR
564 568
565 # Where to copy the indent files from 569 # Where to copy the indent files from
566 INDSOURCE = ../runtime/indent 570 INDSOURCE = ../runtime/indent
567 571
568 # Where to copy the standard plugin files from 572 # Where to copy the standard plugin files from
573 AUTOSOURCE = ../runtime/autoload
574
575 # Where to copy the standard plugin files from
569 PLUGSOURCE = ../runtime/plugin 576 PLUGSOURCE = ../runtime/plugin
570 577
571 # Where to copy the ftplugin files from 578 # Where to copy the ftplugin files from
572 FTPLUGSOURCE = ../runtime/ftplugin 579 FTPLUGSOURCE = ../runtime/ftplugin
573 580
598 DEST_RT = $DESTDIR$VIMRTLOC 605 DEST_RT = $DESTDIR$VIMRTLOC
599 DEST_HELP = $DESTDIR$HELPSUBLOC 606 DEST_HELP = $DESTDIR$HELPSUBLOC
600 DEST_COL = $DESTDIR$COLSUBLOC 607 DEST_COL = $DESTDIR$COLSUBLOC
601 DEST_SYN = $DESTDIR$SYNSUBLOC 608 DEST_SYN = $DESTDIR$SYNSUBLOC
602 DEST_IND = $DESTDIR$INDSUBLOC 609 DEST_IND = $DESTDIR$INDSUBLOC
610 DEST_AUTO = $DESTDIR$AUTOSUBLOC
603 DEST_PLUG = $DESTDIR$PLUGSUBLOC 611 DEST_PLUG = $DESTDIR$PLUGSUBLOC
604 DEST_FTP = $DESTDIR$FTPLUGSUBLOC 612 DEST_FTP = $DESTDIR$FTPLUGSUBLOC
605 DEST_LANG = $DESTDIR$LANGSUBLOC 613 DEST_LANG = $DESTDIR$LANGSUBLOC
606 DEST_COMP = $DESTDIR$COMPSUBLOC 614 DEST_COMP = $DESTDIR$COMPSUBLOC
607 DEST_KMAP = $DESTDIR$KMAPSUBLOC 615 DEST_KMAP = $DESTDIR$KMAPSUBLOC
612 DEST_PRINT = $DESTDIR$PRINTSUBLOC 620 DEST_PRINT = $DESTDIR$PRINTSUBLOC
613 DEST_MAN = $DESTDIR$MANSUBDIR 621 DEST_MAN = $DESTDIR$MANSUBDIR
614 622
615 # These are directories, create them when needed. 623 # These are directories, create them when needed.
616 :attr {directory = $DIRMOD} $DEST_BIN $DEST_VIM $DEST_RT $DEST_HELP $DEST_COL 624 :attr {directory = $DIRMOD} $DEST_BIN $DEST_VIM $DEST_RT $DEST_HELP $DEST_COL
617 $DEST_SYN $DEST_IND $DEST_PLUG $DEST_FTP $DEST_LANG 625 $DEST_SYN $DEST_IND $DEST_AUTO $DEST_PLUG $DEST_FTP $DEST_LANG
618 $DEST_COMP $DEST_KMAP $DEST_MACRO $DEST_TOOLS $DEST_TUTOR 626 $DEST_COMP $DEST_KMAP $DEST_MACRO $DEST_TOOLS $DEST_TUTOR
619 $DEST_SCRIPT $DEST_PRINT $DEST_MAN 627 $DEST_SCRIPT $DEST_PRINT $DEST_MAN
620 628
621 # 629 #
622 # I N S T A L L 630 # I N S T A L L
655 :sys $LINKIT 663 :sys $LINKIT
656 664
657 # install the help files; first adjust the contents for the location 665 # install the help files; first adjust the contents for the location
658 installruntime {virtual}{force}: $HELPSOURCE/vim.1 $DEST_MAN $DEST_VIM 666 installruntime {virtual}{force}: $HELPSOURCE/vim.1 $DEST_MAN $DEST_VIM
659 $DEST_RT $DEST_HELP $DEST_COL $DEST_SYN $DEST_IND 667 $DEST_RT $DEST_HELP $DEST_COL $DEST_SYN $DEST_IND
660 $DEST_FTP $DEST_PLUG $DEST_TUTOR $DEST_COMP $DEST_PRINT 668 $DEST_FTP $DEST_AUTO $DEST_PLUG $DEST_TUTOR $DEST_COMP
669 $DEST_PRINT
661 :print generating $DEST_MAN/$(VIMNAME).1 670 :print generating $DEST_MAN/$(VIMNAME).1
662 :cat $HELPSOURCE/vim.1 | 671 :cat $HELPSOURCE/vim.1 |
663 :eval re.sub("/usr/local/lib/vim", _no.VIMLOC, stdin) | 672 :eval re.sub("/usr/local/lib/vim", _no.VIMLOC, stdin) |
664 :eval re.sub(_no.VIMLOC + "/doc", _no.HELPSUBLOC, stdin) | 673 :eval re.sub(_no.VIMLOC + "/doc", _no.HELPSUBLOC, stdin) |
665 :eval re.sub(_no.VIMLOC + "/syntax", _no.SYNSUBLOC, stdin) | 674 :eval re.sub(_no.VIMLOC + "/syntax", _no.SYNSUBLOC, stdin) |
760 :copy $SYNSOURCE/*.vim $SYNSOURCE/README.txt $DEST_SYN 769 :copy $SYNSOURCE/*.vim $SYNSOURCE/README.txt $DEST_SYN
761 :chmod $HELPMOD $DEST_SYN/*.vim $DEST_SYN/README.txt 770 :chmod $HELPMOD $DEST_SYN/*.vim $DEST_SYN/README.txt
762 # install the indent files 771 # install the indent files
763 :copy $INDSOURCE/*.vim $INDSOURCE/README.txt $DEST_IND 772 :copy $INDSOURCE/*.vim $INDSOURCE/README.txt $DEST_IND
764 :chmod $HELPMOD $DEST_IND/*.vim 773 :chmod $HELPMOD $DEST_IND/*.vim
774 # install the standard autoload files
775 :copy $AUTOSOURCE/*.vim $AUTOSOURCE/README.txt $DEST_AUTO
776 :chmod $HELPMOD $DEST_AUTO/*.vim $DEST_AUTO/README.txt
765 # install the standard plugin files 777 # install the standard plugin files
766 :copy $PLUGSOURCE/*.vim $PLUGSOURCE/README.txt $DEST_PLUG 778 :copy $PLUGSOURCE/*.vim $PLUGSOURCE/README.txt $DEST_PLUG
767 :chmod $HELPMOD $DEST_PLUG/*.vim $DEST_PLUG/README.txt 779 :chmod $HELPMOD $DEST_PLUG/*.vim $DEST_PLUG/README.txt
768 # install the ftplugin files 780 # install the ftplugin files
769 :copy $FTPLUGSOURCE/*.vim $FTPLUGSOURCE/README.txt $DEST_FTP 781 :copy $FTPLUGSOURCE/*.vim $FTPLUGSOURCE/README.txt $DEST_FTP
1039 :del {force}{recursive} $DEST_LANG 1051 :del {force}{recursive} $DEST_LANG
1040 :del {force}{recursive} $DEST_KMAP 1052 :del {force}{recursive} $DEST_KMAP
1041 :del {force}{recursive} $DEST_COMP 1053 :del {force}{recursive} $DEST_COMP
1042 :deldir {force} $DEST_HELP $DEST_COL $DEST_SYN $DEST_IND 1054 :deldir {force} $DEST_HELP $DEST_COL $DEST_SYN $DEST_IND
1043 :del {force}{recursive} $DEST_FTP/*.vim $DEST_FTP/README.txt 1055 :del {force}{recursive} $DEST_FTP/*.vim $DEST_FTP/README.txt
1056 :del {force} $DEST_AUTO/*.vim $DEST_AUTO/README.txt
1044 :del {force} $DEST_PLUG/*.vim $DEST_PLUG/README.txt 1057 :del {force} $DEST_PLUG/*.vim $DEST_PLUG/README.txt
1045 :deldir {force} $DEST_FTP $DEST_PLUG $DEST_PRINT $DEST_RT 1058 :deldir {force} $DEST_FTP $DEST_AUTO $DEST_PLUG $DEST_PRINT $DEST_RT
1046 # This will fail when other Vim versions are installed, no worries. 1059 # This will fail when other Vim versions are installed, no worries.
1047 @try: 1060 @try:
1048 :deldir $DEST_VIM 1061 :deldir $DEST_VIM
1049 @except: 1062 @except:
1050 :print Cannot delete $DEST_VIM 1063 :print Cannot delete $DEST_VIM