12 380 B

123456789
  1. #devscripts/release.sh: Version determination for youtube-dl
  2. #ln=
  3. if [ -z "$1" ]; then echo "ERROR: specify version number like this: $0 1994.09.06"; exit 1; fi
  4. version="$1"
  5. major_version=$(echo "$version" | sed -n 's#^\([0-9]*\.[0-9]*\.[0-9]*\).*#\1#p')
  6. if test "$major_version" '!=' "$(date '+%Y.%m.%d')"; then
  7. echo "$version does not start with today's date!"
  8. exit 1
  9. fi