From fe7cbae65d5b51a5b90600fa9d1883d4861be8a3 Mon Sep 17 00:00:00 2001 From: Eric F Crist Date: Thu, 14 Dec 2017 07:34:56 -0600 Subject: [PATCH] unix2dos and fix tar command * Run the Windows specific files through unix2dos for easier consumption * Modify the tar command options to better support "build" on FreeBSD Signed-off-by: Eric F Crist --- build/build-dist.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/build-dist.sh b/build/build-dist.sh index ac909d2..eb56f29 100755 --- a/build/build-dist.sh +++ b/build/build-dist.sh @@ -114,6 +114,7 @@ stage_win() { for f in $src_files do cp -a "$SRC_ROOT/distro/windows/$f" "$DIST_ROOT/windows/$PV" || die "failed to copy $f" + unix2dos "$DIST_ROOT/windows/$PV/$f" || die "unix2dos conversion failed for $f" done # create bin dir with windows binaries @@ -125,7 +126,7 @@ stage_win() { } make_tar() { - (cd "$DIST_ROOT/unix/"; tar cz "$PV") > "$BIN_DEST/${PV}.tgz" || die "tar failed" + (cd "$DIST_ROOT/unix/"; tar -czf "$BIN_DEST/${PV}.tgz" "$PV") || die "tar failed" note "tarball created at: $BIN_DEST/${PV}.tgz" }