changeset 2:c96b197faa9d default tip

Autmatic Win32 Porting
author VilyaemKenyaz
date Thu, 28 Sep 2023 13:20:40 -0400
parents ba8447ba5f5c
children
files ASCIICAESAR.MAN LICENSE.TXT asciicaesar.c c.ksh c.sh
diffstat 5 files changed, 60 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ASCIICAESAR.MAN	Thu Sep 28 13:20:40 2023 -0400
@@ -0,0 +1,14 @@
+ASCIICAESAR
+.SH
+NAME
+.PP
+AsciiCaesar
+.SH
+SYNOPSIS
+.PP
+asciicaesar (shift amnt) (text)
+.SH
+DESCRIPTION
+.PP
+AsciiCaesar is an encryption and decryption program that shifts the Ascii characters of some text by an
+integer.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/LICENSE.TXT	Thu Sep 28 13:20:40 2023 -0400
@@ -0,0 +1,29 @@
+	CHRISTIAN FREE SOFTWARE LICENSE
+		    CFSL
+
+This software is free and open source charity ware, users are asked
+to donate to the Eastern Orthodox Church by any means.
+
+Redistribution of this project in source and/or binary forms with/without
+modification, are permitted provided that the following conditions are met:
+
+1. Redistributions must retain this notice, the conditions, and the disclaimer.
+2. Redistributions must retain credit to the author, and signage to where the original
+work can be found.
+3. Redistributions cannot become a part of, in anyway shape or form, part of proprietary
+software, or software that is clearly out of line with Christian values.
+4. Redistributions must remain free.
+
+DISCLAIMER
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
+OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
+
+
+
+
--- a/asciicaesar.c	Wed Aug 23 14:10:27 2023 -0400
+++ b/asciicaesar.c	Thu Sep 28 13:20:40 2023 -0400
@@ -5,12 +5,12 @@
 #include <string.h>
 
 void main(int argc, char*argv[]){
-char *string = argv[1];
-int modifier = atoi(argv[2]);
-char newchar;
-for(int i = 0;i != strlen(string);i++){
-newchar = string[i] + modifier;
-printf("%c",newchar);
+	char *string = argv[1];
+	int modifier = atoi(argv[2]);
+	char newchar;
+	for(int i = 0;i != strlen(string);i++){
+		newchar = string[i] + modifier;
+		printf("%c",newchar);
+	}
+	exit(0);
 }
-exit(0);
-}
--- a/c.ksh	Wed Aug 23 14:10:27 2023 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,6 +0,0 @@
-#!/bin/ksh
-clear
-printf "Compiling\n"
-rm asciicaesar
-tcc asciicaesar.c -o asciicaesar
-cp asciicaesar /usr/bin/
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/c.sh	Thu Sep 28 13:20:40 2023 -0400
@@ -0,0 +1,9 @@
+#!/bin/ksh
+clear
+printf "Compiling\n"
+rm asciicaesar
+tcc asciicaesar.c -o asciicaesar
+x86_64-w64-mingw32-gcc harelet.c -o harelet.exe
+mv harelet.exe win32
+mv hareletdvrk.exe win32
+doas cp asciicaesar /usr/bin/