diff options
Diffstat (limited to 'translate/mcode')
-rwxr-xr-x | translate/mcode/dist.sh | 13 | ||||
-rw-r--r-- | translate/mcode/winbuild.bat | 9 |
2 files changed, 20 insertions, 2 deletions
diff --git a/translate/mcode/dist.sh b/translate/mcode/dist.sh index 132ba0b..18c09e9 100755 --- a/translate/mcode/dist.sh +++ b/translate/mcode/dist.sh @@ -161,6 +161,16 @@ ghdlfilter.adb grt-modules.adb " +drv_files=" +ghdlcomp.ads +ghdlcomp.adb +foreigns.ads +foreigns.adb +ghdlrun.adb +ghdlrun.ads +ghdl_mcode.adb +" + for i in $cfiles; do ln -sf $CWD/../../$i $distdir/ghdl/$i; done for i in $tfiles; do ln -sf $CWD/../$i $distdir/ghdl/$i; done @@ -172,8 +182,7 @@ for i in $ortho_mcode_files; do ln -sf $CWD/../../ortho/mcode/$i $distdir/ortho/$i done -for i in $ghdl_files ghdlcomp.ads ghdlcomp.adb \ - ghdlrun.adb ghdlrun.ads ghdl_mcode.adb; do +for i in $ghdl_files $drv_files; do ln -sf $CWD/../ghdldrv/$i $distdir/ghdldrv/$i done diff --git a/translate/mcode/winbuild.bat b/translate/mcode/winbuild.bat index c400863..7d5b942 100644 --- a/translate/mcode/winbuild.bat +++ b/translate/mcode/winbuild.bat @@ -1,3 +1,12 @@ call windows\compile
+if errorlevel 1 goto end
call windows\complib
+if errorlevel 1 goto end
"f:\Program Files\NSIS\makensis" windows\ghdl.nsi
+if errorlevel 1 goto end
+exit /b 0
+
+:end
+echo "Error during compilation"
+exit /b 1
+
|