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