Changeset 43
- Timestamp:
- 05/31/05 03:59:20 (4 years ago)
- Files:
-
- bpkg/trunk/bpkg (modified) (3 diffs)
- bpkg/trunk/Makefile (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
bpkg/trunk/bpkg
r42 r43 164 164 local configs=`(cd $DESTROOT && find etc -type f) 2> /dev/null` 165 165 local deps=`(cd $DESTROOT && find . -type f | xargs --no-run-if-empty file | grep 'ELF.*executable' | cut -d: -f1 | xargs --no-run-if-empty ldd 2> /dev/null | awk '{print $3}' | grep ^/ | xargs --no-run-if-empty pacman -Qo 2> /dev/null | awk '{print $5}' | sort | uniq) 2> /dev/null` 166 notice "detected configuration files: $configs"167 notice "detected dependencies: $deps"166 notice "detected configuration files: "$configs 167 notice "detected dependencies: "$deps 168 168 cd $TMPDIR 169 169 cat <<-EOF > PKGBUILD … … 296 296 exit 0 297 297 ;; 298 --detect-os) 299 (detect_os) 2> /dev/null || echo unknown 300 exit 0 301 ;; 298 302 --help) 299 303 cat <<EOF … … 309 313 --help 310 314 This help. 315 --detect-os 316 Display the O/S that bpkg thinks you are running. 311 317 --version 312 318 Show $SELF version. bpkg/trunk/Makefile
r41 r43 3 3 INSTALLWATCH=installwatch-0.6.3 4 4 DIST=bpkg Makefile README COPYING $(INSTALLWATCH).tgz 5 OS=$(shell ./bpkg --detect-os) 5 6 6 all: $(INSTALLWATCH) 7 $(MAKE) -C $(INSTALLWATCH) PREFIX=/usr 7 .PHONY: $(OS)-build $(OS)-install 8 8 9 install: $(INSTALLWATCH) 9 all: $(OS)-build 10 11 install: all $(OS)-install 10 12 mkdir -p $(DESTDIR)$(PREFIX)/bin 11 13 mkdir -p $(DESTDIR)$(PREFIX)/lib … … 15 17 16 18 $(INSTALLWATCH): $(INSTALLWATCH).tgz 19 $(MAKE) 17 20 rm -rf $(INSTALLWATCH) 18 21 gzip -dc $(INSTALLWATCH).tgz | tar xf - … … 28 31 clean: 29 32 rm -rf $(INSTALLWATCH) 33 34 unknown-build: 35 @echo "FATAL: Unknown operating system/distribution. Need detection and" 36 @echo " backend code in bpkg." 37 @exit 1 38 39 arch-install: 40 @echo 41 @echo "Run 'pacman -S installwatch' to install installwatch." 42 @echo 43 44 gentoo-build: $(INSTALLWATCH) 45 $(MAKE) -C $(INSTALLWATCH) PREFIX=/usr 46 47 gentoo-install: 48 $(MAKE) -C $(INSTALLWATCH) PREFIX=$(PREFIX) BINDIR=$(DESTDIR)$(PREFIX)/bin LIBDIR=$(DESTDIR)$(PREFIX)/lib install
