Commit the local DARCS CFFI repo, as well as update to today.
[CommonLispStat.git] / external / cffi.darcs / _darcs / pristine / scripts / release.sh
blobcec2716f87b7e28b10f70d171ae38a49fa690a67
1 #! /bin/sh
3 # release.sh --- Create a signed tarball release for ASDF-INSTALL.
5 # Copyright (C) 2005-2006, James Bielman <jamesjb@jamesjb.com>
7 # Permission is hereby granted, free of charge, to any person
8 # obtaining a copy of this software and associated documentation
9 # files (the "Software"), to deal in the Software without
10 # restriction, including without limitation the rights to use, copy,
11 # modify, merge, publish, distribute, sublicense, and/or sell copies
12 # of the Software, and to permit persons to whom the Software is
13 # furnished to do so, subject to the following conditions:
15 # The above copyright notice and this permission notice shall be
16 # included in all copies or substantial portions of the Software.
18 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
19 # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20 # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
21 # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
22 # HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
23 # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25 # DEALINGS IN THE SOFTWARE.
28 VERSION=${VERSION:=`date +"%Y%m%d"`}
29 TARBALL_NAME="cffi_$VERSION"
30 TARBALL="$TARBALL_NAME.tar.gz"
31 SIGNATURE="$TARBALL.asc"
32 RELEASE_DIR=${RELEASE_DIR:="/project/cffi/public_html/releases"}
34 echo "Creating distribution..."
35 darcs dist -d "$TARBALL_NAME"
37 echo "Signing tarball..."
38 gpg -b -a "$TARBALL_NAME.tar.gz"
40 echo "Copying tarball to web server..."
41 scp "$TARBALL" "$SIGNATURE" common-lisp.net:"$RELEASE_DIR"
43 echo "Uploaded $TARBALL and $SIGNATURE."
44 echo "Don't forget to update the link on the CLiki page!"