19 lines
494 B
Text
19 lines
494 B
Text
|
#!/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}/"
|