aboutsummaryrefslogtreecommitdiff
path: root/src/make2mk
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2003-11-23 18:10:54 +0000
committerrsc <devnull@localhost>2003-11-23 18:10:54 +0000
commit5c34ff9e1c19fd73ccc79c0f702f7c4b964840d1 (patch)
tree808a906913b9b82866dd9c9bf62434ecca5fe55d /src/make2mk
parentbc7cb1a15a67c859c8c71c4b52bb35fe9425a63d (diff)
downloadplan9port-5c34ff9e1c19fd73ccc79c0f702f7c4b964840d1.tar.gz
plan9port-5c34ff9e1c19fd73ccc79c0f702f7c4b964840d1.tar.bz2
plan9port-5c34ff9e1c19fd73ccc79c0f702f7c4b964840d1.zip
make -> mk
Diffstat (limited to 'src/make2mk')
-rw-r--r--src/make2mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/make2mk b/src/make2mk
new file mode 100644
index 00000000..213cd085
--- /dev/null
+++ b/src/make2mk
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+sed -E '
+ s/\$\(([^)]+)\)/$\1/g
+ s/^(.*)\+=/\1=$\1 /g
+ s/^include /</g
+ /^</ s/Make/mk/g
+' "$@"