From 7206f790d041b11720dc01e159188e59f8dc01aa Mon Sep 17 00:00:00 2001 From: Danila Danko Date: Wed, 10 Jan 2024 02:49:35 +0300 Subject: [PATCH] refactor: pipeline script --- pipeline.sh | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/pipeline.sh b/pipeline.sh index 39474f406..a0697e85d 100755 --- a/pipeline.sh +++ b/pipeline.sh @@ -1,8 +1,10 @@ -#!/bin/bash -set -x -set -e +mkdir -p pipeline +cd pipeline + +shopt -s expand_aliases EO=0.34.2 +alias eo="eoc --parser=${EO}" cat > app.eo < app @@ -10,26 +12,26 @@ cat > app.eo < before.txt +eo clean +eo link +eo --alone dataize app > before.txt -eoc "--parser=${EO}" phi +eo phi # Now, you modify/normalize this file: # .eoc/phi/app.phi -eoc "--parser=${EO}" unphi +eo unphi cp .eoc/unphi/app.xmir .eoc/2-optimize/app.xmir -eoc "--parser=${EO}" print +eo print cp .eoc/print/app.eo app.eo -eoc "--parser=${EO}" clean -eoc "--parser=${EO}" link -eoc "--parser=${EO}" --alone dataize app > after.txt +eo clean +eo link +eo --alone dataize app > after.txt if [ "$(cat before.txt)" == "$(cat after.txt)" ]; then echo 'SUCCESS'