From c9f5e7a7ba7282c719096dde8035583e1e791e10 Mon Sep 17 00:00:00 2001 From: Martin Scheidt Date: Fri, 11 Mar 2022 11:31:08 +0100 Subject: [PATCH] added fall back if development package is not installed --- .github/workflows/testing.yml | 3 --- build.sh | 7 ++++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 668164a..978ed94 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -35,8 +35,5 @@ jobs: profile-path: ${{ github.workspace }}/.github/tex/profile.minimal.txt packages-path: ${{ github.workspace }}/.github/tex/packages.test.txt - - name: "install tikz-trackschematic" - run: ./build.sh --non-interactive --install-dev - - name: "test tikz-trackschematic" run: ./build.sh --non-interactive --test --verbose diff --git a/build.sh b/build.sh index 67523e0..959c618 100755 --- a/build.sh +++ b/build.sh @@ -341,12 +341,13 @@ check_trackschematic() { ls $DEVDIR/tikz-trackschematic-dev.sty >> /dev/null 2>&1 || STATUS=1 if [ $STATUS = 0 ]; then - log_note "tikz-trackschematic-dev found" + log_note "Package tikz-trackschematic-dev found." return 0 fi - log_error "Library 'tikz-trackschematic-dev' not found. Be sure to have tikz-trackschematic-dev installed!" - exit 1 + log_note "Package 'tikz-trackschematic-dev' not found - using project src/." + + export TEXINPUTS=.:../src/:$TEXINPUTS } ## checks for updated repository