comparison moefetch.sh @ 165:9495944e326b

damn dollar
author edhoprima@gmail.com <edhoprima@gmail.com>
date Fri, 05 Jun 2009 19:21:48 +0000
parents ecc73a13549f
children cc60e8cf7793
comparison
equal deleted inserted replaced
164:ecc73a13549f 165:9495944e326b
68 echo 68 echo
69 echo "Fetching xml file" 69 echo "Fetching xml file"
70 wget "http://${SITE}/post/index.xml?tags=${TAGS}&offset=0&limit=100000" -O "${SITE_DIR}-${TARGET_DIR}-xml" -e continue=off 70 wget "http://${SITE}/post/index.xml?tags=${TAGS}&offset=0&limit=100000" -O "${SITE_DIR}-${TARGET_DIR}-xml" -e continue=off
71 echo "Processing XML file..." 71 echo "Processing XML file..."
72 # xslt evilry 72 # xslt evilry
73 xsltproc - "${SITE_DIR}-{TARGET_DIR}-xml" <<EOF | sed 's/.*\(http.*\)\(\/[a-f0-9]\{32\}\).*\.\([jp][pn]g\)/\1\2.\3/g' | grep ^http > "${SITE_DIR}-${TARGET_DIR}-list" 73 xsltproc - "${SITE_DIR}-${TARGET_DIR}-xml" <<EOF | sed 's/.*\(http.*\)\(\/[a-f0-9]\{32\}\).*\.\([jp][pn]g\)/\1\2.\3/g' | grep ^http > "${SITE_DIR}-${TARGET_DIR}-list"
74 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> 74 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
75 <xsl:output method="xml" indent="yes"/> 75 <xsl:output method="xml" indent="yes"/>
76 <xsl:template match="post"> 76 <xsl:template match="post">
77 <xsl:value-of select="@file_url" /> 77 <xsl:value-of select="@file_url" />
78 </xsl:template> 78 </xsl:template>