Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SpectreX archive version as parameter #540

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions apps/cadence_spectre/build_spectre.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
#!/bin/bash

# TODO: install directory
INSTALL_DIR="/data/spectrex/"
INSTALL_DIR="/netapps/spectrex"


WORKING_DIR="/mnt/resource"
CADENCE_TOOLS_BLOB=$1
ISCAPE_FILE="IScape04.23-s012lnx86.t.Z"
SPECTREXARCHIVE=$2
ISCAPE_FILE="IScape04.23-s021lnx86.t.Z"

cd ${WORKING_DIR}

Expand Down Expand Up @@ -40,21 +41,21 @@ download_archive()
{
echo "----------------------downloading archive."
cd ${WORKING_DIR}
wget ${CADENCE_TOOLS_BLOB}/SpectreXArchive.tgz
tar -xzvf SpectreXArchive.tgz
wget ${CADENCE_TOOLS_BLOB}/${SPECTREXARCHIVE}
tar -xzvf ${SPECTREXARCHIVE}
}

install_from_archive()
{
echo "---------------------installing from archive."
cd ${WORKING_DIR}/iscape.04.23-s012/bin
cd ${WORKING_DIR}/iscape.04.23-s021/bin
./iscape.sh -batch majorAction=installfromarchive ArchiveDirectory=${WORKING_DIR}/SpectreXArchive/ InstallDirectory=${INSTALL_DIR}

# generate configuration scripts
./iscape.sh -batch majorAction=configure InstallDirectory=${INSTALL_DIR}

# complete configuration
/bin/sh ${INSTALL_DIR}installData/SPECTRE191_lnx86/batch_configure.sh
/bin/sh ${INSTALL_DIR}installData/SPECTRE201_lnx86/batch_configure.sh
# test
./iscape.sh -batch majorAction=test InstallDirectory=${INSTALL_DIR}

Expand Down