r544 - trunk/vim7/debian
James Vega
jamessan at costa.debian.org
Mon Mar 27 21:14:34 UTC 2006
Author: jamessan
Date: 2006-03-27 21:14:33 +0000 (Mon, 27 Mar 2006)
New Revision: 544
Added:
trunk/vim7/debian/vim-common.install.in
trunk/vim7/debian/vim-common.links.in
trunk/vim7/debian/vim-gui-common.install.in
trunk/vim7/debian/vim-gui-common.links.in
trunk/vim7/debian/vim-runtime.install.in
Removed:
trunk/vim7/debian/vim-common.install
trunk/vim7/debian/vim-common.links
trunk/vim7/debian/vim-gui-common.install
trunk/vim7/debian/vim-gui-common.links
trunk/vim7/debian/vim-runtime.install
Modified:
trunk/vim7/debian/rules
trunk/vim7/debian/vim-variant.postinst
Log:
Generate the list of manpages to be installed/linked/alternatived dynamically
in debian/rules.
Modified: trunk/vim7/debian/rules
===================================================================
--- trunk/vim7/debian/rules 2006-03-27 15:41:44 UTC (rev 543)
+++ trunk/vim7/debian/rules 2006-03-27 21:14:33 UTC (rev 544)
@@ -175,8 +175,8 @@
PER_VARIANT_FILES = install postinst postrm prerm links
LANGS += fr fr.ISO8859-1 fr.UTF-8
LANGS += it it.ISO8859-1 it.UTF-8
+LANGS += pl.ISO8859-2 pl.UTF-8
LANGS += ru.KOI8-R ru.UTF-8
-LANGS += pl.ISO8859-2 pl.UTF-8
# nothing to do per default
all:
@@ -234,6 +234,10 @@
for x in $(PER_VARIANT_FILES) ; do \
rm -f debian/vim.$$x ; \
done
+ for x in vim-gui-common.{install,links} vim-common.{install,links} \
+ vim-runtime.install; do \
+ rm -f debian/$$x; \
+ done
clean-%:
for x in $(PER_VARIANT_FILES) ; do \
@@ -324,9 +328,34 @@
-e "s:@COMMON@:vim-common:" \
debian/vim-variant.$$x > debian/vim.$$x ;\
done
+ for L in $(LANGS); do \
+ sed -e "s:\(.*\)@LANG_ALTS@:\1--slave \\$$mandir/$$L/man1/\\$$i.1.gz \\$$i.$$L.1.gz \\$$mandir/$$L/man1/vim.1.gz \\\n&:" \
+ -i debian/vim.postinst; \
+ done
+ sed -i ":@LANG_ALTS@:d" debian/vim.postinst
sed -e "s:@PKG@:vim:;s:@VARIANT@:basic:" \
debian/lintian/vim-variant > debian/lintian/vim
+ # Generate language-specific sections of
+ # vim-{runtime,common,gui-common}.install files
+ cp debian/vim-runtime.install{.in,}
+ @for L in $(LANGS); do \
+ echo debian/tmp/usr/share/man/$$L/man1/vimtutor.1 \
+ usr/share/man/$$L/man1/ >>debian/vim-runtime.install; \
+ done
+
+ cp debian/vim-common.install{.in,}
+ @for L in $(LANGS); do \
+ echo debian/tmp/usr/share/man/$$L/man1/\* \
+ usr/share/man/$$L/man1/ >>debian/vim-common.install; \
+ done
+
+ cp debian/vim-gui-common.install{.in,}
+ @for L in $(LANGS); do \
+ echo debian/tmp/usr/share/man/$$L/man1/evim.1 \
+ usr/share/man/$$L/man1/ >>debian/vim-gui-common.install; \
+ done
+
dh_installman
dh_install -X.svn --fail-missing
# adjust things for vim-gui-common
@@ -348,6 +377,25 @@
rm -f debian/vim-common/usr/share/man/$$L/man1/vimtutor.1; \
done
rmdir debian/vim-gui-common/usr/bin
+ # Generate language-specific sections of
+ # vim-{common,gui-common}.links files
+ cp debian/vim-common.links{.in,}
+ @for L in $(LANGS); do \
+ for p in rvim rview; do \
+ echo usr/share/man/$$L/man1/vim.1 \
+ usr/share/man/$$L/man1/$$p.1 >>debian/vim-common.links; \
+ done; \
+ done
+
+ cp debian/vim-gui-common.links{.in,}
+ @for L in $(LANGS); do \
+ for p in gview rgvim rgview; do \
+ echo usr/share/man/$$L/man1/gvim.1 \
+ usr/share/man/$$L/man1/$$p.1 >>debian/vim-gui-common.links; \
+ done; \
+ echo usr/share/man/$$L/man1/evim.1 \
+ usr/share/man/$$L/man1/eview.1 >>debian/vim-gui-common.links; \
+ done
dh_link
# all excepts vim
@@ -383,6 +431,11 @@
done
sed -e "s:@PKG@:$*:;s:@VARIANT@:$(patsubst vim-%,%,$*):" \
debian/lintian/vim-variant > debian/lintian/$*
+ for L in $(LANGS); do \
+ sed -e "s:\(.*\)@LANG_ALTS@:\1--slave \\$$mandir/$$L/man1/\\$$i.1.gz \\$$i.$$L.1.gz \\$$mandir/$$L/man1/vim.1.gz \\\n&:" \
+ -i debian/$*.postinst; \
+ done
+ sed -i ":@LANG_ALTS@:d" debian/$*.postinst
# fake help installation for vim-tiny
if [ "$*" = "vim-tiny" ]; then \
echo "debian/tiny/doc/ usr/share/vim/" >> debian/$*.install; \
Deleted: trunk/vim7/debian/vim-common.install
===================================================================
--- trunk/vim7/debian/vim-common.install 2006-03-27 15:41:44 UTC (rev 543)
+++ trunk/vim7/debian/vim-common.install 2006-03-27 21:14:33 UTC (rev 544)
@@ -1,15 +0,0 @@
-debian/tmp/usr/bin/xxd usr/bin/
-debian/helpztags usr/bin/
-debian/runtime/vimrc etc/vim/
-debian/vim.presubj usr/share/bug/vim/
-debian/tmp/usr/share/man/man1/* usr/share/man/man1/
-debian/tmp/usr/share/man/fr.ISO8859-1/man1/* usr/share/man/fr.ISO8859-1/man1/
-debian/tmp/usr/share/man/fr/man1/* usr/share/man/fr/man1/
-debian/tmp/usr/share/man/fr.UTF-8/man1/* usr/share/man/fr.UTF-8/man1/
-debian/tmp/usr/share/man/it.ISO8859-1/man1/* usr/share/man/it.ISO8859-1/man1/
-debian/tmp/usr/share/man/it/man1/* usr/share/man/it/man1/
-debian/tmp/usr/share/man/it.UTF-8/man1/* usr/share/man/it.UTF-8/man1/
-debian/tmp/usr/share/man/pl.ISO8859-2/man1/* usr/share/man/pl.ISO8859-2/man1/
-debian/tmp/usr/share/man/pl.UTF-8/man1/* usr/share/man/pl.UTF-8/man1/
-debian/tmp/usr/share/man/ru.KOI8-R/man1/* usr/share/man/ru.KOI8-R/man1/
-debian/tmp/usr/share/man/ru.UTF-8/man1/* usr/share/man/ru.UTF-8/man1/
Copied: trunk/vim7/debian/vim-common.install.in (from rev 543, trunk/vim7/debian/vim-common.install)
===================================================================
--- trunk/vim7/debian/vim-common.install 2006-03-27 15:41:44 UTC (rev 543)
+++ trunk/vim7/debian/vim-common.install.in 2006-03-27 21:14:33 UTC (rev 544)
@@ -0,0 +1,5 @@
+debian/tmp/usr/bin/xxd usr/bin/
+debian/helpztags usr/bin/
+debian/runtime/vimrc etc/vim/
+debian/vim.presubj usr/share/bug/vim/
+debian/tmp/usr/share/man/man1/* usr/share/man/man1/
Deleted: trunk/vim7/debian/vim-common.links
===================================================================
--- trunk/vim7/debian/vim-common.links 2006-03-27 15:41:44 UTC (rev 543)
+++ trunk/vim7/debian/vim-common.links 2006-03-27 21:14:33 UTC (rev 544)
@@ -1,35 +0,0 @@
-etc/vim usr/share/vim/vimfiles
-etc/vim/vimrc usr/share/vim/vimrc
-
-usr/share/man/man1/vim.1 usr/share/man/man1/rvim.1
-usr/share/man/man1/vim.1 usr/share/man/man1/rview.1
-
-usr/share/man/fr/man1/vim.1 usr/share/man/fr/man1/rvim.1
-usr/share/man/fr/man1/vim.1 usr/share/man/fr/man1/rview.1
-
-usr/share/man/fr.ISO8859-1/man1/vim.1 usr/share/man/fr.ISO8859-1/man1/rvim.1
-usr/share/man/fr.ISO8859-1/man1/vim.1 usr/share/man/fr.ISO8859-1/man1/rview.1
-
-usr/share/man/fr.UTF-8/man1/vim.1 usr/share/man/fr.UTF-8/man1/rvim.1
-usr/share/man/fr.UTF-8/man1/vim.1 usr/share/man/fr.UTF-8/man1/rview.1
-
-usr/share/man/it/man1/vim.1 usr/share/man/it/man1/rvim.1
-usr/share/man/it/man1/vim.1 usr/share/man/it/man1/rview.1
-
-usr/share/man/it.ISO8859-1/man1/vim.1 usr/share/man/it.ISO8859-1/man1/rvim.1
-usr/share/man/it.ISO8859-1/man1/vim.1 usr/share/man/it.ISO8859-1/man1/rview.1
-
-usr/share/man/it.UTF-8/man1/vim.1 usr/share/man/it.UTF-8/man1/rvim.1
-usr/share/man/it.UTF-8/man1/vim.1 usr/share/man/it.UTF-8/man1/rview.1
-
-usr/share/man/pl.ISO8859-2/man1/vim.1 usr/share/man/pl.ISO8859-2/man1/rvim.1
-usr/share/man/pl.ISO8859-2/man1/vim.1 usr/share/man/pl.ISO8859-2/man1/rview.1
-
-usr/share/man/pl.UTF-8/man1/vim.1 usr/share/man/pl.UTF-8/man1/rvim.1
-usr/share/man/pl.UTF-8/man1/vim.1 usr/share/man/pl.UTF-8/man1/rview.1
-
-usr/share/man/ru.KOI8-R/man1/vim.1 usr/share/man/ru.KOI8-R/man1/rvim.1
-usr/share/man/ru.KOI8-R/man1/vim.1 usr/share/man/ru.KOI8-R/man1/rview.1
-
-usr/share/man/ru.UTF-8/man1/vim.1 usr/share/man/ru.UTF-8/man1/rvim.1
-usr/share/man/ru.UTF-8/man1/vim.1 usr/share/man/ru.UTF-8/man1/rview.1
Copied: trunk/vim7/debian/vim-common.links.in (from rev 543, trunk/vim7/debian/vim-common.links)
Deleted: trunk/vim7/debian/vim-gui-common.install
===================================================================
--- trunk/vim7/debian/vim-gui-common.install 2006-03-27 15:41:44 UTC (rev 543)
+++ trunk/vim7/debian/vim-gui-common.install 2006-03-27 21:14:33 UTC (rev 544)
@@ -1,14 +0,0 @@
-debian/gvim.desktop usr/share/applications/
-debian/icons/* usr/share/pixmaps/
-debian/runtime/gvimrc etc/vim/
-debian/tmp/usr/share/man/man1/evim.1 usr/share/man/man1/
-debian/tmp/usr/share/man/fr/man1/evim.1 usr/share/man/fr/man1/
-debian/tmp/usr/share/man/fr.ISO8859-1/man1/evim.1 usr/share/man/fr.ISO8859-1/man1/
-debian/tmp/usr/share/man/fr.UTF-8/man1/evim.1 usr/share/man/fr.UTF-8/man1/
-debian/tmp/usr/share/man/it/man1/evim.1 usr/share/man/it/man1/
-debian/tmp/usr/share/man/it.ISO8859-1/man1/evim.1 usr/share/man/it.ISO8859-1/man1/
-debian/tmp/usr/share/man/it.UTF-8/man1/evim.1 usr/share/man/it.UTF-8/man1/
-debian/tmp/usr/share/man/pl.ISO8859-2/man1/evim.1 usr/share/man/pl.ISO8859-2/man1/
-debian/tmp/usr/share/man/pl.UTF-8/man1/evim.1 usr/share/man/pl.UTF-8/man1/
-debian/tmp/usr/share/man/ru.KOI8-R/man1/evim.1 usr/share/man/ru.KOI8-R/man1/
-debian/tmp/usr/share/man/ru.UTF-8/man1/evim.1 usr/share/man/ru.UTF-8/man1/
Copied: trunk/vim7/debian/vim-gui-common.install.in (from rev 543, trunk/vim7/debian/vim-gui-common.install)
===================================================================
--- trunk/vim7/debian/vim-gui-common.install 2006-03-27 15:41:44 UTC (rev 543)
+++ trunk/vim7/debian/vim-gui-common.install.in 2006-03-27 21:14:33 UTC (rev 544)
@@ -0,0 +1,4 @@
+debian/gvim.desktop usr/share/applications/
+debian/icons/* usr/share/pixmaps/
+debian/runtime/gvimrc etc/vim/
+debian/tmp/usr/share/man/man1/evim.1 usr/share/man/man1/
Deleted: trunk/vim7/debian/vim-gui-common.links
===================================================================
--- trunk/vim7/debian/vim-gui-common.links 2006-03-27 15:41:44 UTC (rev 543)
+++ trunk/vim7/debian/vim-gui-common.links 2006-03-27 21:14:33 UTC (rev 544)
@@ -1,57 +0,0 @@
-etc/vim/gvimrc usr/share/vim/gvimrc
-usr/share/doc/vim-common usr/share/doc/vim-gui-common
-
-usr/share/man/man1/gvim.1 usr/share/man/man1/gview.1
-usr/share/man/man1/gvim.1 usr/share/man/man1/rgvim.1
-usr/share/man/man1/gvim.1 usr/share/man/man1/rgview.1
-usr/share/man/man1/evim.1 usr/share/man/man1/eview.1
-
-usr/share/man/fr/man1/gvim.1 usr/share/man/fr/man1/gview.1
-usr/share/man/fr/man1/gvim.1 usr/share/man/fr/man1/rgvim.1
-usr/share/man/fr/man1/gvim.1 usr/share/man/fr/man1/rgview.1
-usr/share/man/fr/man1/evim.1 usr/share/man/fr/man1/eview.1
-
-usr/share/man/fr.ISO8859-1/man1/gvim.1 usr/share/man/fr.ISO8859-1/man1/gview.1
-usr/share/man/fr.ISO8859-1/man1/gvim.1 usr/share/man/fr.ISO8859-1/man1/rgvim.1
-usr/share/man/fr.ISO8859-1/man1/gvim.1 usr/share/man/fr.ISO8859-1/man1/rgview.1
-usr/share/man/fr.ISO8859-1/man1/evim.1 usr/share/man/fr.ISO8859-1/man1/eview.1
-
-usr/share/man/fr.UTF-8/man1/gvim.1 usr/share/man/fr.UTF-8/man1/gview.1
-usr/share/man/fr.UTF-8/man1/gvim.1 usr/share/man/fr.UTF-8/man1/rgvim.1
-usr/share/man/fr.UTF-8/man1/gvim.1 usr/share/man/fr.UTF-8/man1/rgview.1
-usr/share/man/fr.UTF-8/man1/evim.1 usr/share/man/fr.UTF-8/man1/eview.1
-
-usr/share/man/it/man1/gvim.1 usr/share/man/it/man1/gview.1
-usr/share/man/it/man1/gvim.1 usr/share/man/it/man1/rgvim.1
-usr/share/man/it/man1/gvim.1 usr/share/man/it/man1/rgview.1
-usr/share/man/it/man1/evim.1 usr/share/man/it/man1/eview.1
-
-usr/share/man/it.ISO8859-1/man1/gvim.1 usr/share/man/it.ISO8859-1/man1/gview.1
-usr/share/man/it.ISO8859-1/man1/gvim.1 usr/share/man/it.ISO8859-1/man1/rgvim.1
-usr/share/man/it.ISO8859-1/man1/gvim.1 usr/share/man/it.ISO8859-1/man1/rgview.1
-usr/share/man/it.ISO8859-1/man1/evim.1 usr/share/man/it.ISO8859-1/man1/eview.1
-
-usr/share/man/it.UTF-8/man1/gvim.1 usr/share/man/it.UTF-8/man1/gview.1
-usr/share/man/it.UTF-8/man1/gvim.1 usr/share/man/it.UTF-8/man1/rgvim.1
-usr/share/man/it.UTF-8/man1/gvim.1 usr/share/man/it.UTF-8/man1/rgview.1
-usr/share/man/it.UTF-8/man1/evim.1 usr/share/man/it.UTF-8/man1/eview.1
-
-usr/share/man/pl.ISO8859-2/man1/gvim.1 usr/share/man/pl.ISO8859-2/man1/gview.1
-usr/share/man/pl.ISO8859-2/man1/gvim.1 usr/share/man/pl.ISO8859-2/man1/rgvim.1
-usr/share/man/pl.ISO8859-2/man1/gvim.1 usr/share/man/pl.ISO8859-2/man1/rgview.1
-usr/share/man/pl.ISO8859-2/man1/evim.1 usr/share/man/pl.ISO8859-2/man1/eview.1
-
-usr/share/man/pl.UTF-8/man1/gvim.1 usr/share/man/pl.UTF-8/man1/gview.1
-usr/share/man/pl.UTF-8/man1/gvim.1 usr/share/man/pl.UTF-8/man1/rgvim.1
-usr/share/man/pl.UTF-8/man1/gvim.1 usr/share/man/pl.UTF-8/man1/rgview.1
-usr/share/man/pl.UTF-8/man1/evim.1 usr/share/man/pl.UTF-8/man1/eview.1
-
-usr/share/man/ru.KOI8-R/man1/gvim.1 usr/share/man/ru.KOI8-R/man1/gview.1
-usr/share/man/ru.KOI8-R/man1/gvim.1 usr/share/man/ru.KOI8-R/man1/rgvim.1
-usr/share/man/ru.KOI8-R/man1/gvim.1 usr/share/man/ru.KOI8-R/man1/rgview.1
-usr/share/man/ru.KOI8-R/man1/evim.1 usr/share/man/ru.KOI8-R/man1/eview.1
-
-usr/share/man/ru.UTF-8/man1/gvim.1 usr/share/man/ru.UTF-8/man1/gview.1
-usr/share/man/ru.UTF-8/man1/gvim.1 usr/share/man/ru.UTF-8/man1/rgvim.1
-usr/share/man/ru.UTF-8/man1/gvim.1 usr/share/man/ru.UTF-8/man1/rgview.1
-usr/share/man/ru.UTF-8/man1/evim.1 usr/share/man/ru.UTF-8/man1/eview.1
Copied: trunk/vim7/debian/vim-gui-common.links.in (from rev 543, trunk/vim7/debian/vim-gui-common.links)
===================================================================
--- trunk/vim7/debian/vim-gui-common.links 2006-03-27 15:41:44 UTC (rev 543)
+++ trunk/vim7/debian/vim-gui-common.links.in 2006-03-27 21:14:33 UTC (rev 544)
@@ -0,0 +1,6 @@
+etc/vim/gvimrc usr/share/vim/gvimrc
+usr/share/doc/vim-common usr/share/doc/vim-gui-common
+usr/share/man/man1/gvim.1 usr/share/man/man1/gview.1
+usr/share/man/man1/gvim.1 usr/share/man/man1/rgvim.1
+usr/share/man/man1/gvim.1 usr/share/man/man1/rgview.1
+usr/share/man/man1/evim.1 usr/share/man/man1/eview.1
Deleted: trunk/vim7/debian/vim-runtime.install
===================================================================
--- trunk/vim7/debian/vim-runtime.install 2006-03-27 15:41:44 UTC (rev 543)
+++ trunk/vim7/debian/vim-runtime.install 2006-03-27 21:14:33 UTC (rev 544)
@@ -1,15 +0,0 @@
-debian/tmp/usr/bin/vimtutor usr/bin/
-debian/tmp/usr/share/consolefonts/* usr/share/consolefonts/
-debian/tmp/usr/share/vim/ usr/share/
-debian/updates/*.vim usr/share/vim/vimcurrent/syntax/
-debian/tmp/usr/share/man/man1/vimtutor.1 usr/share/man/man1/
-debian/tmp/usr/share/man/fr/man1/vimtutor.1 usr/share/man/fr/man1/
-debian/tmp/usr/share/man/fr.ISO8859-1/man1/vimtutor.1 usr/share/man/fr.ISO8859-1/man1/
-debian/tmp/usr/share/man/fr.UTF-8/man1/vimtutor.1 usr/share/man/fr.UTF-8/man1/
-debian/tmp/usr/share/man/it/man1/vimtutor.1 usr/share/man/it/man1/
-debian/tmp/usr/share/man/it.ISO8859-1/man1/vimtutor.1 usr/share/man/it.ISO8859-1/man1/
-debian/tmp/usr/share/man/it.UTF-8/man1/vimtutor.1 usr/share/man/it.UTF-8/man1/
-debian/tmp/usr/share/man/pl.ISO8859-2/man1/vimtutor.1 usr/share/man/pl.ISO8859-2/man1/
-debian/tmp/usr/share/man/pl.UTF-8/man1/vimtutor.1 usr/share/man/pl.UTF-8/man1/
-debian/tmp/usr/share/man/ru.KOI8-R/man1/vimtutor.1 usr/share/man/ru.KOI8-R/man1/
-debian/tmp/usr/share/man/ru.UTF-8/man1/vimtutor.1 usr/share/man/ru.UTF-8/man1/
Copied: trunk/vim7/debian/vim-runtime.install.in (from rev 543, trunk/vim7/debian/vim-runtime.install)
===================================================================
--- trunk/vim7/debian/vim-runtime.install 2006-03-27 15:41:44 UTC (rev 543)
+++ trunk/vim7/debian/vim-runtime.install.in 2006-03-27 21:14:33 UTC (rev 544)
@@ -0,0 +1,5 @@
+debian/tmp/usr/bin/vimtutor usr/bin/
+debian/tmp/usr/share/consolefonts/* usr/share/consolefonts/
+debian/tmp/usr/share/vim/ usr/share/
+debian/updates/*.vim usr/share/vim/vimcurrent/syntax/
+debian/tmp/usr/share/man/man1/vimtutor.1 usr/share/man/man1/
Modified: trunk/vim7/debian/vim-variant.postinst
===================================================================
--- trunk/vim7/debian/vim-variant.postinst 2006-03-27 15:41:44 UTC (rev 543)
+++ trunk/vim7/debian/vim-variant.postinst 2006-03-27 21:14:33 UTC (rev 544)
@@ -35,24 +35,9 @@
for i in vi view ex editor ; do
update-alternatives \
--install /usr/bin/$i $i /usr/bin/vim.$variant $1 \
+ @LANG_ALTS@
--slave $mandir/man1/$i.1.gz $i.1.gz \
- $mandir/man1/vim.1.gz \
- --slave $mandir/fr/man1/$i.1.gz $i.fr.1.gz \
- $mandir/fr/man1/vim.1.gz \
- --slave $mandir/fr.ISO8859-1/man1/$i.1.gz $i.fr.ISO8859-1.1.gz \
- $mandir/fr.ISO8859-1/man1/vim.1.gz \
- --slave $mandir/fr.UTF-8/man1/$i.1.gz $i.fr.UTF-8.1.gz \
- $mandir/fr.UTF-8/man1/vim.1.gz \
- --slave $mandir/it/man1/$i.1.gz $i.it.1.gz \
- $mandir/it/man1/vim.1.gz \
- --slave $mandir/it.ISO8859-1/man1/$i.1.gz $i.it.ISO8859-1.1.gz \
- $mandir/it.ISO8859-1/man1/vim.1.gz \
- --slave $mandir/it.UTF-8/man1/$i.1.gz $i.it.UTF-8.1.gz \
- $mandir/it.UTF-8/man1/vim.1.gz \
- --slave $mandir/ru.KOI8-R/man1/$i.1.gz $i.ru.KOI8-R.1.gz \
- $mandir/ru.KOI8-R/man1/vim.1.gz \
- --slave $mandir/ru.UTF-8/man1/$i.1.gz $i.ru.UTF-8.1.gz \
- $mandir/ru.UTF-8/man1/vim.1.gz
+ $mandir/man1/vim.1.gz
done
case "$variant" in
gtk|lesstif|perl|python|ruby|tcl|gnome|full) # gui enabled variants
More information about the pkg-vim-maintainers
mailing list