debrepo/scripts/repoinit.sh

30 lines
486 B
Bash
Raw Permalink Normal View History

2023-04-22 14:06:00 +02:00
#!/bin/sh
if [ -z $1 ]; then
echo "error: --repodir is not set"
exit 1
fi
2023-04-22 14:06:00 +02:00
# make folders
mkdir -p $1/apt-repo/dists/stable/main/binary-amd64/
mkdir -p $1/apt-repo/pool/main/
2023-04-22 14:06:00 +02:00
2023-05-08 11:08:25 +02:00
# make config file
echo \
"#!/bin/sh
# Repository preferences
DEFAULT_GPG=\"\"
# Repository info
ORIGIN=\"example.com\"
LABEL=\"example repository\"
SUITE=\"stable\"
CODENAME=\"stable\"
VERSION=\"1.0\"
ARCHITECTURES=\"amd64\"
COMPONENTS=\"main\"
DESCRIPTION=\"example repository\"
" > $1/apt-repo/config