From 08d4e68db15c5d4c822297049f52b3a5076e17ef Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Wed, 21 Mar 2012 22:46:22 +0100 Subject: [PATCH] Add VIM to 'noux_bash.run' --- ports/run/noux_bash.run | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/ports/run/noux_bash.run b/ports/run/noux_bash.run index 4e8bfac28..07546417c 100644 --- a/ports/run/noux_bash.run +++ b/ports/run/noux_bash.run @@ -16,12 +16,28 @@ set build_components { } lappend build_components noux-pkg/bash lappend build_components noux-pkg/coreutils +lappend build_components noux-pkg/vim lappend build_components test/libports/ncurses build $build_components +# write default vimrc file +set vimrc_fd [open "bin/vim/share/vim/vimrc" w] +puts $vimrc_fd { +set noloadplugins +set hls +set nocompatible +set laststatus=2 +set noswapfile +set viminfo=} +close $vimrc_fd + +# strip all binaries prior archiving +exec sh -c "find bin/bash/ bin/vim/ bin/coreutils/ -type f | (xargs -ixxx strip xxx || true) 2>/dev/null" + exec tar cfv bin/bash.tar -h -C bin/bash . exec tar rfv bin/bash.tar -h -C bin/coreutils . +exec tar rfv bin/bash.tar -h -C bin/vim . create_boot_directory