[Hpr] question about multi-file show extras for the website

Dave Morriss perloid at autistici.org
Sat Oct 8 05:14:34 PDT 2016


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On 08/10/16 10:22, Ken Fallon wrote:
> 
> You can make a directory starting with hpr and then the number of the
> show. So hpr 9999 will end up as
> 
> hpr9999/index.html
> 
> which will end up as
> 
> http://www.hackerpublicradio.org/eps/hpr9999/index.html
> 
> Have a look at how Dave does it.
> 
> http://hackerpublicradio.org/eps.php?id=2135
> 
> Jon also embeds a lot of images and files some times
> http://hackerpublicradio.org/correspondents.php?hostid=238

I drive my show generation through a Makefile (tailored to the
particular show) and it runs the following rule so I can type 'make
tarfile':

.PHONY : tarfile
tarfile : $(TARFILE)

$(TARFILE) : $(TARDEPS)
        tar --xform 's:*/::' -cvjf $@ $(TARDEPS)

The --xform strips all the directories from the names so that the final
tar file contents look like this:

hpr2135/full_shownotes.html
hpr2135/index.html
hpr2135/speedup

Dave

-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJX+OMaAAoJEEglyQpFdYohlakQAMYIpG23k+Or/gs8ENvqa+oT
CUpBp3O5kI0ZpMKVAOcxtsRtpr8T5zkvt21pUTkMfxbHuXme2GyF1Ujnp/TsTr2N
5lRuttAMStCaJjxGnCmd2S8rTyR+CjgTKF6XUm5NQTpk2NGRAcOO7B59sPnAsFE9
dwdy/R4o8jxTMD7Xx6ihSciGlam5gS8fIU+A2+Ld9D4S13qRTMoA//X9joUCaJ7T
OvuUnk7oaPUu/9bGHsD0iJIhNjs1BX7CWxPZb7G+GJ1BQ520swZ6nVj75HmGZKpD
fei7nPLA8datdjsZU+z3xfAWlaSAU2z9sBNr0qpgGB4/GWLSJbcd42Ayg1TfFDUD
IXCjzJi70ArXtOV36zJ/e/xkKr1DigTQk23ZxJdHelhS2yjIGlO7N48YnSna4K1q
MGfvJBDCDXUNvX8HApUfd8f6WXFAhqieN5TImA1w8VmpZ3Hfe+8QAh3H/Do4xIjh
nWK8/meb074GdbvgjnJHgBDBu8h0Yuaj1OwjZCK/IuNpPQSwhtOG/Y4MEgfUMF5l
Kwxj88I9/+qEsROU630WlUolObqPANgf+vvmZLnbE05mz5n1Dsw0fVuC7jqQURP9
FD7faGuRxtQgmC6kZaugaUOaj7xBzo3dIDf07kHkucrxxWbfekrEYaLs/pbk152b
CQGmBHu9AyET3d83JnhK
=xSNT
-----END PGP SIGNATURE-----




More information about the Hpr mailing list