Browse Source

removed find -regex and merged pattern into awk command

basically this means that rivet works on alpine (busybox)
master
Alessandro Mauri 3 weeks ago
parent
commit
8f1508e200
2 changed files with 3 additions and 4 deletions
  1. +1
    -1
      makefile
  2. +2
    -3
      rivet.sh

+ 1
- 1
makefile View File

@ -1,4 +1,4 @@
VERSION = 0.3
VERSION = 0.3.1
PREFIX = /usr/local
MANPREFIX = ${PREFIX}/share/man


+ 2
- 3
rivet.sh View File

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh
# Copyright (c) 2021 Alessandro Mauri
#
@ -169,8 +169,7 @@ cp -r "$srcdir"/* "$destdir"
rm -f "$destdir"/_header.html "$destdir"/_footer.html "$destdir"/_metadata.html
# Generate an ordered (by open time) file list
find "$srcdir" -type f -regex '.*\/[^_].+\..*' -exec ls -1t {} + |
awk '/.*\.(md|html)$/' > "$objlist"
find "$srcdir" -type f -exec ls -1t {} + | awk '/^.*\/[^_].+\.(md|html)$/' > "$objlist"
rm -f "$objdate"
while IFS="" read -r file; do
stat -c '%y' "$file" >> "$objdate"


Loading…
Cancel
Save