• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/support/scripts/genimage.sh
Francois PerradFrancois Perrad committed 9cbe364f57805 Jun 2017
Raw file
Source viewDiff to previous
 
1
#!/usr/bin/env bash
2
​
3
die() {
4
  echo "Error: $@" >&2
5
  exit 1
6
}
7
​
8
# Parse arguments and put into argument list of the script
9
opts="$(getopt -n "${0##*/}" -o c: -- "$@")" || exit $?
10
eval set -- "$opts"
11
​
12
GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp"
13
​
14
while true ; do
15
    case "$1" in
16
    -c)
17
      GENIMAGE_CFG="${2}";
18
      shift 2 ;;
19
    --) # Discard all non-option parameters
20
      shift 1;
21
      break ;;
22
    *)
23
      die "unknown option '${1}'" ;;
24
    esac
25
done
26
​
27
[ -n "${GENIMAGE_CFG}" ] || die "Missing argument"
28
​
29
rm -rf "${GENIMAGE_TMP}"
30
​
31
genimage \
32
    --rootpath "${TARGET_DIR}"     \
33
    --tmppath "${GENIMAGE_TMP}"    \
34
    --inputpath "${BINARIES_DIR}"  \
35
    --outputpath "${BINARIES_DIR}" \
36
    --config "${GENIMAGE_CFG}"
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.