]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Improve naming of scripts
authorJoel Rosdahl <joel@rosdahl.net>
Sat, 20 Jun 2020 18:00:24 +0000 (20:00 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Tue, 23 Jun 2020 19:48:29 +0000 (21:48 +0200)
- Use kebab case consistently.
- Remove redundant (and exposing an implementation detail) .sh extension
  for executables.

.travis.yml
ci/build [moved from ci/build.sh with 95% similarity]
ci/build-and-verify-package [moved from ci/build_and_verify_package.sh with 100% similarity]
ci/build-and-verify-package-source [moved from ci/build_and_verify_package_source.sh with 100% similarity]
ci/install-cuda.sh [moved from misc/install_cuda.sh with 100% similarity]
misc/build-in-docker
misc/check-format [moved from misc/check_format.sh with 100% similarity]
misc/format [moved from misc/format.sh with 100% similarity]
misc/update-authors [moved from misc/update_authors.sh with 100% similarity]

index f26a8234051ee743ad545183b85bb4aceae267af..60b96362d6f1cad2953a273f2141a3b0779bf582 100644 (file)
@@ -1,7 +1,7 @@
 language: cpp
 dist: bionic
 
-script: ci/build.sh
+script: ci/build
 
 jobs:
   include:
@@ -47,7 +47,7 @@ jobs:
         - elfutils
         - libzstd1-dev
     before_install:
-    - source ./misc/install_cuda.sh
+    - source ./ci/install-cuda.sh
 
   # Job 5: Build on Linux with 32-bit MinGW cross-compiler
   - os: linux
@@ -103,7 +103,7 @@ jobs:
 
   # Job 11: Build binary package, extract it out of source, run tests.
   - os: linux
-    env: T="Build binary and verify" VERBOSE=1 SPECIAL=build_and_verify_package
+    env: T="Build binary and verify" VERBOSE=1 SPECIAL=build-and-verify-package
     addons:
       apt:
         packages:
@@ -112,7 +112,7 @@ jobs:
 
   # Job 12: Build source package, extract it out of source, run tests.
   - os: linux
-    env: T="Build source package and verify" VERBOSE=1 SPECIAL=build_and_verify_package_source
+    env: T="Build source package and verify" VERBOSE=1 SPECIAL=build-and-verify-package-source
     addons:
       apt:
         packages:
similarity index 95%
rename from ci/build.sh
rename to ci/build
index 8ab28c88e10f90bf6fa59d0549fcdf7ca72b9670..3b42db632d628dc248a3c69536362da2b6459d94 100755 (executable)
+++ b/ci/build
@@ -2,7 +2,7 @@
 # This script is used by .travis.yml and build-in-docker
 
 if [ -n "${SPECIAL}" ]; then
-  sh ci/${SPECIAL}.sh
+  sh ci/${SPECIAL}
 else
   mkdir -p ${BUILDDIR:-build}
   cd ${BUILDDIR:-build}
similarity index 100%
rename from misc/install_cuda.sh
rename to ci/install-cuda.sh
index 47c6029a149d947df7094eece9666d5d69b56dd2..4a7e9d92e517627b290dc1e57145d89c441d0793 100755 (executable)
@@ -1,13 +1,13 @@
 #!/bin/bash
 
-# This script runs ci/build.sh in a Docker container.
+# This script runs ci/build in a Docker container.
 #
 # Usage:
 #
 #   build-in-docker NAME [ARGUMENTS]
 #
 # NAME: Sudirectory name in the dockerfiles directory.
-# ARGUMENTS: Arguments that will be passed to ci/build.sh.
+# ARGUMENTS: Arguments that will be passed to ci/build.
 
 set -eu
 
@@ -42,4 +42,4 @@ docker run --rm \
   --env NO_TEST="${NO_TEST:-}" \
   --env CCACHE_DIR=/ccache \
   "$tag" \
-  /source/ci/build.sh "$@"
+  /source/ci/build "$@"
similarity index 100%
rename from misc/check_format.sh
rename to misc/check-format
similarity index 100%
rename from misc/format.sh
rename to misc/format
similarity index 100%
rename from misc/update_authors.sh
rename to misc/update-authors