From: | "Sergei Trofimovich (slyfox)" <slyfox@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo commit in src/patchsets/gentoo-headers: rip-headers.sh |
Date: | Thu, 28 Dec 2017 15:53:58 |
Message-Id: | 20171228155355.1CAACAFBD@oystercatcher.gentoo.org |
1 | slyfox 17/12/28 15:53:55 |
2 | |
3 | Modified: rip-headers.sh |
4 | Log: |
5 | rip-headers.sh: add tiny 'usage' banner |
6 | |
7 | Revision Changes Path |
8 | 1.18 src/patchsets/gentoo-headers/rip-headers.sh |
9 | |
10 | file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.18&view=markup |
11 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.18&content-type=text/plain |
12 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?r1=1.17&r2=1.18 |
13 | |
14 | Index: rip-headers.sh |
15 | =================================================================== |
16 | RCS file: /var/cvsroot/gentoo/src/patchsets/gentoo-headers/rip-headers.sh,v |
17 | retrieving revision 1.17 |
18 | retrieving revision 1.18 |
19 | diff -u -r1.17 -r1.18 |
20 | --- rip-headers.sh 28 Dec 2017 15:50:53 -0000 1.17 |
21 | +++ rip-headers.sh 28 Dec 2017 15:53:55 -0000 1.18 |
22 | @@ -1,7 +1,10 @@ |
23 | #!/bin/bash -ex |
24 | |
25 | ver=$1 |
26 | -[[ -z $ver ]] && exit 1 |
27 | +if [[ -z $ver ]]; then |
28 | + echo "Usage: $0 <kernel ver>" |
29 | + exit 1 |
30 | +fi |
31 | [[ ${ver} == linux-* ]] && ver=${ver#linux-} |
32 | ver=${ver%/} |