Modified the configure script to allow 3rd party libraries to be either installed
by default (requiring --disable) or ignored by default (requiring --enable).
Moved the SRAM library to the "ignored by default" list because it takes so long
to build. Added all of the OSU standard cell libraries (hs/ms/ls each for
12T, 15T, and 18T). Added a straight-through analog pad for high-speed I/O,
especially for the "caravan" analog variant of the "caravel" harness chip.
diff --git a/scripts/download.sh b/scripts/download.sh
index 1bfadc1..a4188d9 100755
--- a/scripts/download.sh
+++ b/scripts/download.sh
@@ -1,10 +1,10 @@
-#!/bin/sh
+#!/bin/bash
#
# download.sh --
# Download a tarball from the specified URL to the specified target
# directory, untar it, and remove the tarball file.
#
-# Usage: download.sh <url> <target_dir>
+# Usage: download.sh <url> <target_dir> [<strip>]
#
# where:
#
@@ -13,6 +13,8 @@
# tarball will be downloaded to the directory above this,
# untarred while renaming to <target_dir>, and then the tarball
# file will be deleted.
+# <strip> is the number of directory levels to strip off the front of the
+# tarball contents. Defaults to 1 if not specified.
#
# Neither curl or wget are guaranteed to be included in all *nix systems,
@@ -39,7 +41,14 @@
echo "Downloading $1 to $2"
$DL_CMD $2.tar.gz $1
+if [ $# -gt 2 ]; then
+ snum=$3
+else
+ snum=1
+fi
+
mkdir -p $2
-tar -xf $2.tar.gz --strip-components 1 -C $2
+echo "Untarring and removing $2.tar.gz"
+tar -xf $2.tar.gz --strip-components $snum -C $2
rm $2.tar.gz
exit 0