f5f1650063
OBS-URL: https://build.opensuse.org/request/show/676190 OBS-URL: https://build.opensuse.org/package/show/Java:packages/scala?expand=0&rev=1
22 lines
452 B
Bash
22 lines
452 B
Bash
#!/bin/sh
|
|
set -x
|
|
|
|
VER="$(sed -n 's/Version:\s*//p' *.spec)"
|
|
|
|
FNS=scala-$VER
|
|
|
|
rm -rf $FNS/
|
|
git clone git://github.com/scala/scala.git $FNS
|
|
cd $FNS
|
|
git checkout v$VER
|
|
git log --pretty=format:"%H%n%ci" v$VER | head -n 2 | \
|
|
sed -e 's/\-//g' -e 's/\s\+.*//g' >../scala.gitinfo
|
|
cd ..
|
|
tar -zcf $FNS.tgz --exclude $FNS/.git $FNS/
|
|
cd $FNS
|
|
./pull-binary-libs.sh
|
|
rm -rf lib/jline.jar
|
|
tar -zcf ../$FNS-bootstrap.tgz --exclude .git lib/*.jar
|
|
cd ..
|
|
rm -rf $FNS/
|