Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tools/make-release-packages.sh: install dir tweaks #5836

Merged
merged 2 commits into from Mar 4, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 11 additions & 8 deletions tools/make-release-packages.sh
Expand Up @@ -41,13 +41,17 @@ done;

# Copy remaining files, preserving date/permissions
# But resolving symlinks
cp -rpfL examples "${RELEASE_DIR}/"
mkdir -p "${RELEASE_DIR}"/share/vitess/
cp -rpfL examples "${RELEASE_DIR}"/share/vitess/

echo "Follow the binary installation instructions at: https://vitess.io/docs/get-started/local/" > "${RELEASE_DIR}"/README.md
echo "Follow the binary installation instructions at: https://vitess.io/docs/get-started/local/" > "${RELEASE_DIR}"/share/vitess/examples/README.md

cd "${RELEASE_DIR}/.."
tar -czf "${TAR_FILE}" "${RELEASE_ID}"

cd "${RELEASE_DIR}"
PREFIX=${PREFIX:-/usr}

fpm \
--force \
--input-type dir \
Expand All @@ -56,10 +60,9 @@ fpm \
--url "https://vitess.io/" \
--description "${DESCRIPTION}" \
--license "Apache License - Version 2.0, January 2004" \
--prefix "/vt" \
--directories "/vt" \
--before-install "$VTROOT/tools/preinstall.sh" \
--prefix "$PREFIX" \
-C "${RELEASE_DIR}" \
--before-install "$VTROOT/tools/preinstall.sh" \
--package "$(dirname "${RELEASE_DIR}")" \
--iteration "${SHORT_REV}" \
-t deb --deb-no-default-config-files
Expand All @@ -72,14 +75,14 @@ fpm \
--url "https://vitess.io/" \
--description "${DESCRIPTION}" \
--license "Apache License - Version 2.0, January 2004" \
--prefix "/vt" \
--directories "/vt" \
--before-install "$VTROOT/tools/preinstall.sh" \
--prefix "$PREFIX" \
-C "${RELEASE_DIR}" \
--before-install "$VTROOT/tools/preinstall.sh" \
--package "$(dirname "${RELEASE_DIR}")" \
--iteration "${SHORT_REV}" \
-t rpm

cd "${VTROOT}"/releases
echo ""
echo "Packages created as of $(date +"%m-%d-%y") at $(date +"%r %Z")"
echo ""
Expand Down