diff options
author | Joe DF <joedf@live.ca> | 2018-11-27 16:10:52 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-27 16:10:52 -0500 |
commit | aec205077bec0c4dadc6d631413cabfa77484fce (patch) | |
tree | 85f544338aec6600445d3eff8c808f212afbbf43 /buildrun.sh | |
parent | 440b001ad15b737f49521fe307796c6e89d2d140 (diff) | |
parent | a992570790e074283ef132f87e8c6145f027cd6a (diff) | |
download | base64-aec205077bec0c4dadc6d631413cabfa77484fce.tar.gz |
Merge pull request #3 from vitasam/scripts
Linux shell build script added
Diffstat (limited to 'buildrun.sh')
-rwxr-xr-x | buildrun.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/buildrun.sh b/buildrun.sh new file mode 100755 index 0000000..ef40233 --- /dev/null +++ b/buildrun.sh @@ -0,0 +1,21 @@ +#!/bin/bash +{ set +x; } 2>/dev/null +mkdir bin 2>/dev/null +clear +echo compiling... +gcc test.c base64.c -o bin/test +gcc b64f.c base64.c -s -o bin/b64f +echo running... +bin/test +echo +echo Encoding test image "picture.png" to "picture.b64.txt"... +bin/b64f e picture.png picture.b64.txt +echo +echo Decoding test image from "picture.b64.txt" to "picture.b64.png"... +bin/b64f d picture.b64.txt picture.b64.png +echo Done. +echo See files manually if the programmed works correctly. + + + + |