summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2024-10-24 11:17:20 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2024-10-24 11:17:20 +0200
commit6b0cafb5b3b9f7d986c843662ee58569d879e81d (patch)
tree5828d50f2b3f0772af5ffbd99ead4aa93f9ff167 /bin
parentd6bf11f104a6f4326b7efab308228949cbcf601e (diff)
checkpoint
Diffstat (limited to 'bin')
-rwxr-xr-xbin/extra/gccg6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/extra/gccg b/bin/extra/gccg
index 89cc822..694a7fc 100755
--- a/bin/extra/gccg
+++ b/bin/extra/gccg
@@ -1,2 +1,6 @@
#!/bin/sh
-gcc -ggdb -Wall -pedantic -std=c99 -o ${1%.c} $@
+prog="$1"
+[ "$prog" ] || exit 1
+shift
+set -x
+gcc -ggdb -Wall -pedantic -std=c99 -o "${prog%.c}" "${prog%.c}.c" $@