Mail Archives: djgpp/2009/07/14/04:15:05
Hi, can't sleep, so I'll post this here in case anybody is bored and
really really really wants to test (doubt it). ;-)
Apologies in advance for the line wrapping (doh). Ctrl-Z should work
in DOS fashion now, and at least "M-x shell-command" will work as long
as you app uses stdout (use redir.exe if need to catch compiler
errors). A true patch would be much better, and ideally it wouldn't
need so many dependencies or LFNs, but all of that is solvable, of
course. But at least this will do in a pinch.
-----------------------------------------------------------------
@echo off
echo.
echo rugxulo _AT_ gmail _DOT_ com
echo.
echo This .BAT needs LFNs (eek!), DJGPP 2.03p2 or 2.04, GCC, BinUtils,
and ...
echo ... PDcurses, Bash, Make, Sed, File-/Text-/Shell-Utils, Gawk,
Grep
echo.
echo http://www.gnu.org/software/zile/
echo.
REM set F1=3Dz:\edit\zile-2.3.9.tar.gz
for %%a in (z:\edit\zile*.gz) do set F1=3D%%a
if not exist %F1% goto end
djtar -x %F1%
cd zile*
sed -i -e "/-lcurses/s//-lpdcurses/" -e "/mp_cv_curses=3Dno/s/=3Dno/=3Dyes/=
"
-e "\,\\\\r,s,\\\\,\\," configure
sh -c "./configure --disable-dependency-tracking CFLAGS=3D'-s -Os'"
sed -i "\,libgen\.h,s,^,//," src\completion.c
sed -i -e "/xasprintf/s/2>&1//" -e "\,SIGTSTP,s,^,system
(\"command.com /k cls\"); term_full_redisplay(); //," src\funcs.c
sed -i "\,SIGBUS,s,^,//," src\main.c
sed -i "\,# *include.*time\.h,s,^,//," lib\wctype.in.h
sed -i "\,# *include.*time\.h,s,^,//," lib\wchar.in.h
sed -i "/ring-bell/s/\"t\"/\"nil\"/" src\tbl_vars.h
echo #if __DJGPP_MINOR__ !=3D 4 >> config.h
echo #define EILSEQ 41 >> config.h
echo #define fchown(a,b,c) >> config.h
echo #endif >> config.h
sh -c "make"
upx --best --lzma --all-filters -qq src\zile.exe
:end
set F1=3D
-----------------------------------------------------------------
On Jul 11, 5:53=A0pm, Rugxulo <rugx DOT DOT DOT AT gmail DOT com> wrote:
>
> > > I actually also got 2.03p2 to build with a few hacks (no fchown() and=
lacking EINVAL or similar I
> > > think), but I'd have to dig in again to make a true list of changes.
- Raw text -