We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unphi
I want to be able to run unphi
.eoc
I want to be able to run something like eoc unphi program.phi or eoc unphi dir.
eoc unphi program.phi
eoc unphi dir
For now, I have to run phi, get .eoc and then use it in unphi.
phi
This script will unphi the files in try-unphi/phi and copy them to try-unphi/unphi.
try-unphi/phi
try-unphi/unphi
set -euo pipefail if ! [ -d node_modules ]; then npm i; fi shopt -s expand_aliases EO="0.35.5" alias eo="npx eoc --parser=${EO}" DIR=try-unphi function prepare_directory { printf "\nClean the $DIR directory\n\n" mkdir -p $DIR/init mkdir -p $DIR/phi mkdir -p $DIR/tmp mkdir -p $DIR/unphi } function enter_directory { printf "\nEnter the $DIR directory\n\n" cd $DIR } function init_eoc { printf "\nGenerate an initial .eoc directory\n\n" cd init if [ ! -d .eoc ]; then cat <<EOM > test.eo +alias org.eolang.io.stdout +architect yegor256@gmail.com +home https://github.com/objectionary/eo +tests +package org.eolang +version 0.0.0 # Test. [] > prints-itself gt. > @ length. as-phi $ 0 EOM eo phi fi cd .. } function unphi { printf "\nUnphi\n\n" cd tmp rsync -r ../phi/ . rsync -r ../init/.eoc . eo unphi rsync -r .eoc/unphi/ --exclude org .eoc/2-optimize eo print rsync -r .eoc/print/ --exclude org ../unphi cd .. } prepare_directory enter_directory init_eoc unphi
The text was updated successfully, but these errors were encountered:
@yegor256, @maxonfjvipon, please advise a simpler way to run unphi if there's one.
Sorry, something went wrong.
@deemp you can use --target=/my/foo, which will make eoc use /my/foo instead of ~/.eoc
--target=/my/foo
eoc
/my/foo
~/.eoc
No branches or pull requests
I want to be able to run
unphi
.eoc
from somewhereI want to be able to run something like
eoc unphi program.phi
oreoc unphi dir
.For now, I have to run
phi
, get.eoc
and then use it inunphi
.This script will
unphi
the files intry-unphi/phi
and copy them totry-unphi/unphi
.The text was updated successfully, but these errors were encountered: