diff options
Diffstat (limited to 'packages/OS400/make-lib.sh')
-rw-r--r-- | packages/OS400/make-lib.sh | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/packages/OS400/make-lib.sh b/packages/OS400/make-lib.sh index 5e1f2042b..ec9e2f075 100644 --- a/packages/OS400/make-lib.sh +++ b/packages/OS400/make-lib.sh @@ -21,21 +21,18 @@ MODULES= # Get source list. -CSOURCES() - -{ - shift # Drop the equal sign. - CSOURCES="$*" # Get the file names. -} - -HHEADERS() - -{ - shift # Drop the equal sign. - HHEADERS="$*" # Get the file names. -} - -. Makefile.inc +sed -e ':begin' \ + -e '/\\$/{' \ + -e 's/\\$/ /' \ + -e 'N' \ + -e 'bbegin' \ + -e '}' \ + -e 's/\n//g' \ + -e 's/[[:space:]]*$//' \ + -e 's/^\([A-Za-z][A-Za-z0-9_]*\)[[:space:]]*=[[:space:]]*\(.*\)/\1="\2"/' \ + -e 's/\$(\([A-Za-z][A-Za-z0-9_]*\))/${\1}/g' \ + < Makefile.inc > tmpscript.sh +. ./tmpscript.sh # Compile the sources into modules. |