File: create_patches_rename_library.sh

package info (click to toggle)
starlink-ast 9.2.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 27,508 kB
  • sloc: ansic: 188,436; sh: 11,451; makefile: 711; perl: 166
file content (21 lines) | stat: -rwxr-xr-x 677 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
#!/bin/sh
VENDOR=starlink
LIBNAME=ast

PATCH_SED_CMD="s/lib${LIBNAME}/lib${VENDOR}_${LIBNAME}/g"
FILES="Makefile.am ast_link.in ast.news"

cat > debian/patches/rename_library <<EOF
Author: Ole Streicher <olebole@debian.org>
Last-Update: $(date +%Y-%m-%d)
Description: "${LIBNAME}" is a quite short name for a library that is so 
 specific as this one. Therefore, and for consistency with the "pal" library, 
 "${LIBNAME}" is prefixed by the vendor name "${VENDOR}".
 .
 This patch can be re-created by running 
  ${0}
 on the freshly unpacked source tarball.
$(for f in ${FILES} ; do \
 sed ${PATCH_SED_CMD} < ${f} | diff -u ${f} - --label a/${f} --label b/${f}; \
 done )
EOF