From 9ef1521fd3bbfe1a1953f405a1509a82212bfe32 Mon Sep 17 00:00:00 2001 From: Fred Dushin Date: Sat, 14 Oct 2023 11:20:53 -0400 Subject: [PATCH] Prepare for release 0.6.2 --- ChangeLog | 5 +++-- README.md | 6 +++--- install.sh | 15 ++------------- release/packbeam.in | 24 ------------------------ 4 files changed, 8 insertions(+), 42 deletions(-) delete mode 100644 release/packbeam.in diff --git a/ChangeLog b/ChangeLog index c3807bc..caaa17e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,9 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [0.6.2] (Unreleased) +## [0.6.2] -- Add `relx` stanzas to create a standalone release of the `packbeam` utility +- Added `relx` stanzas to create a standalone release of the `packbeam` utility +- Added install scripts to simplify installation for users ## [0.6.1] diff --git a/README.md b/README.md index b2797d1..bab3a0e 100644 --- a/README.md +++ b/README.md @@ -31,8 +31,8 @@ in your local working directory. You can use the `install.sh` script to install the `atomvm_packbeam` utility into a location on your local machine. You will need to specify the prefix location into which you want to install the utility, together with it's current version. - shell$ ./install.sh /usr/local 0.6.2 - atomvm_packbeam version 0.6.2 installed in /usr/local. + shell$ ./install.sh /opt/atomvm_packbeam 0.6.2 + atomvm_packbeam version 0.6.2 installed in /opt/atomvm_packbeam. > Note. Some prefix locations may require `root` permissions to write files to. @@ -40,7 +40,7 @@ Set your `PATH` environment variable to include the `bin` directory of the insta For example: - shell$ export PATH=/usr/local/bin:$PATH + shell$ export PATH=/opt/atomvm_packbeam/bin:$PATH shell$ packbeam help Syntax: packbeam diff --git a/install.sh b/install.sh index 5713b17..f725cc0 100755 --- a/install.sh +++ b/install.sh @@ -83,18 +83,7 @@ readonly tmp_dir="$(mktemp -d /tmp/atomvm_packbeam.XXXXXX)" echo_run cp "${src_tar}" "${tmp_dir}/." echo_run gunzip "${tmp_dir}/atomvm_packbeam-${version}.tar.gz" -readonly dest_dir="${prefix}/atomvm_packbeam" -if [ -e "${dest_dir}" ]; then - echo "ERROR! It looks like ${dest_dir} already exists!" - exit 1 -fi - -echo_run mkdir -p "${dest_dir}" -echo_run tar -C "${dest_dir}" -x -f "${tmp_dir}/atomvm_packbeam-${version}.tar" - -echo_run mkdir -p "${prefix}/bin" -echo_run cp "${root_dir}/release/packbeam.in" "${prefix}/bin/packbeam" -echo_run chmod 755 "${prefix}/bin/packbeam" +echo_run tar -C "${prefix}" -x -f "${tmp_dir}/atomvm_packbeam-${version}.tar" echo_run rm -rf "${tmp_dir}" -echo "atomvm_packbeam version ${version} installed in ${dest_dir}." +echo "atomvm_packbeam version ${version} installed in ${prefix}." diff --git a/release/packbeam.in b/release/packbeam.in deleted file mode 100644 index 2548348..0000000 --- a/release/packbeam.in +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh -# -# This file is part of AtomVM. -# -# Copyright 2023 Fred Dushin -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later -# - -readonly root_dir="$(cd $(dirname $0)/.. && pwd)" - -exec ${root_dir}/atomvm_packbeam/bin/packbeam "$@"