Make it run from different directory.
This commit is contained in:
parent
69d0b8ee10
commit
9689cb5471
2 changed files with 18 additions and 5 deletions
17
bbstool.sh
17
bbstool.sh
|
@ -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 \
|
||||||
-- \
|
-- \
|
||||||
"$@"
|
"$@"
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue