Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ncp-update')
-rwxr-xr-xbin/ncp-update7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/ncp-update b/bin/ncp-update
index 54f6a23e..9456819c 100755
--- a/bin/ncp-update
+++ b/bin/ncp-update
@@ -17,6 +17,13 @@
grep -qP "v\d+\.\d+\.\d+" <<< "$VER" && { # check format
echo "$VER" > /usr/local/etc/ncp-version
echo "$VER" > /var/run/.ncp-latest-version
+
+ # write changelog
+ git log --graph --oneline --decorate \
+ --pretty=format:"[%D] %s" --date=short | \
+ grep 'tag: v' | \
+ sed '/HEAD ->\|origin/s|\[.*\(tag: v[0-9]\+\.[0-9]\+\.[0-9]\+\).*\]|[\1]|' | \
+ sed 's|* \[tag: |[|' > /usr/local/etc/ncp-changelog
}
echo -e "NextCloudPi updated to version $VER"
}