Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-gnome
Path: blob/main/emulators/hatari/files/patch-tools_atari-hd-image.sh
16125 views
1
--- tools/atari-hd-image.sh.orig 2018-02-20 07:08:43 UTC
2
+++ tools/atari-hd-image.sh
3
@@ -33,8 +33,8 @@ PATH=/sbin:$PATH
4
export PATH
5
6
# check tools
7
-if [ -z $(which mkdosfs) ] || [ -z $(which python) ]; then
8
- echo "ERROR: either mkdosfs or python tool missing!"
9
+if [ -z $(which mkdosfs) ] || [ -z $(which %%PYTHON_VERSION%%) ]; then
10
+ echo "ERROR: either mkdosfs or %%PYTHON_VERSION%% tool missing!"
11
exit 1
12
fi
13
14
@@ -147,8 +147,8 @@ echo "$step) Create DOS Master Boot Reco
15
# - http://en.wikipedia.org/wiki/File_Allocation_Table#Boot_Sector
16
# For DOS MBR, the values are little endian.
17
# -----------
18
-python << EOF
19
-#!/usr/bin/env python
20
+%%PYTHON_CMD%% << EOF
21
+#!%%PYTHON_CMD%%
22
mbr = bytearray(512)
23
24
def set_long(idx, value):
25
26