gcc484ntopperl-5.22
Last change
on this file since d849d83 was
c5c522c,
checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago
|
initial commit, transferred from cleaned syn3 svn tree
|
-
Property mode set to
100755
|
File size:
862 bytes
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | |
---|
3 | |
---|
4 | if ! [ -d apt_main_archive ]; then |
---|
5 | echo "./apt_main_archive not found! Do you know what you're doing? :)" |
---|
6 | echo |
---|
7 | echo "Syncronises the central syn3 apt mirror with the syn3 svn tree." |
---|
8 | echo "Run this if there are new or changed syn3 packages you want to upload." |
---|
9 | exit 1 |
---|
10 | fi |
---|
11 | |
---|
12 | DEVDIR=./apt_main_archive/dev |
---|
13 | |
---|
14 | echo "Scanning svn tree..." |
---|
15 | for PKG in `find . -name *.pkg| sed 's#.*/##' | sed 's/.pkg$//' `; do |
---|
16 | echo -n "Checking $PKG: "; |
---|
17 | ./getdeb $PKG $DEVDIR || exit 1 |
---|
18 | done |
---|
19 | |
---|
20 | pushd $DEVDIR |
---|
21 | |
---|
22 | echo "Updating archive packages list..." |
---|
23 | apt-ftparchive packages -d=Packages.db . > Packages || exit 1 |
---|
24 | gzip -c Packages > Packages.gz || exit 1 |
---|
25 | |
---|
26 | echo "Releasing archive..." |
---|
27 | apt-ftparchive release . > Release || exit 1 |
---|
28 | |
---|
29 | echo "Signing the archive..." |
---|
30 | gpg -abs -o Release.gpg Release || exit 1 |
---|
31 | |
---|
32 | popd |
---|
33 | |
---|
34 | echo "Synconising the archive to the main mirror..." |
---|
35 | rsync... |
---|
Note: See
TracBrowser
for help on using the repository browser.