#!/usr/bin/env bash VERSION='v2.3.8' warn() { echo "$@" >&2; } die() { warn "$@"; exit 1; } perl -MNarada -E 'Narada::detect(@ARGV)' || exit 1 while [ $# -gt 1 -o "${1:0:1}" == "-" ]; do opts=(${opts[@]} $1) shift done if [ $# -eq 1 ]; then cmd=(sh -c "run /lib/sh/profile; $1; shutdown -h") fi export INFERNO_HOME=$(pwd) unset LD_PRELOAD exec emu-g "${opts[@]}" "${cmd[@]}" : <<'=cut' =encoding utf8 =head1 NAME narada-emu - start OS Inferno's emu-g for this project =head1 VERSION This document describes narada-emu version v2.3.8 =head1 USAGE narada-emu [options] [command] =head1 DESCRIPTION Should be executed in project directory. Start emu-g using current directory as OS Inferno's user home directory. With "command" parameter will initialize emu in usual way (/lib/sh/profile), run given "command", and after "command" exits will shutdown emu (even if there still some active background processes). =head1 CONFIGURATION AND ENVIRONMENT Depends on OS Inferno setup. Usually use these files and directories in project root directory (which become home directory inside Inferno): namespace profile tmp/ keyring/ =head1 SUPPORT =head2 Bugs / Feature Requests Please report any bugs or feature requests through the issue tracker at L. You will be notified automatically of any progress on your issue. =head2 Source Code This is open source software. The code repository is available for public review and contribution under the terms of the license. Feel free to fork the repository and submit pull requests. L git clone https://github.com/powerman/Narada.git =head2 Resources =over =item * MetaCPAN Search L =item * CPAN Ratings L =item * AnnoCPAN: Annotated CPAN documentation L =item * CPAN Testers Matrix L =item * CPANTS: A CPAN Testing Service (Kwalitee) L =back =head1 AUTHOR Alex Efros Epowerman@cpan.orgE =head1 COPYRIGHT AND LICENSE This software is Copyright (c) 2008- by Alex Efros Epowerman@cpan.orgE. This is free software, licensed under: The MIT (X11) License =cut