Edit

kc3-lang/kc3/libc3/update_sources

Branch :

  • libc3/update_sources
  • #!/bin/sh
    ## c3
    ## Copyright 2022,2023 kmx.io <contact@kmx.io>
    ##
    ## Permission is hereby granted to use this software granted the above
    ## copyright notice and this permission paragraph are included in all
    ## copies and substantial portions of this software.
    ##
    ## THIS SOFTWARE IS PROVIDED "AS-IS" WITHOUT ANY GUARANTEE OF
    ## PURPOSE AND PERFORMANCE. IN NO EVENT WHATSOEVER SHALL THE
    ## AUTHOR BE CONSIDERED LIABLE FOR THE USE AND PERFORMANCE OF
    ## THIS SOFTWARE.
    
    . ../config.subr
    
    echo "# sources.mk generated by update_sources" > ${SOURCES_MK}
    echo "# sources.sh generated by update_sources" > ${SOURCES_SH}
    
    HEADERS="$(ls *.h)"
    sources HEADERS "$HEADERS"
    
    SOURCES="$(ls *.c)"
    sources SOURCES "$SOURCES"
    
    LO_SOURCES="$SOURCES
    ../libtommath/bn_cutoffs.c
    ../libtommath/bn_mp_2expt.c
    ../libtommath/bn_mp_abs.c
    ../libtommath/bn_mp_add.c
    ../libtommath/bn_mp_add_d.c
    ../libtommath/bn_mp_and.c
    ../libtommath/bn_mp_clamp.c
    ../libtommath/bn_mp_clear.c
    ../libtommath/bn_mp_clear_multi.c
    ../libtommath/bn_mp_cmp.c
    ../libtommath/bn_mp_cmp_d.c
    ../libtommath/bn_mp_cmp_mag.c
    ../libtommath/bn_mp_cnt_lsb.c
    ../libtommath/bn_mp_complement.c
    ../libtommath/bn_mp_copy.c
    ../libtommath/bn_mp_count_bits.c
    ../libtommath/bn_mp_div.c
    ../libtommath/bn_mp_div_2.c
    ../libtommath/bn_mp_div_2d.c
    ../libtommath/bn_mp_div_3.c
    ../libtommath/bn_mp_div_d.c
    ../libtommath/bn_mp_dr_is_modulus.c
    ../libtommath/bn_mp_dr_reduce.c
    ../libtommath/bn_mp_dr_setup.c
    ../libtommath/bn_mp_error_to_string.c
    ../libtommath/bn_mp_exch.c
    ../libtommath/bn_mp_exptmod.c
    ../libtommath/bn_mp_gcd.c
    ../libtommath/bn_mp_get_i32.c
    ../libtommath/bn_mp_get_i64.c
    ../libtommath/bn_mp_get_mag_u32.c
    ../libtommath/bn_mp_get_mag_u64.c
    ../libtommath/bn_mp_grow.c
    ../libtommath/bn_mp_init.c
    ../libtommath/bn_mp_init_copy.c
    ../libtommath/bn_mp_init_multi.c
    ../libtommath/bn_mp_init_size.c
    ../libtommath/bn_mp_invmod.c
    ../libtommath/bn_mp_lcm.c
    ../libtommath/bn_mp_lshd.c
    ../libtommath/bn_mp_mod.c
    ../libtommath/bn_mp_mod_2d.c
    ../libtommath/bn_mp_montgomery_calc_normalization.c
    ../libtommath/bn_mp_montgomery_reduce.c
    ../libtommath/bn_mp_montgomery_setup.c
    ../libtommath/bn_mp_mul.c
    ../libtommath/bn_mp_mul_2.c
    ../libtommath/bn_mp_mul_2d.c
    ../libtommath/bn_mp_mul_d.c
    ../libtommath/bn_mp_mulmod.c
    ../libtommath/bn_mp_neg.c
    ../libtommath/bn_mp_or.c
    ../libtommath/bn_mp_radix_size.c
    ../libtommath/bn_mp_reduce.c
    ../libtommath/bn_mp_reduce_2k.c
    ../libtommath/bn_mp_reduce_2k_l.c
    ../libtommath/bn_mp_reduce_2k_setup.c
    ../libtommath/bn_mp_reduce_2k_setup_l.c
    ../libtommath/bn_mp_reduce_is_2k.c
    ../libtommath/bn_mp_reduce_is_2k_l.c
    ../libtommath/bn_mp_reduce_setup.c
    ../libtommath/bn_mp_rshd.c
    ../libtommath/bn_mp_set.c
    ../libtommath/bn_mp_sqr.c
    ../libtommath/bn_mp_sqrt.c
    ../libtommath/bn_mp_sub.c
    ../libtommath/bn_mp_sub_d.c
    ../libtommath/bn_mp_xor.c
    ../libtommath/bn_mp_zero.c
    ../libtommath/bn_s_mp_add.c
    ../libtommath/bn_s_mp_balance_mul.c
    ../libtommath/bn_s_mp_exptmod.c
    ../libtommath/bn_s_mp_exptmod_fast.c
    ../libtommath/bn_s_mp_invmod_fast.c
    ../libtommath/bn_s_mp_invmod_slow.c
    ../libtommath/bn_s_mp_karatsuba_mul.c
    ../libtommath/bn_s_mp_karatsuba_sqr.c
    ../libtommath/bn_s_mp_montgomery_reduce_fast.c
    ../libtommath/bn_s_mp_mul_digs.c
    ../libtommath/bn_s_mp_mul_digs_fast.c
    ../libtommath/bn_s_mp_mul_high_digs.c
    ../libtommath/bn_s_mp_mul_high_digs_fast.c
    ../libtommath/bn_s_mp_rand_platform.c
    ../libtommath/bn_s_mp_sqr.c
    ../libtommath/bn_s_mp_sqr_fast.c
    ../libtommath/bn_s_mp_sub.c
    ../libtommath/bn_s_mp_toom_mul.c
    ../libtommath/bn_s_mp_toom_sqr.c"
    sources LO_SOURCES "$LO_SOURCES"
    
    update_sources_mk
    update_sources_sh