Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

44 lines (33 sloc) 1.174 kb
#!/bin/bash
## Build an elpa package for slime
VERSION=$(grep -E -o "[0-9]{4,4}-[0-9]{1,2}-[0-9]{1,2}" slime/ChangeLog | head -1 | sed -e "s/-//g" )
echo "SLIME version $VERSION"
dest="slime-$VERSION"
rm -rf "marmalade/$dest" "marmalade/slime"
find slime \( -name '*.el' -or -name 'ChangeLog' \) | cpio -pd marmalade
# remove the slime-clj contrib
rm -f marmalade/slime/contrib/slime-clj.el
# add an elpa style header
sed -i .bak \
-e "/For a detailed/ i \\
;; Authors: Eric Marsden, Luke Gorrie, Helmut Eller, Tobias C. Rittweiler" \
-e "/For a detailed/ i \\
;; URL: http://common-lisp.net/project/slime/" \
-e "/For a detailed/ i \\
;; Keywords: languages, lisp, slime" \
-e "/For a detailed/ i \\
;; Version: $VERSION" \
-e "/For a detailed/ i \\
;; Adapted-by: Hugo Duncan" \
-e "/For a detailed/ i \\
;;" \
marmalade/slime/slime.el
rm marmalade/slime/slime.el.bak
# create a package descriptor
cat > marmalade/slime/slime-pkg.el <<EOF
(define-package "slime" "$VERSION"
"Superior Lisp Interaction Mode for Emacs")
EOF
mv marmalade/slime marmalade/$dest
( cd marmalade; tar cvf ../$dest.tar $dest )
ls -l $dest.tar
Jump to Line
Something went wrong with that request. Please try again.