diff options
author | Florian Franzmann | 2011-04-27 13:22:49 +0200 |
---|---|---|
committer | Florian Franzmann | 2011-04-27 13:22:49 +0200 |
commit | 228e5ef7fbe54d607489aa88a9c72546225665af (patch) | |
tree | 1757968a16f6b41c227db70e0f7ebf6a1814c831 | |
parent | 91d559316c070a2e578719b84da0786911428715 (diff) | |
parent | 164e68ba1b6bdbd46db0cfe4b298051297fe9686 (diff) |
Merge branch 'master' of ssh://scm.sourcemage.org/smgl/grimoire
-rwxr-xr-x | bzr_download.function | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bzr_download.function b/bzr_download.function index 86d79180ca..9eab2916f9 100755 --- a/bzr_download.function +++ b/bzr_download.function @@ -8,7 +8,7 @@ function bzr_download() { if file_exists $SOURCE_CACHE/$SOURCE then message "${MESSAGE_COLOR}Unpacking the source...${DEFAULT_COLOR}" && - tar xjf $SOURCE_CACHE/$SOURCE && + tar xjf $SOURCE_CACHE/$SOURCE -C $(dirname $SOURCE_DIRECTORY) && cd $SOURCE_DIRECTORY && message "${MESSAGE_COLOR}Updating...${DEFAULT_COLOR}" && echo bzr update && @@ -21,6 +21,6 @@ function bzr_download() { fi && message "${MESSAGE_COLOR}Repacking the source...${DEFAULT_COLOR}" && - tar cjf $SOURCE $SOURCE_DIRECTORY && + tar cjf $SOURCE -C $(dirname $SOURCE_DIRECTORY) $(basename $SOURCE_DIRECTORY) && mv $SOURCE $SOURCE_CACHE } |