File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed
Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1+ bin\bash ./create_iso.sh " %~f1 "
2+ pause
Original file line number Diff line number Diff line change 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) "
1111output_filename=TAS_CD # also used as volume ID, so must be [A-Z_]+
1212file_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
1818done
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 "
3939cd " $folder "
4040
4141echo " MD5:"
42- find . -type f -exec md5sum {} \;
42+ ../bin/ find . -type f -exec ../bin/ md5sum {} \;
4343echo
4444echo " SHA-1:"
45- find . -type f -exec sha1sum {} \;
45+ ../bin/ find . -type f -exec ../bin/ sha1sum {} \;
You can’t perform that action at this time.
0 commit comments