diff options
author | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2011-12-22 23:27:22 -0300 |
---|---|---|
committer | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2011-12-22 23:27:22 -0300 |
commit | afeb8ee939f23256192239622f57265cf4c6cb4c (patch) | |
tree | 77676089022f2b1df8e34032d01a0a9ef0647c96 /toru | |
parent | f258090c62535b9e02450494507f2e3f08024c96 (diff) | |
parent | 32b6057b15e4f0872b9ebd51038c72b0d681cb80 (diff) |
Merge branch 'master' of ssh://gparabola/libretools
Diffstat (limited to 'toru')
-rwxr-xr-x | toru | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -15,9 +15,17 @@ source /etc/abs.conf source /etc/libretools.conf +# TODO: clean usage instructions +function usage { + echo "$0 [options] repo1 ... repon" + echo + echo "-h : this message" + exit 1 +} + if [ ! -w "$TORUPATH" ]; then error "Toru's path isn't writable. Please check $TORUPATH" - exit 1 + exit 1 fi # TODO move to common functions @@ -115,7 +123,7 @@ split_pkgname_from_pkgver() { sed "s/^\(.\+\)-\([^-]\+-[^-]\+\)$/\1 \2/" $1 } -# Get the fullpkgver +# Get the fullpkgver # pkgname from pkgver separator can be either '-' or ' ' extract_fullpkgver() { echo "$@" | tr " " "\n" | sed "s/^.\+[ -]\([^-]\+-[^-]\+\)$/\1/" |