update vendor dir

This commit is contained in:
sm
2018-05-11 09:14:17 -07:00
parent 426659c440
commit 1f93adcb25
26 changed files with 6463 additions and 3096 deletions
+15 -11
View File
@@ -229,13 +229,13 @@ function extract {
# The repeated pattern makes up for sed's lack of negative
# lookbehind assertions (for consecutive null bytes).
echo -n "$line" | \
sed 's/^NULLBYTE/\x0/g' | \
sed 's/\([^\\]\)NULLBYTE/\1\x0/g' | \
sed 's/\([^\\]\)NULLBYTE/\1\x0/g' | \
sed 's/\\NULLBYTE/NULLBYTE/g' | \
sed 's/\([^\\]\)EOF/\1/g' | \
sed 's/\\EOF/EOF/g' \
>> "$path"
sed -e 's/^NULLBYTE/\x0/g;
s/\([^\\]\)NULLBYTE/\1\x0/g;
s/\([^\\]\)NULLBYTE/\1\x0/g;
s/\\NULLBYTE/NULLBYTE/g;
s/\([^\\]\)EOF/\1/g;
s/\\EOF/EOF/g;
' >> "$path"
fi
if [[ "$eof_without_newline" -eq 0 ]]; then
echo >> "$path"
@@ -283,11 +283,14 @@ function get_mode {
local mfile=$1
if [ -z "${STAT_OPTION:-}" ]; then
if stat -c '%a' "$mfile" >/dev/null 2>&1; then
# GNU stat
STAT_OPTION='-c'
STAT_FORMAT='%a'
else
# BSD stat
STAT_OPTION='-f'
STAT_FORMAT='%A'
# Octal output, user/group/other (omit file type, sticky bit)
STAT_FORMAT='%OLp'
fi
fi
stat "${STAT_OPTION}" "${STAT_FORMAT}" "$mfile"
@@ -334,9 +337,10 @@ function _create {
< "$file" python -c "$PYTHON_CREATE_FILTER"
else
< "$file" \
sed 's/EOF/\\EOF/g' | \
sed 's/NULLBYTE/\\NULLBYTE/g' | \
sed 's/\x0/NULLBYTE/g'
sed 's/EOF/\\EOF/g;
s/NULLBYTE/\\NULLBYTE/g;
s/\x0/NULLBYTE/g;
'
fi
if [[ "$eof_without_newline" -eq 1 ]]; then
# Finish line with EOF to indicate that the original line did