2023-02-27 01:10:24 +01:00
|
|
|
# Simple makefile to create a tarball of the msman helper scripts
|
2023-02-27 02:20:54 +01:00
|
|
|
# Turn off verbose mode
|
|
|
|
MAKEFLAGS += -s
|
2023-02-27 01:10:24 +01:00
|
|
|
|
2023-02-27 01:05:14 +01:00
|
|
|
all:
|
2023-02-27 02:20:54 +01:00
|
|
|
CURRENT_SCRIPT_VERSION=`grep "CURRENT_SCRIPT_VERSION=" msman.sh | sed -e "s/CURRENT_SCRIPT_VERSION=//g"`; \
|
|
|
|
EXTRA_VERSION=`grep "EXTRA_SCRIPTS_VERSION=" .msman/version.sh | sed -e "s/EXTRA_SCRIPTS_VERSION=//g"`; \
|
|
|
|
if [ "$$CURRENT_SCRIPT_VERSION" != "$$EXTRA_VERSION" ]; then \
|
|
|
|
echo "ERROR: The version in msman.sh and .msman/version.sh are not the same!"; \
|
|
|
|
echo "ERROR: Please make sure they are the same."; \
|
|
|
|
exit 1; \
|
2023-02-27 01:10:24 +01:00
|
|
|
fi
|
2023-02-27 02:20:54 +01:00
|
|
|
rm -rf msman
|
|
|
|
mkdir msman
|
|
|
|
cp -r .msman msman
|
2023-02-27 03:07:54 +01:00
|
|
|
tar -czf msman-helper.tar.gz msman
|
2023-02-27 02:20:54 +01:00
|
|
|
rm -rf msman
|
2023-02-27 01:06:28 +01:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf msman
|
|
|
|
rm -f msman-hepler.tar.gz
|