Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Commit

Permalink
refactor dist script
Browse files Browse the repository at this point in the history
  • Loading branch information
LunarLambda committed Nov 12, 2022
1 parent b9c43bf commit 8511f96
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,12 @@

DIST=$PWD/dist

(
PROJECT=libseven
VERSION=0.7.1
cd $PROJECT
git archive -o $DIST/$PROJECT-$VERSION.zip --prefix=$PROJECT-$VERSION/ HEAD .
cd $DIST
sha256sum -b $PROJECT-$VERSION.zip > $PROJECT-$VERSION.zip.sha256sum
)
make_dist() {
cd ${DIR:-$PROJECT}
git archive -o $DIST/$PROJECT-$VERSION.zip --prefix=$PROJECT-$VERSION/ HEAD .
cd $DIST
sha256sum -b $PROJECT-$VERSION.zip > $PROJECT-$VERSION.zip.sha256sum
}

(
PROJECT=minrt
VERSION=0.2.0
cd $PROJECT
git archive -o $DIST/dist/$PROJECT-$VERSION.zip --prefix=$PROJECT-$VERSION/ HEAD .
cd $DIST
sha256sum -b $PROJECT-$VERSION.zip > $PROJECT-$VERSION.zip.sha256sum
)
(PROJECT=libseven VERSION=0.7.1 make_dist)
(PROJECT=minrt VERSION=0.2.0 make_dist)

0 comments on commit 8511f96

Please sign in to comment.