From a9976fca3b2277aa8ae0873934187f507a6d0315 Mon Sep 17 00:00:00 2001 From: Jeff Lawson Date: Sat, 2 Feb 2019 01:28:40 +0000 Subject: [PATCH 1/3] initial travis integration (no tests for now) --- .travis.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..ca02919 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,20 @@ +language: c + +sudo: true + +os: + - linux + - osx + +before_install: + - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi + - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install tcl-tk; fi + - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update -qq; fi + - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install tcl8.6-dev -y; fi + +script: + - autoreconf -vi + - if [ -f /usr/local/opt/tcl-tk/lib/tclConfig.sh ]; then ./configure --with-tcl=/usr/local/opt/tcl-tk/lib --prefix=/usr/local; else ./configure; fi + - make + - sudo make install + From 3ae7f0381d9ca2d743555689504d6a65f21061e7 Mon Sep 17 00:00:00 2001 From: Jeff Lawson Date: Sat, 2 Feb 2019 01:39:03 +0000 Subject: [PATCH 2/3] convert readme to markdown. add travis status icon. --- ReadMe.txt => README.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) rename ReadMe.txt => README.md (81%) diff --git a/ReadMe.txt b/README.md similarity index 81% rename from ReadMe.txt rename to README.md index 9c8b7fc..340fc56 100755 --- a/ReadMe.txt +++ b/README.md @@ -1,4 +1,8 @@ -TclCurl - get a URL with FTP, TELNET, LDAP, DICT, FILE, HTTP or HTTPS syntax. +[![Build Status](https://travis-ci.org/flightaware/tclcurl-fa.svg?branch=master)](https://travis-ci.org/flightaware/tclcurl-fa) + +# TclCurl - get a URL with FTP, TELNET, LDAP, DICT, FILE, HTTP or HTTPS syntax. + +## Introduction TclCurl gives the Tcl programmer access to the facilities of libcurl, for more information about what libcurl is capable of check http://curl.haxx.se. @@ -15,7 +19,7 @@ the make of tcl for most of its configuration parameters. There is another README to explain how to compile in Windows. -Troubleshooting +## Troubleshooting If you are running Red Hat or Fedora and you are compiling from source, make sure the directory '/usr/local/lib' is listed in '/etc/ld.so.conf', @@ -26,7 +30,7 @@ is probably because there is no 'tclConfig.sh' file, maybe you need to install a 'tcl-devel' package or maybe it would be a good idea to download the latest version, and install that. -Usage: +## Usage package require TclCurl @@ -52,8 +56,13 @@ Usage: Check the man page for details. +## Authors Written by: Andres Garcia (fandom@telefonica.net) +Cloned from a repo once at: https://bitbucket.org/smh377/tclcurl/ + +## License + Use at your own risk. No support. BSD like license, check 'license.terms' for details. From 4c6985bb838de83887398d6c0aed59c3cf4879e2 Mon Sep 17 00:00:00 2001 From: Jeff Lawson Date: Sat, 2 Feb 2019 01:41:18 +0000 Subject: [PATCH 3/3] formatting --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 340fc56..2757321 100755 --- a/README.md +++ b/README.md @@ -13,21 +13,21 @@ To make type: make make install -The configure script will deduce $PREFIX from the tcl installation. -The generated Makefile uses the file $PREFIX/lib/tclConfig.sh that was left by +The configure script will deduce `$PREFIX` from the tcl installation. +The generated `Makefile` uses the file `$PREFIX/lib/tclConfig.sh` that was left by the make of tcl for most of its configuration parameters. -There is another README to explain how to compile in Windows. +There is another file, ReadMeW32.txt, to explain how to compile in Windows. ## Troubleshooting If you are running Red Hat or Fedora and you are compiling from source, -make sure the directory '/usr/local/lib' is listed in '/etc/ld.so.conf', +make sure the directory `/usr/local/lib` is listed in `/etc/ld.so.conf`, if it isn't add it before installing cURL. If the configure script doesn't detect Tcl even though it is there, it -is probably because there is no 'tclConfig.sh' file, maybe you need -to install a 'tcl-devel' package or maybe it would be a good idea +is probably because there is no `tclConfig.sh` file, maybe you need +to install a `tcl-devel` package or maybe it would be a good idea to download the latest version, and install that. ## Usage