mirror of
https://github.com/vim-scripts/perl-support.vim.git
synced 2026-03-01 18:23:21 +01:00
- Adjusting end-of-line comments improved. - Bugfix: Map and menu entry 'Snippets->edit global templates'. - 'Run -> make script executable' (\re) is now a toggle. - Perl interpreter can be set in ~/.vimrc. - Script can be run via shebang (new global variable g:Perl_DirectRun) - Fixed problem with system-wide installations and plug-in managers (thanks to Yegor). - Added 'Perl_SetMapLeader' and 'Perl_ResetMapLeader'. - Bugfix: Resetting maplocalleader in filetype plug-in after setting it to the value of g:Perl_MapLeader. - Bugfix: Better compatibility with custom mappings (use "normal!" and "noremap" consistently).
30 lines
1.0 KiB
Bash
30 lines
1.0 KiB
Bash
#!/bin/bash
|
|
#===============================================================================
|
|
# FILE: wrapper.sh
|
|
# USAGE: ./wrapper.sh scriptname [cmd-line-args]
|
|
# DESCRIPTION: Wraps the execution of a programm or script.
|
|
# Use with xterm: xterm -e wrapper.sh scriptname cmd-line-args
|
|
# This script is used by the Vim plugin perl-support.vim
|
|
# OPTIONS: ---
|
|
# REQUIREMENTS: ---
|
|
# BUGS: ---
|
|
# NOTES: ---
|
|
# AUTHOR: Dr.-Ing. Fritz Mehner (fgm), mehner.fritz@fh-swf.de
|
|
# COMPANY: Fachhochschule Südwestfalen, Iserlohn
|
|
# CREATED: 23.11.2004 18:04:01 CET
|
|
# REVISION: 12.01.2014
|
|
#===============================================================================
|
|
|
|
returncode=0 # default return code
|
|
|
|
if [ ${#} -ge 1 ] ; then
|
|
"${@}"
|
|
returncode=$?
|
|
[ $returncode -ne 0 ] && printf "'${@}' returned ${returncode}\n"
|
|
else
|
|
printf "\n!! ${0} : no argument(s) !!\n"
|
|
fi
|
|
|
|
read -p "... press return key ... " dummy
|
|
exit $returncode
|