Adding more concrete specs

This commit is contained in:
2026-04-27 10:25:41 -04:00
parent b01ef3b6d8
commit 1a4f32b5bd
5 changed files with 20 additions and 8 deletions
+14
View File
@@ -0,0 +1,14 @@
#!/bin/sh
set -eu
ROOT_DIR="$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)"
VERSION="${1:-}"
OUTFILE="${2:-}"
TEMPLATE="$ROOT_DIR/SPECS/element-desktop.spec.in"
if [ -z "$VERSION" ] || [ -z "$OUTFILE" ]; then
echo "usage: $0 VERSION OUTFILE" >&2
exit 1
fi
sed "s/@VERSION@/$VERSION/g" "$TEMPLATE" > "$OUTFILE"