Module Name:    othersrc
Committed By:   riz
Date:           Sat Apr 13 19:16:22 UTC 2013

Modified Files:
        othersrc/share/examples/ec2/files: bootstrap.sh

Log Message:
Add an 'xsets' option to install all the X11 sets.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 othersrc/share/examples/ec2/files/bootstrap.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: othersrc/share/examples/ec2/files/bootstrap.sh
diff -u othersrc/share/examples/ec2/files/bootstrap.sh:1.3 othersrc/share/examples/ec2/files/bootstrap.sh:1.4
--- othersrc/share/examples/ec2/files/bootstrap.sh:1.3	Sun Mar 17 17:21:14 2013
+++ othersrc/share/examples/ec2/files/bootstrap.sh	Sat Apr 13 19:16:21 2013
@@ -6,7 +6,7 @@ PKGIN_CONF="/usr/pkg/etc/pkgin/repositor
 
 
 usage() {
-	echo "Usage: ${0##*/} [src|pkgsrc|binpkg|xbase]"
+	echo "Usage: ${0##*/} [src|pkgsrc|binpkg|xbase|xsets]"
 	exit
 }
 
@@ -55,6 +55,17 @@ xbase)
 	tar -xzpf xbase.tgz -C /
 	rm -f xbase.tgz
 	;;
+xsets)
+	echo "Downloading and installing X11 sets..."
+	xsets="xbase.tgz xcomp.tgz xetc.tgz xfont.tgz xserver.tgz"
+	for set in ${xsets} ; do
+		echo "Downloading ${set}..."
+		ftp -a "$URLROOT/NetBSD/NetBSD-$(uname -r)/$(uname -m)/binary/sets/${set}"
+		echo "Extracting ${set}"
+		tar -xzpf ${set} -C /
+		rm -f ${set}
+	done
+	;;
 *)
 	usage
 	;;

Reply via email to