Skip to content

Commit

Permalink
replace massive script-foo with date format definition
Browse files Browse the repository at this point in the history
  • Loading branch information
doubleO8 committed Nov 4, 2017
1 parent c9daf10 commit 669e82f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion create_ipk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ B=${D}/ipkg.build.$$

pushd ${D} &> /dev/null
VER=$(head -n 1 CHANGES.md | grep -i '## Version' | sed 's/^## Version \([[:digit:]]\+\.[[:digit:]]\+\.[[:digit:]]\+\)/\1/')
GITVER=e2openpluginsgit$(git log -1 --format="%ci" | awk -F" " '{ print $1 }' | tr -d "-")
# '%cd': committer date (format respects --date= option); '%t': abbreviated tree hash
GITVER=e2openpluginsgit$(git log -1 --format="%cd" --date="format:%Y%m%d")
PKG=${D}/enigma2-plugin-extensions-openwebif_${VER}-${GITVER}_all.ipk
popd &> /dev/null

Expand Down
3 changes: 2 additions & 1 deletion create_sh4.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ B=${D}/ipkg.build.$$

pushd ${D} &> /dev/null
VER=$(head -n 1 CHANGES.md | grep -i '## Version' | sed 's/^## Version \([[:digit:]]\+\.[[:digit:]]\+\.[[:digit:]]\+\)/\1/')
GITVER=e2openpluginsgit$(git log -1 --format="%ci" | awk -F" " '{ print $1 }' | tr -d "-")
# '%cd': committer date (format respects --date= option); '%t': abbreviated tree hash
GITVER=e2openpluginsgit$(git log -1 --format="%cd" --date="format:%Y%m%d")
PKG=${D}/enigma2-plugin-extensions-openwebif_${VER}-${GITVER}_sh4.ipk
popd &> /dev/null

Expand Down

0 comments on commit 669e82f

Please sign in to comment.