I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
site-updater.sh 518 B
Newer Older
  • Learn to ignore specific revisions
  • str4d's avatar
    str4d committed
    #!/bin/sh
    TMP=tmp
    
    mtn update 2>&1 | tee $TMP
    
    
    cat $TMP | grep "^mtn: adding 'i2p2www/translations/\|^mtn: dropping 'i2p2www/translations/\|^mtn: updating 'i2p2www/translations/" >/dev/null
    
    str4d's avatar
    str4d committed
    if [ $? -eq 0 ]; then
      echo "Translations updated, compiling messages"
      ./compile-messages.sh
    fi
    
    
    cat $TMP | grep "^mtn: updating 'i2p2www/.*\.py\|^mtn: updating 'i2p2www/.*/.*\.py" >/dev/null
    
    str4d's avatar
    str4d committed
    if [ $? -eq 0 ]; then
      echo "Python files changed, restarting server"
    
    dev's avatar
    dev committed
      touch /tmp/2fcd2f17-c293-4f77-b4c9-9b266ba70daa
    
    str4d's avatar
    str4d committed
    fi
    
    rm $TMP