Skip to content

Commit

Permalink
Make create-package not a single long line of shell
Browse files Browse the repository at this point in the history
  • Loading branch information
jordansissel committed Aug 4, 2021
1 parent b89ec98 commit f235a90
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -206,14 +206,13 @@ VERSION:
sh version.sh --shell > $@

.PHONY: create-package
create-package: NAME=xdotool-$(VERSION)
create-package: xdo_version.h libxdo.pc
@NAME=xdotool-$(VERSION); \
echo "Creating package: $$NAME"; \
mkdir $${NAME}; \
rsync --exclude '.*' -a `ls -d *.pod COPYRIGHT *.c *.h *.pc examples t CHANGELIST README.md Makefile* version.sh platform.sh cflags.sh VERSION Doxyfile 2> /dev/null` $${NAME}/; \
tar -zcf $${NAME}.tar.gz $${NAME}/; \
rm -r $${NAME}
rm VERSION
echo "Creating package: $(NAME)"
mkdir "$(NAME)"
rsync --exclude '.*' -a `ls -d *.pod COPYRIGHT *.c *.h *.pc examples t CHANGELIST README.md Makefile* version.sh platform.sh cflags.sh VERSION Doxyfile 2> /dev/null` "$(NAME)/"
tar -zcf "$(NAME).tar.gz" "$(NAME)"
rm -r "$(NAME)"

# Make sure the package we're building compiles.
.PHONY: test-package-build
Expand Down

0 comments on commit f235a90

Please sign in to comment.