summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-02-02 21:06:35 +0000
committerLaurent Bercot <ska@appnovation.com>2023-02-02 21:06:35 +0000
commitb51260a8f2f6a7570e51b8414a468111e023c04d (patch)
tree4f7b0c67eb48e5c18f8bb12d566f34133d934815 /tools
parent9d55d49dad0f4cb90e6ff2f9b1c3bc46a6fcf05f (diff)
downloadexecline-b51260a8f2f6a7570e51b8414a468111e023c04d.tar.xz
Prepare for 2.9.2.0, add install target for multicall
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/gen-multicall.sh19
1 files changed, 9 insertions, 10 deletions
diff --git a/tools/gen-multicall.sh b/tools/gen-multicall.sh
index 6ef6322..070af4e 100755
--- a/tools/gen-multicall.sh
+++ b/tools/gen-multicall.sh
@@ -31,15 +31,6 @@ static int execline_app_cmp (void const *a, void const *b)
execline_app const *p = b ;
return strcmp(name, p->name) ;
}
-
-#ifdef EXECLINE_PEDANTIC_POSIX
-# define CD_FUNC posix_cd_main
-# define UMASK_FUNC posix_umask_main
-#else
-# define CD_FUNC execline_cd_main
-# define UMASK_FUNC execline_umask_main
-#endif
-
EOF
for i in `ls -1 src/execline/deps-exe` ; do
@@ -56,6 +47,14 @@ cat <<EOF
static int execline_main (int, char **, char const *const *) ;
+#ifdef EXECLINE_PEDANTIC_POSIX
+# define CD_FUNC posix_cd_main
+# define UMASK_FUNC posix_umask_main
+#else
+# define CD_FUNC execline_cd_main
+# define UMASK_FUNC execline_umask_main
+#endif
+
static execline_app const execline_apps[] =
{
EOF
@@ -67,7 +66,7 @@ for i in `{ echo cd ; echo execline ; echo umask ; ls -1 src/execline/deps-exe ;
elif test $i = umask ; then
echo ' { .name = "umask", .mainf = (main_func_ref)&UMASK_FUNC },'
else
- echo " { .name=\"${i}\", .mainf = (main_func_ref)&${j}_main },"
+ echo " { .name = \"${i}\", .mainf = (main_func_ref)&${j}_main },"
fi
done