This commit is contained in:
2025-12-23 17:30:45 +02:00
parent 23713dbdda
commit 8ebf31bdfb
5 changed files with 43 additions and 8 deletions
+7 -1
View File
@@ -60,6 +60,12 @@ build-gauche:
echo "gosh -r7 -I ${PREFIX}/lib/compile-scheme -I ${PREFIX}/lib/compile-scheme/libs ${PREFIX}/lib/compile-scheme/compile-scheme.scm \"\$$@\"" >> compile-scheme
chmod +x compile-scheme
build-gauche.bat:
echo "@echo off" > compile-scheme.bat
echo "; & @echo off & gosh.exe -r7 \"%~f0\" %* & exit /b" > compile-scheme.bat
echo "gosh -r7 -I ${PREFIX}/lib/compile-scheme -I ${PREFIX}/lib/compile-scheme/libs ${PREFIX}/lib/compile-scheme/compile-scheme.scm \"\$$@\"" >> compile-scheme
chmod +x compile-scheme
build-guile:
echo "#!/bin/sh" > compile-scheme
echo "guile --r7rs --auto-compile -I -q -L ${PREFIX}/lib/compile-scheme ${PREFIX}/lib/compile-scheme/compile-scheme.scm \"\$$@\"" >> compile-scheme
@@ -94,7 +100,7 @@ install:
install compile-scheme ${PREFIX}/bin/compile-scheme
mkdir -p ${PREFIX}/share/man/man1
cp doc/compile-scheme.1 ${PREFIX}/share/man/man1/
if [ -d /etc/bash_completion.d ]; then cp bash_completion.sh /etc/bash_completion.d/compile-scheme; fi
-if [ -d /etc/bash_completion.d ]; then cp bash_completion.sh /etc/bash_completion.d/compile-scheme; fi
uninstall:
rm -rf ${PREFIX}/lib/compile-scheme