Uniquify keys
[ebib.git] / make-ebib-release.sh
blob8a2850ffc9b617da399dac06ee88d889a952af2a
1 #!/bin/bash
3 BASE=$(pwd)
5 if [ "$1" = "" ] ; then
6 echo "Usage: make-ebib-release.sh <version_number>"
7 exit 1
8 fi
10 version="$1"
11 full_name=ebib-"$version"
13 mkdir "$BASE/$full_name"
14 mkdir -p "$BASE/$full_name/doc/html"
15 mkdir "$BASE/$full_name/info"
16 echo "Created $BASE/$full_name and subdirectories"
17 echo
19 (cd $BASE/src
20 cp ebib.el ChangeLog ../"$full_name"
21 echo "Copied ebib.el and ChangeLog to $full_name"
22 echo
25 (cd $BASE/manual
26 if [ -f html/ebib-manual.html ] ; then
27 mv html/ebib-manual.html ../"$full_name"/doc/html/
28 cp ebib-manual.css ../"$full_name"/doc/html/
29 echo "Moved html manual to $full_name/doc/html/"
30 else
31 echo Warning: ebib-manual.html not found!
33 if [ -f pdf/ebib-manual.pdf ] ; then
34 mv pdf/ebib-manual.pdf ../"$full_name"/doc/
35 echo "Moved pdf manual to $full_name/doc/"
36 else
37 echo Warning: ebib-manual.pdf not found!
39 if [ -f texi/ebib-manual.info ] ; then
40 mv texi/ebib-manual.info ../"$full_name"/info
41 echo "Moved info manual to $full_name/info"
42 else
43 echo Warning: ebib-manual.info not found!
47 (cd $BASE
48 cp INSTALL README ../"$full_name"
49 echo "Copied release files to $full_name"
50 echo
53 (cd $BASE/"$full_name"
54 echo "$version" > VERSION
55 mv ebib.el ebib.el.source
56 sed "s/==VERSION==/$version/" ebib.el.source > ebib.el
57 rm ebib.el.source
58 echo created VERSION
59 echo
62 (cd $BASE
63 tar czf "$full_name".tar.gz "$full_name"
64 echo "Created $full_name.tar.gz"
65 echo
68 echo "Ebib release $version created."
69 echo