Put the release process in the makefile, and including building the tarball contents to avoid another snafu.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4393 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
		
							
								
								
									
										32
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										32
									
								
								Makefile
									
									
									
									
									
								
							@@ -524,3 +524,35 @@ apklog:
 | 
				
			|||||||
clean:
 | 
					clean:
 | 
				
			||||||
	rm -rf $(BUILD_DIR)
 | 
						rm -rf $(BUILD_DIR)
 | 
				
			||||||
.PHONY: clean
 | 
					.PHONY: clean
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					dist: apk
 | 
				
			||||||
 | 
						@echo "[export] $$(svn info --show-item url)"
 | 
				
			||||||
 | 
						@rm -rf tildefriends-$(VERSION_NUMBER)
 | 
				
			||||||
 | 
						@svn export -q . tildefriends-$(VERSION_NUMBER)
 | 
				
			||||||
 | 
						@echo "tildefriends-$(VERSION_NUMBER): $(VERSION_NAME)" > tildefriends-$(VERSION_NUMBER)/VERSION
 | 
				
			||||||
 | 
						@echo "[tar] tildefriends-$(VERSION_NUMBER).tar.xz"
 | 
				
			||||||
 | 
						@tar \
 | 
				
			||||||
 | 
							--exclude=deps/libbacktrace/Isaac.Newton-Opticks.txt \
 | 
				
			||||||
 | 
							--exclude=deps/libsodium/builds/msvc/vs* \
 | 
				
			||||||
 | 
							--exclude=deps/libsodium/builds/msvc/build \
 | 
				
			||||||
 | 
							--exclude=deps/libsodium/builds/msvc/properties \
 | 
				
			||||||
 | 
							--exclude=deps/libsodium/configure \
 | 
				
			||||||
 | 
							--exclude=deps/libsodium/test \
 | 
				
			||||||
 | 
							--exclude=deps/libuv/docs \
 | 
				
			||||||
 | 
							--exclude=deps/libuv/test \
 | 
				
			||||||
 | 
							--exclude=deps/openssl \
 | 
				
			||||||
 | 
							--exclude=deps/speedscope/*.map \
 | 
				
			||||||
 | 
							--exclude=deps/sqlite/shell.c \
 | 
				
			||||||
 | 
							--exclude=deps/zlib/contrib/vstudio \
 | 
				
			||||||
 | 
							--exclude=deps/zlib/doc \
 | 
				
			||||||
 | 
							-caf tildefriends-$(VERSION_NUMBER).tar.xz tildefriends-$(VERSION_NUMBER)
 | 
				
			||||||
 | 
						@rm -rf tildefriends-$(VERSION_NUMBER)
 | 
				
			||||||
 | 
						@echo "[cp] TildeFriends-$(VERSION_NUMBER).apk"
 | 
				
			||||||
 | 
						@cp out/TildeFriends-release.apk TildeFriends-$(VERSION_NUMBER).apk
 | 
				
			||||||
 | 
					.PHONY: dist
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					dist-test: dist
 | 
				
			||||||
 | 
						@tar -xf tildefriends-$(VERSION_NUMBER).tar.xz
 | 
				
			||||||
 | 
						@$(MAKE) -C tildefriends-$(VERSION_NUMBER)/ debug release
 | 
				
			||||||
 | 
						@rm -rf tildefriends-$(VERSION_NUMBER)
 | 
				
			||||||
 | 
					.PHONY: dist-test
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										0
									
								
								tools/autotest.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										0
									
								
								tools/autotest.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							@@ -1,25 +0,0 @@
 | 
				
			|||||||
#!/bin/bash -e
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
VERSION_NUMBER=`sed -n -e 's/^VERSION_NUMBER := //p' Makefile`
 | 
					 | 
				
			||||||
VERSION_NAME=`sed -n -e 's/^VERSION_NAME := //p' Makefile`
 | 
					 | 
				
			||||||
rm -rfv tildefriends-$VERSION_NUMBER
 | 
					 | 
				
			||||||
svn export . tildefriends-$VERSION_NUMBER
 | 
					 | 
				
			||||||
echo "tildefriends-$VERSION_NUMBER: $VERSION_NAME" > tildefriends-$VERSION_NUMBER/VERSION
 | 
					 | 
				
			||||||
tar \
 | 
					 | 
				
			||||||
	--exclude=deps/libbacktrace/Isaac.Newton-Opticks.txt \
 | 
					 | 
				
			||||||
	--exclude=deps/libsodium/builds/msvc/vs* \
 | 
					 | 
				
			||||||
	--exclude=deps/libsodium/builds/msvc/build \
 | 
					 | 
				
			||||||
	--exclude=deps/libsodium/builds/msvc/properties \
 | 
					 | 
				
			||||||
	--exclude=deps/libsodium/configure \
 | 
					 | 
				
			||||||
	--exclude=deps/libsodium/test \
 | 
					 | 
				
			||||||
	--exclude=deps/libuv/docs \
 | 
					 | 
				
			||||||
	--exclude=deps/libuv/test \
 | 
					 | 
				
			||||||
	--exclude=deps/openssl \
 | 
					 | 
				
			||||||
	--exclude=deps/speedscope/*.map \
 | 
					 | 
				
			||||||
	--exclude=deps/sqlite/shell.c \
 | 
					 | 
				
			||||||
	--exclude=deps/zlib/contrib/vstudio \
 | 
					 | 
				
			||||||
	--exclude=deps/zlib/doc \
 | 
					 | 
				
			||||||
	-caf tildefriends-$VERSION_NUMBER.tar.xz tildefriends-$VERSION_NUMBER
 | 
					 | 
				
			||||||
rm -rfv tildefriends-$VERSION_NUMBER
 | 
					 | 
				
			||||||
make apk
 | 
					 | 
				
			||||||
cp out/TildeFriends-release.apk TildeFriends-$VERSION_NUMBER.apk
 | 
					 | 
				
			||||||
		Reference in New Issue
	
	Block a user