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 <ecrist@secure-computing.net>
This commit is contained in:
Eric F Crist 2017-12-14 07:34:56 -06:00
parent f58cbc7845
commit fe7cbae65d

View File

@ -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"
}