Przeglądaj źródła

strip newlines from date call

new-build-system
Jan Lehnardt 14 lat temu
rodzic
commit
2040394f98
1 zmienionych plików z 4 dodań i 1 usunięć
  1. +4
    -1
      Makefile

+ 4
- 1
Makefile Wyświetl plik

@@ -38,11 +38,14 @@ build-wrappers:
cp -r wrappers/mustache-* $(version)/
cp wrappers/mustache-$(version)/* $(version)
rm -rf wrappers

# update gh-pages with release links & travis

# add $(version)/index.html page (from template)
date=`date`
date=$(strip `date`)
sed -e 's|%version%|$(version)|' \
-e 's|%date%|$(date)' release-index.html > $(version)/index.html

# update index.html to point to $(vesion)
cat index.html.pre > index.html
for release in `ls -p | grep '/'`; do relno=`echo $$release | sed -e 's|/||'`; echo "<li><a href=\"$${release}\">$${relno}</a></li>" >> index.html; done


Ładowanie…
Anuluj
Zapisz