diff options
author | Ismael Luceno | 2011-04-27 07:23:43 -0300 |
---|---|---|
committer | Ismael Luceno | 2011-04-27 07:23:43 -0300 |
commit | 164e68ba1b6bdbd46db0cfe4b298051297fe9686 (patch) | |
tree | b187fe888b0fd3d490f0e8d8207df98c1868559d /bzr_download.function | |
parent | 215355e904c1ac1736b9069a91c5ad5edee1009c (diff) |
bzr_download.function: fix tarball generation
Diffstat (limited to 'bzr_download.function')
-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 } |