File: prep-release.sh

package info (click to toggle)
wyrd 1.4.6-4
  • links: PTS
  • area: main
  • in suites: buster, stretch
  • size: 1,820 kB
  • ctags: 1,969
  • sloc: ml: 11,059; sh: 5,531; ansic: 760; makefile: 304; python: 44
file content (32 lines) | stat: -rwxr-xr-x 694 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
# 'prep-release' script
# Make all the last-minute changes to prepare the sources for packaging
# in a release tarball
#
# Usage: prep-release.sh DESTDIR
#

set -e

CURSES_BRANCH=lp:ubuntu/ocaml-curses
CURSES_REVISION=8

echo "Exporting revision..."
bzr export $1
echo "Exporting dependencies..."
bzr export -r $CURSES_REVISION $1/curses $CURSES_BRANCH

cd $1
pushd curses
echo "Generating curses/configure ..."
autoheader && autoconf && rm -rf autom4te.cache
popd

echo "Generating ./configure ..."
autoconf && rm -rf autom4te.cache
echo "Generating _oasis and setup.ml ..."
./make_oasis.ml && oasis setup
echo "Creating documentation..."
cd doc && make &> /dev/null
echo "Done."