File: orig-tar.sh

package info (click to toggle)
libnb-javaparser-java 7.4-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 35,940 kB
  • ctags: 55,696
  • sloc: java: 264,137; xml: 2,781; sh: 1,135; makefile: 425
file content (20 lines) | stat: -rwxr-xr-x 424 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

VERSION=$2
FILE=$3

SVERSION=`echo $VERSION | tr -d "."`

# The file isn't the real file, but we've been given the version number
# we need to get.

rm -f $FILE

echo "Fetching mercurial repository and extracting version $VERSION"

hg clone http://hg.netbeans.org/main/nb-javac/
cd nb-javac
hg archive -t tgz -r release${SVERSION}_base ../../libnb-javaparser-java_${VERSION}.orig.tar.gz
cd ../
rm -rf nb-javac