medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit c92d4030881af827ccbb05ff83c98bc304a7d113
parent 83d315236aaff2175a307f4eee1d1e54f80bff10
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Thu Dec 29 23:12:34 +0200

Add scripts/make_release.sh and scripts/push_release.sh

Diffstat:
scripts/make_release.sh | 11+++++++++++
scripts/push_release.sh | 6++++++
2 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/scripts/make_release.sh b/scripts/make_release.sh @@ -0,0 +1,11 @@ +#! /bin/sh + +version=$(basename $(pwd)) +find . -type f | xargs chmod 644 +mkdir release +for f in $(find * -type f); do + sha=$(sha256sum -b "$f" | head -c 64) + size=$(stat -c "%s" "$f") + cp "$f" "release/$sha" + echo "$f $sha $size" >> "release/$version.txt" +done diff --git a/scripts/push_release.sh b/scripts/push_release.sh @@ -0,0 +1,6 @@ +#! /bin/sh + +version=$(basename $(pwd)) +cd release +rsync -v * mjs:/var/www/medfall +ssh mjs "echo \"$version\" > /var/www/medfall/version.txt"