⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 config.bat

📁 libiconv是一个很不错的字符集转换库。程序接口也很简单
💻 BAT
字号:
@echo offecho Configuring GNU libiconv for DJGPP v2.x...Rem The SmallEnv tests protect against fixed and too small sizeRem of the environment in stock DOS shell.Rem Find out where the sources areset XSRC=.if not "%XSRC%" == "." goto SmallEnvif "%1" == "" goto InPlaceset XSRC=%1if not "%XSRC%" == "%1" goto SmallEnvredir -e /dev/null update %XSRC%/configure.orig ./configuretest -f ./configureif errorlevel 1 update %XSRC%/configure ./configuretest -d ./libcharsetif errorlevel 1 md libcharsetredir -e /dev/null update %XSRC%/libcharset/configure.orig ./libcharset/configuretest -f ./libcharset/configureif errorlevel 1 update %XSRC%/libcharset/configure ./libcharset/configure:InPlaceRem Update configuration filesecho Updating configuration scripts...test -f ./configure.origif errorlevel 1 update ./configure ./configure.origsed -f %XSRC%/djgpp/config.sed ./configure.orig > configureif errorlevel 1 goto SedErrortest -f ./libcharset/configure.origif errorlevel 1 update ./libcharset/configure ./libcharset/configure.origsed -f %XSRC%/djgpp/config.sed ./libcharset/configure.orig > configure.tmpif errorlevel 1 goto SedErrorRem The following is needed because the toplevel configure script calls theRem %XSRC%/libcharset/configure script instead of ./libcharset/configure.test -f %XSRC%/libcharset/configure.origif errorlevel 1 update %XSRC%/libcharset/configure %XSRC%/libcharset/configure.origupdate configure.tmp %XSRC%/libcharset/configurerm ./configure.tmpRem Make sure they have a config.site fileset CONFIG_SITE=%XSRC%/djgpp/config.siteif not "%CONFIG_SITE%" == "%XSRC%/djgpp/config.site" goto SmallEnvRem Make sure crucial file names are not munged by unpackingtest -f %XSRC%/config.h.inif not errorlevel 1 mv -f %XSRC%/config.h.in %XSRC%/config.h-intest -f %XSRC%/lib/config.h.inif not errorlevel 1 mv -f %XSRC%/lib/config.h.in %XSRC%/lib/config.h-intest -f %XSRC%/libcharset/config.h.inif not errorlevel 1 mv -f %XSRC%/libcharset/config.h.in %XSRC%/libcharset/config.h-intest -f %XSRC%/libcharset/include/localcharset.h.inif not errorlevel 1 mv -f %XSRC%/libcharset/include/localcharset.h.in %XSRC%/libcharset/include/localcharset.h-intest -f %XSRC%/include/iconv.h.inif not errorlevel 1 mv -f %XSRC%/include/iconv.h.in %XSRC%/include/iconv.h-inRem All fixes needed to get the package configured, compiled and tested.Rem 1:  Change the stateless-check script so it knowns about theRem     new filenames.Rem 2:  Ditto for Makefile.inRem 3:  Ditto for source files.Rem 4:  Change the files contained in the tests subdirectory fromRem     UNIX-style EOL into DOS-style EOL so the testsuit works.test -f %XSRC%/stamp-djgppfixesif not errorlevel 1 goto TestsuitFixedRem Fix the Makefile.ins.test -f %XSRC%/lib/Makefile.origif errorlevel 1 update %XSRC%/lib/Makefile.in %XSRC%/lib/Makefile.origsed -f %XSRC%/djgpp/makefile.sed %XSRC%/lib/Makefile.in > Makefile.tmpif errorlevel 1 goto SedErrorupdate Makefile.tmp %XSRC%/lib/Makefile.inrm Makefile.tmptest -f %XSRC%/tests/Makefile.origif errorlevel 1 update %XSRC%/tests/Makefile.in %XSRC%/tests/Makefile.origsed -f %XSRC%/djgpp/makefile.sed %XSRC%/tests/Makefile.in > Makefile.tmpif errorlevel 1 goto SedErrorupdate Makefile.tmp %XSRC%/tests/Makefile.inrm Makefile.tmpRem Fix the source files.test -f %XSRC%/lib/iconv.origif errorlevel 1 update %XSRC%/lib/iconv.c %XSRC%/lib/iconv.origsed -f %XSRC%/djgpp/sources.sed %XSRC%/lib/iconv.c > iconv.tmpif errorlevel 1 goto SedErrorupdate iconv.tmp %XSRC%/lib/iconv.crm iconv.tmptest -f %XSRC%/lib/converters.origif errorlevel 1 update %XSRC%/lib/converters.h %XSRC%/lib/converters.origsed -f %XSRC%/djgpp/sources.sed %XSRC%/lib/converters.h > converters.tmpif errorlevel 1 goto SedErrorupdate converters.tmp %XSRC%/lib/converters.hrm converters.tmptest -f %XSRC%/lib/cns/11643.origif errorlevel 1 update %XSRC%/lib/cns/11643.h %XSRC%/lib/cns/11643.origsed -f %XSRC%/djgpp/sources.sed %XSRC%/lib/cns/11643.h > 11643.tmpif errorlevel 1 goto SedErrorupdate 11643.tmp %XSRC%/lib/cns/11643.hrm 11643.tmptest -f %XSRC%/lib/cns/11643_4.origif errorlevel 1 update %XSRC%/lib/cns/11643_4.h %XSRC%/lib/cns/11643_4.origsed -f %XSRC%/djgpp/sources.sed %XSRC%/lib/cns/11643_4.h > 11643_4.tmpif errorlevel 1 goto SedErrorupdate 11643_4.tmp %XSRC%/lib/cns/11643_4.hrm 11643_4.tmptest -f %XSRC%/lib/iso/ir165.origif errorlevel 1 update %XSRC%/lib/iso/ir165.h %XSRC%/lib/iso/ir165.origsed -f %XSRC%/djgpp/sources.sed %XSRC%/lib/iso/ir165.h > ir165.tmpif errorlevel 1 goto SedErrorupdate ir165.tmp %XSRC%/lib/iso/ir165.hrm ir165.tmpRem Change file's NL to CRLF.utod %XSRC%/tests/*.txtutod %XSRC%/tests/GEORGIAN/*.txtutod %XSRC%/tests/ISO/*.txtutod %XSRC%/tests/MAC/*.txtRem Fix the test scripts.if "%XSRC%" == "." goto NoDirChangecd | sed "s|:.*$|:|" > cd_BuildDir.batcd | sed "s|^.:|cd |" >> cd_BuildDir.batmv -f cd_BuildDir.bat %XSRC%/cd_BuildDir.batecho %XSRC% | sed -e "s|^/dev/||" -e "s|/|:|" -e "s|:.*$|:|g" > cd_SrcDir.batecho %XSRC% | sed -e "s|^/dev/||" -e "s|/|:/|" -e "s|^.*:|cd |" -e "s|^\.\.|cd &|" -e "s|/|\\|g" >> cd_SrcDir.batcall cd_SrcDir.batcall djgpp\edtest.batcall cd_BuildDir.batrm -f cd_SrcDir.bat cd_BuildDir.bat %XSRC%/cd_BuildDir.batgoto TestsuitFixed:NoDirChangecall djgpp\edtest.bat:TestsuitFixedtouch %XSRC%/stamp-djgppfixesRem This is required because DOS/Windows are case-insensitiveRem to file names, and "make install" will do nothing if MakeRem finds a file called `install'.if exist INSTALL mv -f INSTALL INSTALL.txtRem install-sh is required by the configure script but clashes with theRem various Makefile install-foo targets, so we MUST have it before theRem script runs and rename it afterwardstest -f %XSRC%/install-shif not errorlevel 1 goto NoRen0test -f %XSRC%/install-sh.shif not errorlevel 1 mv -f %XSRC%/install-sh.sh %XSRC%/install-sh:NoRen0Rem Set HOSTNAME so it shows in config.statusif not "%HOSTNAME%" == "" goto hostdoneif "%windir%" == "" goto msdosset OS=MS-Windowsif not "%OS%" == "MS-Windows" goto SmallEnvgoto haveos:msdosset OS=MS-DOSif not "%OS%" == "MS-DOS" goto SmallEnv:haveosif not "%USERNAME%" == "" goto haveunameif not "%USER%" == "" goto haveuserecho No USERNAME and no USER found in the environment, using default valuesset HOSTNAME=Unknown PCif not "%HOSTNAME%" == "Unknown PC" goto SmallEnvgoto userdone:haveuserset HOSTNAME=%USER%'s PCif not "%HOSTNAME%" == "%USER%'s PC" goto SmallEnvgoto userdone:haveunameset HOSTNAME=%USERNAME%'s PCif not "%HOSTNAME%" == "%USERNAME%'s PC" goto SmallEnv:userdoneset _HOSTNAME=%HOSTNAME%, %OS%if not "%_HOSTNAME%" == "%HOSTNAME%, %OS%" goto SmallEnvset HOSTNAME=%_HOSTNAME%:hostdoneset _HOSTNAME=set OS=Rem With libtool 1.4 -fPIC is the default. This completely breaks compilationsRem with djgpp, so we will always use --disable-shared to inhibit the usage ofRem -fPIC and -DPIC flags in libtool.echo Running the ./configure script...sh ./configure --enable-static --disable-shared --src=%XSRC%if errorlevel 1 goto CfgErrorecho Done.goto End:SedErrorecho ./configure script editing failed!goto End:CfgErrorecho ./configure script exited abnormally!goto End:SmallEnvecho Your environment size is too small.  Enlarge it and run me again.echo Configuration NOT done!:Endtest -f %XSRC%/install-sh.shif not errorlevel 1 goto NoRen1test -f %XSRC%/install-shif not errorlevel 1 mv -f %XSRC%/install-sh %XSRC%/install-sh.sh:NoRen1set CONFIG_SITE=set HOSTNAME=set XSRC=

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -