replaced old fake java
parent
b2c41031a9
commit
16fe54de9e
|
@ -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.
|
||||||
|
|
|
@ -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()
|
|
|
@ -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
|
Reference in New Issue