summaryrefslogtreecommitdiff
path: root/parallel/glunix/scripts/pre-fetch
blob: d422e428767c7fc0f0e381e005bd226bc51cc645 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh
if [ -f $DISTDIR/glunix-release-1-0a.tar.gz ]; then
  exit 0
fi

echo ""
echo "The authors of glunix would like to keep track of"
echo "who thier user community is.  They promise that the"
echo "information obtained will not be used for marketing"
echo "of any kind."
echo ""
echo -n "Please enter your Name: "

read dname
if [ "$dname" = "" ]; then
	echo "Please run make again, and enter your name."
	exit 1
fi
echo -n "Please enter your email address: "
read email
if [ "$email" = "" ]; then
	echo "Please run make again, and enter your email."
	exit 1
fi

name=`echo $dname | sed 's/ /+/'`
nmail=`echo $email | sed 's/ /+/'`

ftp "http://now.cs.berkeley.edu/cgi-bin/glunix_download.pl?name=$name&email=$nmail&use=NetBSD+pkg+system+download."
$RM "glunix_download.pl?name=$name&email=$email&use=NetBSD+pkg+system+download."