summaryrefslogtreecommitdiffstats
path: root/release/scripts/mkxf86extract.sh
blob: af3550f8e6ce65259f1b637123aeb66189b423b8 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/bin/sh
#
# mkextract - generate extract.sh
# Jordan Hubbard
#
# This script generates the extract.sh script from the current tarballs
# and should not be run by anyone but the release coordinator (there wouldn't
# be much point).
#
#					Jordan

BASEDIR=/usr/X11R6
TARGETS=XFree86-3.1*
echo -n "Creating extract.sh.."
cat > extract.sh << DO_THE_FUNKY_CHICKEN
#!/bin/sh
#
# Don't edit me - I'm auto-generated by mkextract.sh!
#
if [ ! -f /usr/bin/tar ]; then
	dialog --title "Error!" --msgbox "You must install the bindist before this distribution!" -1 -1
	exit 0
fi

dialog --title "XFree86 3.1 Installation" \
  --msgbox "Welcome to the XFree86 3.1 installation!  You'll be asked
a series of annoying yes/no questions for each component of the
XFree86 distribution you wish to install.  If you're not sure
whether or not you need some component, simply answer yes and
delete it later if it turns out you don't need it.  This is
a little rough, yes, but I'm working on it!

Comments on the XFree86 distribution to David Dawes
<dawes@FreeBSD.org>

Comments on this install to Jordan Hubbard
<jkh@FreeBSD.org>

Thanks!" -1 -1
dialog --title "Read This First" --textbox README.FreeBSD 22 76
DO_THE_FUNKY_CHICKEN

for i in $TARGETS; do
	abbrevname=`echo $i | sed -e 's/XFree86-3.1-//' -e 's/.tar.gz//'`
	echo "if [ "${INSTALL_TYPE}" != "Express" ]; then if dialog --title \"Install Request\" --yesno \"Do you wish to install the ${abbrevname} distribution?\" -1 -1; then dialog --title \"Progress\" --infobox \"Installing $i\" -1 -1; tar --unlink -xzf $i -C /usr; fi; fi" >> extract.sh
done

cat >> extract.sh << OH_YEAH_BABY_GET_DOWN
dialog --title "Finished!" \
  --infobox "
You're now done with the installation of XFree86 3.1.
Now would probably be a very good time to look in ${BASEDIR}/lib/X11/doc
for further information on what to do next.  XFree86 3.1 is now
installed in the ${BASEDIR} directory, unlike
earlier releases.  For backwards compatibility, you might consider
a symlink to /usr/X386." -1 -1
OH_YEAH_BABY_GET_DOWN

chmod 755 extract.sh
touch -f .is_interactive
echo "  Done."
OpenPOWER on IntegriCloud