blob: a5c7b16d4eadb3a09da6a0fcd0f27de4cb457c02 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/sh
# $Id: getsite.sh,v 1.1.1.1 2002/02/13 09:10:10 abs Exp $
#
# Determine the correct BASE URL from which to download $DISTFILE
DISTFILE=$1
BASE_URL=`ftp -o - http://www.cult3d.com/download/viewer/code.js | awk -F '"' '
/'"$DISTFILE"'/ {
sub(/'"$DISTFILE"'/, "", $2)
print $2
exit 0
}'`
if [ -n "$BASE_URL" ] ; then
echo $BASE_URL
else
echo "getsites.sh: Unable to extract BASE_URL" >&2
exit 2
fi
|