Make the scheme scripts executables to protect them from Guix reading them

This commit is contained in:
retropikzel 2024-10-11 08:43:26 +03:00
parent 4213bfb17f
commit 60f912bfbb
3 changed files with 6 additions and 2 deletions

View File

@ -2,10 +2,10 @@ TMPDIR=/tmp/snow-fort-guix-channel
build: repo.scm build: repo.scm
mkdir -p ${TMPDIR}/hashes mkdir -p ${TMPDIR}/hashes
gosh -r7 get-package-urls.r7rs-scm > ${TMPDIR}/package-urls.txt ./get-package-urls > ${TMPDIR}/package-urls.txt
sh ensure-hashes.sh ${TMPDIR}/hashes ${TMPDIR}/package-urls.txt sh ensure-hashes.sh ${TMPDIR}/hashes ${TMPDIR}/package-urls.txt
mkdir -p packages mkdir -p packages
gosh -r7 build.r7r-scm ${TMPDIR} ./build-repo ${TMPDIR}
repo.scm: repo.scm:
wget https://snow-fort.org/s/repo.scm wget https://snow-fort.org/s/repo.scm

2
build.r7rs-scm → build-repo Normal file → Executable file
View File

@ -1,3 +1,5 @@
#!/usr/bin/env -S gosh -r7
(import (scheme base) (import (scheme base)
(scheme read) (scheme read)
(scheme write) (scheme write)

2
get-package-urls.r7rs-scm → get-package-urls Normal file → Executable file
View File

@ -1,3 +1,5 @@
#!/usr/bin/env -S gosh -r7
(import (scheme base) (import (scheme base)
(scheme read) (scheme read)
(scheme write) (scheme write)