File: get-orig-source

package info (click to toggle)
biojava4-live 4.2.12%2Bdfsg-3.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 107,308 kB
  • sloc: java: 246,191; xml: 27,590; makefile: 96; sh: 95; python: 64
file content (50 lines) | stat: -rwxr-xr-x 1,822 bytes parent folder | download | duplicates (4)
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
#!/bin/bash

set -e

PKG=`dpkg-parsechangelog | awk '/^Source/ { print $2 }'`
VERSION=`uscan --verbose --force-download |
    grep "Newest version of biojava4-live on remote site is .* local version is .*" |
    head -n 1 |
    sed "s/.*Newest version of biojava4-live on remote site is \([a-z0-9.]\+\),.*/\1/"`

mkdir -p ../tarballs

cd ../tarballs
UTAR="biojava-${VERSION}.tar.gz"
mv ../${UTAR} .
tar -xaf ${UTAR}

mv biojava-biojava-${VERSION} $PKG-${VERSION}.orig # .orig is requested by Developers Reference 3.4.4 ยง6.7.8.2

cd $PKG-${VERSION}.orig
	rm -rf target
	rm -rf biojava/dist/*.jar

mkdir -p biojava-forester/src/main/java
cd biojava-forester/src/main/java
 #wget http://www.biojava.org/download/maven/org/forester/forester-1.005-sources/1.005/forester-1.005-sources-1.005.jar
 #wget http://www.biojava.org/download/maven/org/forester/forester-lgpl/1.005/forester-lgpl-1.005-sources.jar
  wget -O forester-1.038-sources.jar "https://search.maven.org/remotecontent?filepath=org/biojava/thirdparty/forester/1.038/forester-1.038-sources.jar"
 #jar xf forester-1.005-sources-1.005.jar
 #jar xf forester-lgpl-1.005-sources.jar
 jar xf forester-1.038-sources.jar
 find . -name *.class | xargs rm -f
 rm -f resources/*.jar
 rm forester-1.038-sources.jar
 #rm forester-lgpl-1.005-sources.jar
 #rm forester-1.005-sources-1.005.jar
cd ../../../..
mkdir -p biojava-jcolorbrewer/src/main/java
cd biojava-jcolorbrewer/src/main/java
  wget -O jcolorbrewer-5.2-sources.jar "https://search.maven.org/remotecontent?filepath=org/biojava/jcolorbrewer/5.2/jcolorbrewer-5.2-sources.jar"
  jar xf jcolorbrewer-5.2-sources.jar
  rm jcolorbrewer-5.2-sources.jar
cd ../../../..
cd ..

tar --owner=root --group=root --mode=a+rX -caf ${PKG}_${VERSION}+dfsg.orig.tar.xz ${PKG}-${VERSION}.orig
rm -rf ${PKG}-${VERSION}.orig

rm ${UTAR}