.profile.roku
This commit is contained in:
155
.profile.roku
Normal file
155
.profile.roku
Normal file
@@ -0,0 +1,155 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# I have my automake
|
||||||
|
export ACLOCAL_PATH=/usr/share/aclocal
|
||||||
|
|
||||||
|
export ROKU_NFS_ROOT=$HOME/roku/nfs
|
||||||
|
export ROKU_NFS_IP=192.168.0.64
|
||||||
|
export EXPORTROOT=${ROKU_NFS_ROOT}
|
||||||
|
|
||||||
|
# This is needed to be able to set brake point on /bin/Application
|
||||||
|
export PAX_DEBUG=on
|
||||||
|
|
||||||
|
build_help()
|
||||||
|
{
|
||||||
|
cat <<EOF
|
||||||
|
platform:
|
||||||
|
bailey, marlin
|
||||||
|
icecream:
|
||||||
|
local, icecc
|
||||||
|
target:
|
||||||
|
all, addon-checksums, addon-checksum-check, clobber
|
||||||
|
EOF
|
||||||
|
}
|
||||||
|
|
||||||
|
build()
|
||||||
|
{
|
||||||
|
BUILD_PLATFORM=marlin
|
||||||
|
ENABLE_ICECC=0
|
||||||
|
JOBS=$(nproc)
|
||||||
|
TARGET=all
|
||||||
|
BUILD_MODE=dev
|
||||||
|
PAX_DEBUG=on
|
||||||
|
|
||||||
|
# args=$(getopt fhstuec $*)
|
||||||
|
# if [ $? -ne 0 ]; then
|
||||||
|
# usage
|
||||||
|
# fi
|
||||||
|
# set -- $args
|
||||||
|
|
||||||
|
while [ $# -gt 0 ]; do
|
||||||
|
case "$1" in
|
||||||
|
unity|\
|
||||||
|
native)
|
||||||
|
PAX_DEBUG=off
|
||||||
|
BUILD_PLATFORM=$1
|
||||||
|
;;
|
||||||
|
bailey|\
|
||||||
|
marlin|\
|
||||||
|
madison)
|
||||||
|
BUILD_PLATFORM=$1
|
||||||
|
;;
|
||||||
|
icecc)
|
||||||
|
ENABLE_ICECC=1
|
||||||
|
JOBS=256
|
||||||
|
;;
|
||||||
|
local)
|
||||||
|
ENABLE_ICECC=0
|
||||||
|
JOBS=$(nproc)
|
||||||
|
;;
|
||||||
|
all|\
|
||||||
|
addon-checksums|\
|
||||||
|
addon-checksum-check|\
|
||||||
|
clean|\
|
||||||
|
clobber|\
|
||||||
|
clobber-all)
|
||||||
|
TARGET=$1
|
||||||
|
;;
|
||||||
|
nopax)
|
||||||
|
PAX_DEBUG=off
|
||||||
|
;;
|
||||||
|
debug)
|
||||||
|
BUILD_MODE=dbg
|
||||||
|
;;
|
||||||
|
help)
|
||||||
|
build_help
|
||||||
|
return
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Really? Do you mean that?"
|
||||||
|
return
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
|
||||||
|
local GIT_ROOT=$(git rev-parse --show-toplevel)
|
||||||
|
if [ "$?" -ne "0" ]; then
|
||||||
|
GIT_ROOT=$(p4 -Ztag -F %clientRoot% info)
|
||||||
|
fi
|
||||||
|
echo $GIT_ROOT
|
||||||
|
|
||||||
|
make \
|
||||||
|
ENABLE_ICECC=$ENABLE_ICECC \
|
||||||
|
BUILD_MODE=$BUILD_MODE \
|
||||||
|
PAX_DEBUG=$PAX_DEBUG \
|
||||||
|
BUILD_PLATFORM=$BUILD_PLATFORM \
|
||||||
|
-j $JOBS \
|
||||||
|
-C $GIT_ROOT/os $TARGET
|
||||||
|
#make ENABLE_ICECC=1 PAX_DEBUG=on BUILD_PLATFORM=$1 -j $(nproc) -C os all
|
||||||
|
}
|
||||||
|
###############################################################################
|
||||||
|
#
|
||||||
|
# Logging
|
||||||
|
#
|
||||||
|
LOGDIR="${HOME}/roku/logs"
|
||||||
|
|
||||||
|
lfile()
|
||||||
|
{
|
||||||
|
echo ${LOGDIR}/$(ls -t -1 ${LOGDIR} | head -1)
|
||||||
|
}
|
||||||
|
|
||||||
|
lless()
|
||||||
|
{
|
||||||
|
less $(lfile)
|
||||||
|
}
|
||||||
|
|
||||||
|
lcat()
|
||||||
|
{
|
||||||
|
cat $(lfile)
|
||||||
|
}
|
||||||
|
|
||||||
|
lgrep()
|
||||||
|
{
|
||||||
|
lcat | grep -a --color "$*"
|
||||||
|
}
|
||||||
|
|
||||||
|
ltail()
|
||||||
|
{
|
||||||
|
if [ $# -gt 0 ]; then
|
||||||
|
tail -f $(lfile) | grep "$*"
|
||||||
|
else
|
||||||
|
tail -f $(lfile)
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
ldevice()
|
||||||
|
{
|
||||||
|
minicom -C $LOGDIR/minicom.log.$(date +%Y-%m-%d--%H-%M-%S)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
rokuget()
|
||||||
|
{
|
||||||
|
wget --no-check-certificate --user=vkhachatryan --ask-password $1
|
||||||
|
}
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
#
|
||||||
|
# Other helpers
|
||||||
|
#
|
||||||
|
startvnc()
|
||||||
|
{
|
||||||
|
x11vnc -safer -nopw -many --usepw --ncache 10
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user