Make it run from different directory.

This commit is contained in:
Dominik Pantůček 2023-04-01 10:12:30 +02:00
parent 69d0b8ee10
commit 9689cb5471
2 changed files with 18 additions and 5 deletions

View file

@ -24,7 +24,20 @@
# CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#
csi -q -b \
bbstool.scm \
-- \
"$@"
OWD="`pwd`"
TF=${0}
TD=${TF%/*}
if [ ${TF} = ${TD} ] ; then
TD=.
fi
cd ${TD}
cd src
SD="`pwd`"
cd ${OWD}
SRP="`chicken-install -repository`"
RP=${SD}
CHICKEN_REPOSITORY_PATH="$SRP:$RP" csi -q -b \
-I ${SD} \
${SD}/bbstool.scm \
-- \
"$@"

View file

@ -77,7 +77,7 @@ clean:
%.import.scm: %.scm
rm -f $@
$(CSC) -P -J $<
$(CSC) -A -j $(patsubst %.scm,%,$<) $<
################################################################
# Modules