freebsd-dev/sys/contrib/device-tree/scripts/index-filter.sh
Emmanuel Vadot c66ec88fed Add 'sys/contrib/device-tree/' from commit '5ee353c36d3c9c7f63df7c7671875e73fba70958'
git-subtree-dir: sys/contrib/device-tree
git-subtree-mainline: 94611a8388
git-subtree-split: 5ee353c36d
2021-01-15 12:28:57 +01:00

15 lines
260 B
Bash
Executable File

#!/bin/bash
set -e
set -o pipefail
${SCRIPTS}/rewrite-index.pl | GIT_INDEX_FILE=$GIT_INDEX_FILE.new git update-index --index-info
if [ -f "$GIT_INDEX_FILE.new" ] ; then
mv "$GIT_INDEX_FILE.new" "$GIT_INDEX_FILE"
else
rm "$GIT_INDEX_FILE"
fi
exit 0