Skip to content

Commit

Permalink
Merge remote-tracking branch 'matze/formarius'
Browse files Browse the repository at this point in the history
* matze/formarius:
  beelib: try harder to get the user name
  repository: ignore bee-download.sh created by make
  bee-check: only print one dependency per script (if any)
  bee-dep: update manpage
  • Loading branch information
mariux committed Jan 27, 2012
2 parents da9b69b + d557fb6 commit 12eecee
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 43 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
/bee-list.sh
/bee-query.sh
/bee-remove.sh
/bee-download.sh
/beecut
/beeuniq
/beefind.pl
Expand Down
78 changes: 36 additions & 42 deletions manpages/bee-dep.1.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

.fi
..
.TH "bee\-dep" "1" "2011-11-10" "bee @BEE_VERSION@" "bee package management "
.TH "bee\-dep" "1" "2012-01-26" "bee @BEE_VERSION@" "bee package management"
.SH NAME

.PP
Expand All @@ -16,65 +16,71 @@ bee\-dep \- bee dependency tool
.SH SYNOPSIS

\fBbee dep\fP
[\fBoptions\fP]
[\fIpkgname\fP]
<command> [pkgname|file]
.PP
.SH DESCRIPTION

\fBbee\-dep\fP
is used to read the DEPENDENCY
file of every installed package and then be able to tell \fBbee\-remove\fP
which files can be deleted.
reads the
.ul
DEPENDENCIES
file
of every installed package and is able to query several information about the packages.
.br
.PP
As part of the bee package management \fBbee\-dep\fP
is invoked by the wrapper tool \fBbee\fP(1).
.PP
.SH OPTIONS
.SH COMMANDS

.PP
\fB\-\-rebuild\fP
\fBrebuild\fP
.RS
Rebuild the cache. Therefore the old cache is deleted and then updated with the information of the DEPENDENCY file of each installed package.
Rebuild the cache. Therefore the old cache is deleted and then recreated with the information of the
.ul
DEPENDENCIES
file of each installed package.
.RS
.PP
.RE
.RE
.PP
\fB\-\-update\fP
\fBupdate\fP
\fIpkgname\fP
.RS
Update the cache for a specific package.
.PP
.RE
.RE
.PP
\fB\-\-remove\fP
\fIpkgname\fP
\fBremove\fP
[options] \fIpkgname\fP
.RS
Remove a package from the cache.
.br
This option can be combined with the option \fB\-\-print\-removable\fP\&.
.PP
.RE
.RE
.PP
\fB\-\-print\-removable\fP
\fIpkgname\fP
\fBlist\fP
[options] \fIpkgname\fP
.RS
Print all files/directories which can be deleted from the package.
.br
Combined with the \fB\-\-remove\fP
option: Print all files/directories which were deleted from the cache.
Query information about a package.
.PP
.RE
.RE
.PP
\fBconflicts\fP
.RS
Show conflicting packages.
.PP
.RE
.RE
.PP
.SH FILES

.B /etc/bee/beerc
.br
.B \fB${HOME}\fP/.beerc
\fB/etc/bee/beerc\fP
.br
\fB${HOME}/.beerc\fP
.RS
The main config files. Use these to change \fBbee\-dep\fP\&'s
environment variables.
Expand All @@ -86,12 +92,12 @@ environment variables.
\fB${BEE_METADIR}\fP
.br
.RS
Directory searched for installed bee packages
Directory where to search for installed bee packages
.br
.PP
root\-user: /usr/share/bee
.br
other: ${HOME}/.local/share/beemeta
other: ${HOME}/.local/share/beemeta
.br
.RE
.RE
Expand All @@ -102,30 +108,19 @@ other: ${HOME}/.local/share/beemeta
Directory where to save the cache file
.ul
index.db
and
the lock file
.ul
index.lock

.br
root\-user: /var/cache/bee
.br
other: ${HOME}/.cache/bee
other: ${HOME}/.cache/bee
.br
.RE
.RE
.PP
.SH DIAGNOSTICS

Following error message may be seen:
.PP
\fBBEE\-ERROR: please call bee\-init from bee ..\fP
.br
.RS
\fBbee\-dep\fP
must be run by the wrapper \fBbee\fP\&.
Just call \fBbee dep\fP
[\fBoptions\fP]
[\fIpkgname\fP]
.RE
.RE
.PP
.SH AUTHORS

Matthias Ruester <\fBruester@molgen.mpg.de\fP>
Expand All @@ -145,4 +140,3 @@ Tobias Dreyer <\fBdreyer@molgen.mpg.de\fP>
\fBbee\-list\fP(1)
\fBbee\-query\fP(1)
\fBbee\-remove\fP(1)
.\" NOTE: This file is generated, DO NOT EDIT.
1 change: 1 addition & 0 deletions src/bee-check.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ do_check_deps_of_file() {
for i in "${subtype[@]}" ; do
if [ "${i:0:1}" = "/" ] ; then
echo " needs = $i"
break
fi
done
fi
Expand Down
6 changes: 5 additions & 1 deletion src/beelib.config.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,12 @@ function config_verify_builtin_config() {
: ${BEE_CACHEDIR=${XDG_CACHE_HOME}/bee}
fi

user=${LOGNAME}
: ${user:=${USER}}
: ${user:=${USERNAME}}

: ${BEE_TMP_TMPDIR:=/tmp}
: ${BEE_TMP_BUILDROOT:=${BEE_TMP_TMPDIR}/beeroot-${LOGNAME}}
: ${BEE_TMP_BUILDROOT:=${BEE_TMP_TMPDIR}/beeroot-${user}}

: ${BEE_REPOSITORY_BEEDIR:=${BEE_REPOSITORY_PREFIX}/bees}
: ${BEE_REPOSITORY_PKGDIR:=${BEE_REPOSITORY_PREFIX}/pkgs}
Expand Down

0 comments on commit 12eecee

Please sign in to comment.