Commit Graph

317 Commits

Author SHA1 Message Date
Vassil Vassilev
c36e71769d Fix cmake invocation on osx. 2016-08-05 15:26:37 +02:00
Vassil Vassilev
7d5cbc070e Build only host target on windows. Simplify. 2016-08-05 11:23:41 +02:00
Vassil Vassilev
c49e3c3111 Print a new line. 2016-08-05 11:23:41 +02:00
Vassil Vassilev
165852930b Run the tests in a platform-independent way. 2016-08-05 11:23:41 +02:00
Vassil Vassilev
396bc54c6f Do not build clang as a target. 2016-08-05 11:23:41 +02:00
Vassil Vassilev
e28d6d0b99 The unzipped subfolder is dependent on the platform. 2016-08-05 11:23:41 +02:00
Vassil Vassilev
3e5abd7067 We need latest cmake to run cling's testsuite. Simplify. 2016-08-05 11:23:41 +02:00
Vassil Vassilev
efdd4833c9 Use recent visual studio. 2016-08-05 11:23:41 +02:00
Vassil Vassilev
8fd09ba0cf Adjust url. 2016-08-05 11:23:41 +02:00
Vassil Vassilev
3b57a0a378 Find latest nsis binary. 2016-08-05 11:23:41 +02:00
Vassil Vassilev
4839f298c6 Sourceforge redirects to https. 2016-08-05 11:23:41 +02:00
Vassil Vassilev
ad0d4d9b0d Build only target cling. Simplify. 2016-08-03 23:14:16 +02:00
Vassil Vassilev
4c824f89aa Make cpt debug friendly if --debug-on-error is passed.
Do not cleanup the workspace and dump a cmake log files.
2016-08-03 14:29:26 +02:00
Anirudha Bose
320ba93dd2 Update CPT for latest LLVM
* Drop support for configure, in favor of CMake.
   Latest LLVM makes cmake mandatory
 * Improvements to wget
 * Travis CI fixes
