blob: fb185858f45fdf57ef89b2f89a712c8d455dc5ff (
plain)
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/bash -u
TARBALL_DIR=./tarballs
function usage()
{
echo "Usage : $0 <gluster_release_tarball_list>"
exit 1
}
if [ $# -lt 1 ]
then
usage
fi
list=`echo $@`
for i in $list
do
if [ ! -f $TARBALL_DIR/$i ]
then
echo "$i not found in directory $TARBALL_DIR. Provide correct list."
exit
fi
done
sed -i "s/^RUNLIST=.*$/RUNLIST=\"$list\"/" batchrun
|