File: get-orig-source.sh

package info (click to toggle)
htmlunit-core-js 2.8-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch, wheezy
  • size: 5,804 kB
  • ctags: 10,088
  • sloc: java: 75,059; xml: 889; sh: 14; makefile: 11
file content (20 lines) | stat: -rwxr-xr-x 793 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

PACKAGE=htmlunit-core-js
SRC_VERSION=$2
TARBALL=../${PACKAGE}_${SRC_VERSION}.orig.tar.gz

rm -rf get-orig-source $TARBALL
mkdir get-orig-source
svn export https://htmlunit.svn.sourceforge.net/svnroot/htmlunit/tags/core-js-${SRC_VERSION} \
    get-orig-source/${PACKAGE}-${SRC_VERSION}
# remove CVS metadata
find get-orig-source/ -depth -name CVS -exec rm -r {} \;
find get-orig-source/ -name .cvsignore -exec rm  {} \;
# remove binary libraries
rm get-orig-source/${PACKAGE}-${SRC_VERSION}/lib/*
# remove non DFSG-compatible but not needed files
rm -r get-orig-source/${PACKAGE}-${SRC_VERSION}/rhino/toolsrc/org/mozilla/javascript/tools/debugger/downloaded
GZIP=--best tar czf $TARBALL -C get-orig-source ${PACKAGE}-${SRC_VERSION}
rm -rf get-orig-source
echo "  "$TARBALL" created"