Skip to content

Commit 893ad4b

Browse files
committed
rename scripts to have .sh extensions
1 parent 07d312f commit 893ad4b

7 files changed

+46
-24
lines changed
File renamed without changes.

chap6-pt2 chap6-pt2.sh

+46-24
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,10 @@ cd ..
257257
rm -rf zlib-1.2.6
258258

259259

260+
#############
261+
# file 5.10 #
262+
#############
263+
260264
tar xf file-5.10.tar.gz
261265
cd file-5.10
262266
./configure --prefix=/usr
@@ -267,6 +271,10 @@ cd ..
267271
rm -rf file-5.10
268272

269273

274+
#################
275+
# binutils 2.22 #
276+
#################
277+
270278
tar xf binutils-2.22.tar.bz2
271279
cd binutils-2.22
272280
expect -c "spawn ls"
@@ -285,6 +293,10 @@ cd ..
285293
rm -rf binutils-build/ binutils-2.22
286294

287295

296+
#############
297+
# gmp 5.0.4 #
298+
#############
299+
288300
tar xf gmp-5.0.4.tar.xz
289301
cd gmp-5.0.4
290302
./configure --prefix=/usr --enable-cxx --enable-mpbsd
@@ -298,6 +310,10 @@ cd ..
298310
rm -rf gmp-5.0.4
299311

300312

313+
##############
314+
# mpfr 3.1.0 #
315+
##############
316+
301317
tar xf mpfr-3.1.0.tar.bz2
302318
cd mpfr-3.1.0
303319
patch -Np1 ../mpfr-3.1.0-fixes-1.patch
@@ -312,6 +328,10 @@ cd ..
312328
rm -rf mpfr-3.1.0
313329

314330

331+
###########
332+
# mpc 0.9 #
333+
###########
334+
315335
tar xf mpc-0.9.tar.gz
316336
cd mpc-0.9
317337
./configure --prefix=/usr
@@ -322,44 +342,32 @@ cd ..
322342
rm -rf mpc-0.9
323343

324344

345+
#############
346+
# gcc 4.6.2 #
347+
#############
348+
325349
tar xf gcc-4.6.2.tar.bz2
326350
cd gcc-4.6.2
327-
sed -i 's/install_to_$(INSTALL_DIR) //
328351
sed -i 's/install_to_$(INSTALL_DIR) //' libiberty/Makefile.in
329-
case `uname -m` in i?86) sed -i 's/^T_CFLAGS =$/& -fomit-frame-pointer/' gcc/Makefile.in ;; esac
352+
case `uname -m` in
353+
i?86) sed -i 's/^T_CFLAGS =$/& -fomit-frame-pointer/' gcc/Makefile.in ;;
354+
esac
330355
sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
331356
mkdir ../gcc-build
332357
cd ../gcc-build/
333-
../gcc-4.6.2/configure --prefix=/usr --libexecdir=/usr/lib --enable-shared --enable-threads=posix --eanble-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++ --disable-multilib --disable-bootstrap --with-system-zlib
334358
../gcc-4.6.2/configure --prefix=/usr --libexecdir=/usr/lib --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++ --disable-multilib --disable-bootstrap --with-system-zlib
335359
make
336360
ulimit -s 16384
337361
make -k check
338362
grep -A7 Summ
339363
../gcc-4.6.2/contrib/test_summary | grep -A7 Summ
340-
../gcc-4.6.2/contrib/test_summary | grep -A7 Summ
341364
make install
342365
ln -sv ../../usr/bin/cpp /lib
343-
ln -sv gcc /usr/bin/cc
344-
echo 'main(){}' > dummy.c
345-
cc dummy.c -v -Wl,--verbose &> dummy.log
346-
readelf -l a.out | grep ': /lib'
347-
rm -v a.out dummy.*
348-
cd ..
349-
echo 'main(){}' > dummy.c
350-
cc dummy.c -v -Wl,--verbose &> dummy.log
351-
readelf -l a.out | grep ': /lib'
352-
grep -o '/usr/lib.*/crt[lin].*succeeded' dummy.log
353-
find crt1.o
354-
ls /usr/lib64 | grep crt
355-
grep -o '/usr/lib.*/crt[lin].*succeeded' dummy.log
356-
echo 'main(){}' > dummy.c
357-
cc dummy.c -v -Wl,--verbose &> dummy.log
358-
grep -o '/usr/lib.*/crt[lin].*succeeded' dummy.log
359366
rm /lib/cpp
360367
ln -sv ../usr/bin/cpp /lib
368+
ln -sv gcc /usr/bin/cc
369+
echo 'main(){}' > dummy.c
361370
cc dummy.c -v -Wl,--verbose &> dummy.log
362-
grep -o '/usr/lib.*/crt[lin].*succeeded' dummy.log
363371
grep -o '/usr/lib.*/crt[1in].*succeeded' dummy.log
364372
grep -B4 '^ /usr/include' dummy.log
365373
grep 'SEARCH.*/usr/lib' dummy.log | sed 's|; |\n|g'
@@ -368,12 +376,14 @@ grep found dummy.log
368376
rm -v dummy.* a.out
369377
dirname $(gcc --print-libgcc-file-name)
370378
cd /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/
371-
ls
372-
ls ..
373-
ls
374379
cd /sources/
375380
rm -rf gcc-build gcc-4.6.2
376381

382+
383+
#############
384+
# sed 4.2.1 #
385+
#############
386+
377387
tar xf sed-4.2.1.tar.bz2
378388
cd sed-4.2.1
379389
./configure --prefix=/usr --bindir=/bin --htmldir=/usr/share/doc/sed-4.2.1
@@ -386,6 +396,10 @@ cd ..
386396
rm -rf sed-4.2.1
387397

388398

399+
##############
400+
# bzip 1.0.6 #
401+
##############
402+
389403
tar xf bzip2-1.0.6.tar.gz
390404
cd bzip2-1.0.6
391405
patch -Np1 -i ../bzip2-1.0.6-install_docs-1.patch
@@ -403,6 +417,10 @@ cd ..
403417
rm -rf bzip2-1.0.6
404418

405419

420+
###############
421+
# ncurses 5.9 #
422+
###############
423+
406424
tar xf ncurses-5.9.tar.gz
407425
cd ncurses-5.9
408426
./configure --prefix=/usr --with-shared --without-debug --enable-widec
@@ -427,6 +445,10 @@ cd ..
427445
rm -rf ncurses-5.9
428446

429447

448+
#####################
449+
# util-linux 2.20.1 #
450+
#####################
451+
430452
tar xf util-linux-2.20.1.tar.bz2
431453
cd util-linux-2.20.1
432454
sed -e 's@etc/adjtime@var/lib/hwclock/adjtime@g' -i $(grep -rl '/etc/adjtime' .)

chap6 chap6.sh

File renamed without changes.
File renamed without changes.
File renamed without changes.

pass1 pass1.sh

File renamed without changes.

pass2 pass2.sh

File renamed without changes.

0 commit comments

Comments
 (0)