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. # CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
# #
csi -q -b \ OWD="`pwd`"
bbstool.scm \ 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 %.import.scm: %.scm
rm -f $@ rm -f $@
$(CSC) -P -J $< $(CSC) -A -j $(patsubst %.scm,%,$<) $<
################################################################ ################################################################
# Modules # Modules