Subversion Repositories svn.mios32

Rev

Rev 1960 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1431 tk 1
# $Id: release.sh 2427 2016-11-03 01:47:58Z tk $
2
 
3
if [[ "$1" == "" ]]; then
4
  echo "SYNTAX: release.sh <release-directory>"
5
  exit 1
6
fi
7
 
8
RELEASE_DIR=$1
9
 
10
if [[ -e $RELEASE_DIR ]]; then
11
  echo "ERROR: the release directory '$RELEASE_DIR' already exists!"
12
  exit 1
13
fi
14
 
15
###############################################################################
16
echo "Creating $RELEASE_DIR"
17
 
18
mkdir $RELEASE_DIR
19
cp README.txt $RELEASE_DIR
20
cp CHANGELOG.txt $RELEASE_DIR
21
 
22
###############################################################################
2427 tk 23
#configs=( stm32f1 lpc17 stm32f4 )
24
configs=( lpc17 stm32f4 )
25
for i in "${configs[@]}"; do
26
  echo "Building for $i"
27
  source ../../../../source_me_${i}
28
  make cleanall
29
  mkdir -p $RELEASE_DIR/$MIOS32_BOARD
30
  make > $RELEASE_DIR/$MIOS32_BOARD/log.txt || exit 1
31
  cp project.hex $RELEASE_DIR/$MIOS32_BOARD
32
done
1431 tk 33
 
34
###############################################################################
35
make cleanall
36
echo "Done!"