Fix compilation script for the new matchable egg - pee - Pee a password manager;Pee - because you have to...
(HTM) git clone git://vernunftzentrum.de/pee.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit e04ed05a2fc0185d12e3d5aa6347f188e8e6c17e
(DIR) parent 93c8cb0088f2794cff7a1d73c92cc1f4ca0ed45d
(HTM) Author: Christian Kellermann <ckeen@pestilenz.org>
Date: Tue, 19 Apr 2016 16:03:21 +0200
Fix compilation script for the new matchable egg
The new matchable egg includes a file so we have to change dirs
accordingly, then move the object file to top level.
Diffstat:
static-compilation.sh | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
---
(DIR) diff --git a/static-compilation.sh b/static-compilation.sh
@@ -1,4 +1,5 @@
#!/bin/sh
+set -e
chicken-install -r blob-utils >/dev/null || echo Fetching blob-utils has failed.
chicken-install -r check-errors >/dev/null || echo Fetching check-errors has failed.
@@ -9,18 +10,19 @@ chicken-install -r string-utils >/dev/null || echo Fetching string-utils has fai
chicken-install -r stty >/dev/null || echo Fetching stty has failed.
chicken-install -r tweetnacl >/dev/null || echo Fetching tweetnacl has failed.
-csc -emit-import-library matchable -c matchable/matchable.scm -o matchable.o
+cd matchable
+csc -unit matchable -emit-import-library matchable -c matchable.scm -o matchable.o
+mv matchable.o ..; cd ..
csc -unit blob-hexadecimal -uses type-checks -uses to-hex -emit-import-library blob-hexadecimal -c blob-utils/blob-hexadecimal.scm -o blob-hexadecimal.o
csc -unit crypto-helper -uses blob-hexadecimal -emit-import-library crypto-helper -c crypto-helper.scm -c blake2s-ref.c -o crypto-helper.o -C --std=c99
csc -unit foreigners -uses matchable -emit-import-library foreigners -c foreigners/foreigners.scm -o foreigners.o
csc -unit getopt-long -uses srfi-13 -uses srfi-14 -uses data-structures -uses matchable -Jc getopt-long/getopt-long.scm -o getopt-long.o
-csc -unit matchable -emit-import-library matchable -c matchable/matchable.scm -o matchable.o
csc -unit to-hex -emit-import-library to-hex -c string-utils/to-hex.scm -o to-hex.o
csc -unit tweetnacl -emit-import-library tweetnacl -c tweetnacl/tweetnacl.scm -c tweetnacl/tweetnacl.impl.c -C -I./tweetnacl -o tweetnacl.o
csc -unit type-checks -uses type-errors -J -c ./check-errors/type-checks.scm -o type-checks.o
csc -unit type-errors -J -c ./check-errors/type-errors.scm -o type-errors.o
csc -uses matchable -uses foreigners -c stty/stty.scm -emit-import-library stty -unit stty -o stty.o
-csc -uses srfi-1,srfi-4,srfi-14,utils,stty,crypto-helper,tweetnacl,getopt-long,matchable -c pee.scm -o pee.o
+csc -uses srfi-1,srfi-4,srfi-13,srfi-14,utils,stty,crypto-helper,tweetnacl,getopt-long,matchable -c pee.scm -o pee.o
csc -static *o ./tweetnacl/tweetnacl.impl.o -o pee
strip ./pee