Allow passing the output directory of check scripts as argument

Such that the script can be used to regenerate the files in the repository if
the root directory is passed.
This commit is contained in:
Cédric Krier
2024-10-31 09:15:23 +01:00
parent 8e5b459d76
commit 1c40ca075e
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
#!/bin/sh
set -eu
OUTPUT=`mktemp -d`
OUTPUT=${1:-`mktemp -d`}
for module in account account_asset account_deposit sale_advance_payment
do
+2 -1
View File
@@ -1,7 +1,8 @@
#!/bin/sh
set -eu
OUTPUT=`mktemp -d`
OUTPUT=${1:-`mktemp -d`}
find modules -name setup.py -print | while read path
do
path=`dirname "${path}"`