no trailing "-" dash in file names
authorWolfram Schneider <wosch@indexdata.dk>
Mon, 20 Oct 2014 11:28:06 +0000 (11:28 +0000)
committerWolfram Schneider <wosch@indexdata.dk>
Mon, 20 Oct 2014 11:28:06 +0000 (11:28 +0000)
test/widgets/Makefile

index dcb3dfa..ba94c02 100644 (file)
@@ -26,7 +26,7 @@ distclean: clean
 test: check
 
 screenshot:
-       file=${PREFIX}.$$(echo "${PHANTOMJS_URL}" | perl -npe 's,(\W),-,g'); \
+       file=${PREFIX}.$$(echo "${PHANTOMJS_URL}" | perl -npe 's,(\W),-,g; s/-$$//;'); \
          ${PHANTOMJS} ${PROG} ${PHANTOMJS_URL} ${IMAGES}/tmp.$$file.png ${SCREENSHOT_WIDTH_HEIGHT} ${TIMEOUT}; \
          mv -f  ${IMAGES}/tmp.$$file.png  ${IMAGES}/$$file.png