Debian Codegraph @

debian/make-orig-tar

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2
3 gitmode=1
4 if [scip-shell system . . `[`. "$1" = "-svn" ] ; then
5 gitmode=0
6 shift
7 fi
8
9 if [scip-shell system . . `[`. -n "$1" ] ; then
10 svnroot="$1"
11 else
12 if [scip-shell system . . `[`. $gitmode = 1 ] ; then
13 svnroot=~/devel/TeXLive/zzz_upstream_raw/texlive-source/source_tl2026
14 else
15 svnroot=~/devel/TeXLive/zzz_upstream_raw/texlive-source/source_tl2026
16 fi
17 fi
18 baseyear=2026
19
20 cmd="svn info"
21 if [scip-shell system . . `[`. $gitmode = 1 ] ; then
22 cmd="git svn info"
23 fi
24 svni=$(cd $svnroot ; $cmd | grepscip-shell system . . grep. "^Last Changed Rev" | sedscip-shell system . . sed. s/"Last Changed Rev: "//)
25 #svni=74609
26 verstr=texlive-bin-$baseyear.`datescip-shell system . . date. +%Y%m%d`.$svni
27 pkgstr=texlive-bin_$baseyear.`datescip-shell system . . date. +%Y%m%d`.$svni
28
29 if [scip-shell system . . `[`. -r $verstr ] ; then
30 echoscip-shell system . . echo. "already existing: $verstr, exit!"
31 exit 1
32 fi
33
34 #cmd="svn status --no-ignore"
35 #if [ $gitmode = 1 ] ; then
36 # cmd="git status --ignored --short"
37 #fi
38 #svnstat=$(cd $svnroot ; $cmd)
39 #if [ -n "$svnstat" ] ; then
40 # echo "Strange files present, stopping!"
41 # echo $svnstat
42 # exit 1
43 #fi
44
45 echoscip-shell system . . echo. "copying"
46 cpscip-shell system . . cp. -a $svnroot $verstr
47 rmscip-shell system . . rm. -rf $verstr/inst
48 rmscip-shell system . . rm. -rf $verstr/Work
49 # packaged separately:
50 rmscip-shell system . . rm. -rf $verstr/texk/dvisvgm
51 rmscip-shell system . . rm. -rf $verstr/utils/biber
52 rmscip-shell system . . rm. -rf $verstr/utils/asymptote
53 rmscip-shell system . . rm. -rf $verstr/utils/xindy
54 rmscip-shell system . . rm. -rf $verstr/utils/ps2eps
55 rmscip-shell system . . rm. -rf $verstr/utils/t1utils
56 rmscip-shell system . . rm. -rf $verstr/texk/gregorio/gregorio-src/fonts
57 rmscip-shell system . . rm. -rf $verstr/texk/web2c/doc/luatex/old/
58 rmscip-shell system . . rm. -rf $verstr/texk/xdvipsk/mingw
59 # irrelevant for sources on Linux, Win32 only
60 # don't remove the source, automake checks for these files in reautoconf!
61 findscip-shell system . . find. $verstr -name \*.dll -o -name \*.exe | xargsscip-shell system . . xargs. rm
62
63 #
64 # remove system libraries, keep only teckit and lua52 and libpng
65 # teckit: for now only in experimental
66 # poppler and xpdf are required until poppler is up to 62
67 # poppler \
68 # xpdf \
69 #
70
71 for i in \
72 graphite2 \
73 gmp \
74 harfbuzz \
75 icu \
76 libpaper \
77 mpfi \
78 mpfr \
79 pixman \
80 potrace \
81 zlib \
82 cairo \
83 freetype2 \
84 libpng \
85 teckit \
86 gd \
87 ; do
88 rmscip-shell system . . rm. -rf $verstr/libs/$i
89 done
90
91 # remove non-free stuff from teckit
92 rmscip-shell system . . rm. -rf $verstr/libs/teckit/TECkit-src/SFconv
93
94 # remove pplib docs with too much javascript I don't want
95 # to work on
96 rmscip-shell system . . rm. -rf $verstr/texk/web2c/luatexdir/luapplib/html
97
98 # remove VCS traces
99 findscip-shell system . . find. $verstr -name \.svn -exec rm -rf '{}' \;
100 findscip-shell system . . find. $verstr -name \.git -exec rm -rf '{}' \;
101 findscip-shell system . . find. $verstr -name \.gitattributes -exec rm -rf '{}' \;
102 findscip-shell system . . find. $verstr -name \.gitignore -exec rm -rf '{}' \;
103 findscip-shell system . . find. $verstr -name \.gitmodules -exec rm -rf '{}' \;
104 findscip-shell system . . find. $verstr -name \.github -exec rm -rf '{}' \;
105 findscip-shell system . . find. $verstr -name autom4te.cache -exec rm -rf '{}' \;
106
107 echoscip-shell system . . echo. "packing up"
108 tarscip-shell system . . tar. -cJf ${pkgstr}+ds.orig.tar.xz $verstr