laminar-config/jobs/build-nroam.run
2024-12-15 00:15:52 -08:00

18 lines
494 B
Bash
Executable file

#!/bin/bash -ex
git clone --depth 1 git://ryuslash.org/aliens/nroam.git .
# Prepare package
version=$(date +%Y%m%d.%-H%M)
dist="nroam-${version}"
mkdir $dist
cp *.el $dist
## Update version number
pushd $dist
sed -i "s/\\(;; Version: \\).*/\\1${version}/" *.el
echo "(define-package \"nroam\" \"${version}\" \"Org-roam backlinks within org-mode buffers\" '((emacs \"26.1\") (org-roam \"1.2.3\") (org \"9.4.4\"))" \
> nroam-pkg.el
popd
tar cf $dist.tar $dist/
mv $dist.tar "${ARCHIVE}/"