@@ -198,11 +198,14 @@ expand_size(char * buf, int argc, char ** argv) { | |||||
len = max = strlen(buf) + 1; | len = max = strlen(buf) + 1; | ||||
#define str | |||||
for (i = 0; i < len; ++i) { | for (i = 0; i < len; ++i) { | ||||
if (buf[i] == '\\') { | if (buf[i] == '\\') { | ||||
i += 2; | i += 2; | ||||
continue; | continue; | ||||
} else if (buf[i] == '$') { | |||||
} else if (strncmp()) | |||||
else if (buf[i] == '$') { | |||||
switch (buf[++i]) { | switch (buf[++i]) { | ||||
case '@': | case '@': | ||||
max += strlen(g_filename); | max += strlen(g_filename); | ||||
@@ -2,5 +2,5 @@ | |||||
cd $(dirname "$(readlink -f "$0")") | cd $(dirname "$(readlink -f "$0")") | ||||
SUDO=${SUDO:-sudo} | SUDO=${SUDO:-sudo} | ||||
chmod +x shake | chmod +x shake | ||||
./shake bake.c -s | |||||
./shake bake.c -s $@ && \ | |||||
$SUDO install -m 755 shake bake ${TARGET:-/usr/local/bin} | $SUDO install -m 755 shake bake ${TARGET:-/usr/local/bin} |
@@ -63,7 +63,7 @@ if [[ -n $line ]]; then | |||||
echo "Exec: $command" | echo "Exec: $command" | ||||
if [[ $run -eq 1 ]]; then | if [[ $run -eq 1 ]]; then | ||||
echo "Output:" | echo "Output:" | ||||
eval "$command" | |||||
$command | |||||
fi | fi | ||||
else | else | ||||
echo -e "${MARKSTR} is not defined." >&2 | echo -e "${MARKSTR} is not defined." >&2 | ||||