[bintray-publish] Modernize the Plan.
@@ -3,7 +3,6 @@ pkg_origin=core
pkg_version=$(cat "$PLAN_CONTEXT/../../VERSION")
pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>"
pkg_license=('apachev2')
-pkg_source=nosuchfile.tar.gz
pkg_deps=(core/coreutils core/util-linux core/bash core/zip core/tar core/xz core/gzip core/jfrog-cli
core/grep core/findutils core/gawk core/hab core/docker)
pkg_bin_dirs=(bin)
@@ -11,7 +10,7 @@ programs=(publish-hab publish-studio)
do_build() {
cp -v $PLAN_CONTEXT/../studio/build-docker-image.sh \
- build-docker-image
+ $CACHE_PATH/build-docker-image
local run_path=""
for dep in "${pkg_deps[@]}"; do
@@ -23,7 +22,7 @@ do_build() {
done
for program in "${programs[@]}"; do
- cp -v $PLAN_CONTEXT/bin/${program}.sh ${program}
+ cp -v $PLAN_CONTEXT/bin/${program}.sh $CACHE_PATH/${program}
# Use the bash from our dependency list as the shebang. Also, embed the
# release version of the program.
@@ -32,30 +31,12 @@ do_build() {
-e "s,@author@,$pkg_maintainer,g" \
-e "s,@path@,$pkg_prefix/bin:$run_path,g" \
-e "s,@version@,$pkg_version/$pkg_release,g" \
- -i $program
+ -i $CACHE_PATH/$program
done
}
do_install() {
for program in "${programs[@]}" build-docker-image; do
- install -v -D $program $pkg_prefix/bin/$program
+ install -v -D $CACHE_PATH/$program $pkg_prefix/bin/$program
done
}
-
-# Turn the remaining default phases into no-ops
-
-do_download() {
- return 0
-}
-
-do_verify() {
- return 0
-}
-
-do_unpack() {
- return 0
-}
-
-do_prepare() {
- return 0
-}
