summaryrefslogtreecommitdiffstats
path: root/tools/gen-targets.sh
diff options
context:
space:
mode:
authorPS <p@0x53.net>2026-02-07 11:31:47 +0100
committerPS <p@0x53.net>2026-02-07 11:31:47 +0100
commit6e3eb53e49696205dbfa5ca2b652edd9f6ff7829 (patch)
treec156f9c5dffbe5ea56af2eb2b2c71ab36e784c54 /tools/gen-targets.sh
parent5e95d487982b9362b544139b98d1da55fa6ef78c (diff)
downloadgoetia-base-6e3eb53e49696205dbfa5ca2b652edd9f6ff7829.tar.gz
goetia-base-6e3eb53e49696205dbfa5ca2b652edd9f6ff7829.tar.bz2
goetia-base-6e3eb53e49696205dbfa5ca2b652edd9f6ff7829.zip
Improve build system and doc
Diffstat (limited to 'tools/gen-targets.sh')
-rwxr-xr-xtools/gen-targets.sh49
1 files changed, 28 insertions, 21 deletions
diff --git a/tools/gen-targets.sh b/tools/gen-targets.sh
index 3280748..f772754 100755
--- a/tools/gen-targets.sh
+++ b/tools/gen-targets.sh
@@ -2,55 +2,62 @@
. package/info
-echo '#'
-echo '# This file has been generated by tools/gen-targets.sh'
-echo '#'
-echo
+printf '#\n'
+printf '# This file has been generated by tools/gen-targets.sh\n'
+printf '#\n'
+printf '\n'
if test -d src/bin
then
cd src/bin
- echo "ALL_BINS ::= \\"
+ printf "ALL_BINS ::= \\"
+ printf "\n"
for FILE in $(find * -type f 2> /dev/null) ; do
- echo "\t${FILE} \\"
+ printf "\t${FILE} \\"
+ printf "\n"
done
- echo
- echo "INSTALL_BINS ::= \\"
+ printf "\n"
+ printf "INSTALL_BINS ::= \\"
+ printf "\n"
for FILE in $(find * -type f 2> /dev/null) ; do
- echo "\t\$(DESTDIR)\$(bindir)/${FILE} \\"
+ printf "\t\$(bindir)/${FILE} \\"
+ printf "\n"
done
- echo
- echo "SLASHCOMMAND_BINS ::= \\"
+ printf "\n"
+ printf "SLASHCOMMAND_BINS ::= \\"
+ printf "\n"
for FILE in $(find * -type f 2> /dev/null) ; do
- echo "\t\$(DESTDIR)\$(sproot)/command/${FILE} \\"
+ printf "\t\$(sproot)/command/${FILE} \\"
+ printf "\n"
done
cd ../..
- echo
+ printf "\n"
fi
if test -d src/lib
then
cd src/lib
- echo "ALL_LIBS ::= \\"
+ printf "ALL_LIBS ::= \\"
+ printf "\n"
for FILE in $(find * -type f 2> /dev/null) ; do
- echo "\t${FILE} \\"
+ printf "\t${FILE} \\"
+ printf "\n"
done
- echo
+ printf "\n"
- echo "INSTALL_LIBS ::= \\"
+ printf "INSTALL_LIBS ::= \\"
+ printf "\n"
for FILE in $(find * -type f 2> /dev/null) ; do
- echo "\t\$(DESTDIR)\$(libdir)/${FILE} \\"
+ printf "\t\$(libdir)/${FILE} \\"
+ printf "\n"
done
-
- cd ../..
- echo
fi