Atitit. Project Modification Patch Packaging tool instructions for use

Source: Internet
Author: User
Tags set time tld

Atitit. Project Modification Patch Packaging tool instructions for use

1 . 1. the packing tool is already inside the group. Packaging Tools . Bat1

1 . 2. How to use: put it in the main directory of the project and execute it 1

1 . 3. How the Packaging tool works and the list of items to package 1

1 . 4. Packaging Tools -bat source code and parameter interpretation 1

1.1. the packing tool is already inside the group. Packaging Tools . Bat

1.2. How to use: put it in the main directory of the project and execute it

Note inside the project path, the database installation path installs the actual path to the configuration under

1.3. How the Packaging tool works and the list of items to package

The main use of winrar based on time packaging modified files, packaging database SQL file is called Database Tools into SQL export.

Usually we have to pack the following several stuff.

FIX:: Package a zip for all files modified after a certain point in time

Project Baseline:: Package as zip for all files modified after the world birth time point

Database SQL file and compress zip file::

Author :: ★ (Attilax) >>>    nickname : old Wow's paw   (   full name:: ATTILAX AKBAR AL RAPANUI  Attilax   Baroque   Alpha   Rapa Nui   )   Kanji name: Ayron, Email:[email protected]

reprint Please indicate source: http://www.cnblogs.com/attilax/

1.4. Packaging Tools -bat source code and parameter interpretation

Set pathx= "%~dp0"

Set Prjname=atiplatf_school

Set uuid=%date:/=-%%time::=-%

Set Zipname= "%~dp0%prjname%_%uuid%.zip"

Set time=2016-04-20-01:01:01

--echo%date:/=-%

Set rar_home= "C:\Program Files\winrar\winrar.exe"

If not exist%rar_home% (set Rar_home=c:\winrar\winrar.exe)

If not exist%rar_home% (set Rar_home=d:\winrar\winrar.exe)

If not exist%rar_home% (

Set Rar_home= "C:\Program Files (x86) \winrar\winrar.exe"

echo AAA

)

REM =========================== Packaging files modified from a certain point in time, compressed into a patch pack

%rar_home% a   -x*\build\-x*\.svn\-x*\dist\-x*\nbproject\    -ep1-m1-r-n*.bsh  -n*. Properties-n*.csv-n*.classpath  -n*.project-n*.ini-n*.ahk  -n*.bat  -n*.dmp   -n*.jsp-n*. Vm-n*.css-n*.java  -N*.XML-N*.DWT-N*.PHP-N*.TXT-N*.DOC-N*.CS-N*.ASPX-N*.ASCX-N*.HTM-N*.HTML-N*.JS-N*.CSP Roj-n*.sln-n*.resx-n*.sql-n*.config-n*.xsd-n*.settings  -n*.bat-n*.txt-n*.tld  -n*.tag-n*.properties &N Bsp; -n*.buildpath  -n*.classpath  -n*.myhibernatedata  -n*.mymetadata  -n*.project   -n*.jsdtscope  -n*.prefs  -n*.component  -n*.xml  -n*.container  -n*.name  -n*.sql  -n*.bat  -n*.hql  -n*.  -n*.log  -n*.txt  -n*.java  -n*.html  -n*.groovy  -n*.p12  -n*.properties  - n*.jsp  -n*.js  -n*.htaccess  -n*.pack  -n*.css  -n*.htm  -n*.xsd  -n*.htc  -n *.php  -n*.JSON  -n*.example-php  -n*.as  -n*.svg  -n*.sh  -n*.template  -n*.smd  -n*.fla  -n*.tld  -n*.asp  -n*.aspx  -n*.ashx  -n*. MF  -n*.scc  -n*.eot  -n*.ttf  -n*.woff  -n*.application  -n*.page  -n*.smap-ta% Time%  %zipname%   %pathx%

REM =========================== package Baseline project, Project Baseline: That is, the current time of the latest version of the project all core files, Jesus birth time point after the modified file, compressed into a patch pack

Set zipname_baseline= "%~dp0%prjname%_%uuid%_baselin.zip"

%rar_home% a   -x*\build\-x*\.svn\-x*\dist\-x*\nbproject\    -ep1-m1-r-n*.bsh  -n*. Properties-n*.csv-n*.classpath  -n*.project-n*.ini-n*.ahk  -n*.bat  -n*.dmp   -n*.jsp-n*. Vm-n*.css-n*.java  -N*.XML-N*.DWT-N*.PHP-N*.TXT-N*.DOC-N*.CS-N*.ASPX-N*.ASCX-N*.HTM-N*.HTML-N*.JS-N*.CSP Roj-n*.sln-n*.resx-n*.sql-n*.config-n*.xsd-n*.settings  -n*.bat-n*.txt-n*.tld  -n*.tag-n*.properties &N Bsp; -n*.buildpath  -n*.classpath  -n*.myhibernatedata  -n*.mymetadata  -n*.project   -n*.jsdtscope  -n*.prefs  -n*.component  -n*.xml  -n*.container  -n*.name  -n*.sql  -n*.bat  -n*.hql  -n*.  -n*.log  -n*.txt  -n*.java  -n*.html  -n*.groovy  -n*.p12  -n*.properties  - n*.jsp  -n*.js  -n*.htaccess  -n*.pack  -n*.css  -n*.htm  -n*.xsd  -n*.htc  -n *.php  -n*.JSON  -n*.example-php  -n*.as  -n*.svg  -n*.sh  -n*.template  -n*.smd  -n*.fla  -n*.tld  -n*.asp  -n*.aspx  -n*.ashx  -n*. MF  -n*.scc  -n*.eot  -n*.ttf  -n*.woff  -n*.application  -n*.page  -n*.smap    %zipname_baseline%   %pathx%

REM ============= the following is a packaged SQL file that packages the database and compresses

Set Sql_bakname= "%~dp0%prjname%_%uuid%.sql"

Set sql_zip= "%~dp0%prjname%_%uuid%.sql.zip"

C:\wamp\mysql\bin\mysqldump.exe-uroot-proot--set-charset=utf8 Wxb_srv_mir--result-file=%sql_bakname%

D:\wamp\bin\mysql\mysql5.5.20\bin\mysqldump.exe-uroot-proot--set-charset=utf8 wxb_site_new--result-file=%sql_ Bakname%

%rar_home% a-m1%sql_zip%%sql_bakname%

Pause

REM ==================================================== Description:

REM PATHX for engineering catalogs, ... There is no backslash at the end of the directory ...

REM prjname project name

REM Zipname for the file name to be packaged

Rem-time This file that specifies what time to modify later. According to the file modification time to package ah.

rem-n*.jsp This parameter indicates that the JSP file is packaged ... If you package a text file, you can add -n*.txt . other similar can be. I have added almost all extensions to the package project, and if omitted, you can add it yourself

Atitit. Project Modification Patch Packaging tool instructions for use

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.