Make it run from different directory.
This commit is contained in:
parent
69d0b8ee10
commit
9689cb5471
2 changed files with 18 additions and 5 deletions
21
bbstool.sh
21
bbstool.sh
|
@ -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 \
|
||||
-- \
|
||||
"$@"
|
||||
|
|
|
@ -77,7 +77,7 @@ clean:
|
|||
|
||||
%.import.scm: %.scm
|
||||
rm -f $@
|
||||
$(CSC) -P -J $<
|
||||
$(CSC) -A -j $(patsubst %.scm,%,$<) $<
|
||||
|
||||
################################################################
|
||||
# Modules
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue