blob: 5d6d21d9c98a64d74b0f3584a717d378514a2f27 (
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
26
27
28
29
30
31
32
33
34
35
|
#!/bin/sh
info()
{
echo "make-deploy: info: $1" 1>&2
}
if [ $# -ne 1 ]
then
info "usage: version"
exit 1
fi
VERSION="$1"
shift
PROJECTS=`./make-list-projects.sh` || exit 1
PLATFORMS=`cat make-platforms.txt | awk '{print $1}'` || exit 1
CURRENT_DIR=`pwd` || exit 1
# Set internal field separator to newlines so that ${PROJECTS} is
# tokenized per-line.
IFS="
"
for PROJECT_LINE in ${PROJECTS}
do
# Determine project name
NAME=`echo "${PROJECT_LINE}" | awk -F: '{print $1}'` || exit 1
NAME=`echo "${NAME}" | tr -d ' '` || exit 1
./make-deploy-one.sh "${NAME}" "${VERSION}"
done
|