X-Git-Url: http://cgit.sxemacs.org/?p=pkgusr;a=blobdiff_plain;f=etc%2Fpkgusr%2Fhandy_funcs;fp=etc%2Fpkgusr%2Fhandy_funcs;h=7f90d79d2889580ec2a06145660f682939d19b61;hp=ea596236319ff8cdf2b1a255315f9c31fb85faa0;hb=1776bc348d909d3ac2ec198283f5acd1429eaa18;hpb=e9ffe1509ba3e58b2bc5a4722aff7501325194f2 diff --git a/etc/pkgusr/handy_funcs b/etc/pkgusr/handy_funcs index ea59623..7f90d79 100644 --- a/etc/pkgusr/handy_funcs +++ b/etc/pkgusr/handy_funcs @@ -71,7 +71,7 @@ verrlog() instg() { local arg=$1 - if [ -z "$arg"]; then + if [ -z "$arg" ]; then arg=err fi grep --color '^\*\*\*' ${HOME}/install.${arg} @@ -171,22 +171,6 @@ vtar() 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. @@ -194,6 +178,11 @@ build-update() { 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 }