Summary Files Commits Branches @commit @diff @stats
path: root / std / builder / builder.ucx
diff options
context:
space:
mode:
1 files changed, 25 insertions, 0 deletions
-rw-r--r--std/builder/builder.ucx25
diff --git a/std/builder/builder.ucx b/std/builder/builder.ucx
new file mode 100644
index 0000000..b5e00b0
--- /dev/null
+++ b/std/builder/builder.ucx
@@ -0,0 +1,25 @@
+name := builder
+#-- do
+if [ -f "$(Xpath $SELF.src)" ]
+then
+ while read -r src
+ do
+ case "$src" in
+ (*.git|git:*) git clone $src ;;
+ (*) wget $src
+ esac
+ done <"$(Xpath $SELF.src)"
+fi
+if [ -f "$(Xpath $SELF.build)" ]
+then
+ /bin/sh $(Xpath $SELF.build)
+else
+ make
+fi
+if [ -f "$(Xpath $SELF.install)" ]
+then
+ /bin/sh $(Xpath $SELF.install)
+else
+ mkdir /out
+ PREFIX=/out make install
+fi