Skip to content

Commit

Permalink
Misc cleanup
Browse files Browse the repository at this point in the history
* License headers
* Improve release process to avoid unwanted files
* shellcheck linting
  • Loading branch information
bahamat committed Jan 7, 2022
1 parent 86066b3 commit f707cfc
Show file tree
Hide file tree
Showing 5 changed files with 125 additions and 46 deletions.
12 changes: 10 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

# Copyright 2021 Joyent, Inc.

SCRIPT= deps/dehydrated/dehydrated
ARCHIVE= dehydrated.tar.gz
VERSION= $(shell git tag --sort=taggerdate | tail -1)
Expand All @@ -15,11 +21,13 @@ release: clean .version $(ARCHIVE)
echo "$(VERSION)" > $@
git rev-parse HEAD 2>/dev/null >> $@

$(ARCHIVE): $(SCRIPT) patch .version
$(ARCHIVE): clean $(SCRIPT) patch .version
find . -type f \
-not -path '*/.git/*' \
-not -path '*/PATCHES/*' \
-not -name '.git*' \
-not -name '.travis.yml' \
-not -name 'Makefile' \
-not -name '$(ARCHIVE)' | \
xargs tar -czf "$@"

Expand All @@ -35,4 +43,4 @@ subclean:
git submodule foreach --recursive git reset --hard

clean: subclean
rm .version $(ARCHIVE) || true
rm -rf .version $(ARCHIVE) accounts certs || true
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at https://mozilla.org/MPL/2.0/.
-->

<!--
- Copyright 2021 Joyent, Inc.
-->

# triton-dehydrated

[dehydrated](https://github.com/lukas2511/dehydrated) hook script to set up
Expand Down
6 changes: 6 additions & 0 deletions cns-hook
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#!/usr/bin/env bash

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

# Copyright 2021 Joyent, Inc.

# Ensure BSEDIR is relative to this script.
BASEDIR="${BASH_SOURCE[0]%/*}"

Expand Down
Loading

0 comments on commit f707cfc

Please sign in to comment.