Switch the shell scripts to be executables too

This commit is contained in:
retropikzel 2024-10-11 08:59:15 +03:00
parent d69ea2af02
commit 5787c97fcd
4 changed files with 2 additions and 18 deletions

View File

@ -1,5 +0,0 @@
FROM alpine:latest
RUN apk add guix
RUN mkdir -p ${HOME}/.config/guix
RUN echo "(cons (channel (name 'snow-fort) (url \"https://gitea.scheme.org/Rinne/snow-fort-guix-channel.git\")) %default-channels)" > ${HOME}/.config/guix/channels.scm
RUN guix-daemon & guix pull

View File

@ -1,5 +0,0 @@
FROM debian:stable-slim
RUN apt update && apt install -y guix
RUN mkdir -p ${HOME}/.config/guix
RUN echo "(cons (channel (name 'snow-fort) (url \"https://gitea.scheme.org/Rinne/snow-fort-guix-channel.git\")) %default-channels)" > ${HOME}/.config/guix/channels.scm
RUN guix-daemon & guix pull

View File

@ -3,19 +3,13 @@ TMPDIR=/tmp/snow-fort-guix-channel
build: repo.scm build: repo.scm
mkdir -p ${TMPDIR}/hashes mkdir -p ${TMPDIR}/hashes
./get-package-urls > ${TMPDIR}/package-urls.txt ./get-package-urls > ${TMPDIR}/package-urls.txt
sh ensure-hashes.sh ${TMPDIR}/hashes ${TMPDIR}/package-urls.txt ./ensure-hashes ${TMPDIR}/hashes ${TMPDIR}/package-urls.txt
mkdir -p packages mkdir -p packages
./build-repo ${TMPDIR} ./build-repo ${TMPDIR}
repo.scm: repo.scm:
wget https://snow-fort.org/s/repo.scm wget https://snow-fort.org/s/repo.scm
test-debian:
docker build . -f Dockerfile.debian
test-alpine:
docker build . -f Dockerfile.alpine
clean: clean:
rm -rf packages rm -rf packages

2
ensure-hashes.sh → ensure-hashes Normal file → Executable file
View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
TMPDIR=${1} TMPDIR=${1}