Skip to content

Commit

Permalink
OS-4094 whatis in a database? That which we call apropos.
Browse files Browse the repository at this point in the history
  • Loading branch information
rmustacc committed Mar 23, 2015
1 parent 5bbbc54 commit 6579995
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion tools/customize
@@ -1,11 +1,24 @@
#!/bin/bash
#
# Copyright (c) 2013 Joyent Inc., All Rights Reserved.
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source. A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#

#
# Copyright (c) 2015 Joyent Inc.
#

set -o errexit
set -o pipefail

ROOT=$PWD
MAN=$ROOT/projects/illumos/usr/src/tools/proto/root_i386-nd/opt/onbld/bin/i386/man
status=0

BUILDSTAMP=$2
Expand All @@ -19,6 +32,11 @@ if [[ -z "${rdmnt}" ]]; then
exit 1
fi

if [[ ! -f $MAN ]]; then
echo "Somehow you lost your illumos tools"
exit 1
fi

echo "Customizing ${rdmnt}"
pfexec cp /dev/null ${rdmnt}/etc/mnttab
pfexec cp /dev/null ${rdmnt}/var/log/syslog
Expand All @@ -39,4 +57,6 @@ pfexec chown root:root ${rdmnt}
pfexec gsed -i -e "s/ [0-9]\{8\}T[0-9]\{6\}Z/ ${BUILDSTAMP}/" ${rdmnt}/etc/motd
pfexec gsed -i -e "s/ [0-9]\{8\}T[0-9]\{6\}Z/ ${BUILDSTAMP}/" ${rdmnt}/etc/issue

pfexec $MAN -M ${rdmnt}/usr/share/man:${rdmnt}/smartdc/man -w

exit $status

0 comments on commit 6579995

Please sign in to comment.