From cbac68a8c48e03dce4a4fafbdf4c3c2b5419ea5a Mon Sep 17 00:00:00 2001 From: sigonasr2 Date: Sun, 17 Jul 2022 14:19:00 -0500 Subject: [PATCH] Complete Co-authored-by: sigonasr2 --- C/scripts/archive.sh | 11 +++++++++++ utils/main.sh | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100755 C/scripts/archive.sh diff --git a/C/scripts/archive.sh b/C/scripts/archive.sh new file mode 100755 index 0000000..867dd74 --- /dev/null +++ b/C/scripts/archive.sh @@ -0,0 +1,11 @@ +#Archives the current project under the applicable program name. +#C +if [[ "$#" -eq 2 ]]; +then + mkdir archives/$1 + cp -R src current archives/$1 + ./sig commit ${*:2} +else + echo "Usage: " + echo " ./sig archive " +fi \ No newline at end of file diff --git a/utils/main.sh b/utils/main.sh index d299d6b..3ce29e8 100644 --- a/utils/main.sh +++ b/utils/main.sh @@ -25,4 +25,4 @@ if [ -z "$1" ] exit fi -./$LANGUAGE/scripts/$1.sh "${*:2}" \ No newline at end of file +./$LANGUAGE/scripts/$1.sh ${*:2} \ No newline at end of file