File: subdir

package info (click to toggle)
firedns 0.9.12-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,192 kB
  • ctags: 322
  • sloc: ansic: 4,026; sh: 964; makefile: 6
file content (26 lines) | stat: -rw-r--r-- 623 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
22
23
24
25
26
#!/bin/sh
#require cc
#require cflags
#phase library
disp "Loading subdirectory helper functions"
subdir() {
	disp "local copy found, configuring:"
	cd $1
	disp "[ENTERING CONFIGURE PROGRAM FOR $1]"
	FM_IN_SUBDIR="y" ./configure
	disp "[EXITING CONFIGURE PROGRAM FOR $1]"
	if (test "$?" != "0"); then
		disp "subdirectory configure failed, unable to continue"
		exit 1
	fi
	cd ..
	FM_SUBDIRS="$FM_SUBDIRS $1"
	FM_CLEAN_SUBDIRS="$FM_CLEAN_SUBDIRS $1"
}

parentdir() {
	dispn "local copy found, adding to build..."
	FM_SUBDIRS="$FM_SUBDIRS $1"
	# don't clean parents, or we don't get all the way through clean
	disp "done"
}