File: 703-move-code_motif-to-top-level.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 (24 lines) | stat: -rwxr-xr-x 531 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
24
#!/bin/sh

## DP: Script to move packlib/kuip/code_motif to top level, splitting it out
## DP: from packlib.  But keep kmutil.c in packlib, it's otherwise used.

set -e
cd src

case "$1" in
	-patch)
		mv packlib/kuip/code_motif/kmutil.c packlib/kuip/code_kuip/
		mv packlib/kuip/code_motif          ./
		cp -r packlib/kuip/kuip             code_motif/
	;;
	
	-unpatch)
		rm -r code_motif/kuip
		mv code_motif                      packlib/kuip/
		mv packlib/kuip/code_kuip/kmutil.c packlib/kuip/code_motif/
	;;

	*) exit 1 ;;
esac