File: checkChangeLog

package info (click to toggle)
ntp 1%3A4.2.8p15%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 32,776 kB
  • sloc: ansic: 242,968; sh: 6,859; makefile: 3,419; perl: 2,765; yacc: 1,524; python: 1,486; ruby: 817; awk: 417; sed: 47; asm: 37
file content (29 lines) | stat: -rwxr-xr-x 453 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#! /bin/sh

. ./packageinfo.sh

# HMS: Irix doesn't have 'head'...
cl1=`head -1 ChangeLog || sed -e 1q ChangeLog`

case "$repotype" in
 dev) ;;
 stable) ;;
 *) echo "Unexpected repotype <$repotype>"
    exit 1
    ;;
esac

case "$repotype$cl1" in
 dev---)
    echo "Dev repo ChangeLog must not begin with '---'!"
    exit 1
    ;;
 dev*)
    ;;
 stable---)
    ;;
 stable*)
    echo "Stable repo Changelog must begin with '---'!"
    exit 1
    ;;
esac