Skip to content

Commit

Permalink
beesh: Allow to rename package from within bee-file (quick fix version)
Browse files Browse the repository at this point in the history
this should be reimplemented later.. 8)
  • Loading branch information
mariux committed Aug 2, 2012
1 parent 41ac607 commit 3aaed0d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/beesh.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ function bee_pkg_pack() {
${D}/CONTENT )

beefilename=${BEE##*/}
beefiledest=${BEE_BEEDIR}/${beefilename}
beefiledest=${BEE_BEEDIR}/${PKGALLPKG}.bee

print_info "-> saving bee-file ${beefilename} .."
print_info "${COLOR_CYAN}${beefiledest}"
Expand All @@ -543,7 +543,7 @@ function bee_pkg_pack() {
mkdir -pv ${BEE_BEEDIR}
fi

cp -v ${BEE} ${BEE_BEEDIR}
cp -v ${BEE} ${beefiledest}
}


Expand Down Expand Up @@ -793,9 +793,13 @@ PKGALLPKG=
# now set PKGARCH if set or changed by user via ARCH=.. and not given via file.arch.bee
: ${PKGARCH:=${ARCH}}

PKGFULLPKG=${PKGFULLNAME}-${PKGFULLVERSION}-${PKGREVISION}

# since PKGARCH is now known reconstruct PKGALLPKG
: ${PKGALLPKG:=${PKGFULLPKG}.${PKGARCH}}

eval $(${BEE_BINDIR}/beeversion ${PKGALLPKG})

config_handle_deprecated_beefile
expand_prefix_variables
config_export
Expand Down

0 comments on commit 3aaed0d

Please sign in to comment.