diff options
Diffstat (limited to 'editors/vile/INSTALL')
-rwxr-xr-x | editors/vile/INSTALL | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/editors/vile/INSTALL b/editors/vile/INSTALL new file mode 100755 index 0000000000..90bb61f2dd --- /dev/null +++ b/editors/vile/INSTALL @@ -0,0 +1,17 @@ +default_install && + +mkdir -p "$INSTALL_ROOT/etc/profile.d/" && + +if install_config_file "$SPELL_DIRECTORY/profile.d/editor.sh" \ + "$INSTALL_ROOT/etc/profile.d/editor.sh"; then + + chmod 0755 "$INSTALL_ROOT/etc/profile.d/editor.sh" && + + local VILE_BIN="vile" && + + if is_depends_enabled $SPELL libx11; then + VILE_BIN="xvile" + fi && + + sedit "s:%VILE_BIN%:${VILE_BIN}:" "$INSTALL_ROOT/etc/profile.d/editor.sh" +fi |