igelbox / slimftpd

fork of SlimFTPd(by WhitSoft Development and Matt Whitlock)
Other
5 stars 0 forks source link

Add release generator batch file for windows #3

Closed mike2718 closed 9 years ago

mike2718 commented 10 years ago

Similar with mk_release.sh

igelbox commented 10 years ago
echo ^<User "anonymous"^> >> %DIST%\slimftpd.conf
echo ^    Mount / .       >> %DIST%\slimftpd.conf
set DIST=dist\SlimFTPd
mkdir %DIST%
copy /y SlimFTPd.exe %DIST%\
mike2718 commented 10 years ago

@igelbox I am trying to use awk.exe to get version number from SlimFTPd.rc.

-> http://cm.bell-labs.com/cm/cs/awkbook/index.html

igelbox commented 10 years ago
for /f "tokens=3" %%a in ('findstr ProductVersion src\SlimFTPd.rc') do (set VERSION=%%a)
set VERSION=%VERSION:"=%

then VERSION.txt is redundant

igelbox commented 9 years ago

I fixed and merged your commit dc2d02f763458c1813cd8095e4065d1fdec35449 into the master branch