Initial commit with tools
This commit is contained in:
commit
a4dc3014f4
8
.build/SHA256SUMS
Normal file
8
.build/SHA256SUMS
Normal file
|
@ -0,0 +1,8 @@
|
|||
37443111dd6f7c7600571f9e6f3b901fa8ab5c717d005406b4a4f14a54e2c9be gaborator-1.0.tar.gz
|
||||
de4be574f4bd9139bbf38582b9c8db31b4b6de2ce0d4fa696e8b79f0ae8a58a1 gaborator-1.1.tar.gz
|
||||
bfc6c541a5dea8fe7174e21b8245a15a08ef0e7b7032fbe68deb3e86234a172a gaborator-1.2.tar.gz
|
||||
4492507442546ab173deef57869b12fedc6a2c71c5ccd11882c1cd7a380227f7 gaborator-1.3.tar.gz
|
||||
2fe3bbfde88d1020a386927abbe093051470ed50102aa8fda4f3813cba40fbf4 gaborator-1.4.tar.gz
|
||||
1fdfb8068595f50e8684ecc939161a127ea550c8f81aac8bef44379ea1ca6709 gaborator-1.5.tar.gz
|
||||
5f701783ad311666bb32ba7d6fede765af4927895b1e50e3c92d94d0b5e197fb gaborator-1.6.tar.gz
|
||||
7027d71d8db7efd1949f3a8de134d2d43fd57e268aa808a9e177ea86f2d20f3c gaborator-1.7.tar.gz
|
50
.build/setup.sh
Executable file
50
.build/setup.sh
Executable file
|
@ -0,0 +1,50 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
function download_check {
|
||||
fname="${1}"
|
||||
hash="${2}"
|
||||
|
||||
if [ ! -f "${fname}" ]; then
|
||||
wget -O "${fname}" "https://download.gaborator.com/gaborator/${fname}"
|
||||
fi
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
VERSIONS="1.0 1.1 1.2 1.3 1.4 1.5 1.6 1.7"
|
||||
|
||||
|
||||
for v in $VERSIONS; do
|
||||
download_check "gaborator-${v}.tar.gz"
|
||||
done
|
||||
|
||||
sha256sum -c SHA256SUMS
|
||||
if [[ $? != 0 ]]; then
|
||||
echo "some hashes do not match!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
for v in $VERSIONS; do
|
||||
git rev-list "v${v}"
|
||||
if [[ $? != 0 ]]; then
|
||||
pushd ../
|
||||
rm -r doc examples gaborator CHANGES LICENSE README
|
||||
popd
|
||||
tar --extract -f "gaborator-${v}.tar.gz"
|
||||
pushd "gaborator-${v}"
|
||||
cp -rv . ../../
|
||||
popd
|
||||
release_date=$(date -r "gaborator-${v}.tar.gz" -R --utc)
|
||||
pushd ../
|
||||
git add doc examples gaborator LICENSE README
|
||||
git add CHANGES
|
||||
GIT_AUTHOR_DATE="${release_date}" GIT_COMMITTER_DATE="${release_date}" git commit -m "Release ${v}"
|
||||
GIT_COMMITTER_DATE="${release_date}" git tag -s "v${v}" -m "Release ${v}"
|
||||
popd
|
||||
rm -r "gaborator-${v}"
|
||||
fi
|
||||
done
|
||||
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
.build/*.tar.gz
|
Loading…
Reference in a new issue