mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-23 06:30:38 +01:00
pkg.sh: Fix build errors in gaflib projects
Fix build errors in gaflib projects. This might kill some functionality, not sure. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
165c9b167a
commit
b9dc5ca4db
2 changed files with 19 additions and 5 deletions
|
|
@ -274,13 +274,26 @@ check_release_is_current()
|
||||||
|
|
||||||
check_update_version()
|
check_update_version()
|
||||||
{
|
{
|
||||||
|
local comment="Started version"
|
||||||
|
set -- `getopt 'c:' "$@"`
|
||||||
|
while [ "$1" != -- ] ; do
|
||||||
|
case "$1" in
|
||||||
|
-c)
|
||||||
|
comment="$2"
|
||||||
|
shift
|
||||||
|
esac
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
shift
|
||||||
|
|
||||||
(
|
(
|
||||||
cd $TOPDIR
|
cd $TOPDIR
|
||||||
local v=`read_map VERSION`
|
local v=`read_map VERSION`
|
||||||
local next=`check_next_version`
|
local next=`check_next_version`
|
||||||
|
[ "$next" ] || fatal "Failed to get next version."
|
||||||
if [ "$next" != "$v" ]; then
|
if [ "$next" != "$v" ]; then
|
||||||
echo "$next-dev" > VERSION
|
echo "$next-dev" > VERSION
|
||||||
scm_commit -m "Started version: $next" VERSION
|
scm_commit -m "$comment: $next" VERSION
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
return 1
|
return 1
|
||||||
|
|
@ -998,7 +1011,7 @@ need-release)
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
update-version)
|
update-version)
|
||||||
check_update_version || exit 0
|
eval check_update_version "@" || exit 0
|
||||||
;;
|
;;
|
||||||
version)
|
version)
|
||||||
eval cmd_version "$@"
|
eval cmd_version "$@"
|
||||||
|
|
@ -1009,7 +1022,7 @@ build)
|
||||||
cmd_build
|
cmd_build
|
||||||
;;
|
;;
|
||||||
release-reinstall)
|
release-reinstall)
|
||||||
check_update_version
|
check_update_version -c "Started version"
|
||||||
cmd_build
|
cmd_build
|
||||||
cmd_upload
|
cmd_upload
|
||||||
;;
|
;;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
shift # get rid of the '-c' supplied by make.
|
shift # get rid of the '-c' supplied by make.
|
||||||
echo running "$*" >>/tmp/make-cmds.log
|
log=/tmp/make-cmds.log
|
||||||
time /bin/bash -c "$*"
|
echo running "$*" >> $log
|
||||||
|
time /bin/bash -c "$*" 2>&1 | tee -a $log
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue