diff options
Diffstat (limited to 'package/compile')
-rwxr-xr-x | package/compile | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/package/compile b/package/compile index 89dc466..7feef7a 100755 --- a/package/compile +++ b/package/compile @@ -7,12 +7,11 @@ test -d src || ( echo 'Wrong working directory.'; exit 1 ) || exit 1 here=`env - PATH=$PATH pwd` mkdir -p compile command -test -r compile/home || echo $here > compile/home +test -r compile/home || echo $here >compile/home test -h compile/src || ln -s $here/src compile/src echo 'Linking ./src/* into ./compile...' -for i in `ls src` -do +for i in `ls src`; do test -h compile/$i || ln -s src/$i compile/$i done @@ -20,8 +19,7 @@ echo 'Compiling everything in ./compile...' ( cd compile; exec make ) || exit 1 echo 'Copying commands into ./command...' -for i in `cat package/commands` -do +for i in `cat package/commands`; do rm -f command/$i'{new}' cp -p compile/$i command/$i'{new}' mv -f command/$i'{new}' command/$i |