build-scripts/147/25-onnv-prepare-env-file.sh
author Andrzej Szeszo <aszeszo@gmail.com>
Sun, 03 Oct 2010 14:10:02 +0100
changeset 12 e4056f778757
parent 11 7da85ca47b86
permissions -rwxr-xr-x
Minor changes to the scripts.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
11
7da85ca47b86 Added Caiman support and made few fixes to the pkg and onnv scripts
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff changeset
     1
#!/bin/sh
7da85ca47b86 Added Caiman support and made few fixes to the pkg and onnv scripts
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff changeset
     2
7da85ca47b86 Added Caiman support and made few fixes to the pkg and onnv scripts
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff changeset
     3
set -e
7da85ca47b86 Added Caiman support and made few fixes to the pkg and onnv scripts
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff changeset
     4
7da85ca47b86 Added Caiman support and made few fixes to the pkg and onnv scripts
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff changeset
     5
PATH=/usr/sbin:/sbin:/usr/bin
7da85ca47b86 Added Caiman support and made few fixes to the pkg and onnv scripts
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff changeset
     6
7da85ca47b86 Added Caiman support and made few fixes to the pkg and onnv scripts
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff changeset
     7
BRFS=rpool/br
7da85ca47b86 Added Caiman support and made few fixes to the pkg and onnv scripts
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff changeset
     8
7da85ca47b86 Added Caiman support and made few fixes to the pkg and onnv scripts
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff changeset
     9
[ -e $HOME/.oibldenvrc ] && . $HOME/.oibldenvrc
7da85ca47b86 Added Caiman support and made few fixes to the pkg and onnv scripts
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff changeset
    10
7da85ca47b86 Added Caiman support and made few fixes to the pkg and onnv scripts
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff changeset
    11
MNTPOINT=`zfs get -H mountpoint $BRFS/\`basename \\\`pwd\\\`\`/onnv 2>/dev/null|awk '{ print $3 }'`
7da85ca47b86 Added Caiman support and made few fixes to the pkg and onnv scripts
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff changeset
    12
7da85ca47b86 Added Caiman support and made few fixes to the pkg and onnv scripts
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff changeset
    13
RELEASE=`basename \`pwd\``
7da85ca47b86 Added Caiman support and made few fixes to the pkg and onnv scripts
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff changeset
    14
7da85ca47b86 Added Caiman support and made few fixes to the pkg and onnv scripts
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff changeset
    15
echo Preparing the env file
7da85ca47b86 Added Caiman support and made few fixes to the pkg and onnv scripts
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff changeset
    16
7da85ca47b86 Added Caiman support and made few fixes to the pkg and onnv scripts
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff changeset
    17
cat $MNTPOINT/build/onnv/usr/src/tools/env/opensolaris.sh | \
7da85ca47b86 Added Caiman support and made few fixes to the pkg and onnv scripts
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff changeset
    18
sed s/^NIGHTLY_OPTIONS=\".*\"\;/NIGHTLY_OPTIONS=\"-nprt\"\;/ | \
12
e4056f778757 Minor changes to the scripts.
Andrzej Szeszo <aszeszo@gmail.com>
parents: 11
diff changeset
    19
sed s/GATE=testws\;/GATE=snv_$RELEASE\;/ | \
11
7da85ca47b86 Added Caiman support and made few fixes to the pkg and onnv scripts
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff changeset
    20
sed s%CODEMGR_WS=\"/export/\$GATE\"\;%CODEMGR_WS=\"/build/onnv\"\;% | \
7da85ca47b86 Added Caiman support and made few fixes to the pkg and onnv scripts
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff changeset
    21
sed s%^\#ONBLD_TOOLS=%ONBLD_TOOLS=% \
7da85ca47b86 Added Caiman support and made few fixes to the pkg and onnv scripts
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff changeset
    22
> $MNTPOINT/build/onnv/openindiana.sh
7da85ca47b86 Added Caiman support and made few fixes to the pkg and onnv scripts
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff changeset
    23
cat <<EOF >> $MNTPOINT/build/onnv/openindiana.sh
7da85ca47b86 Added Caiman support and made few fixes to the pkg and onnv scripts
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff changeset
    24
i386_LINT=/opt/sunstudio12.1/bin/lint; export i386_LINT
7da85ca47b86 Added Caiman support and made few fixes to the pkg and onnv scripts
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff changeset
    25
amd64_LINT=/opt/sunstudio12.1/bin/lint; export amd64_LINT
7da85ca47b86 Added Caiman support and made few fixes to the pkg and onnv scripts
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff changeset
    26
sparc_LINT=/opt/sunstudio12.1/bin/lint; export sparc_LINT
7da85ca47b86 Added Caiman support and made few fixes to the pkg and onnv scripts
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff changeset
    27
sparcv9_LINT=/opt/sunstudio12.1/bin/lint; export sparcv9_LINT
7da85ca47b86 Added Caiman support and made few fixes to the pkg and onnv scripts
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff changeset
    28
CW_NO_SHADOW=1; export CW_NO_SHADOW
7da85ca47b86 Added Caiman support and made few fixes to the pkg and onnv scripts
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff changeset
    29
EOF