File: get-orig-source

package info (click to toggle)
eclipse-linuxtools 3.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 75,416 kB
  • ctags: 41,034
  • sloc: java: 262,051; xml: 34,770; ansic: 15,458; cpp: 326; sh: 261; makefile: 60
file content (53 lines) | stat: -rwxr-xr-x 1,443 bytes parent folder | download
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
53
#!/bin/bash
set -e

NAME=eclipse-linuxtools
VERSION=3.1.0b
DEB_VERSION=3.1.0

ECLIPSE_GIT_WEB=http://git.eclipse.org/c

rm -rf ${NAME}-${DEB_VERSION}

VERSION_UNDERSCORE=$(echo $VERSION | sed "s/\./_/g")
REPO_NAME=org.eclipse.linuxtools

TARBALL=${REPO_NAME}-${VERSION}.tar.bz2

wget "$ECLIPSE_GIT_WEB/linuxtools/$REPO_NAME.git/snapshot/$TARBALL"
tar xf $TARBALL
rm -f $TARBALL

mv ${REPO_NAME}-${VERSION} ${NAME}-${DEB_VERSION}
cd ${NAME}-${DEB_VERSION}

# RPM feature requires Eclipse 4.x, download the last compatible version
rm -rf rpm
wget "$ECLIPSE_GIT_WEB/linuxtools/$REPO_NAME.git/snapshot/${REPO_NAME}-2.2.1.tar.bz2" \
	-O oldtarball.tar.bz2
tar xf oldtarball.tar.bz2
mv ${REPO_NAME}-2.2.1/rpm .
rm -rf oldtarball.tar.bz2 ${REPO_NAME}-2.2.1

find -type f -name .gitignore -delete

# binaries
find -type f -name a.out -delete
find -type f -name *.libhover -delete

# GFDL invariant section - not DFSG compliant
rm -f libhover/org.eclipse.linuxtools.cdt.libhover.glibc/data/glibc-*.xml

# generated files
rm -f lttng/org.eclipse.linuxtools.ctf.parser/src/org/eclipse/linuxtools/ctf/parser/CTFLexer.java
rm -f lttng/org.eclipse.linuxtools.ctf.parser/src/org/eclipse/linuxtools/ctf/parser/CTFParser.java

# remove empty directories
find . -depth -type d -empty -delete

cd ..

echo "Creating tarball '${NAME}_${DEB_VERSION}.orig.tar.xz'..."
tar -cJf ../${NAME}_${DEB_VERSION}.orig.tar.xz $NAME-$DEB_VERSION

rm -rf ${NAME}-${DEB_VERSION}