ede7d1f735
The Cult3D plugin enables users view interactive 3D objects, including full transparency, reflectivity, particle systems, bump mapping, phong shading, movement and sound. For a random example: http://www.formula1.com/news/3d/s8396.html
19 lines
437 B
Bash
Executable file
19 lines
437 B
Bash
Executable file
#!/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
|