corrade-nucleus-nucleons – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | #!/bin/sh |
2 | ########################################################################### |
||
3 | ## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ## |
||
4 | ## Please see: http://www.gnu.org/licenses/gpl.html for legal details, ## |
||
5 | ## rights of fair usage, the disclaimer and warranty conditions. ## |
||
6 | ########################################################################### |
||
7 | # Creates a nucleon by scanning current directory for source payloads. # |
||
8 | ########################################################################### |
||
9 | |||
10 | ########################################################################### |
||
11 | # CONFIGURATION # |
||
12 | ########################################################################### |
||
13 | |||
14 | # The compression ratio. |
||
15 | COMPRESSION_RATIO="9" |
||
16 | |||
17 | ########################################################################### |
||
18 | # INTERNALS # |
||
19 | ########################################################################### |
||
20 | |||
21 | NUCLEONS=(*"_"*) |
||
22 | for NUCLEON in "${NUCLEONS[@]}"; do |
||
23 | if [ ! -d "$NUCLEON" ]; then |
||
24 | continue |
||
25 | fi |
||
26 | if [ -f $NUCLEON".zip" ]; then |
||
27 | rm $NUCLEON".zip" |
||
28 | fi |
||
29 | `unset CDPATH && \ |
||
30 | cd $NUCLEON && \ |
||
31 | zip -$COMPRESSION_RATIO -q -r "../$NUCLEON.zip" ./` |
||
32 | done |