2023-04-22 14:06:00 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
big feat & update commit, read description...
feat: regenerate packages & release (update option), letter based folder structure support, choose gpg key, config file, multiple architecture done
update: docs, comments in code, add, del, list, sign
i dont know honestly... docs will be updated later
2023-05-03 17:07:33 +02:00
|
|
|
if [ -z $1 ]; then
|
|
|
|
echo "error: --repodir is not set"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2023-04-22 14:06:00 +02:00
|
|
|
# make folders
|
big feat & update commit, read description...
feat: regenerate packages & release (update option), letter based folder structure support, choose gpg key, config file, multiple architecture done
update: docs, comments in code, add, del, list, sign
i dont know honestly... docs will be updated later
2023-05-03 17:07:33 +02:00
|
|
|
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
|
|
|
|
|