Skip to content

Commit

Permalink
etc/dist.sh: put archive in out/ dir instead of out/compis-v... dir
Browse files Browse the repository at this point in the history
  • Loading branch information
rsms committed Mar 11, 2023
1 parent faf6a72 commit 6f16376
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions etc/dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ esac
CO_VERSION=$(cat "$PROJECT/version.txt")
BUILDDIR=out/dist
DESTDIR=out/dist/compis-$CO_VERSION-$ARCH-$SYS
ARCHIVE_SHA256SUM=$DESTDIR.sha256.txt
ARCHIVE=out/compis-$CO_VERSION-$ARCH-$SYS.tar.xz

_regenerate_sysinc_dir

Expand Down Expand Up @@ -47,10 +47,5 @@ for name in \
_symlink "$DESTDIR/$name" compis
done

echo "creating $DESTDIR.tar.xz"
_create_tar_xz_from_dir $DESTDIR $DESTDIR.tar.xz

echo "creating $DESTDIR.sha256.txt"
( cd $(dirname $DESTDIR) &&
sha256sum $(basename $DESTDIR.tar.xz) > $(basename $DESTDIR.sha256.txt)
)
echo "creating $ARCHIVE"
_create_tar_xz_from_dir $DESTDIR $ARCHIVE

0 comments on commit 6f16376

Please sign in to comment.