-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove reg_files.tar.bz2, using patch to fix reg files and merge tool…
… scripts to gen.sh. Signed-off-by: CountStarlight <[email protected]>
- Loading branch information
Showing
10 changed files
with
141 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,74 @@ | ||
#!/bin/sh | ||
makepkg --printsrcinfo > .SRCINFO | ||
|
||
GenPatch() | ||
{ | ||
diff -ruN reg_tmp/ reg_tmp_fixed/ > reg.patch | ||
} | ||
|
||
Extract() | ||
{ | ||
rm -rf reg_tmp_fixed && \ | ||
mkdir reg_tmp_fixed && \ | ||
tar xvjf reg_files.tar.bz2 -C reg_tmp_fixed | ||
} | ||
|
||
GenSrcInfo() | ||
{ | ||
makepkg --printsrcinfo > .SRCINFO | ||
} | ||
|
||
Clean() | ||
{ | ||
git clean -xfd | ||
} | ||
|
||
Tar() | ||
{ | ||
cd reg_tmp && \ | ||
tar -cvjSf reg_files.tar.bz2 * && \ | ||
mv reg_files.tar.bz2 ../ && \ | ||
cd ../ | ||
} | ||
|
||
HelpApp() | ||
{ | ||
echo " Extra Commands:" | ||
echo " -p/--patch Generate patch files between reg_tmp/ and reg_tmp_fixed/" | ||
echo " -e/--extract Extract reg files from reg_files.tar.bz2 to dir reg_tmp_fixed/" | ||
echo " -g/--gen Generate AUR package info to .SRCINFO" | ||
echo " -c/--clean Clean files which not track by git" | ||
echo " -t/--tar Package reg files and modify the md5 value in PKGBUILD" | ||
echo " -h/--help Show program help info" | ||
} | ||
|
||
if [ -z $1 ]; then | ||
# Default generate AUR package info | ||
GenSrcInfo | ||
exit 0 | ||
fi | ||
case $1 in | ||
"-p" | "--patch") | ||
GenPatch | ||
;; | ||
"-e" | "--extract") | ||
Extract | ||
;; | ||
"-g" | "--gen") | ||
GenSrcInfo | ||
;; | ||
"-c" | "--clean") | ||
Clean | ||
;; | ||
"-t" | "--tar") | ||
Tar | ||
;; | ||
"-h" | "--help") | ||
HelpApp | ||
;; | ||
*) | ||
echo -e "\033[31mgen: unrecognized option '$1' \033[0m" | ||
echo "Use -h|--help to get help" | ||
exit 1 | ||
;; | ||
esac | ||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
diff -ruN reg_tmp/system.reg reg_tmp_fixed/system.reg | ||
--- reg_tmp/system.reg 2018-04-03 13:53:26.000000000 +0800 | ||
+++ reg_tmp_fixed/system.reg 2019-04-03 21:34:07.000000000 +0800 | ||
@@ -30955,15 +30955,16 @@ | ||
[Software\\Microsoft\\Windows\\CurrentVersion\\Winlogon] 1486457887 | ||
#time=1d281204c9b71e0 | ||
|
||
-[Software\\Microsoft\\Windows NT\\CurrentVersion] 1507795882 | ||
-#time=1d34331b1382cd2 | ||
-"CSDVersion"="Service Pack 3" | ||
-"CurrentBuildNumber"="2600" | ||
+[Software\\Microsoft\\Windows NT\\CurrentVersion] 1553355758 | ||
+#time=1d4e18f0af44402 | ||
+"CSDVersion"="" | ||
+"CurrentBuild"="17134" | ||
+"CurrentBuildNumber"="17134" | ||
"CurrentType"="Uniprocessor Free" | ||
-"CurrentVersion"="5.1" | ||
+"CurrentVersion"="10.0" | ||
"InstallDate"=dword:4be5019a | ||
"ProductId"="12345-oem-0000001-54321" | ||
-"ProductName"="Microsoft Windows XP" | ||
+"ProductName"="Microsoft Windows 10" | ||
"RegisteredOrganization"="" | ||
"RegisteredOwner"="" | ||
"SystemRoot"="C:\\windows" | ||
diff -ruN reg_tmp/update.policy reg_tmp_fixed/update.policy | ||
--- reg_tmp/update.policy 2018-04-03 13:53:26.000000000 +0800 | ||
+++ reg_tmp_fixed/update.policy 2018-02-23 20:31:32.000000000 +0800 | ||
@@ -8,15 +8,14 @@ | ||
;; Ingore - Ingore file when copy. | ||
|
||
;; Ingore update.policy itself. | ||
-;; "^update.policy$" = "Ingore" | ||
+"^update.policy$" = "Ingore" | ||
"^.update-timestamp$" = "Ingore" | ||
|
||
;; System registry files. | ||
"^(system|userdef|user).reg$" = "Registry" | ||
|
||
;; Addtional assist files. | ||
-"^drive_c/deepin" = "Keep" | ||
-"^drive_c/deepin/EnvInit.sh" = "Keep" | ||
+"^drive_c/Deepin" = "Keep" | ||
|
||
;; Microsoft Office files. | ||
"^drive_c/Windows/(?:control\.ini|hh\.dat|mapiuid\.ini|Reg Save Log\.txt)$" = "Override" | ||
diff -ruN reg_tmp/user.reg reg_tmp_fixed/user.reg | ||
--- reg_tmp/user.reg 2018-04-03 13:53:26.000000000 +0800 | ||
+++ reg_tmp_fixed/user.reg 2019-04-03 21:35:35.000000000 +0800 | ||
@@ -815,6 +815,7 @@ | ||
"androidassist"="" | ||
"mlang"="native,builtin" | ||
"msls31"="native,builtin" | ||
+"ntoskrnl.exe"="" | ||
"riched20"="native,builtin" | ||
"txplatform.exe"="" | ||
"txupd.exe"="" |
Binary file not shown.
This file was deleted.
Oops, something went wrong.