diff options
author | Daniel Friesel <derf@finalrewind.org> | 2010-10-17 14:31:58 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2010-10-17 14:31:58 +0200 |
commit | 75633f0c00af73c9324c1a58e57474312cfd479a (patch) | |
tree | c0a7577e50a8c312a521f332519a31b8f8d374c1 /bin/ct | |
parent | 580f4e7e90a045ec7c92b06c14613acb0d6f9e0a (diff) |
Use "." package for package related to current working directory
As in,
> cd ~/packages/caretaker/man/1; ct p .
will push the caretaker package.
Diffstat (limited to 'bin/ct')
-rwxr-xr-x | bin/ct | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -977,6 +977,12 @@ function pkg_version { ${$(git --git-dir=${self_path}/.git/ log -n 1)[2]} } +# cd ~/packages/caretaker; ct r . +# -> ct refresh caretaker + +if [[ ${1} == . ]] { + 1=${${PWD#${PKG_DIR}/}%%/*} +} cd ${PKG_DIR} || die "Cannot cd ${PKG_DIR}" |