Skip to content

Commit 2b0707d

Browse files
Alexey Abelalexeyabel
authored andcommitted
Add release folder creation script
1 parent 7f64d96 commit 2b0707d

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/releases

create_release.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#! /usr/bin/bash
2+
3+
# Copies all files and folders necessary for an app release into a separate
4+
# folder in ./releases/x.y.z (x.y.z given as first and only parameter) leaving
5+
# out development-only folders such as .git.
6+
7+
if [ -z "$1" ]
8+
then
9+
echo "First parameter must not be empty and must be the version of the release which is used as a folder name, e.g. '1.5.1'."
10+
else
11+
TARGET_DIRECTORY="./releases/${1}/user_backend_sql_raw"
12+
mkdir --parents $TARGET_DIRECTORY
13+
cp --archive appinfo img lib CHANGELOG.md LICENSE README.md $TARGET_DIRECTORY
14+
fi

0 commit comments

Comments
 (0)