-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDOZIP
More file actions
executable file
·35 lines (27 loc) · 801 Bytes
/
Copy pathDOZIP
File metadata and controls
executable file
·35 lines (27 loc) · 801 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
#DATE=`date +%m%d%y_%H%M`
DATE=`date +%m%d%y`
cd ~/
GOODDATE=0
for i in $(seq -w 0 9); do
DATENUM=LOTW_${DATE}_${i}
echo "Checking for '$DATENUM.zip'..."
# if [[ ! -e ${DATENUM}.zip ]]; then
if [[ ! -e ${DATENUM}.zip ]]; then
GOODDATE=1
break;
fi
done;
if [[ GOODDATE -eq 1 ]]; then
echo "Got good DATENUM=${DATENUM}!"
else
echo "Could not find a good name for the zipfile!"
exit;
fi
cd ~/
#rm lotw/lotw.zip 2>/dev/null
zip -y -r $DATENUM lotw/ -x \*.sw[nop] -x \*/.git/\* -x \*/nano
#zip -y -r $DATENUM lotw/ -x \*.sw[nop] -x \*/.git/\* -x lotw/www/examples/games -x lotw/www/examples/sounds
cp $DATENUM.zip usb/ 2>/dev/null && echo "Copied to 'usb'"
cp $DATENUM.zip ssd/ 2>/dev/null && echo "Copied to 'ssd'"
cp $DATENUM.zip unt/ 2>/dev/null && echo "Copied to 'unt'"