script/build in cide-0.8.1 vs script/build in cide-0.9.0
- old
+ new
@@ -4,19 +4,13 @@
echo "Missing <TARGET>" >&2
exit 1
fi
packager_bin() {
- local bin=$1
- local name=$(basename "$1")
- mkdir -p .packager/bin
- cat <<BIN > ".packager/bin/${name}"
-#!/bin/sh -e
-here=\$(dirname "\$(readlink -f "\$0")")
-target=\$(readlink -f "\$here/../../${bin}")
-exec "\$target" "\$@"
-BIN
- chmod +x ".packager/bin/${name}"
+ local bin=$1
+ local name=$(basename "$1")
+ mkdir -p .packager/bin
+ ln -s "../../$bin" ".packager/bin/$name"
}
TARGET=$1
cp -r "$PWD" "$TARGET"