summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolás Reynolds <apoyosis@correo.inta.gob.ar>2011-06-27 20:53:35 -0300
committerNicolás Reynolds <apoyosis@correo.inta.gob.ar>2011-06-27 20:53:35 -0300
commit6e704feb5f40c65ca7aba5b058d77249761c1156 (patch)
tree5d9e2e0fac6160ce4c176585fdd28a4914c03a64
parent84d2cd5e26dc7f67eb0dfcc814642ed72bec968c (diff)
Specify trunk dir. Now repo goes first($1).
-rwxr-xr-xdiff-unfree5
1 files changed, 3 insertions, 2 deletions
diff --git a/diff-unfree b/diff-unfree
index 86a537f..e4004d6 100755
--- a/diff-unfree
+++ b/diff-unfree
@@ -27,7 +27,7 @@ custom_config=$XDG_CONFIG_HOME/libretools/libretools.conf
msg "Diff-Unfree helps you diff build scripts from ABSLibre against
(Unfree) ABS. Package name and repo will we guessed if you don't
specify them."
- msg2 "Usage: $0 [repo] [unfree-package]"
+ msg2 "Usage: $0 [community|packages] [unfree-package] [repo]"
exit 0
}
@@ -40,6 +40,7 @@ package_guess=$(basename $PWD)
repo=${1:-$(basename $(dirname $PWD))}
package=${2:-${package_guess/-libre}}
+trunk=${3:-trunk}
tmp_dir=$(mktemp -d /tmp/${package}.XXXXXX)
@@ -55,7 +56,7 @@ case $repo in
;;
esac
-unfree_dir="${tmp_dir}/${svnrepo}/${package}/trunk"
+unfree_dir="${tmp_dir}/${svnrepo}/${package}/${trunk}"
[[ ! -d "${tmp_dir}" ]] && {
error "Can't create temp dir"