summaryrefslogtreecommitdiffstats
path: root/mga-hdlists
blob: da09a2e98fae8ad6ae45b9532aaeae1c35bab886 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

set -e

LOCALDIR="$(dirname $0)"
if [ -d "$LOCALDIR/.git" -a -f "$LOCALDIR/functions" ]; then
  . "$LOCALDIR/functions"
else
  . /usr/share/mgatools/functions
fi

if [ $# != 3 ]; then
    echo "Usage: $0 [--dry-run] <release> <section> <subsection>" >&2
    exit 1
fi

release="$1"
section="$2"
subsection="$3"

update_distro_hdlist "$release" "$section" "$subsection"
update_common_MD5SUM "$release"
mirror_repository "$release"