File: mkorig

package info (click to toggle)
smlnj 110.79-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 82,508 kB
  • ctags: 117,516
  • sloc: ansic: 32,532; asm: 6,314; sh: 2,303; makefile: 1,821; perl: 1,170; pascal: 295; yacc: 190; cs: 78; python: 77; lisp: 19
file content (48 lines) | stat: -rwxr-xr-x 1,259 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
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/sh

# Builds upstream tarball
# Uses the new layout of 110.60 version

# Updated by Daniel Moerner in October 2009 to accept --upstream-version
# argument so this script can be called by uscan.

if [ "$1" != "--upstream-version" ] ; then
    echo "Usage: mkorig --upstream-version version"
    exit 1
fi

shift

version=$1
orig=../smlnj-$version

url=http://smlnj.cs.uchicago.edu/dist/working

root_tarballs="ckit config pgraph smlnj-lib MLRISC cml eXene heap2asm \
	       ml-burg ml-lex ml-yacc smlnj-c nlffi ml-lpt \
	       trace-debug-profile doc"
base_tarballs="cm compiler old-basis runtime system"
archs="x86 ppc sparc"

mkdir -p $orig
for t in $root_tarballs ; do
    wget -O $orig/$t.tgz $url/$version/$t.tgz
    tar ax -C $orig -f $orig/$t.tgz && rm -f $orig/$t.tgz
done

mkdir -p $orig/bootstrap
for t in $archs ; do
    img=boot.$t-unix.tgz
    wget -O $orig/bootstrap/$img $url/$version/$img
    tar ax -C $orig/bootstrap -f $orig/bootstrap/$img && rm -f $orig/bootstrap/$img
done

mkdir -p $orig/base
for t in $base_tarballs ; do
    wget -O $orig/base/$t.tgz $url/$version/$t.tgz
    tar ax -C $orig/base -f $orig/base/$t.tgz && rm -f $orig/base/$t.tgz
done

tar zcf ../smlnj_$version.orig.tar.gz $orig
rm -rf $orig
rm -f ../index.html