summaryrefslogtreecommitdiffstats
path: root/pearup
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2013-03-20 09:39:06 +0100
committerRemi Collet <fedora@famillecollet.com>2013-03-20 09:39:06 +0100
commitc2213a3c63677926e1564ef3a8ef56d7f9c17bd5 (patch)
treeb02f1628cdee8093a6238b4a2827419b0ff97e06 /pearup
parent9e0cb3911d349bd13d1ea7985e038fa8ce393a0f (diff)
save remi repo management tools
Diffstat (limited to 'pearup')
-rwxr-xr-xpearup23
1 files changed, 23 insertions, 0 deletions
diff --git a/pearup b/pearup
new file mode 100755
index 0000000..9c66f35
--- /dev/null
+++ b/pearup
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+vendor="Remi Collet <remi@fedoraproject.org>"
+rpmdate=$(LC_ALL="C" date +"%a %b %d %Y")
+
+if [ $# -lt 2 ]; then
+ echo "usage $0 old new"
+ exit 1
+fi
+
+sed -e "/^Version:/s/$1/$2/" \
+ -e '/^Release:/s/[0-9].*$/1%{?dist}/' \
+ -e "s/%changelog/%changelog\n* $rpmdate $vendor - $2-1\n- Update to $2\n/" \
+ -e 's/\$RPM_BUILD_ROOT/%{buildroot}/' \
+ -i *spec
+
+spectool -g -S *spec
+
+tar xf *-$1.tgz package.xml && mv package.xml package-$1.xml
+tar xf *-$2.tgz package.xml && mv package.xml package-$2.xml
+
+colordiff package-$1.xml package-$2.xml
+