Rename and add installation target.
This commit is contained in:
parent
164cfa83c2
commit
759aa9b98d
3 changed files with 35 additions and 12 deletions
43
hackerbase.sh
Normal file
43
hackerbase.sh
Normal file
|
@ -0,0 +1,43 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# hackerbase.sh
|
||||
#
|
||||
# Runs the tool as Scheme script using csi.
|
||||
#
|
||||
# ISC License
|
||||
#
|
||||
# Copyright 2023 Brmlab, z.s.
|
||||
# Dominik Pantůček <dominik.pantucek@trustica.cz>
|
||||
#
|
||||
# Permission to use, copy, modify, and/or distribute this software
|
||||
# for any purpose with or without fee is hereby granted, provided
|
||||
# that the above copyright notice and this permission notice appear
|
||||
# in all copies.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
|
||||
# WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
|
||||
# WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
|
||||
# AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
|
||||
# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
|
||||
# OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
|
||||
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
|
||||
# CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
#
|
||||
|
||||
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}/hackerbase.scm \
|
||||
-- \
|
||||
"$@"
|
Loading…
Add table
Add a link
Reference in a new issue