little marmalade helper script

This commit is contained in:
Gwenhael Le Moine 2012-03-18 16:29:11 +01:00
parent c569afa099
commit dddfa2869d

14
make-marmalade-pkg.sh Executable file
View file

@ -0,0 +1,14 @@
#!/bin/sh
VERSION=$(grep Version: emstar.el | sed 's|^;;[ ]*Version:[ ]*\(.*\)$|\1|g')
mkdir -p emstar-$VERSION/
cat <<EOF > emstar-$VERSION/emstar-pkg.el
(define-package "emstar" "$VERSION"
"Play Emstar in emacs.")
EOF
cp -R emstar-levels emstar.el emstar-$VERSION/
tar cf emstar-$VERSION{.tar,}
rm -fr emstar-$VERSION/