From eedf1a6f8e8f22a4863574b17189a6d901ac8f00 Mon Sep 17 00:00:00 2001 From: "sigonasr2, Sig, Sigo" Date: Fri, 6 May 2022 18:27:13 +0000 Subject: [PATCH] Move script files into its own folder and create a SIG command startup script --- out/DIRECTORY_LISTING | 12 ++++++------ out/articles/DIRECTORY_LISTING | 10 +++++----- out/articles/test articles/DIRECTORY_LISTING | 12 ++++++------ scripts/build.sh | 5 +++++ scripts/clean.sh | 1 + scripts/commit.sh | 3 +++ sig | 1 + 7 files changed, 27 insertions(+), 17 deletions(-) create mode 100755 scripts/build.sh create mode 100755 scripts/clean.sh create mode 100755 scripts/commit.sh create mode 100755 sig diff --git a/out/DIRECTORY_LISTING b/out/DIRECTORY_LISTING index 40b193e..52c09e3 100644 --- a/out/DIRECTORY_LISTING +++ b/out/DIRECTORY_LISTING @@ -18,12 +18,12 @@
-

Directory Listing for /

📁articles 2022-05-06T18:16:24.073441Z gitpod 190
-
🗎codeBackground 2022-05-06T18:16:24.001441Z gitpod 2635
-
🗎otherpage.html 2022-05-06T18:16:24.045441Z gitpod 8892
-
🗎reset.css 2022-05-06T18:16:24.009441Z gitpod 1093
-
🗎sig.css 2022-05-06T18:16:24.021441Z gitpod 4702
-
🗎testfile.html 2022-05-06T18:16:24.049441Z gitpod 829
+

Directory Listing for /

📁articles 2022-05-06T18:25:24.961387Z gitpod 190
+
🗎codeBackground 2022-05-06T18:25:24.901387Z gitpod 2635
+
🗎otherpage.html 2022-05-06T18:25:24.941387Z gitpod 8892
+
🗎reset.css 2022-05-06T18:25:24.909387Z gitpod 1093
+
🗎sig.css 2022-05-06T18:25:24.917387Z gitpod 4702
+
🗎testfile.html 2022-05-06T18:25:24.941387Z gitpod 829
diff --git a/out/articles/DIRECTORY_LISTING b/out/articles/DIRECTORY_LISTING index 9369f6e..02641bd 100644 --- a/out/articles/DIRECTORY_LISTING +++ b/out/articles/DIRECTORY_LISTING @@ -18,11 +18,11 @@
-

Directory Listing for /articles/

🗎curabitur vel tempus ex.article 2022-05-06T18:16:23.981441Z gitpod 579
-
🗎sigplace1.article 2022-05-06T18:16:23.989441Z gitpod 3807
-
📁test articles 2022-05-06T18:16:24.061441Z gitpod 147
-
🗎curabitur vel tempus ex.article.html 2022-05-06T18:16:24.053441Z gitpod 1296
-
🗎sigplace1.article.html 2022-05-06T18:16:24.057441Z gitpod 4524
+

Directory Listing for /articles/

🗎curabitur vel tempus ex.article 2022-05-06T18:25:24.885387Z gitpod 579
+
🗎sigplace1.article 2022-05-06T18:25:24.889387Z gitpod 3807
+
📁test articles 2022-05-06T18:25:24.953387Z gitpod 147
+
🗎curabitur vel tempus ex.article.html 2022-05-06T18:25:24.945387Z gitpod 1296
+
🗎sigplace1.article.html 2022-05-06T18:25:24.949387Z gitpod 4524
diff --git a/out/articles/test articles/DIRECTORY_LISTING b/out/articles/test articles/DIRECTORY_LISTING index b3910d1..ff3f618 100644 --- a/out/articles/test articles/DIRECTORY_LISTING +++ b/out/articles/test articles/DIRECTORY_LISTING @@ -18,12 +18,12 @@
-

Directory Listing for /articles/test articles/

🗎test1.article 2022-05-06T18:16:23.989441Z gitpod 1068
-
🗎test2.article 2022-05-06T18:16:23.993441Z gitpod 764
-
🗎test3.article 2022-05-06T18:16:23.993441Z gitpod 977
-
🗎test1.article.html 2022-05-06T18:16:24.057441Z gitpod 1785
-
🗎test2.article.html 2022-05-06T18:16:24.061441Z gitpod 1481
-
🗎test3.article.html 2022-05-06T18:16:24.061441Z gitpod 1694
+

Directory Listing for /articles/test articles/

🗎test1.article 2022-05-06T18:25:24.889387Z gitpod 1068
+
🗎test2.article 2022-05-06T18:25:24.893387Z gitpod 764
+
🗎test3.article 2022-05-06T18:25:24.893387Z gitpod 977
+
🗎test1.article.html 2022-05-06T18:25:24.949387Z gitpod 1785
+
🗎test2.article.html 2022-05-06T18:25:24.953387Z gitpod 1481
+
🗎test3.article.html 2022-05-06T18:25:24.953387Z gitpod 1694
diff --git a/scripts/build.sh b/scripts/build.sh new file mode 100755 index 0000000..4dc77d1 --- /dev/null +++ b/scripts/build.sh @@ -0,0 +1,5 @@ +rm -Rf out/* +javac -Xlint:unchecked -cp . sigPlace.java +printf "\n\n\nRunning Program...\n\n" +java sigPlace "$@" +./scripts/clean.sh \ No newline at end of file diff --git a/scripts/clean.sh b/scripts/clean.sh new file mode 100755 index 0000000..1573eb4 --- /dev/null +++ b/scripts/clean.sh @@ -0,0 +1 @@ +find . -type f -name "*.class" -delete \ No newline at end of file diff --git a/scripts/commit.sh b/scripts/commit.sh new file mode 100755 index 0000000..affdbe3 --- /dev/null +++ b/scripts/commit.sh @@ -0,0 +1,3 @@ +git add * +git commit -m "$*" +git push \ No newline at end of file diff --git a/sig b/sig new file mode 100755 index 0000000..b3914fc --- /dev/null +++ b/sig @@ -0,0 +1 @@ +./scripts/$1.sh "${*:2}" \ No newline at end of file