-
Notifications
You must be signed in to change notification settings - Fork 0
/
cast.sh
executable file
·32 lines (28 loc) · 918 Bytes
/
cast.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
set -o errexit nounset pipefail
if [[ "${TRACE-0}" == "1" ]]; then set -o xtrace; fi
cd "$(dirname "$0")"
echo "Casting…"
if [ ! -x "./bootstrap" ]; then
echo "./bootstrap script not found! Are You in the project directory?";
exit;
fi
if [ ! -x "./incant.sh" ]; then
echo "./incant.sh script not found! Are You in the project directory?";
exit;
fi
if [ -f "build" ]; then
echo "File 'build' needs renamed, so we can have a build/ directory.";
exit;
fi
./incant.sh
# guix build -K -f guix.scm bash coreutils
# For guile libraries:
# guix shell -f guix.scm bash coreutils guile --rebuild-cache --pure -v4 -- guile
#
# For guile scripts using my userlib:
guix shell -f guix.scm bash coreutils guile guile-cdr255 rlwrap --rebuild-cache --pure -v4
#
# Default:
#guix shell -f guix.scm bash coreutils --rebuild-cache --pure -v4
echo "Casting Complete. Make any needed changes now."