ee83afa669
* Added xpp/oct612x/Makefile.am: - Compile octasic sources into a convenience library (static, not installed) - Set OCTASIC_CFLAGS in configure.ac, as they are used in two Makefile.am's - Added relevant Makefile.in and Makefile into build_tools/make_dist * In xpp/Makefile.am: - Have USE_OCTASIC conditional (currently configure.ac always set it to true) * Added PBX_USB automake conditional, so we only build our tools if configure'd for libusb. * Create two convenience libraries (libastribank and libecholoader) Statically link them into our tools. * Handle man-pages for the tools. * Remove all new functionality from xpp/Makefile.legacy -- it now contains: - All perl related tools and man-pages - Other misc stuff (udev files, etc.) Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
52 lines
1.1 KiB
Bash
Executable File
52 lines
1.1 KiB
Bash
Executable File
#! /bin/sh
|
|
|
|
if [ "$#" -ne 2 ]; then
|
|
echo >&2 "Usage: $0 <package> <version>"
|
|
exit 1
|
|
fi
|
|
package="$1"
|
|
version="$2"
|
|
tarball_prefix="$package-$version"
|
|
echo "I: Making dist tarball for $tarball_prefix"
|
|
tarball_name="$tarball_prefix.tar.gz"
|
|
|
|
tmp_work_dir=".tmp"
|
|
tmp_version_dir="$tmp_work_dir/$tarball_prefix"
|
|
|
|
if [ "$DESTDIR" != '' ]; then
|
|
destdir="$DESTDIR/"
|
|
fi
|
|
output="$destdir$tarball_name"
|
|
|
|
mkdir -p "$tmp_version_dir"
|
|
git archive --format tar HEAD | tar xf - -C "$tmp_version_dir"
|
|
echo "$version" > "$tmp_version_dir/.version"
|
|
extra_dist='
|
|
autoconfig.h.in
|
|
configure
|
|
ppp/Makefile
|
|
Makefile
|
|
xpp/Makefile
|
|
xpp/oct612x/Makefile
|
|
ppp/Makefile.in
|
|
Makefile.in
|
|
xpp/Makefile.in
|
|
xpp/oct612x/Makefile.in
|
|
auxdir/compile
|
|
auxdir/config.guess
|
|
auxdir/config.sub
|
|
auxdir/depcomp
|
|
auxdir/install-sh
|
|
auxdir/ltmain.sh
|
|
auxdir/missing
|
|
m4/libtool.m4
|
|
m4/ltoptions.m4
|
|
m4/ltsugar.m4
|
|
m4/ltversion.m4
|
|
m4/lt~obsolete.m4
|
|
'
|
|
find $extra_dist | cpio -pudmv "$tmp_version_dir"
|
|
tar czf "$output" -C "$tmp_work_dir" "$tarball_prefix"
|
|
rm -rf "$tmp_work_dir"
|
|
echo "I: tarball is ready: '$output'"
|