mirror of
https://github.com/nunuhara/xsystem4.git
synced 2026-10-08 22:59:57 +03:00
15 lines
314 B
Bash
Executable File
15 lines
314 B
Bash
Executable File
#!/bin/bash
|
|
|
|
SRC_AIN="$1"
|
|
SRC_JAM=$(mktemp)
|
|
DST_AIN=$(mktemp "${SRC_AIN}.XXXXXX")
|
|
|
|
echo "Dumping code from $SRC_AIN"
|
|
aindump -c -o "$SRC_JAM" "$SRC_AIN"
|
|
echo "Assembling dumped code"
|
|
ainedit -c "$SRC_JAM" -o "$DST_AIN" "$SRC_AIN"
|
|
echo "Comparing AIN files"
|
|
aincmp "$SRC_AIN" "$DST_AIN"
|
|
rm "$SRC_JAM"
|
|
rm "$DST_AIN"
|