- range: extmarks/tsquery; renderer: text-change - mise for dev env - get rid of obsolete modules - implement as single file module
This commit is contained in:
6
scripts/env.sh
Normal file
6
scripts/env.sh
Normal file
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
export PREFIX="$(pwd)/.prefix"
|
||||
export VIMRUNTIME="$(nvim -u NORC --headless +'echo $VIMRUNTIME' +'quitall' 2>&1)"
|
||||
|
||||
eval $(luarocks path)
|
||||
43
scripts/make-artifact-tag.sh
Executable file
43
scripts/make-artifact-tag.sh
Executable file
@@ -0,0 +1,43 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# After tagging a release (say, v1.2.3), use this script to publish
|
||||
# lua/u.lua in an artifact branch: artifact-v1.2.3:init.lua. To do so,
|
||||
# invoke the script from the root of the repo like so:
|
||||
#
|
||||
# ./scripts/make-artifact-tag.sh v1.2.3
|
||||
#
|
||||
# This will create a temporary orphan branch, tag it and immediately delete the
|
||||
# branch.
|
||||
#
|
||||
set -euo pipefail
|
||||
|
||||
if [[ $# -ne 1 ]]; then
|
||||
echo "Usage: $0 <TAG>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
TAG="$1"
|
||||
if [[ "$(echo "$TAG" | awk '/^v[0-9]+\.[0-9]+\.[0-9]+$/ { print "YES" }')" != "YES" ]]; then
|
||||
echo "Invalid tag name: expected 'vX.Y.Z'"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
ARTIFACT_TAG="artifact-$TAG"
|
||||
EXISTING_ARTIFACT_TAG=$(git tag -l "$ARTIFACT_TAG")
|
||||
|
||||
if [[ "$ARTIFACT_TAG" = "$EXISTING_ARTIFACT_TAG" ]]; then
|
||||
echo "Artifact tag already exists"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
git worktree add --orphan -b "$ARTIFACT_TAG" "$ARTIFACT_TAG"
|
||||
git cat-file -p "$TAG":lua/u.lua > "$ARTIFACT_TAG"/init.lua
|
||||
|
||||
pushd "$ARTIFACT_TAG"
|
||||
git add --all
|
||||
git commit --message "$ARTIFACT_TAG"
|
||||
git tag "$ARTIFACT_TAG"
|
||||
popd
|
||||
|
||||
git worktree remove -f "$ARTIFACT_TAG"
|
||||
git branch -D "$ARTIFACT_TAG"
|
||||
Reference in New Issue
Block a user