File: 704-move-kuwhag.c-to-grafX11.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 (23 lines) | stat: -rwxr-xr-x 513 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

## DP: Script to move the file kuwhag.c from packlib/kuip/code_kuip/kuwhag.c
## DP: into graflib/higz/higzcc.  It appears to be the only file in code_kuip
## DP: that depends upon grafX11 and libX11, so it fits in better here.

set -e
cd src

case "$1" in
	-patch)
		mv packlib/kuip/code_kuip/kuwhag.c graflib/higz/higzcc/
		cp -r packlib/kuip/kuip            graflib/higz/
	;;

	-unpatch)
		rm -r graflib/higz/kuip
		mv graflib/higz/higzcc/kuwhag.c    packlib/kuip/code_kuip/
	;;

	*) exit 1 ;;
esac