From 07d6308b41c66f818a8a3ab75632a4f214a424f1 Mon Sep 17 00:00:00 2001
From: fdch <fch226@nyu.edu>
Date: Sat, 16 Oct 2021 15:14:38 -0300
Subject: [PATCH] add release script

---
 Apollo1/release.sh | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100755 Apollo1/release.sh

diff --git a/Apollo1/release.sh b/Apollo1/release.sh
new file mode 100755
index 0000000..9103423
--- /dev/null
+++ b/Apollo1/release.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+BASE=$(pwd)
+RELEASES=$BASE/../Releases
+BUILDDIR=$BASE/builds
+
+for dir in $BUILDDIR/*
+do
+	echo $dir
+	cd $dir
+	ZIPNAME=$RELEASES/$(basename $BASE)-$(basename $dir).zip
+	echo $ZIPNAME
+	zip -r $ZIPNAME *
+	file $ZIPNAME
+	#mv $ZIPNAME $BASE/../Releases
+	cd $BASE
+done