File: 000-unpack.sh.dpatch

package info (click to toggle)
cernlib 20061220%2Bdfsg3-4.4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 7,872 kB
  • sloc: sh: 9,517; makefile: 187
file content (16 lines) | stat: -rwxr-xr-x 503 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

## DP: This is a fake patch used to convince dpatch-edit-patch to unpack the
## DP: CERNLIB source code before trying to generate a diff from it.
## DP: This is a no-op if called when the source has already been unpacked,
## DP: e.g. if running "fakeroot debian/rules patch".
## DP: 
## DP: Yes, this is an ugly hack.

set -e
case "$1" in
	-patch)   [ -e Makefile ] || cp -p debian/add-ons/Makefile .
		  make prefix=/usr stampdir/configure-stamp ;;
	-unpatch) exit 0 ;;
	*)	  exit 1 ;;
esac