commit f56149fa6ff9dda53acf77d78607a0f8545848a3
parent 6b1672f24655b69ed4e8849e87c42d232820b645
Author: sin <sin@2f30.org>
Date: Fri, 28 Feb 2014 19:11:04 +0000
Make build system work with mksh as well
Diffstat:
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/mkfile b/mkfile
@@ -16,7 +16,7 @@ clean:V:
`{ mkdir -p src }
`{ mkdir -p .state }
`{ echo '# auto-generated file, do not edit' > pkgs.mk }
-`{ cd pkgs && for pkg in *; do cat $pkg | sed -e "s,^build:,$pkg:QP./stuff/cmp-pkgs: pkgs/$pkg," >> ../pkgs.mk && echo '\tcd $top && cp pkgs/$target .state/$target\n' >> ../pkgs.mk; done }
+`{ cd pkgs && for pkg in *; do cat $pkg | sed -e "s,^build:,$pkg:QP./stuff/cmp-pkgs: pkgs/$pkg," >> ../pkgs.mk && echo -e '\tcd $top && cp pkgs/$target .state/$target\n' >> ../pkgs.mk; done }
<pkgs.mk
diff --git a/stuff/cmp-pkgs b/stuff/cmp-pkgs
@@ -1,4 +1,3 @@
#!/bin/sh
-val=`cmp -s .state/$1 pkgs/$1`
-return $val
+cmp -s .state/$1 pkgs/$1