Refine version + publish.
This commit is contained in:
4
Makefile
4
Makefile
@ -12,7 +12,7 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
VERSION=7.0.7.16
|
VERSION=7.0.7.17
|
||||||
STABLE_VERSION=7.0.6.19
|
STABLE_VERSION=7.0.6.19
|
||||||
OLD_STABLE_VERSION=7.0.5.4
|
OLD_STABLE_VERSION=7.0.5.4
|
||||||
REVISION=$(shell git rev-parse HEAD | head -c 20)
|
REVISION=$(shell git rev-parse HEAD | head -c 20)
|
||||||
@ -794,7 +794,7 @@ publish-windows: $(WINDOWS)/uEf32.exe $(WINDOWS)/uEf64.exe
|
|||||||
$(ARCHIVE)/uEf64-$(VERSION).exe
|
$(ARCHIVE)/uEf64-$(VERSION).exe
|
||||||
|
|
||||||
publish-index: | $(GEN)
|
publish-index: | $(GEN)
|
||||||
$(GSUTIL) ls -l gs://eforth/releases | tools/webindex.py >$(GEN)/archive.html
|
./tools/webindex.py >$(GEN)/archive.html
|
||||||
$(GSUTIL_CP) \
|
$(GSUTIL_CP) \
|
||||||
$(GEN)/archive.html \
|
$(GEN)/archive.html \
|
||||||
gs://eforth/releases/archive.html
|
gs://eforth/releases/archive.html
|
||||||
|
|||||||
11
site/BUILD
11
site/BUILD
@ -61,7 +61,7 @@ Alias('deploy', ' '.join([
|
|||||||
'cd $dst/deploy && gcloud app deploy -q --project eforth *.yaml', pool='console'),
|
'cd $dst/deploy && gcloud app deploy -q --project eforth *.yaml', pool='console'),
|
||||||
]))
|
]))
|
||||||
|
|
||||||
Alias('publish', ' '.join([
|
PUBLISH_PARTS = [
|
||||||
Alias('publish-esp32', ' '.join([
|
Alias('publish-esp32', ' '.join([
|
||||||
Publish('publish-esp32-rev',
|
Publish('publish-esp32-rev',
|
||||||
'$dst/esp32/ESP32forth.zip',
|
'$dst/esp32/ESP32forth.zip',
|
||||||
@ -112,4 +112,13 @@ Alias('publish', ' '.join([
|
|||||||
'uEf64-{{VERSION}}.exe'),
|
'uEf64-{{VERSION}}.exe'),
|
||||||
])),
|
])),
|
||||||
])),
|
])),
|
||||||
|
]
|
||||||
|
|
||||||
|
Alias('publish', ' '.join([
|
||||||
|
Command('publish-index', ' '.join([
|
||||||
|
'$src/tools/webindex.py',
|
||||||
|
'$src/tools/publish.py',
|
||||||
|
] + PUBLISH_PARTS),
|
||||||
|
'$src/tools/webindex.py >$dst/gen/archive.html && ' +
|
||||||
|
'$src/tools/publish.py --src $dst/gen/archive.html --dst archive.html'),
|
||||||
]))
|
]))
|
||||||
|
|||||||
@ -14,6 +14,9 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
import subprocess
|
||||||
|
|
||||||
|
index = str(subprocess.check_output('gsutil ls -l gs://eforth/releases', shell=True), 'ascii')
|
||||||
|
|
||||||
sys.stdout.write("""<!DOCTYPE html>
|
sys.stdout.write("""<!DOCTYPE html>
|
||||||
<head>
|
<head>
|
||||||
@ -24,7 +27,7 @@ sys.stdout.write("""<!DOCTYPE html>
|
|||||||
""")
|
""")
|
||||||
|
|
||||||
output = []
|
output = []
|
||||||
for line in sys.stdin.read().splitlines():
|
for line in index.splitlines():
|
||||||
parts = line.split()
|
parts = line.split()
|
||||||
if len(parts) != 3:
|
if len(parts) != 3:
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user