replaced old fake java

reset
BodgeMaster 2020-03-22 21:29:22 +01:00
parent b2c41031a9
commit 16fe54de9e
3 changed files with 11 additions and 13 deletions

View File

@ -1,4 +1,4 @@
# Development tools # Development tools
## Files: ## Files:
* __fake_java.py__ can be used to get the command used to start Minecraft. When run, it will create a file called `fake_java_out.txt` in its working directory. * __harvest_arguments.sh__ can be used to get the command used to start Minecraft. Just rename the Java executable to <name>_backup and put this file in its place. Output files will be created in the running directory. They are named by the current date.
* __rmpyc__ removes all `.pyc` files in the current working directory and all subdirectories. * __rmpyc__ removes all `.pyc` files in the current working directory and all subdirectories.

View File

@ -1,12 +0,0 @@
#!/usr/bin/python2
import sys
first_argument=True
out=open("fake_java_out.txt", "w")
for element in range(len(sys.argv)):
out.write(sys.argv[element])
first_argument=False
if not first_argument:
out.write(" ")
out.close()

10
devtools/harvest_arguments.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
NOW=`date`
echo "Executable: $0" > "$NOW.log"
echo "Timestamp: $NOW" >> "$NOW.log"
echo -n "Arguments: " >> "$NOW.log"
echo "$*" | sed ':a;s/ -/\n >>>-/;ta' >> "$NOW.log"
echo "Full command: $0 $*" >> "$NOW.log"
BACKUPCMD="`readlink -f \`which $0\``_backup"
echo "Actual command: $BACKUPCMD $*" >> "$NOW.log"
echo "$BACKUPCMD $*" | sh