2016-07-19 20:44:11 +02:00
Anirudha Bose
1cec9757e9 CPT: Use GitHub API to fetch repo tags 2016-07-06 14:44:09 +02:00
Anirudha Bose
7245fc55e5 CPT: LLVM revision must correspond to checked out tag 2016-07-06 14:44:09 +02:00
Anirudha Bose
1184631657 CPT: Limit parallel builds to 4 cores 2016-07-06 14:44:09 +02:00
Anirudha Bose
3c651f3048 CPT: Better SSL detection 2016-07-06 14:44:09 +02:00
Anirudha Bose
2f01f7dbee CPT: Fix subprocess communication in Python 3 2016-07-06 14:44:09 +02:00
Anirudha Bose
9f18c590da Refactor and reformat code in CPT 2016-07-06 14:44:09 +02:00
Anirudha Bose
6bef401e59 Use modern syntax of "except" for dual compatibility with Python 2 and 3 2016-07-06 14:44:09 +02:00
Anirudha Bose
c63d7d1920 New method to get sources of LLVM and Clang
- prefer new method if the repos are hosted in Github
- fix an IndexError bug in home-grown wget()
2016-07-06 14:44:09 +02:00
Anirudha Bose
ee1a3d8c73 Change the default URLs of repositories
Repos hosted in GitHub have the advantage of a rich API.
The variables where this change will be reflected are:
LLVM_GIT_URL, WITH_LLVM_URL
CLANG_GIT_URL, CLANG_GIT_URL
CLING_GIT_URL, CLING_GIT_URL
2016-07-06 14:44:09 +02:00
CristinaCristescu
1d46fe88d8 Remove runtime namespace from NullDerefException and rename RuntimeException.h to Exception.h.
(cherry picked from commit 234da8bfedce8661c2b8bc50f72632c240c4dfd8)
2015-12-15 20:24:16 +01:00
Maxim Ivanov
8b00d8b7a4 Fix a sneaky typo
💄
2014-11-06 12:13:29 +01:00
Anirudha Bose
365133992a Need to encode Debian changelog to UTF-8 2014-10-05 21:56:08 +02:00
Anirudha Bose
3b8577fc5f Auto-detect Clang version. Remove hard-coded Clang version in dist-files.mk 2014-10-04 11:47:04 +02:00
Anirudha Bose
09c43b9300 Fix #51: Handle subprocess.CalledProcessError 2014-10-02 20:08:02 +02:00
Anirudha Bose
34023274e2 Remove Python 3 warning in --check-requirements 2014-10-02 10:09:36 +02:00
Anirudha Bose
2e10af4cee Use UTF-8 standard to decode bytes object to str 2014-10-02 10:09:36 +02:00
Anirudha Bose
f86229f459 Make wget functionality compatible with Python 3 2014-10-02 10:09:35 +02:00
Anirudha Bose
19430a0367 Convert bytes object to str for Python 3 2014-10-02 10:09:35 +02:00
Philippe Canal
d0c5e588c5 Revert "Remove trailing spaces" in interpreter/cling/tools/packaging/dist-files.mk
This partially reverts commit a6bc8d715a79f578e5fe0cf18e46af92ff507fd7.
2014-10-02 02:42:07 +02:00
Vassil Vassilev
6101769c89 Use the correct extension. 2014-10-01 18:39:07 +02:00
Robert Xiao
504cd078e5 Make Python scripts Python3-compatible 2014-10-01 18:39:05 +02:00
Vassil Vassilev
ddbe9dda2c Remove empty spaces. 2014-09-28 17:02:06 +02:00
Robert Xiao
e2c78ae27e Use check_call and check_output for subprocess 2014-09-28 17:02:06 +02:00
Robert Xiao
1b99067bb0 Fix LLVMRevision source URL in cpt.py
LLVMRevision is being retrieved from an old URL, which contains the wrong LLVM revision. Update it to point at the current cling repository.
2014-09-25 19:56:07 +02:00
Anirudha Bose
b9f5ccf55c Implement #29: Add support for --create-dev-env 2014-08-19 10:18:06 +02:00
Anirudha Bose
aa4a20c3ab Add support for --current-dev=pkg and --last-stable=pkg 2014-08-19 10:18:06 +02:00
Anirudha Bose
27356beda1 Update CPT documentation for RPM and DMG bundles 2014-08-19 10:18:06 +02:00
Anirudha Bose
f182d64afc Use cling-patches branch instead of ROOT-patches in CPT 2014-08-19 10:18:06 +02:00
Anirudha Bose
2fb5acd8a8 Update CPT usage in README.md 2014-08-19 10:18:05 +02:00
Anirudha Bose
3dd0272e5c Resolve #36: Handle output of 'where' command correctly 2014-08-14 14:56:32 +02:00
Anirudha Bose
3128048499 Accept relative paths in --with-workdir switch 2014-08-14 14:56:32 +02:00
Anirudha Bose
5beb95df13 Use the downloaded CMake binaries in Windows 2014-08-14 14:56:32 +02:00
Anirudha Bose
35bcce30a1 Close #39: Implement --no-test switch to skip the test suite 2014-08-14 14:56:32 +02:00
Anirudha Bose
9f6fa01970 Add --dmg-tag to argument parser configuration 2014-08-14 14:56:32 +02:00
Anirudha Bose
7e4d5ba261 Close #38: Implement switches --dmg-tag and --last-stable=dmg 2014-08-14 14:56:32 +02:00
Anirudha Bose
572e50a566 Remove temporary DMG and staging directories 2014-08-14 14:56:32 +02:00
Anirudha Bose
54a8ca0ded Close #35: Fix typo in Cling executable name 2014-08-14 14:56:32 +02:00
Anirudha Bose
8ac01f9cfd Close #30: Implemented overrides for LLVM, Clang, and Cling repos 2014-08-14 14:56:32 +02:00
Anirudha Bose
3751c659f8 Resolve #27: Fix --with-workdir switch in CPT 2014-08-14 14:56:31 +02:00
Philippe Canal
576ca3ca96 Remove trailing spaces 2014-08-13 16:08:36 +02:00
Anirudha Bose
decffc8c21 Remove temporary DMG build files and directories 2014-08-04 09:57:08 +02:00
Anirudha Bose
ce7dda4131 Perform selfupdate in MacPorts before installing 2014-08-04 09:57:08 +02:00
Anirudha Bose
458d36b99f Implement cpt.py -c for Darwin platform 2014-08-04 09:57:08 +02:00
Anirudha Bose
9c47395078 Removing downloaded ZIP files causes permission errors 2014-08-04 09:57:08 +02:00
Anirudha Bose
dbe7de0774 Change prefix under Windows platform 2014-08-04 09:57:08 +02:00
Anirudha Bose
86d996cedf Fix typo 2014-08-04 09:57:08 +02:00
Anirudha Bose
8a77c2f421 Fix VOL_NAME to exclude space 2014-08-04 09:57:08 +02:00
user1
24dc7d16c7 Use absolute path for staging directory 2014-08-04 09:57:08 +02:00
Anirudha Bose
8db46501f6 Rely on shutil.copytree() to create directory structure 2014-08-04 09:57:08 +02:00
Anirudha Bose
680d227061 Print useful messages while creating Disk Image 2014-08-04 09:57:08 +02:00
Anirudha Bose
eb068eb679 Use correct paths for app bundle 2014-08-04 09:57:08 +02:00
Anirudha Bose
ddb14d00ae Adopt the naming convention used in EC 2014-08-04 09:57:07 +02:00
Anirudha Bose
0c7d6ef355 Do not compile with C++11 support in Mac OS X 10.8 2014-08-04 09:57:07 +02:00
Anirudha Bose
9ba3f42700 Set DIST variable to MacOS in Darwin platform 2014-08-04 09:57:07 +02:00
Anirudha Bose
c7b99553a0 Remove dependency on head command in Windows 2014-08-04 09:57:07 +02:00
Anirudha Bose
f409109c7a Initial support for Apple Disk Images 2014-08-04 09:57:07 +02:00
Anirudha Bose
9c6b1e3317 Change TMP_PREFIX to /tmp from /var/tmp to enable auto-clean during bootup 2014-08-04 09:57:07 +02:00
Anirudha Bose
6870da89fd Add an internal switch to support calls from build system 2014-08-04 09:57:06 +02:00
Anirudha Bose
3d88028cc8 Specify about Python version and SSL support
Update README.md of CPT
2014-08-04 09:57:06 +02:00
Anirudha Bose
556983d8e4 Fix missing link in README.md of CPT 2014-08-04 09:57:06 +02:00
Anirudha Bose
48bebfe3d0 Update README.md of CPT to reflect the Python port 2014-08-04 09:57:06 +02:00
Anirudha Bose
eb0598b2a8 Prevent spaces in prefix filenames 2014-08-04 09:57:05 +02:00
Anirudha Bose
01494ec70f Enable --check-requirements for Scientific Linux CERN 2014-08-04 09:57:05 +02:00
Anirudha Bose
2998141ca1 Update changelog of spec file 2014-08-04 09:57:05 +02:00
Anirudha Bose
2ad069ca9d Add new argument --rpm-tag to CPT 2014-08-04 09:57:05 +02:00
Anirudha Bose
d6de0aadd5 Check requirements for Fedora and improve RPM packaging 2014-08-04 09:57:04 +02:00
Anirudha Bose
3b5e682c11 Initial support for RPM packaging 2014-07-13 13:03:07 +02:00
Anirudha Bose
92fb76b25c Check te value of g++ -dumpmachine if installed
The flag for c++11 is not supported for g++ versions older than 4.7
2014-07-13 13:03:07 +02:00
Anirudha Bose
74c2c69d4c Check for SSL support in Python 2014-07-13 13:03:07 +02:00
Anirudha Bose
d6bc81cdf4 Fix typo in lstrip() 2014-07-13 13:03:07 +02:00
Anirudha Bose
2cc7abdb38 Change cpt.py to new mode 100755 2014-07-13 13:03:07 +02:00
Anirudha Bose
e08a5ff6d7 Remove old Bash implementation from tree 2014-07-13 13:03:07 +02:00
Anirudha Bose
915625e8c1 Initial Python port of function make_nsis 2014-07-13 13:03:06 +02:00
Anirudha Bose
84af7b5b94 Fix missing argument in changelog 2014-07-13 13:03:06 +02:00
Anirudha Bose
8acb9cc58a Handle case when workdir already exists 2014-07-13 13:03:06 +02:00
Anirudha Bose
b7022a19ef Implement missing features for Windows platform 2014-07-13 13:03:06 +02:00
Anirudha Bose
564ff11049 Initial Python port of --check-requirements 2014-07-13 13:03:06 +02:00
Anirudha Bose
de1b6762da Port get_nsis to Python using the new API 2014-07-13 13:03:06 +02:00
Anirudha Bose
dfdffbe5cc Drop-in replacement of wget for all platforms 2014-07-13 13:03:06 +02:00
Anirudha Bose
c44817d53b Use os.path.join to concatenate pathnames in a portable way 2014-07-13 13:03:06 +02:00
Anirudha Bose
cff5c5ac75 Split commands containing quotes into proper list for cmd.exe 2014-07-13 13:03:06 +02:00
Anirudha Bose
a21575f7d9 Synthesize subprocess calls through functions 2014-07-13 13:03:06 +02:00
Anirudha Bose
d97849ac85 Add more platform specific initializations 2014-07-13 13:03:06 +02:00
Anirudha Bose
2f9bd35610 Do not print non-ascii characters in cmd.exe 2014-07-13 13:03:06 +02:00
Anirudha Bose
487b519477 Remove close_fds from subprocess calls which is not supported in Windows 2014-07-13 13:03:06 +02:00
Anirudha Bose
d6bc9d536c Use a portable solution for timestamp in RFC 2822 format
strftime doesn't work on Windows
2014-07-13 13:03:06 +02:00
Anirudha Bose
f80f24abd1 Stash local changes before cloning the sources 2014-07-13 13:03:06 +02:00
Anirudha Bose
88f850ea10 Initial Python port of debianize.sh 2014-07-13 13:03:06 +02:00
Anirudha Bose
546d09b284 Logically separate script into sections 2014-07-13 13:03:06 +02:00
Anirudha Bose
a879ae345a Remove file indep.py
Already merged into cpt.py
2014-07-13 13:03:06 +02:00
Anirudha Bose
d14e8d17ef Initial Python port of cpt.sh
Merge already ported indep.py to cpt.py
2014-07-13 13:03:06 +02:00
Anirudha Bose
e6687233b4 Initial Python port of indep.sh 2014-07-13 13:03:06 +02:00
Anirudha Bose
90bac69568 Show a warning to the user if GPG fingerprint is absent 2014-06-25 11:06:00 +02:00
Anirudha Bose
1bb1009ca9 Add new override for the variable LLVM_GIT_URL 2014-06-25 11:06:00 +02:00
Anirudha Bose
3b1c585a52 Add new override for the variable CLANG_GIT_URL 2014-06-25 11:06:00 +02:00
Anirudha Bose
b43606acb6 Use set_version in case of --*-tag={tag} 2014-06-25 11:06:00 +02:00
Anirudha Bose
ffe2d5ef8a Produce an error when no arrguments are passed to cpt.sh 2014-06-25 11:06:00 +02:00
Anirudha Bose
a4a17a8b9a Merge cleanup functions of all platforms to a single one 2014-06-25 11:06:00 +02:00
Anirudha Bose
52e0768ded Remove double quotes to allow expansion of relative paths 2014-06-25 11:06:00 +02:00
Anirudha Bose
183563a03a Allow ${workdir} to be overridden 2014-06-25 11:06:00 +02:00
Anirudha Bose
e89f5d68cb Assign correct value to LLVM_OBJ_ROOT if it is null 2014-06-25 11:05:59 +02:00
Anirudha Bose
c6deaeca86 Trap SIGEXIT appropriately during exits 2014-06-25 11:05:59 +02:00
Anirudha Bose
3355f27235 Update documentation to include --nsis-tag={tag} 2014-06-25 11:05:59 +02:00
Anirudha Bose
6ed654f403 CPT: Update error condition for cross-compiling to Windows 2014-06-25 11:05:59 +02:00
Anirudha Bose
29d289ae29 CPT: Show an error if no value is passed with options that require one 2014-06-25 11:05:59 +02:00
Anirudha Bose
921b60e522 Checkout the proper Git tag when --*-tag={tag} is passed 2014-06-25 11:05:59 +02:00
Anirudha Bose
943844f81c cpt.sh: Add new option --nsis-tag={tag} 2014-06-25 11:05:59 +02:00
Anirudha Bose
558ea7d719 Add error handling in CPT scripts 2014-06-25 11:05:59 +02:00
Anirudha Bose
593b78a9cc Generate lit.site.cfg in ${LLVM_OBJ_ROOT}/test if not present
lit.site.cfg is parsed to get the values of SHLIBEXT and EXEEXT.
CMake automatically generates this without running tests.
2014-06-25 11:05:59 +02:00
Anirudha Bose
8b5c1a09de Running Cling tests shouldn't be a part of "make proper"
"make distribution" renamed to "make proper"
2014-06-25 11:05:59 +02:00
Anirudha Bose
fa0a31aae0 Use test/lit.site.cfg instead of config.log to get EXEEXT and SHLIBEXT 2014-06-25 11:05:59 +02:00
Anirudha Bose
24fbdf820d Fix invalid paths in NSI script
Also use the TMP_PREFIX variable in the path.
2014-06-25 11:05:59 +02:00
Anirudha Bose
f276927209 Use SHLIBEXT and EXEEXT to make dist-files.mk platform independent 2014-06-25 11:05:59 +02:00
Anirudha Bose
12687731b3 Add function in cling.nsi to detect existing installation of Cling 2014-06-25 11:05:59 +02:00
Anirudha Bose
9a4f4fead0 Add function in cling.nsi to detect the version of Windows
Abort installation for old and unsupported versions of Windows.
2014-06-25 11:05:59 +02:00
Anirudha Bose
5f1a782468 Update README.md for CPT 2014-06-25 11:05:59 +02:00
Anirudha Bose
ce452ec9d5 Remove "unzip" as a requirement in Cygwin
"unzip.exe" is fetched on the fly and used by CPT.
2014-06-25 11:05:59 +02:00
Anirudha Bose
1198ecaeb9 Update usage details of CPT 2014-06-25 11:05:59 +02:00
Anirudha Bose
5faa225459 Initial support for integrating CPT with the build system 2014-06-25 11:05:59 +02:00
Anirudha Bose
c9a40085a7 Remove extra LICENSE.TXT file of LLVM 2014-06-25 11:05:59 +02:00
Anirudha Bose
bea1810af6 Change Cling's installer icon to use LLVM logo 2014-06-18 09:51:02 +02:00
Anirudha Bose
f461f9544b Maintain an extended path in dist-files.mk for better accuracy
This is needed to resolve some duplicate files installed during "make install"
by default.
2014-06-18 09:51:02 +02:00
Anirudha Bose
19014400d4 Version key "FileVersion" is required in cling.nsi 2014-06-18 09:51:02 +02:00
Anirudha Bose
62f0148773 Add a mechanism to override default URL of Cling's git repo
Also handle cases where existing origin is different to the supplied origin.
2014-06-18 09:51:02 +02:00
Anirudha Bose
b029fbb5de Hard code cling.exe to be included in the package 2014-06-18 09:51:02 +02:00
Anirudha Bose
c5bd3ea1a3 Translate Cygwin pathname to Windows format for makensis.exe 2014-06-18 09:51:02 +02:00
Anirudha Bose
e41724157b Add icons for NSIS installer and uninstaller 2014-06-18 09:51:02 +02:00
Anirudha Bose
23c4bc0868 Enable building nsis executable from cling.nsi 2014-06-18 09:51:02 +02:00
Anirudha Bose
ca100adf9d Use valid VIProductVersion key in cling.nsi 2014-06-18 09:51:02 +02:00
Anirudha Bose
967175fc5c Use Windows style absolute paths in cling.nsi 2014-06-18 09:51:02 +02:00
Anirudha Bose
6483f480f1 Change mode of nsis directory to 775
Grant read and execute permissions to nsis executables
2014-06-18 09:51:02 +02:00
Anirudha Bose
17ea31cd78 Add "unzip" to list of requirements in Windows 2014-06-18 09:51:02 +02:00
Anirudha Bose
15ca2b1064 Generate nsi script with --current-dev=nsis and last-stable=nsis 2014-06-18 09:51:02 +02:00
Anirudha Bose
5b9937769e Add uninstallation capabilities in cling.nsi 2014-06-18 09:51:02 +02:00
Anirudha Bose
3fa5f6d5fd Use solid LZMA compression in NSIS installer 2014-06-18 09:51:02 +02:00
Anirudha Bose
6a321be404 Add section "Mainfiles" to NSI script
Section contains a list of files to be packaged in the installer
2014-06-18 09:51:02 +02:00