File: get-orig-source

package info (click to toggle)
libjpfcodegen-java 0.4%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 260 kB
  • ctags: 86
  • sloc: java: 601; xml: 232; sh: 12; makefile: 6
file content (20 lines) | stat: -rwxr-xr-x 543 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash

DIR=$(mktemp -d)
SUFFIX=+dfsg1

pushd $DIR

svn export https://jabref.svn.sourceforge.net/svnroot/jabref/tags/jpfcodegen-0.4 libjpfcodegen-0.4${SUFFIX}.orig

rm -rv  libjpfcodegen-0.4${SUFFIX}.orig/lib
rm -v   libjpfcodegen-0.4${SUFFIX}.orig/resources/website/sh_*.min.js
tar cfz libjpfcodegen_0.4${SUFFIX}.orig.tar.gz libjpfcodegen-0.4${SUFFIX}.orig
rm -r   libjpfcodegen-0.4${SUFFIX}.orig

popd

mv $DIR/libjpfcodegen_0.4${SUFFIX}.orig.tar.gz ../
rm -r $DIR

echo "Done. Have fun with ../libjpfcodegen_0.4${SUFFIX}.orig.tar.gz"