Skip to content

Commit 7313833

Browse files
Add files via upload
1 parent 995f688 commit 7313833

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

READ_ME.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- put the folder you want to turn into an ISO file into this folder
2+
- drag'n'drop that folder onto RUN_ME.bat

RUN_ME.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
bin\bash ./create_iso.sh "%~f1"
2+
pause

create_iso.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# To make it reproducible, we force date (2001-01-01) and mode (0444) on all files.
88
# At the end we print paths and hashes of all packaged files (MD5 and SHA-1).
99

10-
export SOURCE_DATE_EPOCH="$(date -d20010101 -u +%s)"
10+
export SOURCE_DATE_EPOCH="$(./bin/date -d20010101 -u +%s)"
1111
output_filename=TAS_CD # also used as volume ID, so must be [A-Z_]+
1212
file_mode=0444
1313

@@ -16,11 +16,11 @@ while [ ! -d "$folder" ]; do
1616
[ -z "$folder" ] || printf "'%s' not a directory?\n" "$folder"
1717
read -p "Enter path to dir containing source files: " folder
1818
done
19-
list="$(mktemp)"
19+
list="$(./bin/mktemp --tmpdir=.)"
2020
(cd "$folder"; for f in *; do printf "%s\n" "$f=$PWD/$f"; done) \
2121
| LC_ALL=C sort >"$list"
2222

23-
xorriso \
23+
./bin/xorriso \
2424
-preparer_id xorriso \
2525
-volume_date 'all_file_dates' "=$SOURCE_DATE_EPOCH" \
2626
-as mkisofs \
@@ -35,11 +35,11 @@ xorriso \
3535
-path-list "$list" \
3636
-output "$output_filename".iso
3737

38-
rm -f "$list"
38+
./bin/rm -f "$list"
3939
cd "$folder"
4040

4141
echo "MD5:"
42-
find . -type f -exec md5sum {} \;
42+
../bin/find . -type f -exec ../bin/md5sum {} \;
4343
echo
4444
echo "SHA-1:"
45-
find . -type f -exec sha1sum {} \;
45+
../bin/find . -type f -exec ../bin/sha1sum {} \;

0 commit comments

Comments
 (0)