mrrl

Minimal Reliable Reproducible Linux
git clone https://ccx.te2000.cz/git/mrrl
Log | Files | Refs | Submodules | README

generate-packages (772B)


      1 #!/bin/sh -xe
      2 cd "$(dirname "$0")/.."
      3 
      4 if test -n "$1"; then
      5 	pthbs_genpkgpy_submodule_source=$1
      6 	export pthbs_genpkgpy_submodule_source
      7 fi
      8 
      9 case "$pthbs_genpkgpy_submodule_source" in
     10 	(current);;
     11 	(cached)
     12 		git submodule update
     13 		;;
     14 	(*)
     15 		printf '%s\n' >&2 "fatal: ${0##*/}: \$pthbs_genpkgpy_submodule_source is not defined"
     16 		exit 100
     17 		;;
     18 esac
     19 
     20 ./pthbs/util/gen-filelist-sha256 files/ >.new.filelist.sha256
     21 if ! cmp -s filelist.sha256 .new.filelist.sha256; then
     22 	mv .new.filelist.sha256 filelist.sha256
     23 else
     24 	rm .new.filelist.sha256
     25 fi
     26 
     27 ./pthbs/util/gen_git_commitlist sources/ >.new.commitlist.sha1
     28 if ! cmp -s commitlist.sha1 .new.commitlist.sha1; then
     29 	mv .new.commitlist.sha1 commitlist.sha1
     30 else
     31 	rm .new.commitlist.sha1
     32 fi
     33 
     34 make py-genpkgall pthbs_skip_build=1