File: get-orig-source

package info (click to toggle)
eclipse-remote-services-api 8.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 1,140 kB
  • ctags: 1,690
  • sloc: java: 8,412; xml: 267; sh: 22; makefile: 6
file content (37 lines) | stat: -rwxr-xr-x 790 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
#!/bin/bash
set -e

NAME=eclipse-remote-services-api
VERSION=8.0
DEB_VERSION=8.0.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.remote

TARBALL=PTP_${VERSION_UNDERSCORE}.tar.bz2

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

mv $(basename $TARBALL .tar.bz2) ${NAME}-${DEB_VERSION}
cd ${NAME}-${DEB_VERSION}

rm -rf releng tests

find -type f -name .gitignore -delete
find -type f -name .cvsignore -delete

# 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}