Post
Topic
Board Announcements (Altcoins)
Re: NAS :: Descendant of NXT 100% PoS|More Exchanges|WinNAS is ready!
by
patapato
on 18/05/2015, 17:55:11 UTC
@patapato

While i'm at it, there are a few little things wrong in the shell script "*.sh" files for Linux:

- Line endings: the line ending in the script files is "CR LF"(\r\n)[windows line ending] and should be only "LF"(\n)[*nix line ending]

- compile.sh needs also changes, here is what i'm using(should match win-compile.sh):
Code:
CP=conf/:classes/:lib/*
SP=src/java/

/bin/mkdir -p classes/

javac -sourcepath ${SP} -classpath ${CP} -d classes/ src/java/nxt/*.java src/java/nxt/*/*.java || exit 1

/bin/rm -f nxt.jar
jar cf nxt.jar -C classes . || exit 1
/bin/rm -rf classes

echo "nxt.jar generated successfully"


Hi User1397367406, I would like to give you write access to the Bitbucket repository (except "master branch"), I already gave access to tiker. Then you could do those changes and upload a correct zip file made in Linux, deleting the current one.

I tried to compile with Java version 7 compatibility from the IDE, but I forgot it at the end as I compiled with the script, which used my most recent version of Java.

Line ending should be correct in the sources, as Git makes the conversion when commiting. The other change that you write is enclosing the variables 'SP' and 'CP' between brackets. If it is necessary I would make an "amend commit" in order that it will be correct in the sources as well. 'win-compile' is slightly different in that it needs quotation marks in 'CP' value.