summaryrefslogtreecommitdiffstats
path: root/move
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-12-18 10:33:16 +0100
committerRemi Collet <fedora@famillecollet.com>2015-12-18 10:33:16 +0100
commit4638f990ceb4b314ce15ddfcfeeb638432273c95 (patch)
tree8acbc0379ef0919d13c85483dd3e5a517b6f8473 /move
parentdaef766c2a953e4db3e9a69cbff8bf7a67788f85 (diff)
initial import
Diffstat (limited to 'move')
-rwxr-xr-xmove16
1 files changed, 16 insertions, 0 deletions
diff --git a/move b/move
new file mode 100755
index 00000000..59df8538
--- /dev/null
+++ b/move
@@ -0,0 +1,16 @@
+if [ "$1" == "" ]; then
+ echo "use $0 package [ from [ to ]]"
+ exit 1
+fi
+rpm=$1
+from=${2-test}
+to=${3-remi}
+
+for i in fedora/??/$from/*/$rpm* enterprise/?/$from/*/$rpm*
+do
+ if [ -f $i ]
+ then
+ j=$(echo $i | sed -e "s:/$from/:/$to/:")
+ ln $i $j && basename $i
+ fi
+done