-
Notifications
You must be signed in to change notification settings - Fork 0
/
make_tarball.sh
75 lines (64 loc) · 1.37 KB
/
make_tarball.sh
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
FILELIST="
README.1ST
config.dist
avantify.config
cache/
copyright-avantslash.txt
demo-info.txt
expandmsg.js
expandmsg_soylent.js
avantify.cgi
index.cgi
make_tarball.sh
autoupgrade-disabled.sh
diagnostics.cgi
doc/licence.txt
doc/readme.txt
doc/changelog.txt
doc/debugging.txt
css_dist.txt
css/base.icss
css/dark.css
css/invert.css
css/mini_slashdot.icss
css/mini_slashdot.css
css/soylent.icss
css/soylent.css
css/soy-inv.css
css/soy-dark.css
css/desktop_slashdot.css
css/bare.css
css/italquote.css
css/noindent.css
css/noitalic.css
css/noshade.css
css/noscroll.css
css/bigbutton.css
css/font-l.css
css/font-s.css
css/font-xs.css
css/serif.css
authenticate/login.html
authenticate/.htaccess
authenticate/readme.txt
logo40g.png
logo40w.png
logo40b.png
logo40by.png
logo40Sw.png
logo40Sb.png
logo40Sby.png
apple-touch-icon-ipad.png
apple-touch-icon-iphone4.png
apple-touch-icon-iphone.png
favicon.ico
" # closing quote
TARFILE=tarball/avantslash-`date +%Y%m%d`.tar.gz
# ZIPFILE=tarball/avantslash-`date +%Y%m%d`.zip
# note: content of cache directory should not be archived.
tar --no-recursion -czf $TARFILE $FILELIST "$@"
echo $TARFILE
# # prevent updating existing zipfile in case of deleted files
# [ -f $ZIPFILE ] && rm $ZIPFILE
# zip -9q $ZIPFILE $FILELIST "$@"
# echo $ZIPFILE