instg()
{
local arg=$1
- if [ -z "$arg"]; then
+ if [ -z "$arg" ]; then
arg=err
fi
grep --color '^\*\*\*' ${HOME}/install.${arg}
tar ${opts} ${fname}|less
}
-# Used primarily in the build script to update deps.
-find_pkg_deps()
-{
- local arg=$1
-
- [ -z "$arg" ] && arg=$(whoami)
-
- for file in $(forall_direntries_from $arg -type f -executable -readable); do
- (readelf -d $file ; ldd $file ) |
- awk '/NEEDED/ { lib=substr($5,2,length($5)-2); LIBS[lib]=$5 } \
- /.*=>/ {if ( $1 in LIBS ) LIBS[$1]=$3 } END \
- { for (lib in LIBS) print LIBS[lib] }' |
- xargs stat --printf "%U:%G\n"
- done|sort -u|tr -s '\n' ' '
-}
-
## Check if there is a newer build script, maybe update.
# NOTE: Updating needs SXEmacs. It'll work in XEmacs and Emacs too,
# but you'll need to change build-update() accordingly.
{
if [ -x $(type -p sxemacs) ]; then
sxemacs -l /etc/pkgusr/bld-update.el
+ else
+ echo *** Sorry, you do not have SXEmacs installed.
+ echo *** Copying the new build script to ~/build-$(date +%Y%m%d)
+ cp -v /etc/pkgusr/skel-package/build \
+ ${HOME}/build-$(date +%Y%m%d)
fi
}