]> git.armaanb.net Git - asd-repo.git/blobdiff - junk/bmake/build
Create junk repo
[asd-repo.git] / junk / bmake / build
diff --git a/junk/bmake/build b/junk/bmake/build
new file mode 100755 (executable)
index 0000000..aaa026f
--- /dev/null
@@ -0,0 +1,16 @@
+#!/bin/sh -e
+
+cd bmake
+
+sed -i 's/build) op_test/build) /' boot-strap
+sed -i 's/     op_test//' boot-strap
+
+export CFLAGS="$CFLAGS -static"
+export LDFLAGS="$LDFLAGS -static"
+
+./boot-strap --with-default-sys-path=/usr/share/mk op=build
+INSTALL=install ./boot-strap --prefix=/usr --with-mksrc=/usr/share/mk --install-destdir="$1" op=install
+
+rm -rf "$1/usr/share/man/cat1"
+install -Dm644 bmake.1 "$1/usr/share/man/man1/bmake.1"
+ln -s bmake "$1/usr/bin/make"