laminar-config/jobs/build-nroam.run

19 lines
494 B
Text
Raw Normal View History

2024-12-15 09:15:52 +01:00
#!/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}/"