Initial commit

This commit is contained in:
Administrator
2021-03-17 20:00:17 +08:00
committed by Andy Hu
commit c47c340fa2
48 changed files with 4029 additions and 0 deletions

39
conf/version Executable file
View File

@@ -0,0 +1,39 @@
#! /bin/sh
usage() {
echo "Usage: $0 [srctree]" >&2
exit 1
}
cd "${1:-.}" || usage
echo "#! /bin/sh"
echo ""
echo "cat /proc/version"
if head=`git rev-parse --verify --short HEAD 2>/dev/null`; then
atag="`git describe 2>/dev/null`"
# Show -g<commit> if we have no tag, or just the tag
# otherwise.
if [ -z "${atag}" ] ; then
atag=$atag"-g"${head}
fi
# Check for uncommitted changes
if git diff-index --name-only HEAD | grep -v "^scripts/package" \
| read dummy; then
atag=$atag"-dirty"
fi
echo "echo \"$atag\""
fi
jh7110_flag=JH7110
for atag in $(git tag --merge HEAD --sort=-taggerdate | grep "${jh7110_flag}")
do
echo "echo \"$atag\""
exit
done