TODO for new-infra ================== PRE SWITCH (which we already have done ...) ------------------------------------------- - list files we should somehow check for equivalence of the two sets of files a simple grep -v emptylines | sort |uniq ... diff should do it POST SWITCH ----------- - update.pl: implement more of the 'updater' - Shell librarys . test the tlp_ and the tldb_tlp_ functions . missing functionality? . rewrite the long read/case with awk/grep/whatever there is - rewrite install-* scripts to use the shell library (or rewrite it in perl?) install scripts =============== collection of usage of list files etc in the install scripts - get list of schemes by ls *.scheme - get title/size from the schemes - list all lang collections by ls collection-lang* - list all other collections by ls collection-* | grep -v collection-lang $ grep LISTS * common.sh: for i in `grep "^-collection-" $LISTS/$S.scheme | sed -e 's/^-//' -e 's/-/_/g'` tlp_get_depends $S.tlp | grep collection- | ... common.sh: selected_packages=`grep "^[+\-]" $LISTS/$S.scheme | grep -v collection- | sed -e 's/^.//' -e 's/-/_/'` tlp_get_depends $S.tlp | grep -v collection- | ... common.sh: selected_collections=`grep "^-collection-" $LISTS/$S.scheme | sed -e 's/^-collection-//'` tlp_get_depends $S.tlp | grep "^collection-" ... common.sh: morecols=`grep -- "^-" $LISTS/$col | sed 's/.//'` tlp_get_depends $col.tlp | grep ... common.sh: packages=`grep "^+" $LISTS/$col | sed 's/.//'` tlp_get_depends $col.tlp | grep Package/ common.sh: eval sort < $LISTS/$col | grep '^\!' | tr ' ' '=' >> $work_dir/$col.jobs tlp_get_executes | tr ... common.sh: eval sort < $LISTS/$pack | grep '^\!' | tr ' ' '=' >> $work_dir/$col.jobs tlp_get_executes | tr ... common.sh: more=`grep "^+" $LISTS/$pack | sed 's/.//'` tlp_get_depends ... install-compr.sh: LISTS=$CDDIR/texmf/lists install-compr.sh: all_schemes=`(cd $LISTS && ls *.scheme | sed 's/\.scheme//' | sed 's/-/_/' | sort )` install-compr.sh: T=`grep '^\*Title' $LISTS/$S.scheme | sed -e 's/\*Title: //'` tldb_tlp_get_title $tldb $S install-compr.sh: C=`grep '^\*Size' $LISTS/$S.scheme | sed -e 's/\*Size: //'` tldb_tlp_get_size $tldb $S needs hacking, since sizes are currently not computed for the whole package, but for the single types of files install-compr.sh: all_lang_collections=`(cd $LISTS && ls collection-lang* | sed 's/-/_/g' | sort )` install-compr.sh: T=`grep '^\*Title' $LISTS/$S | sed -e 's/\*Title: //'` install-compr.sh: C=`grep '^\*Size' $LISTS/$S | sed -e 's/\*Size: //'` install-compr.sh: all_collections=`(cd $LISTS; ls collection-* | grep -v collection-lang | sed 's/-/_/g' | sort )` install-compr.sh: T=`grep '^\*Title' $LISTS/$S | sed -e 's/\*Title: //'` install-compr.sh: C=`grep '^\*Size' $LISTS/$S | sed -e 's/\*Size: //'` install-live.sh: LISTS=${OVERRIDE_LISTS-$CDDIR/texmf/lists} install-live.sh: BIN=${OVERRIDE_LISTS-$CDDIR/bin} install-live.sh: test -d $LISTS || fatal "$0: $LISTS: no such directory. Are you sure this is the TeX Live CD?" install-live.sh: systems=`(cd $LISTS; ls bin-tex.* | sed -e 's/bin-tex.//')` install-live.sh: all_schemes=`(cd $LISTS; ls *.scheme | sed -e 's/-/_/g' -e 's/\.scheme//' | sort )` install-live.sh: T=`grep '^\*Title' $LISTS/$S.scheme | sed -e 's/\*Title: //'` install-live.sh: C=`grep '^\*Size' $LISTS/$S.scheme | sed -e 's/\*Size: //'` install-live.sh: all_lang_collections=`(cd $LISTS; ls collection-lang* | sed 's/-/_/g' | sort )` install-live.sh: T=`grep '^\*Title' $LISTS/$S | sed -e 's/\*Title: //'` install-live.sh: C=`grep '^\*Size' $LISTS/$S | sed -e 's/\*Size: //'` install-live.sh: all_collections=`(cd $LISTS; ls collection* | grep -v collection-lang | sed 's/-/_/g' | sort )` install-live.sh: T=`grep '^\*Title' $LISTS/$S | sed -e 's/\*Title: //'` install-live.sh: C=`grep '^\*Size' $LISTS/$S | sed -e 's/\*Size: //'` install-live.sh: grep "^[A-Za-z0-9]" $LISTS/$I.$arg >> $work_dir/$arg.list install-live.sh: grep "^[A-Za-z0-9]" $LISTS/$I.$arg >> $work_dir/$arg.list install-live.sh: if test -f $LISTS/$col; then install-live.sh: packages=`grep "^+" $LISTS/$col | sed 's/.//'` install-live.sh: morecols=`grep "^-" $LISTS/$col | sed 's/.//'` install-live.sh: grep "^[a-z]" $LISTS/$col >> $work_dir/tmp install-live.sh: grep '^\!' $LISTS/$col >> $work_dir/tmp.jobs install-live.sh: if test -f $LISTS/$col.$this; then install-live.sh: grep "^[\!a-z]" $LISTS/$col.$this >> $work_dir/tmp install-live.sh: test -s $LISTS/$pack || return install-live.sh: grep "^[A-Za-z0-9]" $LISTS/$pack >> $work_dir/ptmp install-live.sh: grep '^\!' $LISTS/$pack >> $work_dir/ptmp.jobs install-live.sh: if test -f $LISTS/$pack.$this; then install-live.sh: grep "^[A-Za-z0-9]" $LISTS/$pack.$this >> $work_dir/ptmp install-live.sh: for i in `grep "^+" $LISTS/$pack | sed 's/.//'` install-pkg-compr.sh: morecols=`grep "^-" $LISTS/$name | sed 's/.//'` install-pkg-compr.sh: packages=`grep "^+" $LISTS/$name | sed 's/.//'` install-pkg-compr.sh: grep "^[a-z]" $LISTS/$name >> tmp install-pkg-compr.sh: if test -f $LISTS/$binlist; then install-pkg-compr.sh: grep "^[a-z]" $LISTS/$binlist >> tmp install-pkg-compr.sh:LISTS=${listdir-${OVERRIDE_LISTS-$CDDIR/texmf/lists}} install-pkg-compr.sh: colfile=$LISTS/collection-$col install-pkg-compr.sh: pkgfile=$LISTS/$pkg install-pkg-live.sh: list_files $LISTS/$i install-pkg-live.sh: if test -f $LISTS/$binlist; then install-pkg-live.sh: grep "^[a-z]" $LISTS/$binlist >> tmp install-pkg-live.sh:LISTS=${listdir-${OVERRIDE_LISTS-$CDDIR/texmf/lists}} install-pkg-live.sh:test -d $LISTS || fatal "$0: $LISTS: no such directory. Are you sure this is the TeX Live CD?" install-pkg-live.sh: colfile=$LISTS/collection-$col install-pkg-live.sh: list_files $LISTS/collection-$col install-pkg-live.sh: pkgfile=$LISTS/$pkg install-pkg-live.sh: list_files $LISTS/$pkg