]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - release/mkextract.sh
Fix includes, tputs argument, ospeed setting, printing
[FreeBSD/FreeBSD.git] / release / mkextract.sh
1 #!/bin/sh
2 #
3 # mkextract - generate extract.sh
4 # Jordan Hubbard
5 #
6 # This script generates the extract.sh script from the current tarballs
7 # and should not be run by anyone but the release coordinator (there wouldn't
8 # be much point).
9 #
10 #                                       Jordan
11
12 BASEDIR=/usr/X11R6
13 TARGETS=XFree86-3.1*
14 echo -n "Creating extract.sh.."
15 cat > extract.sh << DO_THE_FUNKY_CHICKEN
16 #!/bin/sh
17 #
18 # Don't edit me - I'm auto-generated by mkextract.sh!
19 #
20 if [ ! -f /usr/bin/tar ]; then
21         dialog --title "Error!" --msgbox "You must install the bindist before this distribution!" 6 72
22         exit 0
23 fi
24
25 dialog --title "XFree86 3.1 Installation" \
26   --msgbox "Welcome to the XFree86 3.1 installation!  You'll be asked
27 a series of annoying yes/no questions for each component of the
28 XFree86 distribution you wish to install.  If you're not sure
29 whether or not you need some component, simply answer yes and
30 delete it later if it turns out you don't need it.  This is
31 a little rough, yes, but I'm working on it!
32
33 Comments on the XFree86 distribution to David Dawes
34 <dawes@FreeBSD.org>
35
36 Comments on this install to Jordan Hubbard
37 <jkh@FreeBSD.org>
38
39 Thanks!" 18 72
40 dialog --title "Read This First" --textbox README.FreeBSD 22 76
41 DO_THE_FUNKY_CHICKEN
42
43 for i in $TARGETS; do
44         abbrevname=`echo $i | sed -e 's/XFree86-3.1-//' -e 's/.tar.gz//'`
45         echo "if dialog --title \"Install Request\" --yesno \"Do you wish to install the ${abbrevname} distribution?\" 6 72; then dialog --title \"Progress\" --infobox \"Installing $i\" 6 72; tar --unlink -xvzf $i -C /usr > /dev/ttyv1 2>&1 ; fi" >> extract.sh
46 done
47
48 cat >> extract.sh << OH_YEAH_BABY_GET_DOWN
49 dialog --title "Finished!" \
50   --infobox "
51 You're now done with the installation of XFree86 3.1.
52 Now would probably be a very good time to look in ${BASEDIR}/lib/X11/doc
53 for further information on what to do next.  XFree86 3.1 is now
54 installed in the ${BASEDIR} directory, unlike
55 earlier releases.  For backwards compatibility, you might consider
56 a symlink to /usr/X386." 10 76
57 OH_YEAH_BABY_GET_DOWN
58
59 chmod 755 extract.sh
60 echo "  Done."