File: makerelease.sh

package info (click to toggle)
aoflagger 3.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 4,476 kB
  • sloc: cpp: 51,868; python: 152; sh: 25; makefile: 17
file content (26 lines) | stat: -rwxr-xr-x 784 bytes parent folder | download | duplicates (3)
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