]> git.draconx.ca Git - dxcommon.git/commit
exported.sh: Restructure argument processing a bit.
authorNick Bowler <nbowler@draconx.ca>
Thu, 21 Apr 2022 05:23:05 +0000 (01:23 -0400)
committerNick Bowler <nbowler@draconx.ca>
Thu, 21 Apr 2022 05:28:39 +0000 (01:28 -0400)
commit7c5df228a04f7a655486bffee6f169f52b5edb35
tree52aac89fa6d1d6948d06a69a24e9c8d3bb4e7ff3
parent6bba07ea3a95f69fcb47457dde0970a72eecbcee
exported.sh: Restructure argument processing a bit.

Adjust the script to iterate over arguments using a for loop instead of
repeatedly checkind $# and shifting.  More significantly, avoid calling
expr on each filename where a case pattern can do the job.

Additionally, add a new test case to verify the basic sanity of this
script and its corresponding Autoconf macro.
m4/exported.m4
snippet/exported.sh.in
tests/macros.at