source: npl/syncdeb @ d849d83

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
4if ! [ -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
10fi
11
12DEVDIR=./apt_main_archive/dev
13
14echo "Scanning svn tree..."
15for PKG in `find . -name *.pkg| sed 's#.*/##' | sed 's/.pkg$//' `; do
16        echo -n "Checking $PKG: ";
17        ./getdeb $PKG $DEVDIR || exit 1
18done
19
20pushd $DEVDIR
21
22echo "Updating archive packages list..."
23apt-ftparchive packages -d=Packages.db . > Packages || exit 1
24gzip -c Packages > Packages.gz || exit 1
25
26echo "Releasing archive..."
27apt-ftparchive release . > Release || exit 1
28
29echo "Signing the archive..."
30gpg -abs -o Release.gpg Release || exit 1
31
32popd
33
34echo "Synconising the archive to the main mirror..."
35rsync...
Note: See TracBrowser for help on using the repository browser.