47 Commits
Author SHA1 Message Date
adipose 4bf0cae309 Stamp the version with git.exe alone instead of version.sh under bash (#4153) 2026-09-08 17:12:52 +02:00
clsid2 3de2ea9102 Add fallback manifest file to make compilation work even when people are missing build dependencies 2021-06-28 12:52:23 +02:00
clsid2 19d37a52f0 Add fallback version rev file that is used when Git is unavailable 2020-12-23 16:58:11 +01:00
clsid2 b752b1b511 Improve version generation script 2020-12-23 16:42:24 +01:00
XhmikosR 3635f6e75f Change references to Compilation.md. 2017-07-30 19:03:41 +03:00
XhmikosR 18663b39fe update_version.bat: Remove double space. 2015-12-01 00:18:08 +02:00
Alex Marsev 3fcde2d7ff Add BuildConfig project
It handles version_rev.h file generation.
2015-11-10 22:35:42 +03:00
Kacper Michajłow 5449ee5fae Expand current file path only at the beggining and store it.
"%~dp0" would fail if requested after directory changes internally.
Also add quotes in case of spaces in path.

Add usr/bin to the path.
2015-03-01 23:18:49 +01:00
Kacper Michajłow 3eaa44a866 Add common.bat file with common functions. 2015-02-16 23:41:08 +01:00
Kacper Michajłow 271fcdf0c2 Do not require definitions to be in build.user.bat. Update remaining
files.
2015-01-25 22:13:51 +01:00
kasper93 d3be1c8601 Set the execute permissions on .bat and .sh files.
Command used to prepare this patch
`git ls-files -z '*.bat' '.sh' | xargs -0 git update-index --chmod=+x`
2014-05-02 22:41:17 +02:00
m0viefreak 326f31755a optimize version.sh and update_version.bat
- version.sh already used bash-specific syntax, and MSYS uses bash for sh, anyways,
  so make the script a real bash script and properly call it using bash.exe
- optimze bash syntax (avoid external tools, don't use echo -e, use $() instead of ``, lowercase vars, ...)
  see http://mywiki.wooledge.org/BashFAQ / http://mywiki.wooledge.org/BashGuide
- only use plumbing git commands instead of porcellain commands in combination with external tools
- the script is never passed an argument, so remove the $1 check
- bump copyright year
- make sure the manifest file gets updated in case the manifest.conf changes,
  but the version has not yet increased
- convert line endings to UNIX, because otherwise it will fail when calling it in
  cygwin or native linux
2013-01-08 00:17:58 +01:00
XhmikosR bcd7563a66 apply astyle 2012-09-04 16:22:32 +03:00
xhmikosr 9386312613 everything should compile even without git now 2012-08-01 23:01:14 +03:00
xhmikosr 0a479cdedb batch files cosmetics 2012-07-29 10:15:54 +03:00
xhmikosr 52d82848e6 update_version.bat: don't fail if GIT isn't set since git might be already in PATH 2012-07-25 18:46:30 +03:00
xhmikosr 0f9064c9e7 remove unneeded files 2012-07-25 18:46:25 +03:00
Underground78 153b9d07b8 Update the revision number in the manifest file. 2012-07-25 18:46:24 +03:00
xhmikosr 5c44d332ac update update_version.bat 2012-07-25 18:46:22 +03:00
xhmikosr 733eef3679 first script to get the revision. Heavily based on a patch by demi_alucard 2012-07-25 18:46:22 +03:00
xhmikosr 43a55b7aed remove the svn keyword Id 2012-07-25 18:46:20 +03:00
XhmikosR 45bec579e1 update_version.bat: add license header
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@4940 10f7b99b-c216-0410-bff0-8a66a9350fd8
2012-05-29 19:54:33 +00:00
XhmikosR 66c1047db0 move apps/MPCTestAPI and apps/mplayerc one dir up
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@4789 10f7b99b-c216-0410-bff0-8a66a9350fd8
2012-05-18 15:40:28 +00:00
XhmikosR aabcd1b355 gccbuild.bat, update_version.bat: cosmetics
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@4693 10f7b99b-c216-0410-bff0-8a66a9350fd8
2012-05-11 19:10:26 +00:00
XhmikosR 31e4959ca2 update_version.bat: minor improvements
patch by kasper93

git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@4597 10f7b99b-c216-0410-bff0-8a66a9350fd8
2012-05-05 15:03:55 +00:00
XhmikosR 4d85dccf0c update copyright years, remove some unneeded whitespaces, minor update in update_version.bat
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@4022 10f7b99b-c216-0410-bff0-8a66a9350fd8
2012-01-31 17:42:10 +00:00
XhmikosR 930955f0fc * remove non existent project GUID from the solution files
* makefile: sort entries by name
* update copyright year for modified files
* minor updates in Readme.txt and Changelog.txt

git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@3963 10f7b99b-c216-0410-bff0-8a66a9350fd8
2012-01-12 15:54:39 +00:00
XhmikosR 4f3144248a * makefile: sort files alphabetically
* update Changelog.txt and Readme.txt

git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@3932 10f7b99b-c216-0410-bff0-8a66a9350fd8
2011-12-30 09:59:18 +00:00
XhmikosR 291712831d update Compilation.txt plus minor cosmetic changes
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@3859 10f7b99b-c216-0410-bff0-8a66a9350fd8
2011-11-27 14:43:22 +00:00
XhmikosR 3bdcdde6b0 show a more useful message when SubWCRev isn't found
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@3454 10f7b99b-c216-0410-bff0-8a66a9350fd8
2011-07-22 19:32:00 +00:00
XhmikosR b91a81065c cosmetics
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@3164 10f7b99b-c216-0410-bff0-8a66a9350fd8
2011-05-30 12:03:30 +00:00
XhmikosR 710a606e43 revert the change in update_version.bat: TortoiseSVN adds itself in PATH when installed.
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@2977 10f7b99b-c216-0410-bff0-8a66a9350fd8
2011-03-13 12:44:10 +00:00
kinddragon 28d0f806be update_version.bat improved
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@2975 10f7b99b-c216-0410-bff0-8a66a9350fd8
2011-03-12 22:13:25 +00:00
XhmikosR cc7eb4fcbd cosmetics in the batch files
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@2911 10f7b99b-c216-0410-bff0-8a66a9350fd8
2011-02-03 10:46:35 +00:00
XhmikosR 9bd9ecb0b7 rename SubWCRev.h to Version_rev.h.in, update changelog
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@2910 10f7b99b-c216-0410-bff0-8a66a9350fd8
2011-02-01 21:14:42 +00:00
XhmikosR 7867f64306 update/clean up batch files
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@2896 10f7b99b-c216-0410-bff0-8a66a9350fd8
2011-01-29 14:31:20 +00:00
XhmikosR 370423a2f6 various version related changes:
-prefix VERSION_MAJOR,MINOR,REV AND PATCH with "MPC_"
-defined the needed stuff in version.h and I used those everywhere so it's easier to change the copyright or the version scheme in the future
-add version.h in the project files

git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@2762 10f7b99b-c216-0410-bff0-8a66a9350fd8
2010-12-10 21:45:47 +00:00
XhmikosR d97d92e0a3 include the last committed rev of folders when getting the revision number
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@2754 10f7b99b-c216-0410-bff0-8a66a9350fd8
2010-12-07 13:49:48 +00:00
XhmikosR d31a26eb00 update batch files, lcms
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@2750 10f7b99b-c216-0410-bff0-8a66a9350fd8
2010-12-03 14:07:22 +00:00
XhmikosR 7884954797 update docs
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@2731 10f7b99b-c216-0410-bff0-8a66a9350fd8
2010-11-18 19:04:27 +00:00
XhmikosR 6c18c4e86c VSFilter: actually use the provided manifest file
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@2162 10f7b99b-c216-0410-bff0-8a66a9350fd8
2010-07-27 11:11:31 +00:00
XhmikosR 3f86f99aa4 split Version.h plus some cosmetic changes
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@2122 10f7b99b-c216-0410-bff0-8a66a9350fd8
2010-07-13 13:46:33 +00:00
XhmikosR 9657cba7d8 cosmetics
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@2006 10f7b99b-c216-0410-bff0-8a66a9350fd8
2010-06-04 13:27:21 +00:00
XhmikosR 234dfdc3ba -moved build.bat in the root dir and removed obsolete batch files.
-updated svn ignore

git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@1968 10f7b99b-c216-0410-bff0-8a66a9350fd8
2010-05-28 10:28:27 +00:00
XhmikosR 8ee09c5a2c Updated "update_version.bat". TortoiseSVN adds itself in PATH so there's no need to use a hardcoded path for SubWCRev.
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@1882 10f7b99b-c216-0410-bff0-8a66a9350fd8
2010-05-13 12:21:21 +00:00
Aleksoid 2f6c33a1c2 Update .manifest file and set auto-version from SVN;
Update for VS 2010 compatible;

git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@1799 10f7b99b-c216-0410-bff0-8a66a9350fd8
2010-04-20 00:15:22 +00:00
clsid2 2a75c67619 Moved SubWcRev commands to .bat file
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@1770 10f7b99b-c216-0410-bff0-8a66a9350fd8
2010-03-25 18:12:19 +00:00