Skip to content

Commit

Permalink
Merge branch 'master' of github.com:victorhge/iedit
Browse files Browse the repository at this point in the history
  • Loading branch information
victorhge committed Dec 8, 2012
2 parents 57beb10 + b3ebd84 commit 060b359
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions release.sh
@@ -0,0 +1,22 @@
#!/bin/sh

# Create a tar file from the current sources for e.g. Marmalade.

VERSION="$(sed -ne 's/^;; Version: *\([0-9.]*\)/\1/p' iedit.el)"

mkdir -p release
mkdir -p "release/iedit-$VERSION"
cp *.el README.org "release/iedit-$VERSION"
echo "(define-package \"iedit\" \"$VERSION\" \"Edit multiple regions in the same way simultaneously.\" '())" > "release/iedit-$VERSION/iedit-pkg.el"

AUTOLOADS="$(pwd)/release/iedit-$VERSION/iedit-autoloads.el"
emacs -q --batch --eval \
"(let ((generated-autoload-file \"$AUTOLOADS\"))
(batch-update-autoloads))" \
"release/iedit-$VERSION"
rm -f "release/iedit-$VERSION"/*.el~
tar -C release -c "iedit-$VERSION" > "release/iedit-${VERSION}.tar"
rm -rf "release/iedit-$VERSION"

echo
echo "Release read for upload in release/iedit-${VERSION}.tar"

0 comments on commit 060b359

Please sign in to comment.