文件操作 - UpdateGenVersion.bat
返回文件管理
返回主菜单
删除本文件
文件: /root/node_modules/node-pty/deps/winpty/src/shared/UpdateGenVersion.bat
编辑文件内容
@echo off rem -- Echo the git commit hash. If git isn't available for some reason, rem -- output nothing instead. mkdir ..\gen 2>nul set /p VERSION=<..\..\VERSION.txt set COMMIT=%1 echo // AUTO-GENERATED BY %0 %*>..\gen\GenVersion.h echo const char GenVersion_Version[] = "%VERSION%";>>..\gen\GenVersion.h echo const char GenVersion_Commit[] = "%COMMIT%";>>..\gen\GenVersion.h rem -- The winpty.gyp file expects the script to output the include directory, rem -- relative to src. echo gen rem -- Set ERRORLEVEL to 0 using this cryptic syntax. (call )
修改文件时间
将文件时间修改为当前时间的前一年
删除文件