summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua MacDonald <josh.macdonald@gmail.com>2016-05-04 22:35:23 -0700
committerJoshua MacDonald <josh.macdonald@gmail.com>2016-05-04 22:35:23 -0700
commitc05f1ee5e52cfa8e37e21b381e42681e5edef330 (patch)
tree00b588a6590e88fcbcfff48894dbe807ab6e399f
parentf89cbc46d874b958678bef1a6bfa33912ddbcbd0 (diff)
Make run_release.sh handle build directory missing / not empty
-rw-r--r--xdelta3/Makefile.am4
-rw-r--r--xdelta3/configure.ac3
l---------xdelta3/install-sh2
-rwxr-xr-xxdelta3/run_release.sh15
4 files changed, 16 insertions, 8 deletions
diff --git a/xdelta3/Makefile.am b/xdelta3/Makefile.am
index 2280083..d89584d 100644
--- a/xdelta3/Makefile.am
+++ b/xdelta3/Makefile.am
@@ -46,7 +46,7 @@ xdelta3checksum_SOURCES = $(common_SOURCES) \
46# not automatically built or run. Install Go-1.5.x or later, add 46# not automatically built or run. Install Go-1.5.x or later, add
47# `pwd`/go in $GOPATH, and (cd go/src && go run regtest.go). 47# `pwd`/go in $GOPATH, and (cd go/src && go run regtest.go).
48# TODO(jmacd): replace hard-coded path names in regtest.go w/ flags. 48# TODO(jmacd): replace hard-coded path names in regtest.go w/ flags.
49GOLANG_SOURCES = \ 49GOLANG_SRCS = \
50 go/src/xdelta/test.go \ 50 go/src/xdelta/test.go \
51 go/src/xdelta/rstream.go \ 51 go/src/xdelta/rstream.go \
52 go/src/xdelta/tgroup.go \ 52 go/src/xdelta/tgroup.go \
@@ -123,7 +123,7 @@ EXTRA_DIST = \
123 README.md \ 123 README.md \
124 run_release.sh \ 124 run_release.sh \
125 draft-korn-vcdiff.txt \ 125 draft-korn-vcdiff.txt \
126 $(GOLANG_SOURCES) \ 126 $(GOLANG_SRCS) \
127 examples/Makefile \ 127 examples/Makefile \
128 examples/README.md \ 128 examples/README.md \
129 examples/compare_test.c \ 129 examples/compare_test.c \
diff --git a/xdelta3/configure.ac b/xdelta3/configure.ac
index a6ba41a..5d81f38 100644
--- a/xdelta3/configure.ac
+++ b/xdelta3/configure.ac
@@ -3,7 +3,8 @@ AC_INIT([Xdelta3], [3.1.1], [josh.macdonald@gmail.com],
3AC_PREREQ([2.68]) 3AC_PREREQ([2.68])
4AC_CONFIG_MACRO_DIR([m4]) 4AC_CONFIG_MACRO_DIR([m4])
5LT_INIT 5LT_INIT
6AM_INIT_AUTOMAKE([1.9 no-define foreign tar-ustar subdir-objects]) 6AM_INIT_AUTOMAKE([1.15 no-define foreign tar-ustar subdir-objects])
7AC_CONFIG_MACRO_DIRS([m4])
7 8
8AX_CHECK_ALIGNED_ACCESS_REQUIRED 9AX_CHECK_ALIGNED_ACCESS_REQUIRED
9AC_PROG_CC 10AC_PROG_CC
diff --git a/xdelta3/install-sh b/xdelta3/install-sh
index 292a426..545f111 120000
--- a/xdelta3/install-sh
+++ b/xdelta3/install-sh
@@ -1 +1 @@
/usr/share/automake-1.14/install-sh \ No newline at end of file /opt/local/share/automake-1.15/install-sh \ No newline at end of file
diff --git a/xdelta3/run_release.sh b/xdelta3/run_release.sh
index a6933b5..ca1e47e 100755
--- a/xdelta3/run_release.sh
+++ b/xdelta3/run_release.sh
@@ -5,7 +5,7 @@ SRCDIR=${PWD}
5 5
6# TODO replace w/ wget 6# TODO replace w/ wget
7LZMA="xz-5.2.1" 7LZMA="xz-5.2.1"
8LZMA_FILE="${SRCDIR}/../${LZMA}.tar.xz" 8LZMA_FILE="${SRCDIR}/../${LZMA}.tar.gz"
9 9
10MAKEFLAGS="-j 10" 10MAKEFLAGS="-j 10"
11 11
@@ -40,15 +40,22 @@ if [ "${TMPDIR}" != "" ]; then
40 XTMP="${TMPDIR}" 40 XTMP="${TMPDIR}"
41fi 41fi
42 42
43find build -type f 2> /dev/null | xargs rm -f 43BUILDFILES=`ls -A ${BUILDDIR} 2> /dev/null`
44if [ -d "${BUILDDIR}" ]; then
45 if [ -n "${BUILDFILES}" ]; then
46 echo "Directory ${BUILDDIR} should be empty"
47 exit 1
48 fi
49else
50 mkdir "${BUILDDIR}"
51fi
44 52
45function setup { 53function setup {
46 libtoolize 54 libtoolize || glibtoolize
47 automake --add-missing 55 automake --add-missing
48 aclocal -I m4 56 aclocal -I m4
49 autoheader 57 autoheader
50 automake 58 automake
51 autoheader
52 autoconf 59 autoconf
53} 60}
54 61