shmage-site

scripts and documents that generate shmage.xyz
git clone git://git.shmage.xyz/shmage-site.git
Log | Files | Refs

publish (504B)


      1 #!/bin/sh
      2 
      3 die(){
      4 	echo "$1"; exit 1
      5 }
      6 
      7 ([[ -d bin ]] && [[ -d src ]]) || die "must run within base folder"
      8 
      9 echo "generating website..."
     10 mkdir -p dst
     11 bin/ssg5 src dst 'shmage' 'https://shmage.xyz' || die "ssg5 exited with an error"
     12 echo "generating RSS..."
     13 bin/indexgen > dst/rssindex.html
     14 bin/rssg dst/rssindex.html 'shmage blog' > dst/rss.xml || die "rssg exited with an error"
     15 echo "copying files..."
     16 rsync -rvPz --delete dst/ ssg@shmage.xyz:/var/www/shmage-site/ || die "rsync exited with an error"