File: 700-move-kernlib-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 (27 lines) | stat: -rwxr-xr-x 366 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
25
26
27
#!/bin/sh

## DP: Script to move the "kernlib" directory to the top level so its code
## DP: isn't compiled into packlib as well.

set -e

case "$1" in
	-patch)
		ORIGIN=src/packlib/kernlib
		TARGET=src/kernlib
	;;

	-unpatch)
		ORIGIN=src/kernlib
		TARGET=src/packlib/kernlib
	;;

	*) exit 1 ;;
esac

if [ ! -d $TARGET ] ; then
	mv $ORIGIN $TARGET
else
	exit 1
fi