File: get-orig-source

package info (click to toggle)
neobio 0.0.20030929-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 3,216 kB
  • sloc: java: 3,231; sh: 39; makefile: 19
file content (23 lines) | stat: -rw-r--r-- 711 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
set -x
VERSION=`dpkg-parsechangelog | grep '^Version:' | sed 's/^Version: \(.*\)-1/\1/'`
ZIPF=neobio_${VERSION}.zip
REPACKED=neobio-${VERSION}
TARBALLS=`pwd`/../tarballs

mkdir -p ${TARBALLS}
cd ${TARBALLS}
[ -f ${ZIPF} ] || wget -q -O ${ZIPF}  http://sourceforge.net/projects/neobio/files/neobio/pre-alpha/neobio.zip
rm -rf ${REPACKED}
mkdir  ${REPACKED}
cd     ${REPACKED}
unzip -q ../${ZIPF}
find . -name "*.class"   -delete
find . -name "Thumbs.db" -delete
find . -name "*.ps"      -delete
find . -name "*.pdf"     -delete
find . -empty -type d -delete
cd ..
GZIP="--best --no-name" tar --owner=root --group=root --mode=a+rX -czf neobio_${VERSION}.orig.tar.gz ${REPACKED}
rm -rf ${REPACKED}
cd ..