v1.0.0
This commit is contained in:
16
bin/yait
16
bin/yait
@@ -1,7 +1,7 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# Highly opinionated C and SH project generator
|
# Highly opinionated C and SH project generator
|
||||||
|
|
||||||
scriptversion="0.3.1"
|
scriptversion="1.0.0"
|
||||||
|
|
||||||
#
|
#
|
||||||
# Copyright (C) 2025-2026 fSD THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
# Copyright (C) 2025-2026 fSD THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
@@ -171,18 +171,6 @@ Options:
|
|||||||
--help print this help and exit
|
--help print this help and exit
|
||||||
--version output version information"
|
--version output version information"
|
||||||
|
|
||||||
say() {
|
|
||||||
if [ -z "\$q" ]; then
|
|
||||||
echo "\$me: \$*"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
lsay() {
|
|
||||||
if [ -z "\$q" ]; then
|
|
||||||
echo " => \$*"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
if ! [ \$# -gt 0 ]; then
|
if ! [ \$# -gt 0 ]; then
|
||||||
echo "\$usage"
|
echo "\$usage"
|
||||||
exit 0
|
exit 0
|
||||||
@@ -195,8 +183,6 @@ while [ \$# -gt 0 ]; do
|
|||||||
-*) echo "\$me: Unknown option '\$1'." >&2; exit 1 ;;
|
-*) echo "\$me: Unknown option '\$1'." >&2; exit 1 ;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
say hello world
|
|
||||||
EOF
|
EOF
|
||||||
chmod +x "$outfile"
|
chmod +x "$outfile"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user