Welcome to the CHICKEN Scheme pasting service
chicken-update-all script, redux added by elflng on Wed Jan 11 20:01:23 2023
#!/bin/bash TMPD=`mktemp -d` wget -q -O ${TMPD}/rss.xml http://eggs.call-cc.org/rss-5.xml ALLEGGS=`chicken-status | sed -e 's/^\([^ ]*\) .*version: \(.*\)$/\1::\2/'` for i in ${ALLEGGS} ; do e=${i%::*} v=${i#*::} nv="`grep "^<title>${e} ${v} .*$" ${TMPD}/rss.xml`" if [ -z "${nv}" ] ; then gv="`grep "<title>${e} .*$" ${TMPD}/rss.xml | sed -e "s/^<title>${e} \([^ ]*\) .*$/\1/"`" echo "getting version ${gv} for egg ${e}..." chicken-install ${e}:${gv} fi done rm -r ${TMPD}