Skip to content

Commit

Permalink
beesh: auto exclude splitted prefix variables
Browse files Browse the repository at this point in the history
  • Loading branch information
mariux committed Jul 7, 2011
1 parent b6c1234 commit 8793965
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/beesh.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,10 @@ function bee_install() {
# $EXCLUDE is read from .bee file
# $BEE_SKIPLIST is found in $BEEFAULTS
function bee_pkg_pack() {
for e in ${EXCLUDE} ; do

aex=$(beecut -d '/' -p '^' -a '$' -n ${BEE_AUTO_EXCLUDE} | sort -u)

for e in ${EXCLUDE} ${aex} ; do
exargs="${exargs} --exclude=${e}";
done

Expand Down Expand Up @@ -588,8 +591,11 @@ for var in prefix eprefix bindir sbindir libexecdir sysconfdir \
sharedstatedir localstatedir libdir includedir \
datarootdir datadir infodir localedir mandir docdir ; do
eval eval ${var^^}=\${${var^^}}
eval 'BEE_AUTO_EXCLUDE="${BEE_AUTO_EXCLUDE} \${${var^^}}"'
done

eval "BEE_AUTO_EXCLUDE=\"${BEE_AUTO_EXCLUDE}\""

###############################################################################

print_info "current working directory: ${PWD}"
Expand Down

0 comments on commit 8793965

Please sign in to comment.