gluon/scripts/openwrt_rev.sh

4 lines
131 B
Bash
Raw Normal View History

2013-02-11 03:52:16 +00:00
#!/bin/sh
echo "r$(git --git-dir="$1"/.git/modules/openwrt log | grep -m 1 git-svn-id | awk '{ gsub(/.*@/, "", $0); print $1 }')"