File: makerelease.sh

package info (click to toggle)
aoflagger 3.4.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,960 kB
  • sloc: cpp: 83,076; python: 10,187; sh: 260; makefile: 178
file content (26 lines) | stat: -rwxr-xr-x 784 bytes parent folder | download | duplicates (6)
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
#! /bin/bash
if [[ "$1" == "" ]] ; then
    echo Usage: ${0} \<version\>
else
    VERSION="$1"
    echo Check if these values inside src/version.h are right:
    cat ../src/version.h
    curdir=`pwd`
    cd ${curdir%/scripts}
# To use current work tree attributes: "--worktree-attributes"
    git archive --format=tar --prefix=aoflagger-${VERSION}/ master | bzip2 -9 > ${curdir}/aoflagger-${VERSION}.tar.bz2 &&

    mkdir /tmp/buildaoflagger${VERSION}
    cd /tmp/buildaoflagger${VERSION}
    tar -xjvf ${curdir}/aoflagger-${VERSION}.tar.bz2
    cd aoflagger-${VERSION}
    mkdir build
    cd build
    cmake ../ -DPORTABLE=True
    make -j 4 && make check -j 4
    
    cd ${curdir}
    rm -rf /tmp/buildaoflagger${VERSION}
	
    echo Wrote ${curdir}/aoflagger-${VERSION}.tar.bz2
fi