File: orig-tar.sh

package info (click to toggle)
scala 2.11.12-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 62,828 kB
  • sloc: javascript: 28,808; java: 13,415; xml: 3,250; sh: 1,620; python: 756; makefile: 38; awk: 36; ansic: 6
file content (31 lines) | stat: -rwxr-xr-x 1,087 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh
set -e

VERSION=$2
DIR=scala-${VERSION}
TAR=../scala_${VERSION}.orig.tar.xz

mkdir $DIR
tar -xf $3 --strip-components=1 -C $DIR
rm $3

# Replace the minified JavaScript files
JS_DIR=$DIR/src/scaladoc/scala/tools/nsc/doc/html/resource/lib

rm $JS_DIR/jquery.js
rm $JS_DIR/jquery-ui.js
rm $JS_DIR/modernizr.custom.js
rm $JS_DIR/raphael-min.js
rm $JS_DIR/tools.tooltip.js
rm $DIR/spec/public/scripts/highlight.pack.js

wget http://code.jquery.com/jquery-1.8.2.js                                        -O $JS_DIR/jquery.js
wget http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.0/jquery-ui.js              -O $JS_DIR/jquery-ui.js
wget http://modernizr.com/downloads/modernizr-2.5.3.js                             -O $JS_DIR/modernizr.custom.js
wget https://raw.githubusercontent.com/DmitryBaranovskiy/raphael/v2.1.0/raphael.js -O $JS_DIR/raphael-min.js
wget https://raw.githubusercontent.com/hungryblank/octosquashes-pub/master/couch/src/js/01_tools.tooltip-1.1.3.js -O $JS_DIR/tools.tooltip.js

XZ_OPT=--best tar -c -v -J -f $TAR \
    --exclude 'lib/ant' \
    $DIR
rm -Rf $DIR