Sha256: 283267ffeedf26adb1100a15a149e2ecdd797c678e8862579bf5ea0a3d5dcd9c

Contents?: true

Size: 600 Bytes

Versions: 2

Compression:

Stored size: 600 Bytes

Contents

#!/bin/bash

tpkgbase="/opt/tpkg"

if [ -f /etc/tpkg.conf ]
then
  base=`cat /etc/tpkg.conf | grep '^base\s*=' | awk -F= '{print $2}' | sed 's/^\s*//' | sed 's/\s*$//'`
  if [ "$base" != "" ]
  then
    tpkgbase=$base
  fi
fi

if [ -f $HOME/.tpkg.conf ]
then
  base=`cat $HOME/.tpkg.conf | grep '^base\s*=' | awk -F= '{print $2}' | sed 's/^\s*//' | sed 's/\s*$//'`
  if [ "$base" != "" ]
  then
    tpkgbase=$base
  fi
fi

PATH=$tpkgbase/bin:$PATH
export PATH
MANPATH=$tpkgbase/man:$MANPATH
export MANPATH

for i in $tpkgbase/etc/profile.d/*.sh ; do
    if [ -r "$i" ]; then
        . $i
    fi
done

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tpkg-2.3.5 tpkg_profile.sh
tpkg-2.3.4 tpkg_profile.sh