Unverified Commit 06a6665c authored by boklm's avatar boklm
Browse files

project/release: add option to select output directory

Add target to remove the subdirectory including the version number (or
date) from the output directory. The output directory can be selected
with the --output-dir option.
parent 941d866f
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@ output_dir: 'release/unsigned'

var:
  today: '[% USE date; date.format(format = "%Y-%m-%d") %]'
  publish_dir: '[% c("version") %]'

targets:
  torbrowser-all:
@@ -28,6 +29,10 @@ targets:
    - release
    - torbrowser-all

  noversiondir:
    var:
      publish_dir: ''

  release:
    var:
      build_target: release
@@ -96,7 +101,7 @@ build: |
  #!/bin/sh
  set -e
  export LC_ALL=C
  destdir="[% dest_dir _ '/' _ c("version") %]"
  destdir="[% dest_dir _ '/' _ c("var/publish_dir") %]"
  mkdir -p "$destdir"
  [% IF c("var/torbrowser-windows-i686") -%]
    mv [% c('input_files_by_name/windows-i686') %]/* "$destdir"/