File: show_package_desc.sh

package info (click to toggle)
stda 1.3.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch
  • size: 240 kB
  • ctags: 64
  • sloc: sh: 1,664; makefile: 108
file content (19 lines) | stat: -rwxr-xr-x 527 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

PWD=`pwd`

[ x$1 = x--version ] && \
  echo `expr $PWD : ".*\/\(.*\)-[0-9\.]*"` `cat VERSION` && \
  grep "Copyright (C)" README && \
  cat << ! && exit

License: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
!

sed -ne "/^About$/,/^Download$/p" README \
    |tail -n+3 |head -n-3
echo
sed -ne "s/=*//; s/Examples/Examples:/; /^Examples:$/,/^Features$/p" README \
    |head -n-2