Created
April 15, 2021 08:36
-
-
Save bsless/74d502fb39441e7789989ce8e66e526b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -x | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" | |
GROUP=$(cat "${DIR}/GROUP") | |
PROJECT=$(cat "${DIR}/PROJECT") | |
SCM=$(cat "${DIR}/SCM") | |
ver=$("$DIR/current-version") | |
cd modules || exit | |
MODULE=$1 | |
lein new "${GROUP}/${PROJECT}.${MODULE}" | |
cd "${PROJECT}.${MODULE}" || exit | |
rm -rf doc resources README.md LICENSE CHANGELOG.md | |
cat << EOF > project.clj | |
(defproject ${GROUP}/${PROJECT}.$MODULE "$ver" | |
:description "" | |
:url "${SCM}" | |
:scm {:name "git" | |
:url "${SCM}" | |
:dir "../.."} | |
:license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0" | |
:url "https://www.eclipse.org/legal/epl-2.0/"} | |
:plugins [[lein-parent "0.3.2"]] | |
:parent-project {:path "../../project.clj" | |
:inherit [:deploy-repositories :managed-dependencies :repositories]} | |
:dependencies []) | |
EOF | |
cd ../ || exit | |
cd ../ || exit | |
set +x |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment