Przeglądaj źródła

Removes the script that bumps versions, this is now done when packaging.

master
Boris Grozev 9 lat temu
rodzic
commit
6c2c4d4aca
2 zmienionych plików z 1 dodań i 35 usunięć
  1. 1
    1
      Makefile
  2. 0
    34
      bump-js-versions.sh

+ 1
- 1
Makefile Wyświetl plik

@@ -17,12 +17,12 @@ clean:
17 17
 deploy:
18 18
 	mkdir -p $(DEPLOY_DIR) && \
19 19
 	cp $(OUTPUT_DIR)/app.bundle.min.js $(OUTPUT_DIR)/app.bundle.min.map $(DEPLOY_DIR) && \
20
-	./bump-js-versions.sh && \
21 20
 	([ ! -x deploy-local.sh ] || ./deploy-local.sh)
22 21
 
23 22
 uglify:
24 23
 	$(UGLIFYJS) -p relative $(OUTPUT_DIR)/app.bundle.js -o $(OUTPUT_DIR)/app.bundle.min.js --source-map $(OUTPUT_DIR)/app.bundle.min.map --in-source-map $(OUTPUT_DIR)/app.bundle.js.map
25 24
 
25
+
26 26
 source-package:
27 27
 	mkdir -p source_package/jitsi-meet && \
28 28
 	cp -r analytics.js css external_api.js favicon.ico fonts images index.html interface_config.js libs plugin.*html sounds title.html unsupported_browser.html LICENSE config.js lang source_package/jitsi-meet && \

+ 0
- 34
bump-js-versions.sh Wyświetl plik

@@ -1,34 +0,0 @@
1
-#!/bin/sh
2
-
3
-if ! which git > /dev/null 2>&1 ;then
4
-    echo "Cannot find git executable, not bumping js versions."
5
-    exit
6
-fi
7
-if ! git status > /dev/null 2>&1 ;then
8
-    echo "Not a git repository, not bumping js versions."
9
-    exit
10
-fi
11
-
12
-# This script finds all js files included from index.html which have been
13
-# modified and bumps their version (the value of the "v" parameter used
14
-# in index.html)
15
-
16
-# contents of index.html at HEAD (excluding not-committed changes)
17
-index=`git show HEAD:index.html`
18
-
19
-# js files included from index.html. The sort needed for comm
20
-jsfiles=.bump-js-versions-jsfiles.tmp
21
-echo "$index" | grep '<script src=".*"' -o | sed -e 's/<script src="//' | sed -e 's/\?.*//' |  tr -d \" | sort > $jsfiles
22
-
23
-# modified files since the last commit
24
-gitmodified=.bump-js-versions-gitmodified.tmp
25
-git ls-files -m | sort > $gitmodified
26
-
27
-for file in `comm -12 $jsfiles $gitmodified` ;do
28
-    old_version=`echo "$index" | grep "<script src=\"${file}?v=[0-9]*" -o | sed -e 's/.*v=//'| tr -d \"`
29
-    new_version=$((1+$old_version))
30
-    echo Bumping version of $file from $old_version to $new_version
31
-    sed -i.tmp -e "s%script src=\"${file}\?v=.*\"%script src=\"$file?v=$new_version\"%" index.html
32
-done
33
-
34
-rm -f $jsfiles $gitmodified index.html.tmp

Ładowanie…
Anuluj
Zapisz