forked from bobrathbone/piradio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
create_tar.sh
21 lines (13 loc) · 957 Bytes
/
create_tar.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
# $Id: create_tar.sh,v 1.38 2016/04/30 09:09:11 bob Exp $
FILELIST="README config_class.py lcd_class.py lcd_i2c_pcf8574.py lcd_i2c_class.py log_class.py radio4.py rradio4.py rradiobp.py rradiobp4.py radio_class.py ada_*.py i2c_class.py radio_daemon.py radiod.py rradiod.py rss_class.py test_lcd.py test_ada_lcd.py test_switches.py rotary_class.py test_rotary_class.py create_podcasts.py create_m3u.py display_current.py rc_daemon.py radio_piface.py remote_control.py test_remote_control.py display_model.py radiod.logrotate translate_class.py station.urls podcasts.dist rss/* cron.hourly/* contributors/*"
WEBPAGES="/var/www/* /usr/lib/cgi-bin/select_*"
# Cleanup
sudo rm -f *.pyc
sudo chown -R pi:pi /home/pi/develop/pi/radio/${FILELIST}
sudo chmod +x *.py
# Create radio software tar file
sudo tar -cvzf pi_radio.tar.gz ${FILELIST}
# Create Web pages tar file
sudo tar -cvzf pi_radio_web.tar.gz ${WEBPAGES}
sudo chown pi:pi *.gz