19 lines
560 B
Bash
Executable File
19 lines
560 B
Bash
Executable File
#!/bin/bash
|
|
# Created by Ben Okopnik on Sun Jul 4 12:18:34 EDT 2004
|
|
|
|
cd /var/www/linuxgazette.net
|
|
issue=${1:-`/bin/readlink current`}
|
|
rm -f ftpfiles/lg-$issue.tar.gz
|
|
/bin/tar czf ftpfiles/lg-$issue.tar.gz $issue
|
|
|
|
[ -d "lg" ] && rm -rf lg
|
|
mkdir -p lg
|
|
cd ftpfiles
|
|
ls -l > ../lg/ftpfiles.txt
|
|
cd - > /dev/null
|
|
cp -rd authors faq gx tag archives.html contact.html copying.html current index.html lg.css lg.rss lg_index.html mirrors.html robots.txt search.html lg
|
|
tar czf ftpfiles/lg-base.tar.gz lg
|
|
cp ftpfiles/lg-base.tar.gz ftpfiles/lg-base-new.tar.gz
|
|
rm -rf lg
|
|
|