-
Notifications
You must be signed in to change notification settings - Fork 0
/
genCHANGES
executable file
·35 lines (31 loc) · 957 Bytes
/
genCHANGES
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
27
28
29
30
31
32
33
Exec("echo '--- '`date`");
if GAPVersionold <> GAPVersion then
Print("Core GAP upgraded from ",GAPVersionold," to ",GAPVersion,"\n");
fi;
if true then
pold := List(PackageVersionsold, a-> a[1]);
rold := rec(); for a in PackageVersionsold do rold.(a[1]) := a[2]; od;
pnew := List(PackageVersions, a-> a[1]);
rnew := rec(); for a in PackageVersions do rnew.(a[1]) := a[2]; od;
del := Difference(pold, pnew);
if Length(del) > 0 then
Print("Removed packages:\n");
for a in del do
Print(" ", a, "\n");
od;
fi;
new := Difference(pnew, pold);
if Length(new) > 0 then
Print("New packages:\n");
for a in new do
Print(" ",a," Version ",rnew.(a),"\n");
od;
fi;
upgr := Filtered(Intersection(pold, pnew), a-> rold.(a) <> rnew.(a));
if Length(upgr) > 0 then
Print("Upgraded packages:\n");
for a in upgr do
Print(" ",a," Version ",rold.(a)," -> ",rnew.(a), "\n");
od;
fi;
fi;