File: releaseDo.sh

package info (click to toggle)
bitseq 0.7.5+dfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 676 kB
  • sloc: cpp: 7,043; python: 562; makefile: 150; sh: 52
file content (52 lines) | stat: -rwxr-xr-x 1,039 bytes parent folder | download | duplicates (2)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/bash

# Script that automizes creating new BitSeq release.
# Copies relevant files listed in releaseList, uses _release_Makefile as new Makefile
# (make sure it's correct) and copies directories boost and samtools.

if [ $# -ne 1 ]
then
   echo "reselaseDo.sh [dirName]"
   exit
fi

DIR=$1

if [ -d $DIR ]
then
   echo "Direcotry $DIR already exists!";
   exit
fi

mkdir $DIR

# Cleanup:
make clean-all

#svn export asa103 $DIR/asa103
if [[ -d .svn ]]
then
   svn export asa103 $DIR/asa103
   svn export boost $DIR/boost
   svn export samtools $DIR/samtools
else
   echo "Copying boost to '$DIR'."
   cp -r boost $DIR
   cp -rv asa103 boost samtools $DIR
fi

cp -v _release_Makefile $DIR/Makefile

cp -v $( cat releaseList ) $DIR

echo "==================" >> $DIR/README
date >> $DIR/README
if [[ -d .svn ]]
then
   svn info | grep -e "^Revision:" >> $DIR/README
else
   git log -1 | grep "commit" >> $DIR/README
fi

echo "REMINDERs:"
echo "File Makefile contains current version of BitSeq, please update if haven't done already."