blob: 95a07a2897c8593cdda6ef8ed45cfdaea3c2ca8f (
plain) (
blame)
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
|
#!/bin/sh
wget 'https://projects.archlinux.org/svntogit/packages.git/plain/trunk/PKGBUILD?h=packages/emacs' >/dev/null 2>/dev/null
wget 'https://projects.archlinux.org/svntogit/packages.git/plain/trunk/emacs.install?h=packages/emacs' >/dev/null 2>/dev/null
mv 'PKGBUILD?h=packages%2Femacs' PKGBUILD.upstream.new
mv 'emacs.install?h=packages%2Femacs' emacs.install.upstream.new
if [ $? = 0 ]; then
grep ^pkg < PKGBUILD.upstream.new | md5sum > new-sum
touch sum
if [ "$(cat sum)" = "$(cat new-sum)" ]; then
rm new-sum
else
mv new-sum sum
diff PKGBUILD.upstream.{old,new} > PKGBUILD.upstream.diff
diff emacs.install.upstream.{old,new} > emacs.install.upstream.diff
mv PKGBUILD.upstream.{new,old}
mv emacs.install.upstream.{new,old}
echo 'emacs-gtk2'
fi
else
echo 'emacs-gtk2 (unfetchable)'
fi
|