Kaydet (Commit) e63bca5f authored tarafından Suleyman Poyraz's avatar Suleyman Poyraz

ex vi ve vim editörleri eklendi.

* ex: Orijinal Extended editor. UNIX-like sistemler için Bill Joy tarafından yazılmıştır.
* vi: Virtual Improved Text editorünün sade hali. en basit ve en az bağımlılığı olan halidir ve vim ile aynı kaynaktan build ediyorum.
* vim: Daha geniş araç seti bulunan vi text editörü. Adı üzerine Vi IMproved Text Editor.
* gvim: vim guisi. Grafik arayüz versiyonu.
üst 1557405e
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from inary.actionsapi import autotools
from inary.actionsapi import inarytools
from inary.actionsapi import get
WorkDir = "ex-{}".format(get.srcVERSION())
def build():
autotools.make('PREFIX=/usr \
LIBEXECDIR=/usr/lib/ex \
PRESERVEDIR=/var/lib/ex \
TERMLIB=ncurses \
FEATURES="-DCHDIR \
-DFASTTAG \
-DUCVISUAL \
-DMB \
-DBIT8"')
def install():
autotools.rawInstall("PREFIX=/usr \
LIBEXECDIR=/usr/lib/ex \
PRESERVEDIR=/var/lib/ex \
INSTALL=/usr/bin/install \
DESTDIR=%s" % get.installDIR())
inarytools.dodoc("LICENSE")
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE INARY SYSTEM "http://www.sulin.org/projeler/inary/inary-spec.dtd">
<INARY>
<Source>
<Name>ex</Name>
<Homepage>http://ex-vi.sourceforge.net/</Homepage>
<Packager>
<Name>Suleyman Poyraz</Name>
<Email>zaryob.dev@gmail.com</Email>
</Packager>
<License>custom:ex</License>
<Summary>The original EXtended text editor</Summary>
<Description>ex, short for EXtended, is a line editor for Unix systems originally written by Bill Joy in 1976, beginning with an earlier program written by Charles Haley.</Description>
<Archive sha1sum="d2e0c11fc60a24fae09d0cb3df383984014a2bda" type="tarxz">https://sources.archlinux.org/other/vi/ex-070224.tar.xz</Archive>
<BuildDependencies>
<Dependency>ncurses-devel</Dependency>
</BuildDependencies>
<Patches>
<Patch>preserve_dir.patch</Patch>
<Patch>fix-tubesize.patch</Patch>
<Patch>navkeys.patch</Patch>
</Patches>
</Source>
<Package>
<Name>ex</Name>
<IsA>app:console</IsA>
<RuntimeDependencies>
<Dependency>ncurses</Dependency>
</RuntimeDependencies>
<Conflicts>
<Package>gvim</Package>
<Package>vim</Package>
<Package>vi</Package>
</Conflicts>
<Files>
<Path fileType="executable">/usr/bin/vi*</Path>
<Path fileType="executable">/usr/bin/rvi*</Path>
<Path fileType="executable">/usr/bin/ex</Path>
<Path fileType="executable">/usr/bin/xxd</Path>
<Path fileType="executable">/usr/bin/vedit</Path>
<Path fileType="executable">/usr/bin/edit</Path>
<Path fileType="library">/usr/lib/ex</Path>
<Path fileType="library">/var/lib/ex</Path>
<Path fileType="data">/usr/share/man/</Path>
<Path fileType="doc">/usr/share/doc/</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2019-09-07</Date>
<Version>070224</Version>
<Comment>First release</Comment>
<Name>Suleyman Poyraz</Name>
<Email>zaryob.dev@gmail.com</Email>
</Update>
</History>
</INARY>
......@@ -3,14 +3,14 @@
<INARY>
<Source>
<Name>vi</Name>
<Homepage>http://ex-vi.sourceforge.net/</Homepage>
<Homepage>https://github.com/vim</Homepage>
<Packager>
<Name>Suleyman Poyraz</Name>
<Email>zaryob.dev@gmail.com</Email>
</Packager>
<License>custom:ex</License>
<Summary>The original ex/vi text editor</Summary>
<Description>The original ex/vi text editor.</Description>
<Summary>Basic vi editor from VIM source.</Summary>
<Description>Basic vi editor from VIM source. This comes from same source with ViM package, but it contains only ncurses based vim.</Description>
<Archive sha1sum="8819f67ac6b9cd47cd39c87a53a2ab00de63029a" type="targz">https://github.com/vim/vim/archive/v8.1.1846/vim-8.1.1846.tar.gz</Archive>
<BuildDependencies>
<Dependency>ncurses-devel</Dependency>
......@@ -26,6 +26,7 @@
<Conflicts>
<Package>gvim</Package>
<Package>vim</Package>
<Package>ex</Package>
</Conflicts>
<Files>
<Path fileType="executable">/usr/bin/vi*</Path>
......@@ -38,6 +39,7 @@
<Path fileType="library">/var/lib/ex</Path>
<Path fileType="data">/usr/share/man/</Path>
<Path fileType="doc">/usr/share/doc/</Path>
<Path fileType="config">/etc/vimrc</Path>
</Files>
<AdditionalFiles>
<AdditionalFile target="/etc/vimrc">vimrc</AdditionalFile>
......
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from inary.actionsapi import autotools
from inary.actionsapi import inarytools
from inary.actionsapi import shelltools
from inary.actionsapi import get
#WorkDir = "vim74"
def setup():
# TODO: do we need that ?
shelltools.export("CXXFLAGS", get.CXXFLAGS().replace("-D_FORTIFY_SOURCE=2", ""))
shelltools.export("CFLAGS", get.CFLAGS().replace("-D_FORTIFY_SOURCE=2", ""))
inarytools.dosed("runtime/tools/mve.awk", "#!/usr/bin/nawk -f", "#!/usr/bin/awk -f")
# define the place for the global (g)vimrc file (set to /etc/vim/vimrc)
shelltools.echo("src/feature.h", "#define SYS_VIMRC_FILE \"/etc/vim/vimrc\"")
# our binary ctags file is names as exuberant-ctags
inarytools.dosed("runtime/doc/syntax.txt", "(ctags(\"| [-*.]|\\s+/))", "exuberant-\\1")
inarytools.dosed("runtime/doc/tagsrch.txt", "(ctags(\"| [-*.]|\\s+/))", "exuberant-\\1")
inarytools.dosed("runtime/doc/usr_29.txt", "(ctags(\"| [-*.]|\\s+/))", "exuberant-\\1")
inarytools.dosed("runtime/menu.vim", "(ctags(\"| [-*.]|\\s+/))", "exuberant-\\1")
# inarytools.dosed("src/configure.in", "(ctags(\"| [-*.]|\\s+/))", "exuberant-\\1")
# TODO: do we need that ?
# inarytools.dosed("src/configure.in", r"libc\.h", "")
# TODO: we could need that
#autotools.make("-C src autoconf")
# TODO: * We should use "big" feature instead of "huge".
# * Investigate impacts on current use
options ="--with-features=huge \
--enable-multibyte \
--enable-perlinterp \
--enable-pythoninterp \
--enable-python3interp \
--with-python3-config-dir=/usr/lib/python3.7/config-3.7m-x86_64-linux-gnu/ \
--enable-rubyinterp \
--enable-gui=no \
--with-tlib=ncurses \
--prefix=/usr \
--localstatedir=/var/lib/vim \
--with-features=big \
--disable-acl \
--with-compiledby=Sulin \
--enable-gpm \
--enable-acl \
--enable-cscope \
--disable-netbeans \
--disable-luainterp \
--with-x=no \
--with-modified-by=Sulin"
if get.buildTYPE() == "gui":
options += " --enable-gui=gtk2 \
--with-vim-name=gvim \
--with-view-name=gview \
--with-x=yes"
autotools.configure(options)
def build():
autotools.make()
def install():
autotools.rawInstall("VIMRCLOC=/etc/vim DESTDIR=%s" % get.installDIR())
# enough for gui building, quit here
if get.buildTYPE() == "gui":
return
# Vi != Vim, it's hard to break habbits
inarytools.dosym("vim", "/usr/bin/vi")
inarytools.dosym("/usr/bin/vim", "/bin/ex")
diff -upr ex-070224.orig/ex_vis.h ex-070224/ex_vis.h
--- ex-070224.orig/ex_vis.h 2005-08-06 14:41:15.000000000 +0300
+++ ex-070224/ex_vis.h 2015-05-02 20:41:13.938665281 +0300
@@ -104,7 +104,7 @@ var enum {
*/
var short TUBELINES;
var short TUBECOLS;
-var short TUBESIZE;
+var int TUBESIZE;
/*
* The screen in visual and crtopen is of varying size; the basic
[Desktop Entry]
Encoding=UTF-8
Name=gVim
GenericName[en]=Gvim Text Editor
GenericName[tr]=Gvim Metin Düzenleyici
Comment[en]=A highly configurable text editor
Comment[tr]=Özelleştirilebilir metin düzenleyici
Exec=/usr/bin/gvim -f
Icon=/usr/share/pixmaps/gvim.xpm
Terminal=false
Type=Application
MimeType=text/css;text/html;text/htmlh;text/plain;text/rss;text/sgml;text/x-adasrc;text/x-authors;text/x-c++hdr;text/x-c++src;text/x-copying;text/x-credits;text/x-csharp;text/x-csrc;text/x-dtd;text/x-fortran;text/x-gettext-translation-template;text/x-gettext-translation;text/x-gtkrc;text/x-haskell;text/x-idl;text/x-install;text/x-java;text/x-js;text/x-ksh;text/x-ksysv-log;text/x-literate-haskell;text/x-log;text/x-makefile;text/x-moc;text/x-msil;text/x-nemerle;text/x-objcsrc;text/x-pascal;text/x-patch;text/x-readme;text/x-scheme;text/x-setext;text/x-sql;text/x-tcl;text/x-tex;text/x-texinfo;text/x-troff-me;text/x-troff-mm;text/x-troff-ms;text/x-uil;text/x-vb;text/xml;
Categories=Application;TextEditor;
/* XPM */
static char *magick[] = {
/* columns rows colors chars-per-pixel */
"32 32 8 1",
" c Gray0",
". c #000080",
"X c #008000",
"o c Green",
"O c #808080",
"+ c #c0c0c0",
"@ c Gray100",
"# c None",
/* pixels */
"############### ###############",
"############## oo ##############",
"### oXXo # ###",
"## @@@@@@@@@@@ XXXo @@@@@@@@@ ##",
"## @+++++++++++ XXX @+++++++++ #",
"### ++++++++++O XXXX ++++++++O #",
"#### O++++++OO XXXXXX O+++++OO #",
"#### @++++++O XXXXXX @+++++OO ##",
"#### @++++++O XXXXX @@++++OO ###",
"#### @++++++O XXXX @@++++OO ####",
"#### @++++++O XXX @@++++OO #####",
"#### @++++++O XX @@++++OO . ####",
"### @++++++O X @@++++OO XX. ###",
"## o @++++++O @@++++OO XXXX. ##",
"# oX @++++++O @@++++OO XXXXXX. #",
" oXX @++++++O@@++++OO XXXXXXXX. ",
" oXX @++++++O@++++OO XXXXXXXXX. ",
"# oX @++++++O++++OO XXXXXXXXX. #",
"## o @++++++++++ XXXXXXXXX. ##",
"### @+++++++++ ++ XXXXXXXX. ###",
"#### @+++++++++ ++ XXXXXXX. ####",
"#### @++++++++O X X ###",
"#### @+++++++O +++ +++ +++ ++ ##",
"#### @++++++OO ++ ++++++++++ #",
"#### @+++++OO ++ ++..++ + ##",
"#### @++++OO X ++ ++. ++ ++ ##",
"#### @+++OO XX ++ ++ ++ ++ ##",
"#### @++OO X ++ ++ ++ ++ ###",
"##### +OO ## +++ ++ ++ +++ ##",
"###### #### . ## ## ###",
"############## .. ##############",
"############### ###############"
};
#!/bin/sh
# Start GUI Vim on a copy of the tutor file.
# Usage: gvimtutor [xx]
# See vimtutor for usage.
exec `dirname $0`/vimtutor -g "$@"
diff -ru ex-050325/ex_tty.c ex-050325-du/ex_tty.c
--- ex-050325/ex_tty.c 2005-03-04 13:42:58.000000000 +0100
+++ ex-050325-du/ex_tty.c 2009-06-25 20:06:57.000000000 +0200
@@ -132,7 +132,8 @@
&ED, &EI, &F0, &F1, &F2, &F3, &F4, &F5, &F6, &F7, &F8, &F9,
&HO, &IC, &IM, &IP, &KD, &KE, &KH, &KL, &KR, &KS, &KU, &LL, &ND, &xNL,
&xPC, &RC, &SC, &SE, &SF, &SO, &SR, &TA, &TE, &TI, &UP, &VB, &VS, &VE,
- &AL_PARM, &DL_PARM, &UP_PARM, &DOWN_PARM, &LEFT_PARM, &RIGHT_PARM
+ &AL_PARM, &DL_PARM, &UP_PARM, &DOWN_PARM, &LEFT_PARM, &RIGHT_PARM,
+ &kI, &kD, &kh, &at7, &kP, &kN
};
bool *sflags[] = {
&AM, &BS, &DA, &DB, &EO, &HC,
@@ -170,7 +171,12 @@
addmac1(KD, "j", "down", arrows, 1);
addmac1(KL, "h", "left", arrows, 1);
addmac1(KR, "l", "right", arrows, 1);
- addmac1(KH, "H", "home", arrows, 1);
+ addmac1(kI, "i", "insert", arrows, 1);
+ addmac1(kD, "x", "delete", arrows, 1);
+ addmac1(kh, "^", "home", arrows, 1);
+ addmac1(at7, "$", "end", arrows, 1);
+ addmac1(kP, "", "pgup", arrows, 1);
+ addmac1(kN, "", "pgdn", arrows, 1);
/*
* Handle funny termcap capabilities
@@ -341,7 +347,7 @@
*(*fp++) = flag;
namp += 2;
} while (*namp);
- namp = "albcbtcdceclcmcrcsdcdldmdoedeik0k1k2k3k4k5k6k7k8k9hoicimipkdkekhklkrkskullndnlpcrcscsesfsosrtatetiupvbvsveALDLUPDOLERI";
+ namp = "albcbtcdceclcmcrcsdcdldmdoedeik0k1k2k3k4k5k6k7k8k9hoicimipkdkekhklkrkskullndnlpcrcscsesfsosrtatetiupvbvsveALDLUPDOLERIkIkDkh@7kPkN";
sp = sstrs;
do {
string = tgetstr(namp, &aoftspace);
diff -ru ex-050325/ex_tty.h ex-050325-du/ex_tty.h
--- ex-050325/ex_tty.h 2004-12-01 19:21:06.000000000 +0100
+++ ex-050325-du/ex_tty.h 2009-06-25 20:06:05.000000000 +0200
@@ -183,6 +183,15 @@
var bool XX; /* Tektronix 4025 insert line */
/* X? is reserved for severely nauseous glitches */
/* If there are enough of these we may need bit masks! */
+/*
+ * Insert, Delete, Home, End, PgUp an PgDown keys
+ */
+var char *kI;
+var char *kD;
+var char *kh;
+var char *at7;
+var char *kP;
+var char *kN;
/*
* From the tty modes...
This diff is collapsed.
"
" Just a little plugin to automatically set utf-8 for new Python files
"
if &compatible || v:version < 603
finish
endif
fun! MakeNewPythonFile()
" actions.py has another handler
if expand("<afile>") == 'actions.py'
return
endif
set nopaste
0 put = '#!/usr/bin/env python3'
put = '# -*- coding: utf-8 -*-'
put = ''
5
endfun
com! -nargs=0 NewPythonFile call MakeNewPythonFile()
augroup NewPythonFile
au!
autocmd BufNewFile *.py call MakeNewPythonFile()
augroup END
" vim: set et foldmethod=marker : "
" Vim color file
" Maintainer: Connor Berry <connorberry@yahoo.com>
" Last Change: 2006/05/25
" Version: 1.0
set background=dark
highlight clear
if exists("syntax on")
syntax reset
endif
let g:colors_name = "redstring"
highlight Normal term=none ctermfg=grey cterm=none ctermbg=black guifg=white gui=none guibg=black
highlight Comment term=none ctermfg=DarkGrey guifg=DarkGrey
highlight Constant term=none ctermfg=red cterm=none guifg=red gui=none
highlight Special term=none ctermfg=red cterm=bold guifg=red gui=bold
highlight Identifier term=none ctermfg=lightgreen cterm=none guifg=lightgreen gui=none
highlight Statement term=bold ctermfg=cyan cterm=bold guifg=cyan gui=bold
highlight Operator term=bold ctermfg=cyan cterm=bold guifg=cyan gui=bold
highlight PreProc term=bold ctermfg=lightgreen cterm=none guifg=green gui=none
highlight Type term=bold ctermfg=lightgreen cterm=none guifg=lightgreen gui=none
highlight String term=none ctermfg=red cterm=none guifg=red gui=none
highlight Number term=none ctermfg=red cterm=none guifg=red gui=none
" vim:ts=2:sw=2:et
This diff is collapsed.
diff -Naur ex-050325.ori/ex.1 ex-050325/ex.1
--- ex-050325.ori/ex.1 2005-02-17 07:39:36.000000000 -0500
+++ ex-050325/ex.1 2011-02-01 16:21:51.496666674 -0500
@@ -1950,7 +1950,7 @@
.B /var/tmp/Rx\fInnnnnnnnnn\fP
named buffer temporary
.TP
-.B /var/preserve
+.B /var/lib/ex
preservation directory
.SH DOCUMENTATION
The document
diff -Naur ex-050325.ori/expreserve.c ex-050325/expreserve.c
--- ex-050325.ori/expreserve.c 2005-03-04 07:44:46.000000000 -0500
+++ ex-050325/expreserve.c 2011-02-01 16:22:06.583333342 -0500
@@ -272,7 +272,7 @@
#ifdef notdef
char pattern[] = "/usr/preserve/Exaa`XXXXX";
#else
-char pattern[] = "/var/preserve/Exa`XXXXXXXXXX";
+char pattern[] = "/var/lib/ex/Exa`XXXXXXXXXX";
#endif
/*
@@ -296,7 +296,7 @@
timestamp = ctime(&time);
timestamp[16] = 0; /* blast from seconds on */
putenv("MAILRC=/dev/null");
- sprintf(cmd, "/bin/mail %s", pp->pw_name);
+ sprintf(cmd, "/usr/bin/mail %s", pp->pw_name);
setuid(getuid());
mf = popen(cmd, "w");
if (mf == NULL)
diff -Naur ex-050325.ori/exrecover.c ex-050325/exrecover.c
--- ex-050325.ori/exrecover.c 2005-03-04 07:44:46.000000000 -0500
+++ ex-050325/exrecover.c 2011-02-01 16:21:51.496666674 -0500
@@ -167,7 +167,7 @@
#ifdef notdef
char mydir[] = "/usr/preserve";
#else
-char mydir[] = "/var/preserve";
+char mydir[] = "/var/lib/ex";
#endif
/*
diff -Naur ex-050325.ori/Makefile ex-050325/Makefile
--- ex-050325.ori/Makefile 2005-03-24 18:50:09.000000000 -0500
+++ ex-050325/Makefile 2011-02-01 16:21:51.496666674 -0500
@@ -83,7 +83,7 @@
BINDIR = $(PREFIX)/bin
LIBEXECDIR = $(PREFIX)/libexec
MANDIR = $(PREFIX)/share/man
-PRESERVEDIR = /var/preserve
+PRESERVEDIR = /var/lib/ex
#
# DESTDIR is prepended to the installation paths. It is mostly useful
diff -Naur ex-050325.ori/vi.1 ex-050325/vi.1
--- ex-050325.ori/vi.1 2005-02-17 07:39:36.000000000 -0500
+++ ex-050325/vi.1 2011-02-01 16:21:51.496666674 -0500
@@ -979,7 +979,7 @@
.B /var/tmp/Rx\fInnnnnnnnnn\fP
named buffer temporary
.TP
-.B /var/preserve
+.B /var/lib/ex
preservation directory
.SH SEE ALSO
ex(1),
--- ex-050325.original/ex.1 2012-01-27 20:43:00.602119283 +0100
+++ ex-050325/ex.1 2012-01-27 20:47:24.535436516 +0100
@@ -1932,10 +1932,10 @@
Determines the terminal type.
.SH FILES
.TP
-.B /usr/libexec/expreserve
+.B /usr/lib/ex/expreserve
preserve command
.TP
-.B /usr/libexec/exrecover
+.B /usr/lib/ex/exrecover
recover command
.TP
.B /etc/termcap
--- ex-050325.original/vi.1 2012-01-27 20:43:00.602119283 +0100
+++ ex-050325/vi.1 2012-01-27 20:46:33.815439611 +0100
@@ -961,10 +961,10 @@
Determines the terminal type.
.SH FILES
.TP
-.B /usr/libexec/expreserve
+.B /usr/lib/ex/expreserve
preserve command
.TP
-.B /usr/libexec/exrecover
+.B /usr/lib/ex/exrecover
recover command
.TP
.B /etc/termcap
" Vim plugin
" Purpose: Intelligently create content for INARY's action.py files
" Author: A. Murat Eren
" Copyright: Copyright (c) 2005 A. Murat Eren & S. Çağlar Onur
" Licence: You may redistribute this under the terms of the GNU GPL v2..
if &compatible || v:version < 603
finish
endif
fun! MakeNewActionsPY()
set nopaste
0 put = '# -*- coding: utf-8 -*-'
put = '#'
put = '# Copyright (C) YEAR, YOUR NAME'
put = '# Licensed under the GNU General Public License, version 2.'
put = '# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt'
put = ''
put = 'from inary.actionsapi import autotools'
put = 'from inary.actionsapi import inarytools'
put = 'from inary.actionsapi import get'
put = ''
put = 'def setup():'
put = ' pass'
put = ''
put = 'def build():'
put = ' pass'
put = ''
put = 'def install():'
put = ' pass'
14
endfun
com! -nargs=0 NewActionsPY call MakeNewActionsPY()
augroup NewActionsPY
au!
autocmd BufNewFile actions.py call MakeNewActionsPY()
augroup END
" vim: set et foldmethod=marker : "
diff -Nur vim72-old/runtime/filetype.vim vim72/runtime/filetype.vim
--- vim72-old/runtime/filetype.vim 2008-10-18 01:14:23.000000000 +0300
+++ vim72/runtime/filetype.vim 2008-10-18 01:15:01.000000000 +0300
@@ -1677,6 +1677,7 @@
" Shell scripts (sh, ksh, bash, bash2, csh); Allow .profile_foo etc.
" Gentoo ebuilds are actually bash scripts
au BufNewFile,BufRead .bashrc*,bashrc,bash.bashrc,.bash_profile*,.bash_logout*,*.bash,*.ebuild call SetFileTypeSH("bash")
+au BufNewFile,BufRead */etc/bash*completion*/* call SetFileTypeSH("bash")
au BufNewFile,BufRead .kshrc*,*.ksh call SetFileTypeSH("ksh")
au BufNewFile,BufRead /etc/profile,.profile*,*.sh,*.env call SetFileTypeSH(getline(1))
diff -Nur vim72-old/runtime/syntax/grub.vim vim72/runtime/syntax/grub.vim
--- vim72-old/runtime/syntax/grub.vim 2008-10-18 01:14:23.000000000 +0300
+++ vim72/runtime/syntax/grub.vim 2008-10-18 01:18:04.000000000 +0300
@@ -27,7 +27,7 @@
syn cluster grubCommands contains=grubCommand,grubTitleCommand
-syn keyword grubCommand contained default fallback hiddenmenu timeout
+syn keyword grubCommand contained default fallback hiddenmenu timeout splashimage background gfxmenu
syn keyword grubTitleCommand contained title nextgroup=grubTitle skipwhite
if &compatible || v:version < 603
finish
endif
fun! MakeNewPSPEC()
set nopaste
0 put = '<?xml version=\"1.0\" ?>'
put = '<!DOCTYPE INARY SYSTEM \"https://raw.githubusercontent.com/Zaryob/inary/master/inary-spec.dtd\">'
put = '<INARY>'
put = ' <Source>'
put = ' <Name></Name>'
put = ' <Homepage>http://</Homepage>'
put = ' <Packager>'
put = ' <Name></Name>'
put = ' <Email></Email>'
put = ' </Packager>'
put = ' <License>GPLv2</License>'
put = ' <Icon></Icon>'
put = ' <IsA></IsA>'
put = ' <Summary></Summary>'
put = ' <Description></Description>'
put = ' <Archive sha1sum=\"\" type=\"\">http://</Archive>'
put = ' <BuildDependencies>'
put = ' <Dependency></Dependency>'
put = ' </BuildDependencies>'
put = ' <Patches>'
put = ' <Patch level=\"\"></Patch>'
put = ' </Patches>'
put = ' </Source>'
put = ''
put = ' <Package>'
put = ' <Name></Name>'
put = ' <RuntimeDependencies>'
put = ' <Dependency versionFrom=\"\"></Dependency>'
put = ' </RuntimeDependencies>'
put = ' <Files>'
put = ' <Path fileType=\"config\">/etc</Path>'
put = ' <Path fileType=\"executable\">/usr/bin</Path>'
put = ' <Path fileType=\"header\">/usr/include</Path>'
put = ' <Path fileType=\"library\">/usr/lib</Path>'
put = ' <Path fileType=\"localedata\">/usr/share/locale</Path>'
put = ' <Path fileType=\"man\">/usr/share/man</Path>'
put = ' <Path fileType=\"doc\">/usr/share/doc</Path>'
put = ' <Path fileType=\"data\">/usr/share</Path>'
put = ' </Files>'
put = ' <AdditionalFiles>'
put = ' <AdditionalFile owner=\"root\" permission=\"0644\" target=\"\"></AdditionalFile>'
put = ' </AdditionalFiles>'
put = ' <Provides>'
put = ' <SCOM script=\"\"></SCOM>'
put = ' </Provides>'
put = ' </Package>'
put = ''
put = ' <History>'
put = ' <Update release=\"1\">'
put = ' <Date>YYYY-MM-DD</Date>'
put = ' <Version></Version>'
put = ' <Comment>First release.</Comment>'
put = ' <Name></Name>'
put = ' <Email></Email>'
put = ' </Update>'
put = ' </History>'
put = '</INARY>'
14
endfun
com! -nargs=0 NewPSPEC call MakeNewPSPEC()
augroup NewPSPEC
au!
autocmd BufNewFile pspec.xml call MakeNewPSPEC()
augroup END
" vim: set et foldmethod=marker : "
" Vim plugin
" Purpose: Intelligently create content for INARY's translations.xml files
" Author: İnanç Yıldırgan
" Copyright: Copyright (c) 2008 İnanç Yıldırgan
" Licence: You may redistribute this under the terms of the GNU GPL v2..
if &compatible || v:version < 603
finish
endif
fun! MakeNewTranslations()
set nopaste
0 put = '<?xml version=\"1.0\" ?>'
put = '<INARY>'
put = ' <Source>'
put = ' <Name></Name>'
put = ' <Summary xml:lang=\"\"></Summary>'
put = ' <Description xml:lang=\"\"></Description>'
put = ' </Source>'
put = '</INARY>'
14
endfun
com! -nargs=0 MakeNewTranslations call MakeNewTranslations()
augroup MakeNewTranslations
au!
autocmd BufNewFile translations.xml call MakeNewTranslations()
augroup END
" vim: set et foldmethod=marker : "
diff -Nur vim72-old/runtime/syntax/xf86conf.vim vim72/runtime/syntax/xf86conf.vim
--- vim72-old/runtime/syntax/xf86conf.vim 2008-10-18 01:14:23.000000000 +0300
+++ vim72/runtime/syntax/xf86conf.vim 2008-10-18 01:16:12.000000000 +0300
@@ -68,6 +68,7 @@
syn region xf86confSectionMonitor matchgroup=xf86confSectionDelim start="^\s*Section\s\+\"Monitor\"" end="^\s*EndSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confSubsectionMode,xf86confModeLine,xf86confComment,xf86confOption,xf86confKeyword
syn region xf86confSectionModes matchgroup=xf86confSectionDelim start="^\s*Section\s\+\"Modes\"" end="^\s*EndSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confSubsectionMode,xf86confModeLine,xf86confComment
syn region xf86confSectionScreen matchgroup=xf86confSectionDelim start="^\s*Section\s\+\"Screen\"" end="^\s*EndSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confSubsectionDisplay,xf86confComment,xf86confOption,xf86confKeyword
+ syn region xf86confSectionExtensions matchgroup=xf86confSectionDelim start="^\s*Section\s\+\"Extensions\"" end="^\s*EndSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confComment,xf86confOption,xf86confKeyword
syn region xf86confSubSectionAny matchgroup=xf86confSectionDelim start="^\s*SubSection\s\+\"[^\"]\+\"" end="^\s*EndSubSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confComment,xf86confOption,xf86confKeyword,@xf86confSectionErrors
syn region xf86confSubSectionMode matchgroup=xf86confSectionDelim start="^\s*Mode\s\+\"[^\"]\+\"" end="^\s*EndMode\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confComment,xf86confKeyword,@xf86confSectionErrors
syn region xf86confSubSectionDisplay matchgroup=xf86confSectionDelim start="^\s*SubSection\s\+\"Display\"" end="^\s*EndSubSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confComment,xf86confOption,xf86confKeyword,@xf86confSectionErrors
@@ -174,6 +175,7 @@
endif
syn sync match xf86confSyncSectionMonitor groupthere xf86confSectionMonitor "^\s*Section\s\+\"Monitor\""
syn sync match xf86confSyncSectionScreen groupthere xf86confSectionScreen "^\s*Section\s\+\"Screen\""
+syn sync match xf86confSyncSectionExtensions groupthere xf86confSectionExtensions "^\s*Section\s\+\"Extensions\""
syn sync match xf86confSyncEndSection groupthere NONE "^\s*End_*Section\s*$"
" Define the default highlighting
--- vim70c/src/structs.h.warning1 2006-04-04 15:58:16.000000000 +0200
+++ vim70c/src/structs.h 2006-04-04 15:58:20.000000000 +0200
@@ -1082,7 +1082,7 @@
{
typval_T di_tv; /* type and value of the variable */
char_u di_flags; /* flags (only used for variable) */
- char_u di_key[1]; /* key (actually longer!) */
+ char_u di_key[10]; /* key (actually longer!) */
};
typedef struct dictitem_S dictitem_T;
diff -ru vim73.orig/src/link.sh vim73/src/link.sh
--- vim73.orig/src/link.sh 2010-10-21 16:29:07 +0200
+++ vim73/src/link.sh 2010-10-21 16:23:15 +0200