forked from supermamon/Reposi3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrepo.sh
executable file
·26 lines (23 loc) · 930 Bytes
/
repo.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
script_full_path=$(dirname "$0")
cd $script_full_path || exit 1
rm Packages Packages.bz2 Packages.xz Packages.zst Release
apt-ftparchive packages ./pool > Packages
zstd -q -c19 Packages > Packages.zst
xz -c9 Packages > Packages.xz
bzip2 -c9 Packages > Packages.bz2
echo "[Repository] Generating Release..."
apt-ftparchive \
-o APT::FTPArchive::Release::Origin="Ataro's repo" \
-o APT::FTPArchive::Release::Label="Ataro's repo" \
-o APT::FTPArchive::Release::Suite="stable" \
-o APT::FTPArchive::Release::Version="2.0" \
-o APT::FTPArchive::Release::Codename="ios" \
-o APT::FTPArchive::Release::Architectures="iphoneos-arm" \
-o APT::FTPArchive::Release::Components="main" \
-o APT::FTPArchive::Release::Description="my repo for "things" that I make" \
release . > Release
echo "we done here!!!"
git add .
git commit -m "add package"
git push