summaryrefslogtreecommitdiffstats
path: root/retire.sh
diff options
context:
space:
mode:
authorMichel Salim <salimma@fedoraproject.org>2011-03-25 09:18:21 +0100
committerMichel Salim <salimma@fedoraproject.org>2011-03-25 09:18:21 +0100
commitb9327539b15970481368be6b59935c1a9196be8e (patch)
treee66d87848a00016e8df6f2fabce5a9f5a7f1a891 /retire.sh
parenta8b3c108847dc7600eb38d46be0f36cf9f353ce2 (diff)
downloadspecs-b9327539b15970481368be6b59935c1a9196be8e.tar.gz
specs-b9327539b15970481368be6b59935c1a9196be8e.tar.xz
specs-b9327539b15970481368be6b59935c1a9196be8e.zip
Add script for retiring specs & SRPMs
Diffstat (limited to 'retire.sh')
-rwxr-xr-xretire.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/retire.sh b/retire.sh
new file mode 100755
index 0000000..9c64dd8
--- /dev/null
+++ b/retire.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+DIR=`dirname $1`
+PKGNAME=`basename $1 | sed -e 's|.spec$||'`
+
+git rm $1 && git commit && ./push.sh
+
+rm -i $DIR/$PKGNAME-[0-9]*.src.rpm
+fedora "rm -i public_html/specs/$DIR/$PKGNAME-[0-9]*.src.rpm"
+