mirror of
https://github.com/clearlinux/clr-installer.git
synced 2026-09-02 11:41:44 +00:00
38 lines
764 B
Bash
Executable File
38 lines
764 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}
|
|
|
|
${HOOKDIR}/installer-post.sh ${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:
|
|
#
|