Skip to content

Commit

Permalink
ci: use case instead
Browse files Browse the repository at this point in the history
  • Loading branch information
stevana committed Nov 4, 2024
1 parent 0b34996 commit d673563
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,16 @@ release:
ls -R $(SPEX_BIN)
for dir in $$(ls $(SPEX_BIN)); do \
for bin in $$(ls $(SPEX_BIN)/$$dir); do \
if [ $${bin: -4} == ".exe" ]; then \
case $$bin in \
*".exe") \
mv $(SPEX_BIN)/$$dir/$$bin \
$(SPEX_BIN)/$$(basename $$bin .exe)-$(NEW_VERSION)-$$(basename $$dir).exe; \
chmod 755 $(SPEX_BIN)/$$(basename $$bin .exe)-$(NEW_VERSION)-$$(basename $$dir).exe; \
else \
chmod 755 $(SPEX_BIN)/$$(basename $$bin .exe)-$(NEW_VERSION)-$$(basename $$dir).exe ;; \
*) \
mv $(SPEX_BIN)/$$dir/$$bin \
$(SPEX_BIN)/$$(basename $$bin)-$(NEW_VERSION)-$$(basename $$dir); \
chmod 755 $(SPEX_BIN)/$$(basename $$bin)-$(NEW_VERSION)-$$(basename $$dir); \
fi \
chmod 755 $(SPEX_BIN)/$$(basename $$bin)-$(NEW_VERSION)-$$(basename $$dir);; \
esac \
done \
done
upx -q $(SPEX_BIN)/spex*
Expand Down

0 comments on commit d673563

Please sign in to comment.