mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-09 10:53:27 +00:00
posix
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@632 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
dnl $Id$
|
||||
define([space_to_comma],[_space_to_comma(patsubst([$*],[ ],[,]))])dnl
|
||||
define([_space_to_comma],[ifelse([$#],[0],[],[$#],[1],[$1],[$1[,]_space_to_comma(shift($@))])])dnl
|
||||
define([space_to_comma],[pushdef([rindex])dnl
|
||||
define([rindex],index([$*],[ ]))dnl
|
||||
ifelse(rindex,[-1],[$*],[substr([$*],0,rindex)[,]space_to_comma(substr([$*],eval(rindex + 1)))])[]dnl
|
||||
popdef([rindex])])dnl
|
||||
|
||||
Reference in New Issue
Block a user