Skip to content

Commit e008c71

Browse files
committed
v0.3
1 parent eea8c5a commit e008c71

12 files changed

Lines changed: 414 additions & 126 deletions

File tree

Makefile

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
2+
prefix = /usr
3+
4+
bindir = ${prefix}/bin
5+
mandir = ${prefix}/share/man
6+
localedir = ${prefix}/share/locale
7+
8+
INSTALL = /usr/bin/install -c
9+
UNINSTALL = rm -f
10+
11+
PO_FILES = i18n/tr.po
12+
13+
.PHONY: i18n
14+
i18n: $(PO_FILES:po=mo)
15+
16+
%.mo: %.po
17+
msgfmt $< -o $@
18+
19+
install:
20+
$(INSTALL) -m 755 src/bootableusb \
21+
"$(DESTDIR)$(bindir)/bootableusb"
22+
$(INSTALL) -m 644 man/bootableusb.1.en \
23+
"$(DESTDIR)$(mandir)/man1/bootableusb.1"
24+
$(INSTALL) -m 644 man/bootableusb.1.tr \
25+
"$(DESTDIR)$(mandir)/tr/man1/bootableusb.1"
26+
$(INSTALL) -m 644 i18n/tr.mo \
27+
"$(DESTDIR)$(localedir)/tr/LC_MESSAGES/bootableusb.mo"
28+
29+
uninstall:
30+
-$(UNINSTALL) "$(DESTDIR)$(bindir)/bootableusb"
31+
-$(UNINSTALL) "$(DESTDIR)$(mandir)/man1/bootableusb.1"
32+
-$(UNINSTALL) "$(DESTDIR)$(mandir)/man1/bootableusb.1.gz"
33+
-$(UNINSTALL) "$(DESTDIR)$(mandir)/tr/man1/bootableusb.1"
34+
-$(UNINSTALL) "$(DESTDIR)$(mandir)/tr/man1/bootableusb.1.gz"
35+
-$(UNINSTALL) "$(DESTDIR)$(localedir)/tr/LC_MESSAGES/bootableusb.mo"
36+
37+
clean:
38+
-$(UNINSTALL) i18n/*.mo

README.md

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,25 @@ Bu yazılım aşağıdaki işlevleri yerine getirmek için hazırlanmıştır.
99
- Usb bellek üzerinde bulunan iso kalıbından Linux dağıtımlarının başlatılması
1010
- Diskte daha önce kurulmuş işletim sistemlerinin başlatılması
1111

12+
## Yükleme
13+
**Ubuntu**
14+
```
15+
sudo add-apt-repository ppa:bugra9/ppa
16+
sudo apt update
17+
sudo apt install bootableusb
18+
```
19+
20+
**Diğer dağıtımlar için**
21+
```
22+
make
23+
sudo make install
24+
```
25+
komutlarıyla yüklenir. Silmek isterseniz
26+
```
27+
sudo make uninstall
28+
```
29+
komutuyla silebilirsiniz.
30+
1231
## Çalışma Şekli
1332
Bu yazılım diğer yazılımlardan farklı olarak hem kurulum hem de veri depolanması şeklinde kullanım için hazırlanmıştır. Yazılım kullanılarak bir defalığına usb bellek hazırlanır.
1433
**Dikkat:** Aygıt içerisinde bulunan tüm veriler silinecektir.
@@ -85,10 +104,10 @@ bootableusb --listDevices komutuyla bağlı aygıtlar listelenip ilgili aygıt a
85104
Eğer usb belleğin yapısı uygunsa grubu kurar.
86105
87106
--extract isoPath:
88-
Eğer bellekte grub bulunuyorsa belirtilen iso kalıbını belleğe açar.
107+
Eğer usb bellekte grub bulunuyorsa belirtilen iso kalıbını belleğe açar.
89108
90109
--updateGrub:
91-
Bellekte bulunan grubu günceller.
110+
Usb bellekte bulunan grubun ayarlarını günceller.
92111
93112
--repairGrub:
94113
Disk üzerindeki silinen / bozulan grubu tamir eder.
@@ -103,7 +122,7 @@ bootableusb --listDevices komutuyla bağlı aygıtlar listelenip ilgili aygıt a
103122
--version:
104123
Sürüm bilgisini gösterir.
105124
106-
--listDevices:
125+
-l, --listDevices:
107126
Bilgisayara bağlı olan aygıtları listeler.
108127
```
109128

debian/changelog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
bootableusb (0.3) unstable; urgency=medium
2+
3+
* Initial release
4+
5+
-- Bugra <bugra9@gmail.com> Mon, 07 Nov 2016 21:02:38 +0200

debian/compat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
9

debian/control

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Source: bootableusb
2+
Section: main
3+
Priority: optional
4+
Maintainer: bugra9 <bugra9@gmail.com>
5+
Build-Depends: debhelper (>=9)
6+
Standards-Version: 3.9.8
7+
Homepage: https://github.com/bugra9/BootableUSB
8+
#Vcs-Git: git://github.com/bugra9/BootableUSB.git
9+
#Vcs-Browser: https://github.com/bugra9/BootableUSB.git
10+
11+
Package: bootableusb
12+
Architecture: all
13+
Depends: ${shlibs:Depends}, ${misc:Depends}
14+
Description: Create bootable usb drives
15+
BootableUSB allows you to create bootable USB drives for Windows and Linux distributions.

debian/copyright

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2+
Upstream-Name: bootableusb
3+
Source: https://github.com/bugra9/BootableUSB
4+
5+
Files: *
6+
Copyright: 2016 bugra9 <bugra9@gmail.com>
7+
License: GPL-3.0+
8+
9+
License: GPL-3.0+
10+
This program is free software: you can redistribute it and/or modify
11+
it under the terms of the GNU General Public License as published by
12+
the Free Software Foundation, either version 3 of the License, or
13+
(at your option) any later version.
14+
.
15+
This package is distributed in the hope that it will be useful,
16+
but WITHOUT ANY WARRANTY; without even the implied warranty of
17+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18+
GNU General Public License for more details.
19+
.
20+
You should have received a copy of the GNU General Public License
21+
along with this program. If not, see <https://www.gnu.org/licenses/>.
22+
.
23+
On Debian systems, the complete text of the GNU General
24+
Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
25+
26+
# Please also look if there are files or directories which have a
27+
# different copyright/license attached and list them here.
28+
# Please avoid picking licenses with terms that are more restrictive than the
29+
# packaged work, as it may make Debian's contributions unacceptable upstream.

debian/rules

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/usr/bin/make -f
2+
# See debhelper(7) (uncomment to enable)
3+
# output every command that modifies files on the build system.
4+
#export DH_VERBOSE = 1
5+
6+
7+
# see FEATURE AREAS in dpkg-buildflags(1)
8+
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
9+
10+
# see ENVIRONMENT in dpkg-buildflags(1)
11+
# package maintainers to append CFLAGS
12+
#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
13+
# package maintainers to append LDFLAGS
14+
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
15+
16+
17+
%:
18+
dh $@
19+
20+
21+
# dh_make generated override targets
22+
# This is example for Cmake (See https://bugs.debian.org/641051 )
23+
#override_dh_auto_configure:
24+
# dh_auto_configure -- # -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)
25+
26+
override_dh_auto_install:
27+
mkdir -p debian/bootableusb/usr/bin
28+
mkdir -p debian/bootableusb/usr/share/man/man1
29+
mkdir -p debian/bootableusb/usr/share/man/tr/man1
30+
mkdir -p debian/bootableusb/usr/share/locale/tr/LC_MESSAGES
31+
dh_auto_install

debian/source/format

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0 (quilt)

i18n/tr.po

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
msgid "All Storage Devices"
2+
msgstr "Tüm Depolama Aygıtları"
3+
4+
msgid "Error: mkdosfs or mkfs.msdos program not found!"
5+
msgstr "Hata: mkdosfs veya mkfs.msdos yazılımlarından biri bulunamadı!"
6+
7+
msgid "Install Windows"
8+
msgstr "Windows Kurulumu"
9+
10+
msgid "Boot Linux ISO Image"
11+
msgstr "Linux ISO Kalıbından Başlat"
12+
13+
msgid "Run from RAM"
14+
msgstr "RAM'e kopyalayarak başlat"
15+
16+
msgid "Live"
17+
msgstr "Canlı"
18+
19+
msgid "Setup"
20+
msgstr "Kurulum"
21+
22+
msgid "Error: this drive contains multiple partitions!"
23+
msgstr "Hata: Bu sürücü birden fazla disk bölüm içeriyor!"
24+
25+
msgid "Error: unable to securely unmount %s"
26+
msgstr "Hata: %s güvenli biçimde ayırılamadı."
27+
28+
msgid "Finalizing, please wait..."
29+
msgstr "Bitiriliyor, Lütfen Bekleyin..."
30+
31+
msgid "Error: the device is in use by another process. \nPlease close any other process that may be accessing the device. \nError Code: %s"
32+
msgstr "Hata: aygıt başka bir işlem tarafından kullanılıyor. \nLütfen aygıta erişilebilmesi için diğer işlemi kapatın. \nHata Kodu: %s"
33+
34+
msgid "Copying files..."
35+
msgstr "Dosyalar kopyalanıyor..."
36+
37+
msgid "Error: unknown option - '%s'"
38+
msgstr "Hata: bilinmeyen seçenek - '%s'"
39+
40+
msgid "Error: '%s' device not found."
41+
msgstr "Hata: '%s' aygıtı bulunamadı."
42+
43+
msgid "Error: you should run this script as root!"
44+
msgstr "Hata: Bu yazılımın çalışması için yönetici yetkilerine ihtiyacı var."
45+
46+
msgid "Error: no install method specified!"
47+
msgstr "Hata: herhangi bir işlem belirtilmemiş!"
48+
49+
msgid "WARNING: ALL DATA ON DEVICE '%s' WILL BE DESTROYED. \nAre you sure you want to continue? (y/n)"
50+
msgstr "UYARI: '%s' AYGITINDAKİ TÜM VERİ YOK EDİLECEK.\nİşleme devam etmek istediğine emin misin? (e/h)"

man/bootableusb.1.en

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
.TH BOOTABLEUSB "1" "November 2016" "bootableusb v0.3"
2+
.SH NAME
3+
bootableusb \- Create bootable USB drives
4+
.SH SYNOPSIS
5+
bootableusb [OPTIONS]... DEVICE
6+
.PP
7+
.SH DESCRIPTION
8+
.PP
9+
.PP
10+
DEVICE: The block device to be used.
11+
Use bootableusb \fB\-\-listDevices\fR
12+
.SS "--prepare:"
13+
.IP
14+
Format your usb drive and install grub
15+
Warning: All data on device will be destroyed.
16+
.SS "--format:"
17+
.IP
18+
Format your usb drive
19+
Warning: All data on device will be destroyed.
20+
.SS "--installGrub:"
21+
.IP
22+
Install grub
23+
.SS "--extract isoPath:"
24+
.IP
25+
Extract Windows ISO to usb drive
26+
.SS "--updateGrub:"
27+
.IP
28+
Update grub
29+
.SS "--repairGrub:"
30+
.IP
31+
Repair grub
32+
.SS "-v, --verbose:"
33+
.IP
34+
Explain what is being done
35+
.SS "-h, --help:"
36+
.IP
37+
Display this help and exit
38+
.SS "--version:"
39+
.IP
40+
Output version information and exit
41+
.SS "-l, --listDevices:"
42+
.IP
43+
Lists information about all storage devices
44+
.PP

0 commit comments

Comments
 (0)