[hackers] [sbase] No need for using a sub-shell in getconf.sh || sin

From: <git_AT_suckless.org>
Date: Tue, 15 Dec 2015 10:46:12 +0100 (CET)

commit 7949adf9c471f469e15cd27765ff56e123b5f539
Author: sin <sin_AT_2f30.org>
AuthorDate: Tue Dec 15 09:44:54 2015 +0000
Commit: sin <sin_AT_2f30.org>
CommitDate: Tue Dec 15 09:46:06 2015 +0000

    No need for using a sub-shell in getconf.sh

diff --git a/getconf.sh b/getconf.sh
index e86e44b..cca5873 100755
--- a/getconf.sh
+++ b/getconf.sh
_AT_@ -8,7 +8,7 @@ ifdef()
 }
 
 
-(cat <<!
+cat <<! | ifdef confstr_l.h
 PATH _CS_PATH
 POSIX_V7_ILP32_OFF32_CFLAGS _CS_POSIX_V7_ILP32_OFF32_CFLAGS
 POSIX_V7_ILP32_OFF32_LDFLAGS _CS_POSIX_V7_ILP32_OFF32_LDFLAGS
_AT_@ -27,9 +27,8 @@ POSIX_V7_THREADS_LDFLAGS _CS_POSIX_V7_THREADS_LDFLAGS
 POSIX_V7_WIDTH_RESTRICTED_ENVS _CS_POSIX_V7_WIDTH_RESTRICTED_ENVS
 V7_ENV _CS_V7_ENV
 !
-) | ifdef confstr_l.h
 
-(cat <<!
+cat <<! | ifdef limits_l.h
 _POSIX_CLOCKRES_MIN _POSIX_CLOCKRES_MIN
 _POSIX_AIO_LISTIO_MAX _POSIX_AIO_LISTIO_MAX
 _POSIX_AIO_MAX _POSIX_AIO_MAX
_AT_@ -74,9 +73,8 @@ _POSIX2_EXPR_NEST_MAX _POSIX2_EXPR_NEST_MAX
 _POSIX2_LINE_MAX _POSIX2_LINE_MAX
 _POSIX2_RE_DUP_MAX _POSIX2_RE_DUP_MAX
 !
-) | ifdef limits_l.h
 
-(cat <<!
+cat <<! | ifdef sysconf_l.h
 AIO_LISTIO_MAX _SC_AIO_LISTIO_MAX
 AIO_MAX _SC_AIO_MAX
 AIO_PRIO_DELTA_MAX _SC_AIO_PRIO_DELTA_MAX
_AT_@ -196,9 +194,8 @@ _XOPEN_UNIX _SC_XOPEN_UNIX
 _XOPEN_UUCP _SC_XOPEN_UUCP
 _XOPEN_VERSION _SC_XOPEN_VERSION
 !
-) | ifdef sysconf_l.h
 
-(cat <<!
+cat <<! | ifdef pathconf_l.h
 FILESIZEBITS _PC_FILESIZEBITS
 LINK_MAX _PC_LINK_MAX
 MAX_CANON _PC_MAX_CANON
_AT_@ -221,4 +218,3 @@ _POSIX_PRIO_IO _PC_PRIO_IO
 _POSIX_SYNC_IO _PC_SYNC_IO
 _POSIX_TIMESTAMP_RESOLUTION _PC_TIMESTAMP_RESOLUTION
 !
-) | ifdef pathconf_l.h
Received on Tue Dec 15 2015 - 10:46:12 CET

This archive was generated by hypermail 2.3.0 : Tue Dec 15 2015 - 10:48:15 CET