mirror of
https://github.com/clearlinux/clr-installer.git
synced 2026-08-03 19:07:50 +00:00
5c89f2f78e
Bring in-sync with production roots. Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
36 lines
723 B
Bash
Executable File
36 lines
723 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# c-basic-offset: 4; tab-width: 4; indent-tabs-mode: t
|
|
# vi: set shiftwidth=4 tabstop=4 noexpandtab:
|
|
# :indentSize=4:tabSize=4:noTabs=false:
|
|
|
|
# Developer Image Post Install steps
|
|
|
|
CHROOTPATH=$1
|
|
export HOOKDIR=$(dirname $0)
|
|
|
|
DESTDIR=$1
|
|
SAVE_DIR=$(pwd)
|
|
TEMP_INST=$(mktemp -d)
|
|
export HOME=$(getent passwd $(id -un) |& awk -F: '{print $(NF-1)}')
|
|
git clone . ${TEMP_INST}
|
|
cd ${TEMP_INST}
|
|
make install DESTDIR=${DESTDIR}
|
|
|
|
cd ${SAVE_DIR}
|
|
/bin/rm -rf ${TEMP_INST}
|
|
|
|
exit 0
|
|
|
|
# Editor modelines - https://www.wireshark.org/tools/modelines.html
|
|
#
|
|
# Local variables:
|
|
# c-basic-offset: 4
|
|
# tab-width: 4
|
|
# indent-tabs-mode: t
|
|
# End:
|
|
#
|
|
# vi: set shiftwidth=4 tabstop=4 noexpandtab:
|
|
# :indentSize=4:tabSize=4:noTabs=false:
|
|
#
|