]> git.sven.stormbind.net Git - sven/vym.git/blob - scripts/getbinaries
1a9f2ea076727608d32ecf13f728d1b0407f9805
[sven/vym.git] / scripts / getbinaries
1 #!/bin/bash
2
3 CONFIG=makedist.config
4
5 if [ ! -f $CONFIG ]; then
6     echo Configuration missing: $CONFIG
7     echo Please set the following variables in $CONFIG
8     echo in you current directory:
9     echo
10     echo 'VERSION=x.y.z   #use desired version'
11     echo 'BRANCH="master" #or e.g. "maintained-release"'
12     echo 'REMOTE="sf"     #depending on your git configuration'
13     exit
14 else    
15     . $CONFIG
16 fi    
17
18 # Init
19 OLDDIR=$(pwd)
20 SRCDIR=$OLDDIR/vym
21 TMPDIR=$OLDDIR/tmp
22
23 echo "Getting sources for: vym"  
24 echo "             Branch: $BRANCH"
25 echo "             Branch: $VERSION"
26 echo "  Working directory: $OLDDIR"
27 echo 
28
29
30 #Specific init:
31 BINDIR=$OLDDIR/binaries
32 DOCDIR=$TMPDIR/tex
33
34 echo Creating $BINDIR...
35 mkdir $BINDIR
36
37 echo Remove current content from $BINDIR...
38 rm $BINDIR/* 
39
40 echo Copy README.txt INSTALL.txt LICENCSE.txt...
41 cp $SRCDIR/README.txt $SRCDIR/INSTALL.txt $SRCDIR/LICENSE.txt $BINDIR
42
43 echo Copy pdfs... 
44 cp $DOCDIR/*.pdf $BINDIR
45
46 echo Copy source tarball
47 cp $OLDDIR/vym-$VERSION.tar.bz2 $BINDIR
48
49 echo Get binaries from OBS
50 osc getbinaries xUbuntu_11.10 i586
51 osc getbinaries xUbuntu_11.10 x86_64
52 osc getbinaries openSUSE_12.1 i586
53 osc getbinaries openSUSE_12.1 x86_64
54
55 echo Removing logfile
56 rm $BINDIR/rpmlint.log
57
58 ls -l $BINDIR