Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
b8350bcd
Kaydet (Commit)
b8350bcd
authored
Eyl 08, 2004
tarafından
Jens-Heiner Rechtien
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
INTEGRATION: CWS customizer (1.1.2); FILE ADDED
2004/08/31 15:41:47 is 1.1.2.1: #i33634# userland scripts
üst
5f7fbe3d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
0 deletions
+44
-0
install_create.pl
setup_native/scripts/install_create.pl
+44
-0
No files found.
setup_native/scripts/install_create.pl
0 → 100755
Dosyayı görüntüle @
b8350bcd
:
# -*- perl -*-
eval
'exec perl -wS $0 ${1+"$@"}'
if
0
;
# create setup self extracting script
if
(
$#ARGV
<
2
)
{
print
<<ENDHELP;
USAGE: $0 <inputshellscript> <libraryfile> <outputshellscript>
<inputshellscript>: the start shell script, located next to this perl script
<libraryfile>: the library file, that is included into the shell script
<outfile>: the target shellscript
ENDHELP
exit
;
}
$infile
=
$ARGV
[
0
];
$library
=
$ARGV
[
1
];
$outfile
=
$ARGV
[
2
];
$infile
=~
tr
/[A-Z]/
[
a
-
z
]
/
;
# read script header
open
(
SCRIPT
,
"<$infile"
)
||
die
"cannot open $infile"
;
open
(
OUTFILE
,
">$outfile$$.tmp"
)
||
die
"cannot open $outfile"
;
@scriptlines
=
<
SCRIPT
>
;
$linenum
=
$#scriptlines
+
2
;
foreach
(
@scriptlines
)
{
# lineend conversion (be on the safe side)
chomp
;
$_
=~
tr
/\r/
/
;
s/^\s*linenum=.*$/linenum=$linenum/
;
print
OUTFILE
"$_\n"
;
}
close
(
SCRIPT
);
close
(
OUTFILE
);
system
(
"cat $library >>$outfile$$.tmp"
);
rename
"$outfile$$.tmp"
,
"$outfile"
;
chmod
0775
,
$outfile
;
exit
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment