Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added files required to Package Hyde #13

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*.elc

*.tar
/dist
25 changes: 25 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/sh
set -eu

set -x

if [ ! -f hyde.el ]; then
echo "Please execute this script from root of repository"
exit 2
fi

VERSION=$(sed -ne 's|^(defconst hyde/hyde-version "\(.*\)"|\1|p' hyde.el)
BUILDDIR=dist/Hyde-$VERSION

if [ -d "$BUILDDIR" ]; then
rm -rf $BUILDDIR
fi

mkdir -p "$BUILDDIR"

install -m 644 *.el LICENSE $BUILDDIR
install -m 644 README.md $BUILDDIR/README

tar -C dist -cvf dist/Hyde-$VERSION.tar Hyde-$VERSION
echo "dist/Hyde-$VERSION.tar ready for upload."

3 changes: 3 additions & 0 deletions hyde-pkg.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(define-package "Hyde" "0.3a"
"Emacs major mode to create blogs with Jekyll"
)