summaryrefslogtreecommitdiffstats
path: root/move
blob: 59df8538b9f00cbfd1bb607b84bfb8a2a9bd80a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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